Go to the documentation of this file.
20 #ifndef ESP_NOW_NETDEV_H
21 #define ESP_NOW_NETDEV_H
32 #define ESP_NOW_MAX_SIZE_RAW (250)
37 #define ESP_NOW_ADDR_LEN ETHERNET_ADDR_LEN
42 #define ESP_NOW_HEADER_LENGTH (sizeof(esp_now_pkt_hdr_t))
47 #define ESP_NOW_MAX_SIZE (ESP_NOW_MAX_SIZE_RAW - ESP_NOW_HEADER_LENGTH)
54 #ifndef ESP_NOW_BUFSIZE
55 #define ESP_NOW_BUFSIZE (ESP_NOW_MAX_SIZE_RAW + ESP_NOW_ADDR_LEN)
66 typedef struct __attribute__((packed))
74 #define ESP_NOW_PKT_HDR_FLAG_SIXLO (1)
netdev_t netdev
netdev parent struct
Structure to hold driver interface -> function mapping.
#define ESP_NOW_MAX_SIZE_RAW
Maximum raw packet size that can be used with ESP-NOW (including headers)
Device descriptor for ESP-NOW devices.
uint8_t rx_len
number of bytes received
uint8_t scan_event
ESP-NOW peers have to be scanned.
const netdev_driver_t esp_now_driver
Reference to the netdev device driver struct.
uint8_t * rx_mac
source mac of received data
esp_now_netdev_t * netdev_esp_now_setup(void)
ESP-NOW netdev initialization function.
Header with necessary flags for ESP-NOW packets.
Definitions low-level network driver interface.
int esp_now_set_channel(uint8_t channel)
Set the channel used by ESP-NOW netdev.
mutex_t dev_lock
device is already in use
Structure to hold driver state.
gnrc_nettype_t
Definition of protocol types in the network stack.
uint8_t * rx_data
received
#define ESP_NOW_ADDR_LEN
Length of ESP-NOW addresses.