Crate esp_ieee802154

Source
Expand description

Low-level IEEE 802.15.4 driver for the ESP32-C6 and ESP32-H2.

Implements the PHY/MAC layers of the IEEE 802.15.4 protocol stack, and supports sending and receiving of raw frames.

This library is intended to be used to implement support for higher-level communication protocols, for example esp-openthread.

Note that this crate currently requires you to enable the unstable feature on esp-hal.

NOTE: Coexistence with Wi-Fi or Bluetooth is currently not possible. If you do it anyway, things will break.

§Feature Flags

  • sys-logs — Enables log messages from the esp-wifi blobs.

§Logging Feature Flags

  • log-04 — Enable logging output using version 0.4 of the log crate.
  • defmt — Enable logging output using defmt and implement defmt::Format on certain types.

Structs§

Config
IEEE 802.15.4 driver configuration
Frame
IEEE 802.15.4 MAC frame
Ieee802154
IEEE 802.15.4 driver
RawReceived
A raw payload received on some channel
ReceivedFrame
IEEE 802.15.4 MAC frame which has been received

Enums§

CcaMode
CCA mode
Error
IEEE 802.15.4 errors
PendingMode
Frame pending mode

Functions§

rssi_to_lqi
Convert from RSSI (Received Signal Strength Indicator) to LQI (Link Quality Indication)