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#
otaStorageEepromGetStorageStartAddress#
uint32_t otaStorageEepromGetStorageStartAddress ()
248
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
otaStorageEepromGetStorageEndAddress#
uint32_t otaStorageEepromGetStorageEndAddress ()
249
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
otaStorageEepromGetImageInfoStartAddress#
uint32_t otaStorageEepromGetImageInfoStartAddress ()
250
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
Callbacks Documentation#
emberAfPluginOtaStorageSimpleEepromEraseCompleteCallback#
void emberAfPluginOtaStorageSimpleEepromEraseCompleteCallback (bool success)
Erase complete.
N/A | success | The result of the erase operation. Ver.: always |
Called when an EEPROM erase operation has completed.
271
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
Function Documentation#
emAfOtaStorageWriteInt32uToEeprom#
void emAfOtaStorageWriteInt32uToEeprom (uint32_t value, uint32_t realOffset)
N/A | value | |
N/A | realOffset |
254
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
emAfOtaStorageReadInt32uFromEeprom#
uint32_t emAfOtaStorageReadInt32uFromEeprom (uint32_t realOffset)
N/A | realOffset |
255
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
emAfStorageEepromUpdateDownloadOffset#
void emAfStorageEepromUpdateDownloadOffset (uint32_t offset, bool finalOffset)
N/A | offset | |
N/A | finalOffset |
256
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
emAfOtaStorageDriverGetRealOffset#
bool emAfOtaStorageDriverGetRealOffset (uint32_t * offset, uint32_t * length)
N/A | offset | |
N/A | length |
258
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
Macro Definition Documentation#
SOC_BOOTLOADING_SUPPORT_ENABLED#
#define SOC_BOOTLOADING_SUPPORT_ENABLEDValue:
false
161
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
SOC_BOOTLOADING_SUPPORT_TEXT#
#define SOC_BOOTLOADING_SUPPORT_TEXTValue:
"no"
162
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
READ_MODIFY_WRITE_SUPPORT_TEXT#
#define READ_MODIFY_WRITE_SUPPORT_TEXTValue:
"no"
168
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
EEPROM_START#
#define EEPROM_STARTValue:
EMBER_AF_PLUGIN_OTA_STORAGE_SIMPLE_EEPROM_STORAGE_START
172
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
EEPROM_END#
#define EEPROM_ENDValue:
EMBER_AF_PLUGIN_OTA_STORAGE_SIMPLE_EEPROM_STORAGE_END
173
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
SAVE_RATE#
#define SAVE_RATEValue:
EMBER_AF_PLUGIN_OTA_STORAGE_SIMPLE_EEPROM_DOWNLOAD_OFFSET_SAVE_RATE
174
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
DEFAULT_SLOT#
#define DEFAULT_SLOTValue:
0
176
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
USE_FIRST_SLOT#
#define USE_FIRST_SLOTValue:
0
177
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
USE_LAST_SLOT#
#define USE_LAST_SLOTValue:
1
178
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
USE_SPECIFIC_SLOT#
#define USE_SPECIFIC_SLOTValue:
2
179
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
DO_NOT_USE_SLOTS#
#define DO_NOT_USE_SLOTSValue:
3
180
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
SLOT_STRATEGY#
#define SLOT_STRATEGYValue:
EMBER_AF_PLUGIN_OTA_STORAGE_SIMPLE_EEPROM_GECKO_BOOTLOADER_STORAGE_SUPPORT
181
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
MAX_IMAGE_INFO_AND_OTA_HEADER_SIZE#
#define MAX_IMAGE_INFO_AND_OTA_HEADER_SIZEValue:
2048
183
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
MAX_WORD_SIZE#
#define MAX_WORD_SIZEValue:
4
185
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
MAGIC_NUMBER_INDEX#
#define MAGIC_NUMBER_INDEXValue:
0
189
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
MAGIC_NUMBER_SIZE#
#define MAGIC_NUMBER_SIZEValue:
8
190
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
VERSION_NUMBER_INDEX#
#define VERSION_NUMBER_INDEXValue:
(MAGIC_NUMBER_INDEX + MAGIC_NUMBER_SIZE)
191
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
VERSION_NUMBER_SIZE#
#define VERSION_NUMBER_SIZEValue:
4
192
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
MAGIC_NUMBER#
#define MAGIC_NUMBERValue:
0x01, 0x09, 0x05, 0x01, 0x00, 0x02, 0x00, 0x00
197
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
VERSION_NUMBER#
#define VERSION_NUMBERValue:
0x00, 0x00, 0x00, 0x03
205
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
EBL_START_OFFSET_INDEX#
#define EBL_START_OFFSET_INDEXValue:
(VERSION_NUMBER_INDEX + VERSION_NUMBER_SIZE)
213
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
EBL_START_OFFSET_SIZE#
#define EBL_START_OFFSET_SIZEValue:
4
214
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
SAVED_DOWNLOAD_OFFSET_INDEX#
#define SAVED_DOWNLOAD_OFFSET_INDEXValue:
(EBL_START_OFFSET_INDEX + EBL_START_OFFSET_SIZE)
221
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
MAX_BYTEMASK_LENGTH#
#define MAX_BYTEMASK_LENGTHValue:
1024
235
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
OTA_HEADER_INDEX#
#define OTA_HEADER_INDEXValue:
(SAVED_DOWNLOAD_OFFSET_INDEX + MAX_BYTEMASK_LENGTH)
237
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h
MINIMUM_FILE_SIZE_TO_STORE_OFFSET#
#define MINIMUM_FILE_SIZE_TO_STORE_OFFSETValue:
(OTA_MINIMUM_HEADER_LENGTH)
241
of file app/framework/plugin/ota-storage-simple-eeprom/ota-storage-eeprom.h