Netdev interface for the ESP-NOW WiFi P2P protocol. More...
Netdev interface for the ESP-NOW WiFi P2P protocol.
Definition in file esp_now_netdev.h.
Go to the source code of this file.
Data Structures | |
struct | esp_now_pkt_hdr_t |
Header with necessary flags for ESP-NOW packets. More... | |
struct | esp_now_netdev_t |
Device descriptor for ESP-NOW devices. More... | |
#define | ESP_NOW_MAX_SIZE_RAW (250) |
Maximum raw packet size that can be used with ESP-NOW (including headers) | |
#define | ESP_NOW_ADDR_LEN ETHERNET_ADDR_LEN |
Length of ESP-NOW addresses. | |
#define | ESP_NOW_HEADER_LENGTH (sizeof(esp_now_pkt_hdr_t)) |
Size of non-data header elements in ESP-NOW packet. | |
#define | ESP_NOW_MAX_SIZE (ESP_NOW_MAX_SIZE_RAW - ESP_NOW_HEADER_LENGTH) |
Maximum packet size that can be used with ESP-NOW. | |
#define | ESP_NOW_BUFSIZE (ESP_NOW_MAX_SIZE_RAW + ESP_NOW_ADDR_LEN) |
buffer size used for RX buffering | |
#define | ESP_NOW_PKT_HDR_FLAG_SIXLO (1) |
Packet is carrying 6Lo data. | |
const netdev_driver_t | esp_now_driver |
Reference to the netdev device driver struct. | |
esp_now_netdev_t * | netdev_esp_now_setup (void) |
ESP-NOW netdev initialization function. | |
int | esp_now_set_channel (uint8_t channel) |
Set the channel used by ESP-NOW netdev. | |
#define ESP_NOW_ADDR_LEN ETHERNET_ADDR_LEN |
Length of ESP-NOW addresses.
Definition at line 42 of file esp_now_netdev.h.
#define ESP_NOW_BUFSIZE (ESP_NOW_MAX_SIZE_RAW + ESP_NOW_ADDR_LEN) |
buffer size used for RX buffering
The buffer is use to store a ESP-NOW packet and the source MAC address.
Definition at line 60 of file esp_now_netdev.h.
#define ESP_NOW_HEADER_LENGTH (sizeof(esp_now_pkt_hdr_t)) |
Size of non-data header elements in ESP-NOW packet.
Definition at line 47 of file esp_now_netdev.h.
#define ESP_NOW_MAX_SIZE (ESP_NOW_MAX_SIZE_RAW - ESP_NOW_HEADER_LENGTH) |
Maximum packet size that can be used with ESP-NOW.
Definition at line 52 of file esp_now_netdev.h.
#define ESP_NOW_MAX_SIZE_RAW (250) |
Maximum raw packet size that can be used with ESP-NOW (including headers)
Definition at line 37 of file esp_now_netdev.h.
#define ESP_NOW_PKT_HDR_FLAG_SIXLO (1) |
Packet is carrying 6Lo data.
Definition at line 79 of file esp_now_netdev.h.
int esp_now_set_channel | ( | uint8_t | channel | ) |
Set the channel used by ESP-NOW netdev.
channel | Channel to be used |
esp_now_netdev_t * netdev_esp_now_setup | ( | void | ) |
ESP-NOW netdev initialization function.