|
ESP32 Transceiver IEEE 802.15.4 Library
|
IEEE 802.15.4 MAC frame structure. More...
#include <Frame.h>

Public Member Functions | |
| size_t | build (uint8_t *buffer, bool verbose) const |
| Build IEEE 802.15.4 frame array with length byte at start and 0x00 at end. | |
| bool | parse (const uint8_t *data, bool verbose) |
| parse frame from raw data | |
| void | setDestinationAddress (Address address) |
| Set the destination address for the frame. | |
| void | setPAN (uint16_t panId) |
| Defines the Personal Area Network Identifier (PAN ID) for the frame. | |
| void | setPayload (const uint8_t *data, size_t len) |
| Set the payload for the frame. | |
| void | setSourceAddress (Address address) |
| Set the source address for the frame. | |
| const char * | to_str (uint8_t frameType) |
| Get a human-readable string representation of the frame. | |
Public Attributes | |
| uint8_t | destAddress [8] |
| uint8_t | destAddrLen = 0 |
| uint16_t | destPanId = 0 |
| FrameControlField | fcf {} |
| uint8_t * | payload = nullptr |
| size_t | payloadLen = 0 |
| uint8_t | rssi_lqi = 0 |
| uint8_t | sequenceNumber = 0 |
| uint8_t | srcAddress [8] |
| uint8_t | srcAddrLen = 0 |
| uint16_t | srcPanId = 0 |
Protected Attributes | |
| std::vector< uint8_t > | buffer |
IEEE 802.15.4 MAC frame structure.
| size_t ieee802154::Frame::build | ( | uint8_t * | buffer, |
| bool | verbose | ||
| ) | const |
Build IEEE 802.15.4 frame array with length byte at start and 0x00 at end.
| bool ieee802154::Frame::parse | ( | const uint8_t * | data, |
| bool | verbose | ||
| ) |
parse frame from raw data
|
inline |
Set the destination address for the frame.
|
inline |
Defines the Personal Area Network Identifier (PAN ID) for the frame.
|
inline |
Set the payload for the frame.
|
inline |
Set the source address for the frame.
| const char * ieee802154::Frame::to_str | ( | uint8_t | frameType | ) |
Get a human-readable string representation of the frame.
|
protected |
| uint8_t ieee802154::Frame::destAddress[8] |
| uint8_t ieee802154::Frame::destAddrLen = 0 |
| uint16_t ieee802154::Frame::destPanId = 0 |
| FrameControlField ieee802154::Frame::fcf {} |
| uint8_t* ieee802154::Frame::payload = nullptr |
| size_t ieee802154::Frame::payloadLen = 0 |
| uint8_t ieee802154::Frame::rssi_lqi = 0 |
| uint8_t ieee802154::Frame::sequenceNumber = 0 |
| uint8_t ieee802154::Frame::srcAddress[8] |
| uint8_t ieee802154::Frame::srcAddrLen = 0 |
| uint16_t ieee802154::Frame::srcPanId = 0 |