nRF5 SDK for Thread and Zigbee v4.2.0
Radio driver configuration


#define NRF_802154_CCA_ED_THRESHOLD_DEFAULT   0x14
#define NRF_802154_CCA_CORR_THRESHOLD_DEFAULT   0x14
#define NRF_802154_CCA_CORR_LIMIT_DEFAULT   0x02
#define NRF_802154_IRQ_PRIORITY   0
#define NRF_802154_SWI_PRIORITY   5
#define NRF_802154_RX_BUFFERS   16
#define NRF_802154_DISABLE_BCC_MATCHING   0
#define NRF_802154_NOTIFY_CRCERROR   1
#define NRF_802154_DELAYED_TRX_ENABLED   1

Detailed Description

Macro Definition Documentation

#define NRF_802154_CCA_CORR_LIMIT_DEFAULT   0x02

Correlator limit used in the CCA procedure.

#define NRF_802154_CCA_CORR_THRESHOLD_DEFAULT   0x14

Correlator threshold used in the CCA procedure.

#define NRF_802154_CCA_ED_THRESHOLD_DEFAULT   0x14

Energy detection threshold used in the CCA procedure.


CCA mode used by the driver.

#define NRF_802154_DELAYED_TRX_ENABLED   1

If the delayed transmission and the receive window features are available.

#define NRF_802154_DISABLE_BCC_MATCHING   0

Setting this flag disables NRF_RADIO_EVENT_BCMATCH handling, and therefore the address filtering during the frame reception. With this flag set to 1, the address filtering is done after receiving a frame, during NRF_RADIO_EVENT_END handling.


If timestamps are to be added to the frames received. Enabling this feature enables the functions nrf_802154_received_timestamp_raw, nrf_802154_received_timestamp, nrf_802154_transmitted_timestamp_raw, and nrf_802154_transmitted_timestamp, which add timestamps to the frames received.


If the driver is expected to internally handle the RADIO IRQ. If the driver is used in an OS, the RADIO IRQ can be handled by the OS and passed to the driver by nrf_802154_radio_irq_handler. In this case, the internal handling must be disabled.

#define NRF_802154_IRQ_PRIORITY   0

Interrupt priority for RADIO peripheral. Keep the IRQ priority high (low number) to prevent losing frames due to preemption.

#define NRF_802154_NOTIFY_CRCERROR   1

With this flag set to 1, the CRC errors are notified to upper layers. This requires an interrupt handler to be used.


The number of slots containing extended addresses of nodes for which the pending data is stored.


The number of slots containing short addresses of nodes for which the pending data is stored.

#define NRF_802154_RX_BUFFERS   16

The number of buffers in the receive queue.

#define NRF_802154_SWI_PRIORITY   5

The priority of software interrupt used for requests and notifications.

Documentation feedback | Developer Zone | Subscribe | Updated