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 欄位。
|
公開屬性
NumSupportedRegDomains
uint16_t NumSupportedRegDomains
SupportedRegDomains 陣列的長度。
運算位置
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 格式。
詳細資料 | |||||
---|---|---|---|---|---|
參數 |
|
||||
傳回值 |
|