nRF5 SDK for Thread and Zigbee v4.0.0
Macros
Radio driver configuration

Macros

#define NRF_802154_CCA_MODE_DEFAULT   NRF_RADIO_CCA_MODE_ED
 
#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_INTERNAL_RADIO_IRQ_HANDLING   1
 
#define NRF_802154_IRQ_PRIORITY   0
 
#define NRF_802154_SWI_PRIORITY   5
 
#define NRF_802154_PENDING_SHORT_ADDRESSES   10
 
#define NRF_802154_PENDING_EXTENDED_ADDRESSES   10
 
#define NRF_802154_RX_BUFFERS   16
 
#define NRF_802154_DISABLE_BCC_MATCHING   0
 
#define NRF_802154_NOTIFY_CRCERROR   1
 
#define NRF_802154_FRAME_TIMESTAMP_ENABLED   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.

#define NRF_802154_CCA_MODE_DEFAULT   NRF_RADIO_CCA_MODE_ED

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.

#define NRF_802154_FRAME_TIMESTAMP_ENABLED   1

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.

#define NRF_802154_INTERNAL_RADIO_IRQ_HANDLING   1

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.

#define NRF_802154_PENDING_EXTENDED_ADDRESSES   10

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

#define NRF_802154_PENDING_SHORT_ADDRESSES   10

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