Go to the source code of this file.
Data Structures | |
struct | EEPROM_Params |
Parameters passed during EEPROM_open() More... | |
struct | EEPROM_Fxns |
Driver implementation callbacks. More... | |
struct | EEPROM_Attrs |
EEPROM device attributes, these are filled by SysCfg based on the device that is selected. More... | |
struct | EEPROM_Config |
EEPROM driver configuration, these are filled by SysCfg based on the device that is selected. More... | |
struct | EEPROM_Object |
EEPROM driver object - not to be used by application. More... | |
Macros | |
#define | EEPROM_PAGE_SIZE (256U) |
Max EEPROM page size used to allocate temp write buffer so that address (offset) and data can be done in single I2C operation. More... | |
#define | EEPROM_WR_BUF_SIZE (2U + EEPROM_PAGE_SIZE) |
Temp write buffer to hold address offset and data for page write operation - 2 bytes for offset and remaining for one page data. More... | |
Typedefs | |
typedef void * | EEPROM_Handle |
Handle to the EEPROM driver returned by EEPROM_open() More... | |
EEPROM driver implementation callbacks | |
typedef int32_t(* | EEPROM_OpenFxn) (EEPROM_Config *config, const EEPROM_Params *params) |
Driver implementation to open a specific EEPROM driver. More... | |
typedef void(* | EEPROM_CloseFxn) (EEPROM_Config *config) |
Driver implementation to close a specific EEPROM driver. More... | |
typedef int32_t(* | EEPROM_ReadFxn) (EEPROM_Config *config, uint32_t offset, uint8_t *buf, uint32_t len) |
Driver implementation to read from EEPROM using a specific EEPROM driver. More... | |
typedef int32_t(* | EEPROM_WriteFxn) (EEPROM_Config *config, uint32_t offset, const uint8_t *buf, uint32_t len) |
Driver implementation to write to EEPROM using specific EEPROM driver. More... | |
Functions | |
void | EEPROM_Params_init (EEPROM_Params *params) |
Set default parameters in the EEPROM_Params_s structure. More... | |
EEPROM_Handle | EEPROM_open (uint32_t instanceId, const EEPROM_Params *params) |
Open EEPROM driver. More... | |
void | EEPROM_close (EEPROM_Handle handle) |
Open EEPROM driver. More... | |
int32_t | EEPROM_read (EEPROM_Handle handle, uint32_t offset, uint8_t *buf, uint32_t len) |
Read data from EEPROM. More... | |
int32_t | EEPROM_write (EEPROM_Handle handle, uint32_t offset, const uint8_t *buf, uint32_t len) |
Write to EEPROM. More... | |
const EEPROM_Attrs * | EEPROM_getAttrs (uint32_t instanceId) |
Return EEPROM attributes. More... | |