Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
settings.c File Reference

This file implements the OpenThread platform abstraction for non-volatile storage of settings. More...

#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "openthread/platform/settings.h"
#include "openthread-core-config.h"
#include "cascoda-bm/cascoda_interface.h"
#include "code_utils.h"
#include "platform.h"
#include "cascoda-util/cascoda_settings.h"
Include dependency graph for settings.c:

Functions

void otPlatSettingsInit (otInstance *aInstance, const uint16_t *aSensitiveKeys, uint16_t aSensitiveKeysLength)
 
otError otPlatSettingsBeginChange (otInstance *aInstance)
 
otError otPlatSettingsCommitChange (otInstance *aInstance)
 
otError otPlatSettingsAbandonChange (otInstance *aInstance)
 
void otPlatSettingsDeinit (otInstance *aInstance)
 
otError otPlatSettingsGet (otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLength)
 
otError otPlatSettingsGetAddress (uint16_t aKey, int aIndex, void **aValue, uint16_t *aValueLength)
 Get the address at which a setting is stored, so that it can be read without copying it, as would be necessary when using otPlatSettingsGet(). More...
 
otError otPlatSettingsSet (otInstance *aInstance, uint16_t aKey, const uint8_t *aValue, uint16_t aValueLength)
 
otError otPlatSettingsAdd (otInstance *aInstance, uint16_t aKey, const uint8_t *aValue, uint16_t aValueLength)
 
otError otPlatSettingsAddVector (otInstance *aInstance, uint16_t aKey, struct settingBuffer *aVector, size_t aCount)
 This function adds the value to a setting identified by aKey, without replacing any existing values. More...
 
otError otPlatSettingsDelete (otInstance *aInstance, uint16_t aKey, int aIndex)
 
void otPlatSettingsWipe (otInstance *aInstance)
 

Detailed Description

This file implements the OpenThread platform abstraction for non-volatile storage of settings.

Function Documentation

◆ otPlatSettingsAbandonChange()

otError otPlatSettingsAbandonChange ( otInstance *  aInstance)

◆ otPlatSettingsAdd()

otError otPlatSettingsAdd ( otInstance *  aInstance,
uint16_t  aKey,
const uint8_t *  aValue,
uint16_t  aValueLength 
)

◆ otPlatSettingsBeginChange()

otError otPlatSettingsBeginChange ( otInstance *  aInstance)

◆ otPlatSettingsCommitChange()

otError otPlatSettingsCommitChange ( otInstance *  aInstance)

◆ otPlatSettingsDeinit()

void otPlatSettingsDeinit ( otInstance *  aInstance)

◆ otPlatSettingsDelete()

otError otPlatSettingsDelete ( otInstance *  aInstance,
uint16_t  aKey,
int  aIndex 
)

◆ otPlatSettingsGet()

otError otPlatSettingsGet ( otInstance *  aInstance,
uint16_t  aKey,
int  aIndex,
uint8_t *  aValue,
uint16_t *  aValueLength 
)

◆ otPlatSettingsInit()

void otPlatSettingsInit ( otInstance *  aInstance,
const uint16_t *  aSensitiveKeys,
uint16_t  aSensitiveKeysLength 
)

◆ otPlatSettingsSet()

otError otPlatSettingsSet ( otInstance *  aInstance,
uint16_t  aKey,
const uint8_t *  aValue,
uint16_t  aValueLength 
)

◆ otPlatSettingsWipe()

void otPlatSettingsWipe ( otInstance *  aInstance)