![]() |
0.01.00
|
This class represents a Thread neighbor. More...
#include <src/core/thread/topology.hpp>
Public Types | |
enum | State { kStateInvalid, kStateRestored, kStateParentRequest, kStateChildIdRequest, kStateLinkRequest, kStateChildUpdateRequest, kStateValid } |
Neighbor link states. More... | |
Public Member Functions | |
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... | |
This class represents a Thread neighbor.
enum ot::Neighbor::State |
Neighbor link states.
Enumerator | |
---|---|
kStateInvalid | Neighbor link is invalid. |
kStateRestored | Neighbor is restored from non-volatile memory. |
kStateParentRequest | Received an MLE Parent Request message. |
kStateChildIdRequest | Received an MLE Child ID Request message. |
kStateLinkRequest | Sent an MLE Link Request message. |
kStateChildUpdateRequest | Sent an MLE Child Update Request message (trying to restore the child) |
kStateValid | Link is valid. |
|
inline |
This method returns the current challenge value for MLE Link Request/Response exchanges.
|
inline |
This method returns the size (bytes) of the challenge value for MLE Link Request/Response exchanges.
|
inline |
This method gets the device mode flags.
|
inline |
This method returns the Extended Address.
|
inline |
This method returns the Extended Address.
|
inline |
This method gets the key sequence value.
|
inline |
This method returns the last heard time.
|
inline |
This method gets the number of consecutive link failures.
|
inline |
This method gets the link frame counter value.
|
inline |
This method returns the LinkQualityInfo object.
|
inline |
This method gets the MLE frame counter value.
|
inline |
This method gets the RLOC16 value.
|
inline |
This method returns the current state.
|
inline |
This method indicates whether an IEEE 802.15.4 Data Request message was received.
|
inline |
This method indicates whether or not the device requests Full Network Data.
|
inline |
This method indicates whether or not the device is a Full Thread Device.
|
inline |
This method indicates whether or not the device is rx-on-when-idle.
|
inline |
This method indicates whether or not the device uses secure IEEE 802.15.4 Data Request messages.
|
inline |
Check if the neighbor/child is being restored.
|
inline |
Check if the neighbor/child is in valid state or if it is being restored.
When in these states messages can be sent to and/or received from the neighbor/child.
|
inline |
This method sets the indicator for whether an IEEE 802.15.4 Data Request message was received.
[in] | aPending | TRUE if an IEEE 802.15.4 Data Request message was received, FALSE otherwise. |
|
inline |
This method sets the device mode flags.
[in] | aMode | The device mode flags. |
|
inline |
This method sets the Extended Address.
[in] | aAddress | The Extended Address value to set. |
|
inline |
This method sets the key sequence value.
[in] | aKeySequence | The key sequence value. |
|
inline |
This method sets the last heard time.
[in] | aLastHeard | The last heard time. |
|
inline |
This method sets the link frame counter value.
[in] | aFrameCounter | The link frame counter value. |
|
inline |
This method sets the MLE frame counter value.
[in] | aFrameCounter | The MLE frame counter value. |
|
inline |
This method sets the RLOC16 value.
[in] | aRloc16 | The RLOC16 value. |
|
inline |
This method sets the current state.
[in] | aState | The state value. |