Go to the source code of this file.
Data Structures | |
struct | Flash_Params |
Parameters passed during Flash_open() More... | |
struct | Flash_Fxns |
Driver implementation callbacks. More... | |
struct | Flash_Attrs |
Flash device attributes, these are filled by SysCfg based on the flash device that is selected. More... | |
struct | Flash_Config |
Flash driver configuration, these are filled by SysCfg based on the flash device that is selected. More... | |
Typedefs | |
typedef void * | Flash_Handle |
Handle to the FLash driver returned by Flash_opem() More... | |
typedef struct Flash_Config_s | Flash_Config |
Forward declaration of Flash_Config. More... | |
typedef struct Flash_Params_s | Flash_Params |
Forward declaration of Flash_Params. More... | |
Flash driver implementation callbacks | |
typedef int32_t(* | Flash_OpenFxn) (Flash_Config *config, Flash_Params *params) |
Driver implementation to open a specific flash driver. More... | |
typedef void(* | Flash_CloseFxn) (Flash_Config *config) |
Driver implementation to close a specific flash driver. More... | |
typedef int32_t(* | Flash_ReadFxn) (Flash_Config *config, uint32_t offset, uint8_t *buf, uint32_t len) |
Driver implementation to read from flash using a specific flash driver. More... | |
typedef int32_t(* | Flash_WriteFxn) (Flash_Config *config, uint32_t offset, uint8_t *buf, uint32_t len) |
Driver implementation to write to flash using specific flash driver. More... | |
typedef int32_t(* | Flash_EraseFxn) (Flash_Config *config, uint32_t blockNum) |
Driver implementation to erase a block using a specific flash driver. More... | |
Functions | |
void | Flash_Params_init (Flash_Params *params) |
Set default parameters in the Flash_Params structure. More... | |
Flash_Handle | Flash_open (uint32_t instanceId, Flash_Params *params) |
Open flash driver. More... | |
void | Flash_close (Flash_Handle handle) |
Close flash driver. More... | |
Flash_Handle | Flash_getHandle (uint32_t instanceId) |
Get handle to flash driver. More... | |
int32_t | Flash_read (Flash_Handle handle, uint32_t offset, uint8_t *buf, uint32_t len) |
Read data from flash. More... | |
int32_t | Flash_write (Flash_Handle handle, uint32_t offset, uint8_t *buf, uint32_t len) |
Write to flash. More... | |
int32_t | Flash_blkPageToOffset (Flash_Handle handle, uint32_t *offset, uint32_t block, uint32_t page) |
Utility API to convert (Block Num, Page Num) to offset in bytes. More... | |
int32_t | Flash_offsetToBlkPage (Flash_Handle handle, uint32_t offset, uint32_t *block, uint32_t *page) |
Utility API to convert offset in bytes to (Block Num, Page Num) More... | |
int32_t | Flash_eraseBlk (Flash_Handle handle, uint32_t blockNum) |
Erase a block from flash. More... | |
uint32_t | Flash_getPhyTuningOffset (Flash_Handle handle) |
Return flash offset to write PHY tuning data. More... | |
Flash_Attrs * | Flash_getAttrs (uint32_t instanceId) |
Return flash attributes. More... | |