class ExtAddress
Defined at line 105 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 129 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 152 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 163 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 170 of file ../../third_party/openthread/src/core/mac/mac_types.hpp
void ToggleGroup ()
Toggles the Group bit.
Defined at line 185 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 193 of file ../../third_party/openthread/src/core/mac/mac_types.hpp
void SetLocal (bool aLocal)
Sets the Local bit.
Parameters
Defined at line 200 of file ../../third_party/openthread/src/core/mac/mac_types.hpp
void ToggleLocal ()
Toggles the Local bit.
Defined at line 215 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 223 of file ../../third_party/openthread/src/core/mac/mac_types.hpp
InfoString ToString ()
Converts an address to a string.
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 118 of file ../../third_party/openthread/src/core/mac/mac_types.hpp