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. More...
 
int esp_ieee802154_init (void)
 Initialize the ESP32x IEEE 802.15.4 module. More...
 

Function Documentation

◆ esp_ieee802154_init()

int esp_ieee802154_init ( void  )

Initialize the ESP32x IEEE 802.15.4 module.

The function

  • initializes the ESP32x 802.15.4 subsystem,
  • clears the source matching table for short and extended addresses,
  • enables the radio in idle state,
  • sets the CCA mode to energy detection only (IEEE802154_CCA_MODE_ED_THRESHOLD),
  • sets the timeout for the ACK frame, and
  • disables the promicuous mode.
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.