ESP-IDF
ot::Parent
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::Parent
ot::Parent class
Represent parent of a child node.
Syntax
Show:
Summary
Declaration
Definition
from
router.hpp:43
class
Parent
;
class
Router
:
public
Neighbor
{
public
:
class
Info
:
public
otRouterInfo
,
public
Clearable
<
Info
>
{
public
:
void
SetFrom
(
const
Router
&
aRouter
)
;
void
SetFrom
(
const
Parent
&
aParent
)
;
}
;
void
Init
(
Instance
&
aInstance
)
{
Neighbor
::
Init
(
aInstance
)
;
}
void
Clear
(
void
)
;
void
SetFrom
(
const
Parent
&
aParent
)
;
uint8_t
GetNextHop
(
void
)
const
{
return
mNextHop
;
}
LinkQuality
GetLinkQualityOut
(
void
)
const
{
return
static_cast
<
LinkQuality
>
(
mLinkQualityOut
)
;
}
void
SetLinkQualityOut
(
LinkQuality
aLinkQuality
)
{
mLinkQualityOut
=
aLinkQuality
;
}
LinkQuality
GetTwoWayLinkQuality
(
void
)
const
;
uint8_t
GetCost
(
void
)
const
{
return
mCost
;
}
bool
SetNextHopAndCost
(
uint8_t
aNextHop
,
uint8_t
aCost
)
;
bool
SetNextHopToInvalid
(
void
)
;
private
:
uint8_t
mNextHop
;
uint8_t
mLinkQualityOut
:
2
;
#if
OPENTHREAD_CONFIG_MLE_LONG_ROUTES_ENABLE
uint8_t
mCost
;
#else
uint8_t
mCost
:
4
;
#endif
}
;
class
Parent
:
public
Router
;
Implemented in
router.hpp:157
Fields
Field
Declared as
ot::Parent::mLeaderCost
uint8_t
Methods
Init()
Initializes the `Parent`.
Clear()
Clears the parent entry.
GetLeaderCost() const
Gets route cost from parent to leader.
SetLeaderCost()
Sets route cost from parent to leader.
Related Functions
Found 2 other functions taking a
Parent
argument:
Function
Description
ot::Router::SetFrom()
Sets the `Router` entry from a `Parent`
ot::Mle::Mle::ParentCandidate::CopyTo() const
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