class BeaconPayload

Defined at line 1291 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 1304 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 1316 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

uint8_t GetProtocolId ()

Returns the Protocol ID value.

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

uint8_t GetProtocolVersion ()

Returns the Protocol Version value.

Defined at line 1330 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 1338 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

void ClearNative ()

Clears the Native Commissioner flag.

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

void SetNative ()

Sets the Native Commissioner flag.

Defined at line 1348 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 1356 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

void ClearJoiningPermitted ()

Clears the Joining Permitted flag.

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

void SetJoiningPermitted ()

Sets the Joining Permitted flag.

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

MeshCoP::NameData GetNetworkName ()

Gets the Network Name field.

Defined at line 1381 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 1388 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

const otExtendedPanId & GetExtendedPanId ()

Returns the Extended PAN ID field.

Defined at line 1395 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 1402 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp