class ExtAddress

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

Represents an IEEE 802.15.4 Extended Address.

Public Members

static const uint16_t kInfoStringSize

Public Methods

void Fill (uint8_t aByte)

Fills all bytes of address with a given byte value.

Parameters

aByte [in] A byte value to fill address with.

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

void GenerateRandom ()

Generates a random IEEE 802.15.4 Extended Address.

void Set (const uint8_t * aBuffer, CopyByteOrder aByteOrder)

Sets the Extended Address from a given byte array.

Parameters

aBuffer [in] Pointer to an array containing the Extended Address. `OT_EXT_ADDRESS_SIZE` bytes from buffer are copied to form the Extended Address.
aByteOrder [in] The byte order to use when copying the address.

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

bool IsGroup ()

Indicates whether or not the Group bit is set.

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

void SetFromIid (const Ip6::InterfaceIdentifier & aIid)

Sets the Extended Address from a given IPv6 Address Interface Identifier.

Parameters

aIid [in] The IPv6 Interface Identifier to convert to Extended Address.
void SetGroup (bool aGroup)

Sets the Group bit.

Parameters

aGroup [in] TRUE if group address, FALSE otherwise.

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

void ToggleGroup ()

Toggles the Group bit.

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

bool IsLocal ()

Indicates whether or not the Local bit is set.

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

void SetLocal (bool aLocal)

Sets the Local bit.

Parameters

aLocal [in] TRUE if locally administered, FALSE otherwise.

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

void ToggleLocal ()

Toggles the Local bit.

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

void CopyTo (uint8_t * aBuffer, CopyByteOrder aByteOrder)

Copies the Extended Address into a given buffer.

Parameters

aBuffer [out] A pointer to a buffer to copy the Extended Address into.
aByteOrder [in] The byte order to copy the address.

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

bool operator== (const ExtAddress & aOther)

Overloads operator `==` to evaluate whether or not two `ExtAddress` instances are equal.

Parameters

aOther [in] The other `ExtAddress` instance to compare with.
InfoString ToString ()

Converts an address to a string.

Enumerations

enum CopyByteOrder
Name Value
kNormalByteOrder 0
kReverseByteOrder 1

Type specifies the copy byte order when Extended Address is being copied to/from a buffer.

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