class BeaconPayload

Defined at line 1404 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

Implements IEEE 802.15.4 Beacon Payload generation and parsing.

Public Members

static const uint8_t kProtocolId
static const uint8_t kProtocolVersion
static const uint8_t kVersionOffset
static const uint8_t kVersionMask
static const uint8_t kNativeFlag
static const uint8_t kJoiningFlag

Public Methods

void Init ()

Initializes the Beacon Payload.

Defined at line 1417 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

bool IsValid ()

Indicates whether or not the beacon appears to be a valid Thread Beacon Payload.

Defined at line 1429 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

uint8_t GetProtocolId ()

Returns the Protocol ID value.

Defined at line 1436 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

uint8_t GetProtocolVersion ()

Returns the Protocol Version value.

Defined at line 1443 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

bool IsNative ()

Indicates whether or not the Native Commissioner flag is set.

Defined at line 1451 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

void ClearNative ()

Clears the Native Commissioner flag.

Defined at line 1456 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

void SetNative ()

Sets the Native Commissioner flag.

Defined at line 1461 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

bool IsJoiningPermitted ()

Indicates whether or not the Joining Permitted flag is set.

Defined at line 1469 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

void ClearJoiningPermitted ()

Clears the Joining Permitted flag.

Defined at line 1474 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

void SetJoiningPermitted ()

Sets the Joining Permitted flag.

Defined at line 1479 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

MeshCoP::NameData GetNetworkName ()

Gets the Network Name field.

Defined at line 1494 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

void SetNetworkName (const MeshCoP::NameData & aNameData)

Sets the Network Name field.

Parameters

aNameData [in] The Network Name (as a `NameData`).

Defined at line 1501 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

const otExtendedPanId & GetExtendedPanId ()

Returns the Extended PAN ID field.

Defined at line 1508 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

void SetExtendedPanId (const otExtendedPanId & aExtPanId)

Sets the Extended PAN ID field.

Parameters

aExtPanId [in] An Extended PAN ID.

Defined at line 1515 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp