Board Support
Version 1.0
Functions available when using the Board Software Components
|
EEPROM Interface. More...
Functions | |
int32_t | EEPROM_Initialize (void) |
Initialize EEPROM. More... | |
int32_t | EEPROM_Uninitialize (void) |
De-initialize EEPROM. More... | |
uint32_t | EEPROM_GetSize (void) |
Get EEPROM memory size in bytes. More... | |
int32_t | EEPROM_ReadData (uint32_t addr, uint8_t *buf, uint32_t len) |
Read data from EEPROM. More... | |
int32_t | EEPROM_WriteData (uint32_t addr, const uint8_t *buf, uint32_t len) |
Write data to EEPROM. More... | |
EEPROM Interface.
uint32_t EEPROM_GetSize | ( | void | ) |
Get EEPROM memory size in bytes.
The function returns the EEPROM size in bytes.
int32_t EEPROM_Initialize | ( | void | ) |
Initialize EEPROM.
The function initializes the EEPROM memory. The function returns an integer value of 0 on success, and -1 on error.
int32_t EEPROM_ReadData | ( | uint32_t | addr, |
uint8_t * | buf, | ||
uint32_t | len | ||
) |
Read data from EEPROM.
[in] | addr | EEPROM address |
[in] | buf | Pointer where data will be read from EEPROM |
[in] | len | Number of data bytes to read |
The function reads data from an EEPROM memory. The parameter addr is the address of the EEPROM. The parameter buf is a pointer to the location that stores the data read form the EEPROM. The parameter len is the number of bytes to read. The function returns an integer value of 0 on success, and -1 on error.
int32_t EEPROM_Uninitialize | ( | void | ) |
De-initialize EEPROM.
The function de-initializes the EEPROM memory. The function returns an integer value of 0 on success, and -1 on error.
int32_t EEPROM_WriteData | ( | uint32_t | addr, |
const uint8_t * | buf, | ||
uint32_t | len | ||
) |
Write data to EEPROM.
[in] | addr | EEPROM address |
[in] | buf | Pointer with data to write to EEPROM |
[in] | len | Number of data bytes to write |
The function writes data to EEPROM memory. The parameter addr is the address of the EEPROM. The parameter buf is a pointer to the data to be written to the EEPROM. The parameter len is the number of bytes to write. The function returns an integer value of 0 on success, and -1 on error.