![]() |
0.01.00
|
This class represents a Thread Router. More...
#include <src/core/thread/topology.hpp>
Public Member Functions | |
uint8_t | GetNextHop (void) const |
This method gets the router ID of the next hop to this router. More... | |
void | SetNextHop (uint8_t aRouterId) |
This method sets the router ID of the next hop to this router. More... | |
uint8_t | GetLinkQualityOut (void) const |
This method gets the link quality out value for this router. More... | |
void | SetLinkQualityOut (uint8_t aLinkQuality) |
This method sets the link quality out value for this router. More... | |
uint8_t | GetCost (void) const |
This method get the route cost to this router. More... | |
void | SetCost (uint8_t aCost) |
This method sets the router cost to this router. More... | |
bool | IsAllocated (void) const |
This method indicates whether or not this router ID has been allocated. More... | |
void | SetAllocated (bool aAllocated) |
This method sets whether or not this router ID has been allocated. More... | |
bool | IsReclaimDelay (void) const |
This method indicates whether the reclaim delay is in effect for this router ID. More... | |
void | SetReclaimDelay (bool aReclaimDelay) |
This method sets whether the reclaim delay is in effect for this router ID. More... | |
![]() | |
State | GetState (void) const |
This method returns the current state. More... | |
void | SetState (State aState) |
This method sets the current state. More... | |
bool | IsStateRestoring (void) const |
Check if the neighbor/child is being restored. More... | |
bool | IsStateValidOrRestoring (void) const |
Check if the neighbor/child is in valid state or if it is being restored. More... | |
uint8_t | GetDeviceMode (void) const |
This method gets the device mode flags. More... | |
void | SetDeviceMode (uint8_t aMode) |
This method sets the device mode flags. More... | |
bool | IsRxOnWhenIdle (void) const |
This method indicates whether or not the device is rx-on-when-idle. More... | |
bool | IsFullThreadDevice (void) const |
This method indicates whether or not the device is a Full Thread Device. More... | |
bool | IsSecureDataRequest (void) const |
This method indicates whether or not the device uses secure IEEE 802.15.4 Data Request messages. More... | |
bool | IsFullNetworkData (void) const |
This method indicates whether or not the device requests Full Network Data. More... | |
void | ClearExtAddress (void) |
This method sets all bytes of the Extended Address to zero. | |
Mac::ExtAddress & | GetExtAddress (void) |
This method returns the Extended Address. More... | |
const Mac::ExtAddress & | GetExtAddress (void) const |
This method returns the Extended Address. More... | |
void | SetExtAddress (const Mac::ExtAddress &aAddress) |
This method sets the Extended Address. More... | |
uint32_t | GetKeySequence (void) const |
This method gets the key sequence value. More... | |
void | SetKeySequence (uint32_t aKeySequence) |
This method sets the key sequence value. More... | |
uint32_t | GetLastHeard (void) const |
This method returns the last heard time. More... | |
void | SetLastHeard (uint32_t aLastHeard) |
This method sets the last heard time. More... | |
uint32_t | GetLinkFrameCounter (void) const |
This method gets the link frame counter value. More... | |
void | SetLinkFrameCounter (uint32_t aFrameCounter) |
This method sets the link frame counter value. More... | |
uint32_t | GetMleFrameCounter (void) const |
This method gets the MLE frame counter value. More... | |
void | SetMleFrameCounter (uint32_t aFrameCounter) |
This method sets the MLE frame counter value. More... | |
uint16_t | GetRloc16 (void) const |
This method gets the RLOC16 value. More... | |
void | SetRloc16 (uint16_t aRloc16) |
This method sets the RLOC16 value. More... | |
bool | IsDataRequestPending (void) const |
This method indicates whether an IEEE 802.15.4 Data Request message was received. More... | |
void | SetDataRequestPending (bool aPending) |
This method sets the indicator for whether an IEEE 802.15.4 Data Request message was received. More... | |
uint8_t | GetLinkFailures (void) const |
This method gets the number of consecutive link failures. More... | |
void | IncrementLinkFailures (void) |
This method increments the number of consecutive link failures. | |
void | ResetLinkFailures (void) |
This method resets the number of consecutive link failures to zero. | |
LinkQualityInfo & | GetLinkInfo (void) |
This method returns the LinkQualityInfo object. More... | |
void | GenerateChallenge (void) |
This method generates a new challenge value for MLE Link Request/Response exchanges. | |
const uint8_t * | GetChallenge (void) const |
This method returns the current challenge value for MLE Link Request/Response exchanges. More... | |
uint8_t | GetChallengeSize (void) const |
This method returns the size (bytes) of the challenge value for MLE Link Request/Response exchanges. More... | |
Additional Inherited Members | |
![]() | |
enum | State { kStateInvalid, kStateRestored, kStateParentRequest, kStateChildIdRequest, kStateLinkRequest, kStateChildUpdateRequest, kStateValid } |
Neighbor link states. More... | |
This class represents a Thread Router.
|
inline |
This method get the route cost to this router.
|
inline |
This method gets the link quality out value for this router.
|
inline |
This method gets the router ID of the next hop to this router.
|
inline |
This method indicates whether or not this router ID has been allocated.
|
inline |
This method indicates whether the reclaim delay is in effect for this router ID.
|
inline |
This method sets whether or not this router ID has been allocated.
[in] | aAllocated | TRUE if this router ID has been allocated, FALSE otherwise. |
|
inline |
This method sets the router cost to this router.
[in] | aCost | The router cost to this router. |
|
inline |
This method sets the link quality out value for this router.
[in] | aLinkQuality | The link quality out value for this router. |
|
inline |
This method sets the router ID of the next hop to this router.
[in] | aRouterId | The router ID of the next hop to this router. |
|
inline |
This method sets whether the reclaim delay is in effect for this router ID.
[in] | aReclaimDelay | TRUE if the reclaim delay is in effect, FALSE otherwise. |