This file implements the Cascoda platform abstraction for non-volatile storage of settings.
More...
|
#define | otEXPECT(aCondition) |
| This checks for the specified condition, which is expected to commonly be true, and branches to the local label 'exit' if the condition is false. More...
|
|
#define | otEXPECT_ACTION(aCondition, aAction) |
| This checks for the specified condition, which is expected to commonly be true, and both executes anAction and branches to the local label 'exit' if the condition is false. More...
|
|
#define | otEXIT_NOW(aAction) |
| This unconditionally executes aAction and branches to the local label 'exit'. More...
|
|
#define | SETTINGS_CONFIG_BASE_ADDRESS 0 |
| The base address of settings. More...
|
|
#define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
|
|
void | BSP_GetFlashInfo (struct ca_flash_info *aFlashInfoOut) |
| Get the flashinfo struct for the current platform. More...
|
|
void | caUtilSettingsInit (struct ca821x_dev *aInstance, const char *aApplicationName, uint32_t aNodeId) |
| Performs any initialization for the settings subsystem, if necessary. More...
|
|
ca_error | caUtilSettingsBeginChange (struct ca821x_dev *aInstance) |
|
ca_error | caUtilSettingsCommitChange (struct ca821x_dev *aInstance) |
|
ca_error | caUtilSettingsAbandonChange (struct ca821x_dev *aInstance) |
|
void | caUtilSettingsDeinit (struct ca821x_dev *aInstance) |
| Performs any de-initialization for the settings subsystem, if necessary. More...
|
|
ca_error | caUtilSettingsGet (struct ca821x_dev *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLength) |
| This function fetches the value of the setting identified by aKey and write it to the memory pointed to by aValue. More...
|
|
ca_error | caUtilSettingsGetAddress (struct ca821x_dev *aInstance, uint16_t aKey, int aIndex, void **aValue, uint16_t *aValueLength) |
| Get the address at which a particular setting is stored. More...
|
|
ca_error | caUtilSettingsSet (struct ca821x_dev *aInstance, uint16_t aKey, const uint8_t *aValue, uint16_t aValueLength) |
| Sets or replaces the value of a setting. More...
|
|
ca_error | caUtilSettingsAdd (struct ca821x_dev *aInstance, uint16_t aKey, const uint8_t *aValue, uint16_t aValueLength) |
| Adds a value to a setting This function adds the value to a setting identified by aKey, without replacing any existing values. More...
|
|
ca_error | caUtilSettingsAddVector (struct ca821x_dev *aInstance, uint16_t aKey, struct settingBuffer *aVector, size_t aCount) |
| Add a vector of buffers to the storage. More...
|
|
ca_error | caUtilSettingsDelete (struct ca821x_dev *aInstance, uint16_t aKey, int aIndex) |
| Removes a setting from the setting store. More...
|
|
void | caUtilSettingsWipe (struct ca821x_dev *aInstance, const char *aApplicationName, uint32_t aNodeId) |
| Removes all settings from the setting store. More...
|
|
This file implements the Cascoda platform abstraction for non-volatile storage of settings.