nl:: Weave:: Profiles:: NetworkProvisioning:: WirelessRegConfig
#include <src/lib/profiles/network-provisioning/WirelessRegConfig.h>
用于存放无线监管配置信息的容器。
摘要
公共属性 |
|
---|---|
NumSupportedRegDomains
|
uint16_t
SupportedRegDomains 数组的长度。
|
OpLocation
|
uint8_t
有效营业地址值为 0 表示不存在。
|
RegDomain
|
有效的无线监管网域值为 '\0' 表示不存在。
|
SupportedRegDomains
|
受支持的受监管网域结构数组。
|
公共函数 |
|
---|---|
Decode(nl::Weave::TLV::TLVReader & reader)
|
使用以 Weave TLV 格式编码的信息填充对象。
|
DecodeInPlace(PacketBuffer *buf)
|
通过重复使用编码的 PacketBuffer 填充对象。
|
Encode(nl::Weave::TLV::TLVWriter & writer) const
|
以 Weave TLV 格式对对象进行编码。
|
Init(void)
|
void
将 WirelessRegConfig 对象重置为空状态。
|
IsOpLocationPresent(void) const
|
bool
WirelessRegConfig 对象中存在 OpLocation 字段。
|
IsRegDomainPresent(void) const
|
bool
WirelessRegConfig 对象中存在 RegDomain 字段。
|
公共属性
NumRegDomains
uint16_t NumSupportedRegDomains
SupportedRegDomains 数组的长度。
OpLocation
uint8_t OpLocation
有效营业地址值为 0 表示不存在。
公共函数
解码
WEAVE_ERROR Decode( nl::Weave::TLV::TLVReader & reader )
解码代码
WEAVE_ERROR DecodeInPlace( PacketBuffer *buf )
通过重复使用编码的 PacketBuffer 填充对象。
完成此方法后,所提供的 PacketBuffer
的内容将被包含受支持的监管网域的数组覆盖。SupportedRegDomains
成员将被设置为指向此数组的开头,而 NumSupportedRegDomains
成员将包含该数组中项的数量。
详细信息 | |||||
---|---|---|---|---|---|
参数 |
|
||||
返回值 |
|
编码
WEAVE_ERROR Encode( nl::Weave::TLV::TLVWriter & writer ) const
以 Weave TLV 格式对对象进行编码。
详细信息 | |||||
---|---|---|---|---|---|
参数 |
|
||||
返回值 |
|