|
ESP32 Transceiver IEEE 802.15.4 Library
|
IEEE 802.15.4 Address abstraction. More...
#include <Frame.h>
Public Member Functions | |
| Address ()=default | |
| Default constructor. Initializes address mode to NONE. | |
| Address (const uint8_t *addr, addr_mode_t mode) | |
| Construct an Address from a pointer and mode. | |
| template<size_t N> | |
| Address (const uint8_t(&addr)[N]) | |
| Template constructor to deduce address length and mode at compile time. | |
| uint8_t * | data () |
| Get a pointer to the address bytes. | |
| addr_mode_t | mode () |
| Get the address mode (NONE, SHORT, EXTENDED). | |
| const char * | to_str () const |
| Get a human-readable string representation of the address. | |
Static Public Member Functions | |
| static const char * | to_str (const uint8_t *addr, addr_mode_t mode) |
| Get a human-readable string for a raw address and mode. | |
| static const char * | to_str (const uint8_t *addr, int len) |
| Get a human-readable string for a raw address and length. | |
Protected Attributes | |
| addr_mode_t | local_addr_mode = addr_mode_t::NONE |
| Local address mode (NONE, SHORT, EXTENDED). | |
| uint8_t | local_address [8] = {0} |
| Local address bytes (0, 2, or 8 bytes used). | |
IEEE 802.15.4 Address abstraction.
Represents a short (16-bit) or extended (64-bit) address for IEEE 802.15.4 frames. Provides constructors for both address types and utility methods for access and string conversion.
|
default |
Default constructor. Initializes address mode to NONE.
|
inline |
Construct an Address from a pointer and mode.
| addr | Pointer to address bytes (2 or 8 bytes). |
| mode | Addressing mode (SHORT or EXTENDED). |
|
inline |
Template constructor to deduce address length and mode at compile time.
| N | Address length (must be 2 or 8). |
| addr | Array of address bytes. |
|
inline |
Get a pointer to the address bytes.
|
inline |
Get the address mode (NONE, SHORT, EXTENDED).
|
inline |
Get a human-readable string representation of the address.
|
inlinestatic |
Get a human-readable string for a raw address and mode.
| addr | Pointer to address bytes. |
| mode | Address mode (NONE, SHORT, EXTENDED). |
|
inlinestatic |
Get a human-readable string for a raw address and length.
| addr | Pointer to address bytes. |
| len | Length of address (2 or 8). |
|
protected |
Local address mode (NONE, SHORT, EXTENDED).
|
protected |
Local address bytes (0, 2, or 8 bytes used).