OTA Storage Simple EEPROM#
API and Callbacks for the OTA Storage Simple EEPROM Component.
This is a driver for the Over-the-Air simple storage module component. It uses an EEPROM as the underlying storage device. It provides a means to record data being read or written, as well as metadata with information about how far along a client download is. It can be used either by an OTA Client or an OTA Server. Note that this component assumes that the flash storage does not have read-modify-write support. Users should ensure this value matches the flash storage device used by the application. A mismatch between the project-configured value and the actual flash storage support value will result in an application that asserts upon startup.
Callbacks#
Erase complete.
Functions#
Macros#
API Documentation#
Callbacks Documentation#
emberAfPluginOtaStorageSimpleEepromEraseCompleteCallback#
void emberAfPluginOtaStorageSimpleEepromEraseCompleteCallback (bool success)
Erase complete.
Type | Direction | Argument Name | Description |
---|---|---|---|
bool | N/A | success | The result of the erase operation. Ver.: always |
Called when an EEPROM erase operation has completed.
Function Documentation#
emAfOtaStorageWriteInt32uToEeprom#
void emAfOtaStorageWriteInt32uToEeprom (uint32_t value, uint32_t realOffset)
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | N/A | value | |
uint32_t | N/A | realOffset |
emAfOtaStorageReadInt32uFromEeprom#
uint32_t emAfOtaStorageReadInt32uFromEeprom (uint32_t realOffset)
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | N/A | realOffset |
emAfStorageEepromUpdateDownloadOffset#
void emAfStorageEepromUpdateDownloadOffset (uint32_t offset, bool finalOffset)
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | N/A | offset | |
bool | N/A | finalOffset |
emAfOtaStorageDriverGetRealOffset#
bool emAfOtaStorageDriverGetRealOffset (uint32_t * offset, uint32_t * length)
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t * | N/A | offset | |
uint32_t * | N/A | length |