ESP32 Transceiver IEEE 802.15.4 Library
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Enumerations | Functions
Frame.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <cstdio>
#include <cstring>
#include <vector>
#include "esp_assert.h"
#include "esp_ieee802154.h"
Include dependency graph for Frame.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ieee802154::Address
 IEEE 802.15.4 Address abstraction. More...
 
struct  ieee802154::Frame
 IEEE 802.15.4 MAC frame structure. More...
 
struct  ieee802154::frame_data_t
 Structure to hold frame data and frame info. More...
 
struct  ieee802154::FrameControlField
 IEEE 802.15.4 Frame Control Field (FCF) structure Bit fields are ordered LSB to MSB to match IEEE 802.15.4 specification. More...
 

Namespaces

namespace  ieee802154
 

Macros

#define IEEE802154_FCF_SIZE   2
 
#define IEEE802154_MAX_ADDR_LEN   8
 
#define IEEE802154_PAN_ID_LEN   2
 
#define IEEE802154_RSSI_LQI_SIZE   1
 
#define MAX_FRAME_LEN   128
 

Enumerations

enum class  ieee802154::addr_mode_t : uint8_t { ieee802154::NONE = 0x0 , ieee802154::RESERVED = 0x1 , ieee802154::SHORT = 0x2 , ieee802154::EXTENDED = 0x3 }
 IEEE 802.15.4 address mode enumerations. More...
 
enum class  ieee802154::frame_version_t : uint8_t { ieee802154::V_2003 = 0x0 , ieee802154::V_2006 = 0x1 , ieee802154::V_RESERVED1 = 0x2 , ieee802154::V_RESERVED2 = 0x3 }
 IEEE 802.15.4 frame version enumerations. More...
 
enum class  ieee802154::Frameype_t : uint8_t { ieee802154::BEACON = 0x0 , ieee802154::DATA = 0x1 , ieee802154::ACK = 0x2 , ieee802154::MAC_CMD = 0x3 }
 IEEE 802.15.4 FCF field value enumerations. More...
 

Functions

 ieee802154::ESP_STATIC_ASSERT (sizeof(FrameControlField)==IEEE802154_FCF_SIZE, "ieee802154_fcf_t must be 2 bytes")
 

Macro Definition Documentation

◆ IEEE802154_FCF_SIZE

#define IEEE802154_FCF_SIZE   2

◆ IEEE802154_MAX_ADDR_LEN

#define IEEE802154_MAX_ADDR_LEN   8

◆ IEEE802154_PAN_ID_LEN

#define IEEE802154_PAN_ID_LEN   2

◆ IEEE802154_RSSI_LQI_SIZE

#define IEEE802154_RSSI_LQI_SIZE   1

◆ MAX_FRAME_LEN

#define MAX_FRAME_LEN   128