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
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
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
void SetGroup (bool aGroup)
Sets the Group bit.
Parameters
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
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
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
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