nRF5 SDK for Thread and Zigbee v3.2.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_TIMER_INSTANCE   NRF_TIMER1
 
#define NRF_802154_COUNTER_TIMER_INSTANCE   NRF_TIMER2
 
#define NRF_802154_SWI_EGU_INSTANCE   NRF_EGU3
 
#define NRF_802154_SWI_IRQ_HANDLER   SWI3_EGU3_IRQHandler
 
#define NRF_802154_SWI_IRQN   SWI3_EGU3_IRQn
 
#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 CCA procedure.

#define NRF_802154_CCA_CORR_THRESHOLD_DEFAULT   0x14

Correlator threshold used in CCA procedure.

#define NRF_802154_CCA_ED_THRESHOLD_DEFAULT   0x14

Energy detection threshold used in CCA procedure.

#define NRF_802154_CCA_MODE_DEFAULT   NRF_RADIO_CCA_MODE_ED

CCA mode used by the driver.

#define NRF_802154_COUNTER_TIMER_INSTANCE   NRF_TIMER2

Timer instance used by the driver for detecting when PSDU is being received.

Note
This configuration is used only when NRF_RADIO_EVENT_BCMATCH event handling is disabled (see NRF_802154_DISABLE_BCC_MATCHING).
#define NRF_802154_DELAYED_TRX_ENABLED   1

If delayed transmission and receive window features are available.

#define NRF_802154_DISABLE_BCC_MATCHING   0

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

#define NRF_802154_FRAME_TIMESTAMP_ENABLED   1

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

#define NRF_802154_INTERNAL_RADIO_IRQ_HANDLING   1

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

#define NRF_802154_IRQ_PRIORITY   0

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

#define NRF_802154_NOTIFY_CRCERROR   1

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

#define NRF_802154_PENDING_EXTENDED_ADDRESSES   10

Number of slots containing extended addresses of nodes for which pending data is stored.

#define NRF_802154_PENDING_SHORT_ADDRESSES   10

Number of slots containing short addresses of nodes for which pending data is stored.

#define NRF_802154_RX_BUFFERS   16

Number of buffers in receive queue.

#define NRF_802154_SWI_EGU_INSTANCE   NRF_EGU3

SWI EGU instance used by the driver to synchronize PPIs and for requests and notifications if SWI is in use.

Note
This option is used by the core module regardless of the driver configuration.
#define NRF_802154_SWI_IRQ_HANDLER   SWI3_EGU3_IRQHandler

SWI EGU IRQ handler used by the driver for requests and notifications if SWI is in use.

Note
This option is used when the driver uses SWI to process requests and notifications.
#define NRF_802154_SWI_IRQN   SWI3_EGU3_IRQn

SWI EGU IRQ number used by the driver for requests and notifications if SWI is in use.

Note
This option is used when the driver uses SWI to process requests and notifications.
#define NRF_802154_SWI_PRIORITY   5

Priority of software interrupt used for requests and notifications.

#define NRF_802154_TIMER_INSTANCE   NRF_TIMER1

Timer instance used by the driver for ACK IFS and by the FEM module.


Documentation feedback | Developer Zone | Subscribe | Updated