|
Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
This file includes platform abstraction for non-volatile storage of settings. More...
#include "ca821x_api.h"

Go to the source code of this file.
Classes | |
| struct | settingBuffer |
| Data structure for vectored I/O using caUtilSettingsAddVector. More... | |
Typedefs | |
| typedef void(* | setting_moved_cb_t) (void) |
Functions | |
| void | caUtilSettingsInit (struct ca821x_dev *aInstance, const char *aApplicationName, uint32_t aNodeId) |
| Performs any initialization for the settings subsystem, if necessary. | |
| 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 | 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 | 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. | |
| 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 | caUtilSettingsAddVector (struct ca821x_dev *aInstance, uint16_t aKey, struct settingBuffer *aVector, size_t aCount) |
| Add a vector of buffers to the storage. | |
| 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. | |
| 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 | 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. | |
This file includes platform abstraction for non-volatile storage of settings.