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 |
Macro Definition Documentation#
SAVE_RATE#
#define SAVE_RATEValue:
EMBER_AF_PLUGIN_OTA_STORAGE_SIMPLE_EEPROM_DOWNLOAD_OFFSET_SAVE_RATE
SLOT_STRATEGY#
#define SLOT_STRATEGYValue:
EMBER_AF_PLUGIN_OTA_STORAGE_SIMPLE_EEPROM_GECKO_BOOTLOADER_STORAGE_SUPPORT
EBL_START_OFFSET_INDEX#
#define EBL_START_OFFSET_INDEXValue:
(VERSION_NUMBER_INDEX + VERSION_NUMBER_SIZE)
SAVED_DOWNLOAD_OFFSET_INDEX#
#define SAVED_DOWNLOAD_OFFSET_INDEXValue:
(EBL_START_OFFSET_INDEX + EBL_START_OFFSET_SIZE)
MINIMUM_FILE_SIZE_TO_STORE_OFFSET#
#define MINIMUM_FILE_SIZE_TO_STORE_OFFSETValue:
(OTA_MINIMUM_HEADER_LENGTH)