ESP-IDF
ot::RouterTable::RouterIdMap
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::RouterTable::RouterIdMap
ot::RouterTable::RouterIdMap class
Syntax
Show:
Summary
Declaration
from
router_table.hpp:429
class
RouterIdMap
:
public
Clearable
<
RouterIdMap
>
{
public
:
RouterIdMap
(
void
)
{
Clear
(
)
;
}
bool
IsAllocated
(
uint8_t
aRouterId
)
const
{
return
(
mIndexes
[
aRouterId
]
&
kAllocatedFlag
)
;
}
uint8_t
GetIndex
(
uint8_t
aRouterId
)
const
{
return
(
mIndexes
[
aRouterId
]
&
kIndexMask
)
;
}
void
SetIndex
(
uint8_t
aRouterId
,
uint8_t
aIndex
)
{
mIndexes
[
aRouterId
]
=
kAllocatedFlag
|
aIndex
;
}
bool
CanAllocate
(
uint8_t
aRouterId
)
const
{
return
(
mIndexes
[
aRouterId
]
==
0
)
;
}
void
Release
(
uint8_t
aRouterId
)
{
mIndexes
[
aRouterId
]
=
kReuseDelay
;
}
void
GetAsRouterIdSet
(
Mle
::
RouterIdSet
&
aRouterIdSet
)
const
;
void
HandleTimeTick
(
void
)
;
private
:
static
constexpr
uint8_t
kReuseDelay
=
100
;
static
constexpr
uint8_t
kAllocatedFlag
=
1
<
<
7
;
static
constexpr
uint8_t
kIndexMask
=
0x7f
;
static_assert
(
kReuseDelay
<=
kIndexMask
,
"kReuseDelay does not fit in 7 bits"
)
;
uint8_t
mIndexes
[
Mle
::
kMaxRouterId
+
1
]
;
}
;
Fields
Field
Declared as
ot::RouterTable::RouterIdMap::kReuseDelay
ot::RouterTable::RouterIdMap::kAllocatedFlag
ot::RouterTable::RouterIdMap::kIndexMask
ot::RouterTable::RouterIdMap::mIndexes
uint8_t
[
Mle
::
kMaxRouterId
+
1
]
Methods
IsAllocated() const
GetIndex() const
SetIndex()
CanAllocate() const
Release()
GetAsRouterIdSet() const
HandleTimeTick()
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