KETCube EEPROM driver for STM32L082.
More...
KETCube EEPROM driver for STM32L082.
◆ KETCUBE_EEPROM_BASE_ADDR
#define KETCUBE_EEPROM_BASE_ADDR ((uint32_t)0x08080000) /* Data EEPROM base address */ |
◆ KETCUBE_EEPROM_END_ADDR
#define KETCUBE_EEPROM_END_ADDR ((uint32_t)0x080807FF) /* Data EEPROM end address */ |
◆ KETCUBE_EEPROM_TIMEOUT
#define KETCUBE_EEPROM_TIMEOUT 0x1000 /*<! Value of Timeout for EEPROM operations */ |
◆ ketCube_EEPROM_Error_t
Error code type.
Enumerator |
---|
KETCUBE_EEPROM_OK | |
KETCUBE_EEPROM_ERROR | |
ketCube_EEPROM_Error_tIMEOUT | |
KETCUBE_EEPROM_ERROR_MEMOVER | |
◆ ketCube_EEPROM_Erase()
Erase block of the EEPROM memory.
- Parameters
-
addr | EEPROM offset (from the base address) |
len | data buffer length |
- Return values
-
error | code, KETCUBE_EEPROM_OK if success |
◆ ketCube_EEPROM_ReadBuffer()
Read Buffer to the EEPROM.
- Parameters
-
addr | EEPROM offset (from the base address) |
data | buffer to be written |
len | data buffer length |
- Return values
-
error | code, KETCUBE_EEPROM_OK if success |
◆ ketCube_EEPROM_WriteBuffer()
Write Buffer to the EEPROM.
- Parameters
-
addr | EEPROM offset (from the base address) |
data | buffer to be written |
len | data buffer length |
- Return values
-
error | code, KETCUBE_EEPROM_OK if success |