ESP-IDF
ot::Mle::DeviceRole
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Values
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
ot::Mle::DeviceRole
ot::Mle::DeviceRole enum
Represents a Thread device role.
Syntax
Show:
Summary
Declaration
from
mle_types.hpp:109
enum
DeviceRole
:
uint8_t
{
kRoleDisabled
=
OT_DEVICE_ROLE_DISABLED
,
kRoleDetached
=
OT_DEVICE_ROLE_DETACHED
,
kRoleChild
=
OT_DEVICE_ROLE_CHILD
,
kRoleRouter
=
OT_DEVICE_ROLE_ROUTER
,
kRoleLeader
=
OT_DEVICE_ROLE_LEADER
,
}
;
Values
Value
Declared as
ot::Mle::DeviceRole::kRoleDisabled
=
OT_DEVICE_ROLE_DISABLED
ot::Mle::DeviceRole::kRoleDetached
=
OT_DEVICE_ROLE_DETACHED
ot::Mle::DeviceRole::kRoleChild
=
OT_DEVICE_ROLE_CHILD
ot::Mle::DeviceRole::kRoleRouter
=
OT_DEVICE_ROLE_ROUTER
ot::Mle::DeviceRole::kRoleLeader
=
OT_DEVICE_ROLE_LEADER
Examples
References
from
examples
Code
Location
Scope
Referrer
enum
DeviceRole
:
uint8_t
mle_types.hpp:109
DefineMapEnum
(
otCacheEntryState
,
AddressResolver
::
EntryInfo
::
State
)
;
address_resolver.hpp:402
DefineMapEnum
(
otCoapType
,
Coap
::
Type
)
;
coap_message.hpp:1177
DefineMapEnum
(
otCoapCode
,
Coap
::
Code
)
;
coap_message.hpp:1178
DefineMapEnum
(
otMessageOrigin
,
Message
::
Origin
)
;
message.hpp:1906
DefineMapEnum
(
otDeviceRole
,
Mle
::
DeviceRole
)
;
mle_types.hpp:700
DefineMapEnum
(
otPowerSupply
,
Mle
::
DeviceProperties
::
PowerSupply
)
;
mle_types.hpp:703
DefineMapEnum
(
otNat64State
,
Nat64
::
State
)
;
nat64_translator.hpp:380
DefineMapEnum
(
otSrpClientItemState
,
Srp
::
Client
::
ItemState
)
;
srp_client.hpp:1118
DefineMapEnum
(
otNetifIdentifier
,
Ip6
::
NetifIdentifier
)
;
udp6.hpp:671
void
Mle
::
UpdateRoleTimeCounters
(
DeviceRole
aRole
)
mle.cpp:250
ot::Mle::Mle::UpdateRoleTimeCounters()
ot::Mle::Mle::UpdateRoleTimeCounters()::aRole
void
Mle
::
SetRole
(
DeviceRole
aRole
)
mle.cpp:280
ot::Mle::Mle::SetRole()
ot::Mle::Mle::SetRole()::aRole
DeviceRole
oldRole
=
mRole
;
mle.cpp:282
ot::Mle::Mle::SetRole()
mLastSavedRole
=
static_cast
<
DeviceRole
>
(
networkInfo
.
GetRole
(
)
)
;
mle.cpp:370
ot::Mle::Mle::Restore()
DeviceRole
GetRole
(
void
)
const
{
return
mRole
;
}
mle.hpp:233
ot::Mle::Mle
ot::Mle::Mle::GetRole() const
void
SetRole
(
DeviceRole
aRole
)
;
mle.hpp:1210
ot::Mle::Mle::SetRole()
ot::Mle::Mle::SetRole()::aRole
void
UpdateRoleTimeCounters
(
DeviceRole
aRole
)
;
mle.hpp:1276
ot::Mle::Mle::UpdateRoleTimeCounters()
ot::Mle::Mle::UpdateRoleTimeCounters()::aRole
DeviceRole
mRole
;
mle.hpp:1351
ot::Mle::Mle
ot::Mle::Mle::mRole
DeviceRole
mLastSavedRole
;
mle.hpp:1352
ot::Mle::Mle
ot::Mle::Mle::mLastSavedRole
void
MleRouter
::
SetStateRouterOrLeader
(
DeviceRole
aRole
,
uint16_t
aRloc16
,
LeaderStartMode
aStartMode
)
mle_router.cpp:405
ot::Mle::MleRouter::SetStateRouterOrLeader()
ot::Mle::MleRouter::SetStateRouterOrLeader()::aRole
void
MleRouter
::
RouterRoleRestorer
::
Start
(
DeviceRole
aPreviousRole
)
mle_router.cpp:3844
ot::Mle::MleRouter::RouterRoleRestorer::Start()
ot::Mle::MleRouter::RouterRoleRestorer::Start()::aPreviousRole
void
Start
(
DeviceRole
aPreviousRole
)
;
mle_router.hpp:573
ot::Mle::MleRouter::RouterRoleRestorer::Start()
ot::Mle::MleRouter::RouterRoleRestorer::Start()::aPreviousRole
void
SetStateRouterOrLeader
(
DeviceRole
aRole
,
uint16_t
aRloc16
,
LeaderStartMode
aStartMode
)
;
mle_router.hpp:634
ot::Mle::MleRouter::SetStateRouterOrLeader()
ot::Mle::MleRouter::SetStateRouterOrLeader()::aRole
const
char
*
RoleToString
(
DeviceRole
aRole
)
mle_types.cpp:193
ot::Mle::RoleToString()
ot::Mle::RoleToString()::aRole
const
char
*
RoleToString
(
DeviceRole
aRole
)
;
mle_types.hpp:691
ot::Mle::RoleToString()
ot::Mle::RoleToString()::aRole
DefineMapEnum
(
otDeviceRole
,
Mle
::
DeviceRole
)
;
mle_types.hpp:700
ot::MappedEnum::Type
Mle
::
RoleToString
(
static_cast
<
Mle
::
DeviceRole
>
(
GetRole
(
)
)
)
,
GetDeviceMode
(
)
,
GetVersion
(
)
,
settings.cpp:53
ot::SettingsBase::NetworkInfo::Log() const
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
Instance
Scope
Location
Project
ot::Mle::RoleToString()::aRole
ot::Mle::RoleToString()
mle_types.hpp:691
ot::MappedEnum::Type
mle_types.hpp:700
ot::Mle::MleRouter::RouterRoleRestorer::Start()::aPreviousRole
ot::Mle::MleRouter::RouterRoleRestorer::Start()
mle_router.hpp:573
ot::Mle::MleRouter::SetStateRouterOrLeader()::aRole
ot::Mle::MleRouter::SetStateRouterOrLeader()
mle_router.hpp:634
return
ot::Mle::Mle::GetRole() const
mle.hpp:233
ot::Mle::Mle::SetRole()::aRole
ot::Mle::Mle::SetRole()
mle.hpp:1210
ot::Mle::Mle::UpdateRoleTimeCounters()::aRole
ot::Mle::Mle::UpdateRoleTimeCounters()
mle.hpp:1276
ot::Mle::Mle::mRole
ot::Mle::Mle
mle.hpp:1351
ot::Mle::Mle::mLastSavedRole
ot::Mle::Mle
mle.hpp:1352
ot::Mle::Mle::UpdateRoleTimeCounters()::aRole
ot::Mle::Mle::UpdateRoleTimeCounters()
mle.cpp:250
ot::Mle::Mle::SetRole()::aRole
ot::Mle::Mle::SetRole()
mle.cpp:280
ot::Mle::MleRouter::SetStateRouterOrLeader()::aRole
ot::Mle::MleRouter::SetStateRouterOrLeader()
mle_router.cpp:405
ot::Mle::MleRouter::RouterRoleRestorer::Start()::aPreviousRole
ot::Mle::MleRouter::RouterRoleRestorer::Start()
mle_router.cpp:3844
ot::Mle::RoleToString()::aRole
ot::Mle::RoleToString()
mle_types.cpp:193
Lifecycle
from
examples
All items filtered out
All items filtered out