ESP-IDF
ot::Mle::LeaderDataTlv
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Methods
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
ot::Mle::LeaderDataTlv
ot::Mle::LeaderDataTlv class
Syntax
Show:
Summary
Declaration
from
mle_tlvs.hpp:585
class
LeaderDataTlv
:
public
Tlv
,
public
TlvInfo
<
Tlv
::
kLeaderData
>
{
public
:
void
Init
(
void
)
{
SetType
(
kLeaderData
)
;
SetLength
(
sizeof
(
*
this
)
-
sizeof
(
Tlv
)
)
;
}
bool
IsValid
(
void
)
const
{
return
GetLength
(
)
>=
sizeof
(
*
this
)
-
sizeof
(
Tlv
)
;
}
void
Get
(
LeaderData
&
aLeaderData
)
const
{
aLeaderData
.
SetPartitionId
(
BigEndian
::
HostSwap32
(
mPartitionId
)
)
;
aLeaderData
.
SetWeighting
(
mWeighting
)
;
aLeaderData
.
SetDataVersion
(
mDataVersion
)
;
aLeaderData
.
SetStableDataVersion
(
mStableDataVersion
)
;
aLeaderData
.
SetLeaderRouterId
(
mLeaderRouterId
)
;
}
void
Set
(
const
LeaderData
&
aLeaderData
)
{
mPartitionId
=
BigEndian
::
HostSwap32
(
aLeaderData
.
GetPartitionId
(
)
)
;
mWeighting
=
aLeaderData
.
GetWeighting
(
)
;
mDataVersion
=
aLeaderData
.
GetDataVersion
(
NetworkData
::
kFullSet
)
;
mStableDataVersion
=
aLeaderData
.
GetDataVersion
(
NetworkData
::
kStableSubset
)
;
mLeaderRouterId
=
aLeaderData
.
GetLeaderRouterId
(
)
;
}
private
:
uint32_t
mPartitionId
;
uint8_t
mWeighting
;
uint8_t
mDataVersion
;
uint8_t
mStableDataVersion
;
uint8_t
mLeaderRouterId
;
}
;
Fields
Field
Declared as
ot::Mle::LeaderDataTlv::mPartitionId
uint32_t
ot::Mle::LeaderDataTlv::mWeighting
uint8_t
ot::Mle::LeaderDataTlv::mDataVersion
uint8_t
ot::Mle::LeaderDataTlv::mStableDataVersion
uint8_t
ot::Mle::LeaderDataTlv::mLeaderRouterId
uint8_t
Methods
Init()
Initializes the TLV.
IsValid() const
Indicates whether or not the TLV appears to be well-formed.
Get() const
Gets the Leader Data info from TLV.
Set()
Sets the Leader Data.
Examples
References
from
examples
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out