This file implements the Cascoda platform abstraction for non-volatile storage of settings.
More...
|
| uint16_t | caUtilSettingsGetLastWriteAddress (void) |
| | Get the address of the last write made by a caUtilSettings* API.
|
| uint32_t | caUtilSettingsGetLastReadAddress (void) |
| | Get the address of the last read made by a caUtilSettings* API.
|
| void | BSP_GetFlashInfo (struct ca_flash_info *aFlashInfoOut) |
| | Get the flashinfo struct for the current platform.
|
| void | caUtilSettingsSetSettingMovedCb (setting_moved_cb_t aCb) |
| | Registers the callback for when all settings have moved.
|
| uint32_t | caUtilSettingsSwapSettingsBlock (struct ca821x_dev *aInstance) |
| | Defragment the persistent storage by migrating all valid items to a fresh flash region.
|
| void | caUtilSettingsInit (struct ca821x_dev *aInstance, const char *aApplicationName, uint32_t aNodeId) |
| | Performs any initialization for the settings subsystem, if necessary.
|
| 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.
|
| 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.
|
| ca_error | caUtilSettingsGetFromAddress (struct ca821x_dev *aInstance, uint16_t aKey, uint16_t aRelativeAddress, uint8_t **aValue, uint16_t *aValueLength) |
| | Attempt to read a setting from a specific address in constant time.
|
| ca_error | caUtilSettingsDeleteAtAddress (struct ca821x_dev *aInstance, uint16_t aKey, uint16_t aRelativeAddress) |
| | Delete a setting stored at a specific address.
|
| 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.
|
| 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.
|
| 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.
|
| ca_error | caUtilSettingsAddVector (struct ca821x_dev *aInstance, uint16_t aKey, struct settingBuffer *aVector, size_t aCount) |
| | Add a vector of buffers to the storage.
|
| ca_error | caUtilSettingsDelete (struct ca821x_dev *aInstance, uint16_t aKey, int aIndex) |
| | Removes a setting from the setting store.
|
| void | caUtilSettingsWipe (struct ca821x_dev *aInstance, const char *aApplicationName, uint32_t aNodeId) |
| | Removes all settings from the setting store.
|
This file implements the Cascoda platform abstraction for non-volatile storage of settings.