class PanIds

Defined at line 452 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

Represents two PAN IDs corresponding to source and destination.

Public Methods

void PanIds ()

Initializes PAN IDs as empty (no source or destination PAN ID).

Defined at line 458 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

bool IsSourcePresent ()

Indicates whether or not source PAN ID is present.

Defined at line 466 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

PanId GetSource ()

Gets the source PAN ID when it is present.

Defined at line 473 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

bool IsDestinationPresent ()

Indicates whether or not destination PAN ID is present.

Defined at line 481 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

PanId GetDestination ()

Gets the destination PAN ID when it is present.

Defined at line 488 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

void SetSource (PanId aPanId)

Sets the source PAN ID.

Parameters

aPanId [in] The source PAN ID.
void SetDestination (PanId aPanId)

Sets the destination PAN ID.

Parameters

aPanId [in] The source PAN ID.
void SetBothSourceDestination (PanId aPanId)

Sets both source and destination PAN IDs to the same value.

Parameters

aPanId [in] The PAN ID.