|
AM263x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
54 #include <drivers/i2c.h>
68 #define EEPROM_PAGE_SIZE (256U)
73 #define EEPROM_WR_BUF_SIZE (2U + EEPROM_PAGE_SIZE)
99 const EEPROM_Params *params);
169 typedef struct EEPROM_Fxns_s
185 typedef struct EEPROM_Attrs_s
EEPROM device attributes, these are filled by SysCfg based on the device that is selected.
Definition: eeprom.h:186
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.
Definition: eeprom.h:144
uint32_t driverInstance
Definition: eeprom.h:159
void * object
Definition: eeprom.h:205
uint32_t driverInstance
Definition: eeprom.h:308
#define EEPROM_WR_BUF_SIZE
Temp write buffer to hold address offset and data for page write operation - 2 bytes for offset and r...
Definition: eeprom.h:73
EEPROM_OpenFxn openFxn
Definition: eeprom.h:171
EEPROM_ReadFxn readFxn
Definition: eeprom.h:175
void * lock
Definition: eeprom.h:316
EEPROM driver configuration, these are filled by SysCfg based on the device that is selected.
Definition: eeprom.h:200
void EEPROM_close(EEPROM_Handle handle)
Open EEPROM driver.
int32_t EEPROM_write(EEPROM_Handle handle, uint32_t offset, const uint8_t *buf, uint32_t len)
Write to EEPROM.
struct I2C_Config_s * I2C_Handle
A handle that is returned from a I2C_open() call.
Definition: i2c.h:165
uint32_t i2cAddress
Definition: eeprom.h:162
EEPROM_Fxns * fxns
Definition: eeprom.h:203
uint32_t pageCount
Definition: eeprom.h:189
I2C_Handle i2cHandle
Definition: eeprom.h:306
EEPROM driver object - not to be used by application.
Definition: eeprom.h:305
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.
Definition: eeprom.h:126
EEPROM_WriteFxn writeFxn
Definition: eeprom.h:177
const EEPROM_Attrs * EEPROM_getAttrs(uint32_t instanceId)
Return EEPROM attributes.
void(* EEPROM_CloseFxn)(EEPROM_Config *config)
Driver implementation to close a specific EEPROM driver.
Definition: eeprom.h:111
SemaphoreP_Object lockObj
Definition: eeprom.h:318
EEPROM_CloseFxn closeFxn
Definition: eeprom.h:173
Parameters passed during EEPROM_open()
Definition: eeprom.h:158
uint32_t pageSize
Definition: eeprom.h:191
int32_t EEPROM_read(EEPROM_Handle handle, uint32_t offset, uint8_t *buf, uint32_t len)
Read data from EEPROM.
EEPROM_Attrs * attrs
Definition: eeprom.h:201
int32_t(* EEPROM_OpenFxn)(EEPROM_Config *config, const EEPROM_Params *params)
Driver implementation to open a specific EEPROM driver.
Definition: eeprom.h:98
void EEPROM_Params_init(EEPROM_Params *params)
Set default parameters in the EEPROM_Params_s structure.
uint32_t i2cAddress
Definition: eeprom.h:311
Opaque semaphore object used with the semaphore APIs.
Definition: SemaphoreP.h:59
EEPROM_Handle EEPROM_open(uint32_t instanceId, const EEPROM_Params *params)
Open EEPROM driver.
uint32_t size
Definition: eeprom.h:187
Driver implementation callbacks.
Definition: eeprom.h:170
void * EEPROM_Handle
Handle to the EEPROM driver returned by EEPROM_open()
Definition: eeprom.h:76