nl::Weave::DeviceLayer::Internal::EFR32Config

Podsumowanie

Dziedziczenie

Bezpośrednie znane podklasy:
  nl::Weave::DeviceLayer::ConfigurationManagerImpl
  nl::Weave::DeviceLayer::Internal::GroupKeyStoreImpl

Typy publiczne

Key użytkownikami urządzenia:
uint32_t

Typy chronione

ForEachRecordFunct użytkownikami urządzenia:
std::function< WEAVE_ERROR(const Key &nvm3Key, const size_t &length)>

Publiczne atrybuty statyczne

kConfigKey_FabricId = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x00)
constexpr Key
kConfigKey_FabricSecret = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x04)
constexpr Key
kConfigKey_FailSafeArmed = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x06)
constexpr Key
kConfigKey_GroupKey = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x07)
constexpr Key
kConfigKey_GroupKeyBase = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x0D)
constexpr Key
kConfigKey_GroupKeyMax = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x1C)
constexpr Key
kConfigKey_LastUsedEpochKeyId = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x05)
constexpr Key
kConfigKey_ManufacturingDate = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x04)
constexpr Key
kConfigKey_MfrDeviceCert = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x02)
constexpr Key
kConfigKey_MfrDeviceICACerts = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x06)
constexpr Key
kConfigKey_MfrDeviceId = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x01)
constexpr Key
kConfigKey_MfrDevicePrivateKey = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x03)
constexpr Key
kConfigKey_OperationalDeviceCert = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x0A)
constexpr Key
kConfigKey_OperationalDeviceICACerts = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x0B)
constexpr Key
kConfigKey_OperationalDeviceId = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x09)
constexpr Key
kConfigKey_OperationalDevicePrivateKey = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x0C)
constexpr Key
kConfigKey_PairedAccountId = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x02)
constexpr Key
kConfigKey_PairingCode = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x05)
constexpr Key
kConfigKey_ProductRevision = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x08)
constexpr Key
kConfigKey_SerialNum = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x00)
constexpr Key
kConfigKey_ServiceConfig = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x01)
constexpr Key
kConfigKey_ServiceId = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x03)
constexpr Key
kMaxConfigKey_WeaveConfig = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x1C)
constexpr Key
kMaxConfigKey_WeaveCounter = EFR32ConfigKey(kWeaveCounter_KeyBase, 0x1F)
constexpr Key
kMaxConfigKey_WeaveFactory = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x06)
constexpr Key
kMinConfigKey_WeaveConfig = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x00)
constexpr Key
kMinConfigKey_WeaveCounter = EFR32ConfigKey(kWeaveCounter_KeyBase, 0x00)
constexpr Key
kMinConfigKey_WeaveFactory = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x00)
constexpr Key
kWeaveConfig_KeyBase = 0xA3
constexpr uint8_t
kWeaveCounter_KeyBase = 0xA4
constexpr uint8_t
kWeaveFactory_KeyBase = 0xA2
constexpr uint8_t

Publiczne funkcje statyczne

ClearConfigValue(Key key)
ConfigValueExists(Key key)
bool
FactoryResetConfig(void)
Init(void)
ReadConfigValue(Key key, bool & val)
ReadConfigValue(Key key, uint32_t & val)
ReadConfigValue(Key key, uint64_t & val)
ReadConfigValueBin(Key key, uint8_t *buf, size_t bufSize, size_t & outLen)
ReadConfigValueCounter(uint8_t counterIdx, uint32_t & val)
ReadConfigValueStr(Key key, char *buf, size_t bufSize, size_t & outLen)
RepackNvm3Flash(void)
void
RunConfigUnitTest(void)
void
ValidConfigKey(Key key)
bool
WriteConfigValue(Key key, bool val)
WriteConfigValue(Key key, uint32_t val)
WriteConfigValue(Key key, uint64_t val)
WriteConfigValueBin(Key key, const uint8_t *data, size_t dataLen)
WriteConfigValueCounter(uint8_t counterIdx, uint32_t val)
WriteConfigValueStr(Key key, const char *str)
WriteConfigValueStr(Key key, const char *str, size_t strLen)

Chronione funkcje statyczne

ForEachRecord(Key firstKey, Key lastKey, bool addNewRecord, ForEachRecordFunct funct)

Typy publiczne

Klucz

uint32_t Key

Typy chronione

ForEachRecordFunct

std::function< WEAVE_ERROR(const Key &nvm3Key, const size_t &length)> ForEachRecordFunct

Publiczne atrybuty statyczne

kConfigKey_FabricId

constexpr Key kConfigKey_FabricId = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x00)

kConfigKey_FabricSecret

constexpr Key kConfigKey_FabricSecret = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x04)

kConfigKey_FailSafeArmed

constexpr Key kConfigKey_FailSafeArmed = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x06)

kConfigKey_GroupKey

constexpr Key kConfigKey_GroupKey = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x07)

kConfigKey_GroupKeyBase

constexpr Key kConfigKey_GroupKeyBase = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x0D)

kConfigKey_GroupKeyMax

constexpr Key kConfigKey_GroupKeyMax =
        EFR32ConfigKey(kWeaveConfig_KeyBase, 0x1C)

kConfigKey_LastUsedEpochKeyId

constexpr Key kConfigKey_LastUsedEpochKeyId = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x05)

kConfigKey_ManufacturingDate

constexpr Key kConfigKey_ManufacturingDate = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x04)

kConfigKey_MfrDeviceCert

constexpr Key kConfigKey_MfrDeviceCert = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x02)

kConfigKey_MfrDeviceICACerts

constexpr Key kConfigKey_MfrDeviceICACerts = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x06)

kConfigKey_MfrDeviceId

constexpr Key kConfigKey_MfrDeviceId = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x01)

kConfigKey_MfrDevicePrivateKey

constexpr Key kConfigKey_MfrDevicePrivateKey = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x03)

kConfigKey_OperationalDeviceCert

constexpr Key kConfigKey_OperationalDeviceCert = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x0A)

kConfigKey_OperationalDeviceICACerts

constexpr Key kConfigKey_OperationalDeviceICACerts = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x0B)

kConfigKey_OperationalDeviceId

constexpr Key kConfigKey_OperationalDeviceId = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x09)

kConfigKey_OperationalDevicePrivateKey

constexpr Key kConfigKey_OperationalDevicePrivateKey = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x0C)

kConfigKey_PairedAccountId

constexpr Key kConfigKey_PairedAccountId = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x02)

kConfigKey_PairingCode

constexpr Key kConfigKey_PairingCode = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x05)

kConfigKey_ProductRevision

constexpr Key kConfigKey_ProductRevision = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x08)

kConfigKey_SerialNum

constexpr Key kConfigKey_SerialNum = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x00)

kConfigKey_ServiceConfig

constexpr Key kConfigKey_ServiceConfig = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x01)

kConfigKey_ServiceId

constexpr Key kConfigKey_ServiceId = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x03)

kMaxConfigKey_WeaveConfig

constexpr Key kMaxConfigKey_WeaveConfig = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x1C)

kMaxConfigKey_WeaveCounter

constexpr Key kMaxConfigKey_WeaveCounter =
        EFR32ConfigKey(kWeaveCounter_KeyBase, 0x1F)

kMaxConfigKey_WeaveFactory

constexpr Key kMaxConfigKey_WeaveFactory = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x06)

kMinConfigKey_WeaveConfig

constexpr Key kMinConfigKey_WeaveConfig = EFR32ConfigKey(kWeaveConfig_KeyBase, 0x00)

kMinConfigKey_WeaveCounter

constexpr Key kMinConfigKey_WeaveCounter = EFR32ConfigKey(kWeaveCounter_KeyBase, 0x00)

kMinConfigKey_WeaveFactory

constexpr Key kMinConfigKey_WeaveFactory = EFR32ConfigKey(kWeaveFactory_KeyBase, 0x00)

kWeaveConfig_KeyBase

constexpr uint8_t kWeaveConfig_KeyBase =
        0xA3

kWeaveCounter_KeyBase

constexpr uint8_t kWeaveCounter_KeyBase =
        0xA4

kWeaveFactory_KeyBase

constexpr uint8_t kWeaveFactory_KeyBase =
        0xA2

Publiczne funkcje statyczne

ClearConfigValue

WEAVE_ERROR ClearConfigValue(
  Key key
)

ConfigValueExists

bool ConfigValueExists(
  Key key
)

FactoryResetConfig

WEAVE_ERROR FactoryResetConfig(
  void
)

Init

WEAVE_ERROR Init(
  void
)

ReadConfigValue

WEAVE_ERROR ReadConfigValue(
  Key key,
  bool & val
)

ReadConfigValue

WEAVE_ERROR ReadConfigValue(
  Key key,
  uint32_t & val
)

ReadConfigValue

WEAVE_ERROR ReadConfigValue(
  Key key,
  uint64_t & val
)

ReadConfigValueBin

WEAVE_ERROR ReadConfigValueBin(
  Key key,
  uint8_t *buf,
  size_t bufSize,
  size_t & outLen
)

ReadConfigValueCounter

WEAVE_ERROR ReadConfigValueCounter(
  uint8_t counterIdx,
  uint32_t & val
)

ReadConfigValueStr

WEAVE_ERROR ReadConfigValueStr(
  Key key,
  char *buf,
  size_t bufSize,
  size_t & outLen
)

RepackNvm3Flash

void RepackNvm3Flash(
  void
)

RunConfigUnitTest

void RunConfigUnitTest(
  void
)

ValidConfigKey

bool ValidConfigKey(
  Key key
)

WriteConfigValue

WEAVE_ERROR WriteConfigValue(
  Key key,
  bool val
)

WriteConfigValue

WEAVE_ERROR WriteConfigValue(
  Key key,
  uint32_t val
)

WriteConfigValue

WEAVE_ERROR WriteConfigValue(
  Key key,
  uint64_t val
)

WriteConfigValueBin

WEAVE_ERROR WriteConfigValueBin(
  Key key,
  const uint8_t *data,
  size_t dataLen
)

WriteConfigValueCounter

WEAVE_ERROR WriteConfigValueCounter(
  uint8_t counterIdx,
  uint32_t val
)

WriteConfigValueStr

WEAVE_ERROR WriteConfigValueStr(
  Key key,
  const char *str
)

WriteConfigValueStr

WEAVE_ERROR WriteConfigValueStr(
  Key key,
  const char *str,
  size_t strLen
)

Chronione funkcje statyczne

ForEachRecord

WEAVE_ERROR ForEachRecord(
  Key firstKey,
  Key lastKey,
  bool addNewRecord,
  ForEachRecordFunct funct
)