class ExtAddress
Defined at line 107 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 131 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 154 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 165 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 172 of file ../../third_party/openthread/src/core/mac/mac_types.hpp
InfoString ToString ()
Converts an address to a string.
Error FromString (const char * aString)
Parses an Extended Address from a string.
The string must be a hex representation of the address (e.g., "0123456789abcdef").
The parsing is case-insensitive.
Parameters
void ToggleGroup ()
Toggles the Group bit.
Defined at line 187 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 195 of file ../../third_party/openthread/src/core/mac/mac_types.hpp
void SetLocal (bool aLocal)
Sets the Local bit.
Parameters
Defined at line 202 of file ../../third_party/openthread/src/core/mac/mac_types.hpp
void ToggleLocal ()
Toggles the Local bit.
Defined at line 217 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 225 of file ../../third_party/openthread/src/core/mac/mac_types.hpp
Enumerations
enum CopyByteOrder : uint8_t
| Name | Value | Comments |
|---|---|---|
| kNormalByteOrder | 0 |
Copy address bytes in normal order (as provided in array buffer). |
| kReverseByteOrder | 1 |
Copy address bytes in reverse byte order. |
Type specifies the copy byte order when Extended Address is being copied to/from a buffer.
Defined at line 120 of file ../../third_party/openthread/src/core/mac/mac_types.hpp