Loading...
Searching...
No Matches
ESP32x IEEE 802.15.4 driver

Detailed Description

Files

file  esp_ieee802154_hal.h
 ESP32x IEEE 802.15.4 driver.
 

Functions

void esp_ieee802154_setup (ieee802154_dev_t *dev)
 Setup ESP32x in order to be used with the IEEE 802.15.4 Radio HAL.
 
int esp_ieee802154_init (void)
 Initialize the ESP32x IEEE 802.15.4 module.
 

Function Documentation

◆ esp_ieee802154_init()

int esp_ieee802154_init ( void )

Initialize the ESP32x IEEE 802.15.4 module.

The radio itself is enabled and configured when it is switched on with ieee802154_radio_request_on. Each time the radio is switched on,

  • the ESP32x 802.15.4 subsystem is initialized if not already done,
  • the source matching table for short and extended addresses is cleared,
  • the CCA mode is set to energy detection only (IEEE802154_CCA_MODE_ED_THRESHOLD),
  • the timeout for the ACK frame is set, and
  • the promiscuous mode is disabled.

The radio is in idle state after it has been switched on.

Return values
0on success
negativeerrno on error

◆ esp_ieee802154_setup()

void esp_ieee802154_setup ( ieee802154_dev_t * dev)

Setup ESP32x in order to be used with the IEEE 802.15.4 Radio HAL.

Parameters
[in]devpointer to the HAL descriptor associated to the device.