28.6.3.1.1 Function eeprom_emulator_init()
Initializes the EEPROM Emulator service.
enum status_code eeprom_emulator_init( void )
Initializes the emulated EEPROM memory space; if the emulated EEPROM memory has not been previously initialized, it will need to be explicitly formatted via eeprom_emulator_erase_memory(). The EEPROM memory space will not be automatically erased by the initialization function, so that partial data may be recovered by the user application manually if the service is unable to initialize successfully.
Returns
Status code indicating the status of the operation.
Return value | Description |
---|---|
STATUS_OK |
EEPROM emulation service was successfully initialized |
STATUS_ERR_NO_MEMORY |
No EEPROM section has been allocated in the device |
STATUS_ERR_BAD_FORMAT |
Emulated EEPROM memory is corrupt or not formatted |
STATUS_ERR_IO |
EEPROM data is incompatible with this version or scheme of the EEPROM emulator |