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