ESP-IDF
ot::Mle::RouterIdSet
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Methods
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
ot::Mle::RouterIdSet
ot::Mle::RouterIdSet class
Syntax
Show:
Summary
Declaration
from
mle_types.hpp:431
class
RouterIdSet
:
public
Equatable
<
RouterIdSet
>
,
public
Clearable
<
RouterIdSet
>
{
public
:
bool
Contains
(
uint8_t
aRouterId
)
const
{
return
(
mRouterIdSet
[
aRouterId
/
8
]
&
MaskFor
(
aRouterId
)
)
!=
0
;
}
void
Add
(
uint8_t
aRouterId
)
{
mRouterIdSet
[
aRouterId
/
8
]
|=
MaskFor
(
aRouterId
)
;
}
void
Remove
(
uint8_t
aRouterId
)
{
mRouterIdSet
[
aRouterId
/
8
]
&=
~
MaskFor
(
aRouterId
)
;
}
uint8_t
GetNumberOfAllocatedIds
(
void
)
const
;
private
:
static
uint8_t
MaskFor
(
uint8_t
aRouterId
)
{
return
(
0x80
>
>
(
aRouterId
%
8
)
)
;
}
uint8_t
mRouterIdSet
[
BytesForBitSize
(
Mle
::
kMaxRouterId
+
1
)
]
;
}
;
Fields
Field
Declared as
ot::Mle::RouterIdSet::mRouterIdSet
uint8_t
[
BytesForBitSize
(
Mle
::
kMaxRouterId
+
1
)
]
Methods
Contains() const
Indicates whether or not a Router ID bit is set.
Add()
Sets a given Router ID.
Remove()
Removes a given Router ID.
GetNumberOfAllocatedIds() const
Calculates the number of allocated Router IDs in the set.
MaskFor()
Related Functions
Found 5 other functions taking a
RouterIdSet
argument:
Function
Description
ot::Mle::RouteTlv::SetRouterIdMask()
Sets the Router ID Mask.
ot::RouterTable::UpdateRouterIdSet()
Updates the Router ID allocation set.
ot::RouterTable::RouterIdMap::GetAsRouterIdSet() const
ot::ThreadRouterMaskTlv::SetAssignedRouterIdMask()
Sets the Assigned Router ID Mask.
ot::RouterTable::GetRouterIdSet() const
Gets the allocated Router ID set.
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