Fujitsu DTV/STB solution driver (FAPex driver) Documentation [V01L00R00]


fapex/abst_libvrflash.h File Reference

abstraction library header file (FLASH driver) More...

Data Structures

struct  FAPEX_VRFLASH_OpenParamsT
 Open parameters for the FLASH driver. More...

Defines

#define FAPEX_VRFLASH_DEVICE_PFLASH   0
 the parallel flash device
#define FAPEX_VRFLASH_DEVICE_SFLASH   1
 the serial flash device
#define FAPEX_VRFLASH_MODULE_BASE   (0x1000)
#define FAPEX_SYS_ERR_BAD_PARAMETER   (1)
#define FAPEX_VRFLASH_ERR_BAD_PARAMETER   (int32_t)(FAPEX_VRFLASH_MODULE_BASE+FAPEX_SYS_ERR_BAD_PARAMETER)

Enumerations

enum  FAPEX_VRFLASH_VersionEnumT { FAPEX_VRFLASH_VERSION = (int32_t)0x00000001 }

Functions

FAPEX_SYS_HandleTFAPEX_VRFLASH_Open (FAPEX_VRFLASH_OpenParamsT *paramsPtr, int32_t *errorCodePtr)
int32_t FAPEX_VRFLASH_Close (FAPEX_SYS_HandleT *flash_handle_ptr)
const char_tFAPEX_VRFLASH_GetDeviceName (FAPEX_SYS_HandleT handle)
int32_t FAPEX_VRFLASH_GetSectorIndex (FAPEX_SYS_HandleT handle, uint32_t address)
int32_t FAPEX_VRFLASH_GetSectorStart (FAPEX_SYS_HandleT handle, uint32_t sectorIndex)
int32_t FAPEX_VRFLASH_GetSectorBytes (FAPEX_SYS_HandleT handle, uint32_t sectorIndex)
int32_t FAPEX_VRFLASH_ReadBytes (FAPEX_SYS_HandleT handle, uint32_t address, uint32_t byteCount, void *bufferPtr)
int32_t FAPEX_VRFLASH_WriteBytes (FAPEX_SYS_HandleT handle, uint32_t address, uint32_t byteCount, const void *bufferPtr)
int32_t FAPEX_VRFLASH_WriteBytesDirect (FAPEX_SYS_HandleT handle, uint32_t address, uint32_t byteCount, const void *bufferPtr)
int32_t FAPEX_VRFLASH_EraseSector (FAPEX_SYS_HandleT handle, uint32_t sectorIndex)
int32_t FAPEX_VRFLASH_GetDeviceSize (FAPEX_SYS_HandleT handle)
int32_t FAPEX_VRFLASH_GetSectorCount (FAPEX_SYS_HandleT handle)
int32_t FAPEX_VRFLASH_Flush (FAPEX_SYS_HandleT handle)

Detailed Description

abstraction library header file (FLASH driver)

Attention:
This program is provided as is. You can redistribute it and/or modify it. Fujitsu Semiconductor Limited accepts no responsibility or liability for any errors or omissions.

Copyright (C) 2009-2010 Fujitsu Semiconductor Limited, All Rights Reserved.


Define Documentation

#define FAPEX_VRFLASH_DEVICE_PFLASH   0

the parallel flash device

#define FAPEX_VRFLASH_DEVICE_SFLASH   1

the serial flash device

#define FAPEX_VRFLASH_MODULE_BASE   (0x1000)
#define FAPEX_SYS_ERR_BAD_PARAMETER   (1)
#define FAPEX_VRFLASH_ERR_BAD_PARAMETER   (int32_t)(FAPEX_VRFLASH_MODULE_BASE+FAPEX_SYS_ERR_BAD_PARAMETER)

Enumeration Type Documentation

Enumerator:
FAPEX_VRFLASH_VERSION 

The current driver version.


Function Documentation

FAPEX_SYS_HandleT* FAPEX_VRFLASH_Open ( FAPEX_VRFLASH_OpenParamsT paramsPtr,
int32_t *  errorCodePtr 
)
int32_t FAPEX_VRFLASH_Close ( FAPEX_SYS_HandleT flash_handle_ptr )
const char_t* FAPEX_VRFLASH_GetDeviceName ( FAPEX_SYS_HandleT  handle )
int32_t FAPEX_VRFLASH_GetSectorIndex ( FAPEX_SYS_HandleT  handle,
uint32_t  address 
)
int32_t FAPEX_VRFLASH_GetSectorStart ( FAPEX_SYS_HandleT  handle,
uint32_t  sectorIndex 
)
int32_t FAPEX_VRFLASH_GetSectorBytes ( FAPEX_SYS_HandleT  handle,
uint32_t  sectorIndex 
)
int32_t FAPEX_VRFLASH_ReadBytes ( FAPEX_SYS_HandleT  handle,
uint32_t  address,
uint32_t  byteCount,
void *  bufferPtr 
)
int32_t FAPEX_VRFLASH_WriteBytes ( FAPEX_SYS_HandleT  handle,
uint32_t  address,
uint32_t  byteCount,
const void *  bufferPtr 
)
int32_t FAPEX_VRFLASH_WriteBytesDirect ( FAPEX_SYS_HandleT  handle,
uint32_t  address,
uint32_t  byteCount,
const void *  bufferPtr 
)
int32_t FAPEX_VRFLASH_EraseSector ( FAPEX_SYS_HandleT  handle,
uint32_t  sectorIndex 
)
int32_t FAPEX_VRFLASH_GetDeviceSize ( FAPEX_SYS_HandleT  handle )
int32_t FAPEX_VRFLASH_GetSectorCount ( FAPEX_SYS_HandleT  handle )
int32_t FAPEX_VRFLASH_Flush ( FAPEX_SYS_HandleT  handle )


Copyright © 2006-2010 by Fujitsu Semiconductor Europe GmbH
Copyright © 2008-2010 by Fujitsu Semiconductor Limited

Disclaimer:
Please note that the use of this has been based on the terms and conditions of "DK Consent Letter (For Linux)" agreement between you and Fujitsu Semiconductor Limited.
The contents of this document may be revised without prior notice. Contact our sales department for confirmation. The information in this document are presented as is, no license is granted by implication or otherwise.
More...

FUJITSU sales representatives