nRF5 SDK v14.2.0
Macros
SoftDevice handler configuration

Macros

#define NRF_SDH_ENABLED
 Enable the SoftDevice Handler. More...
 
#define NRF_SDH_DISPATCH_MODEL
 NRF_SDH_DISPATCH_MODEL_INTERRUPT: SoftDevice events are passed to the application from the interrupt context. NRF_SDH_DISPATCH_MODEL_APPSH: SoftDevice events are scheduled using Scheduler. NRF_SDH_DISPATCH_MODEL_POLLING: SoftDevice events are to be fetched manually. More...
 
#define NRF_SDH_CLOCK_LF_SRC
 SoftDevice clock source. More...
 
#define NRF_SDH_CLOCK_LF_RC_CTIV
 SoftDevice calibration timer interval. More...
 
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
 SoftDevice calibration timer interval under constant temperature. More...
 
#define NRF_SDH_CLOCK_LF_XTAL_ACCURACY
 External crystal clock accuracy used in the LL to compute timing windows. More...
 
#define NRF_SDH_REQ_OBSERVER_PRIO_LEVELS
 Total number of priority levels for request observers. More...
 
#define NRF_SDH_STATE_OBSERVER_PRIO_LEVELS
 Total number of priority levels for state observers. More...
 
#define NRF_SDH_STACK_OBSERVER_PRIO_LEVELS
 Total number of priority levels for stack event observers. More...
 
#define CLOCK_CONFIG_STATE_OBSERVER_PRIO
 Priority with which state events are dispatched to the Clock driver. More...
 
#define POWER_CONFIG_STATE_OBSERVER_PRIO
 Priority with which state events are dispatched to the Power driver. More...
 
#define RNG_CONFIG_STATE_OBSERVER_PRIO
 Priority with which state events are dispatched to this module. More...
 
#define NRF_SDH_ANT_STACK_OBSERVER_PRIO
 This setting configures the priority with which ANT events are processed with respect to other events coming from the stack. Modify this setting if you need to have ANT events dispatched before or after other stack events, such as BLE or SoC. Zero is the highest priority. More...
 
#define NRF_SDH_BLE_STACK_OBSERVER_PRIO
 This setting configures the priority with which BLE events are processed with respect to other events coming from the stack. Modify this setting if you need to have BLE events dispatched before or after other stack events, such as ANT or SoC. Zero is the highest priority. More...
 
#define NRF_SDH_SOC_STACK_OBSERVER_PRIO
 This setting configures the priority with which SoC events are processed with respect to other events coming from the stack. Modify this setting if you need to have SoC events dispatched before or after other stack events, such as ANT or BLE. Zero is the highest priority. More...
 

Detailed Description

Macro Definition Documentation

#define CLOCK_CONFIG_STATE_OBSERVER_PRIO

Priority with which state events are dispatched to the Clock driver.

Note
This is an NRF_CONFIG macro.
#define NRF_SDH_ANT_STACK_OBSERVER_PRIO

This setting configures the priority with which ANT events are processed with respect to other events coming from the stack. Modify this setting if you need to have ANT events dispatched before or after other stack events, such as BLE or SoC. Zero is the highest priority.

Note
This is an NRF_CONFIG macro.
#define NRF_SDH_BLE_STACK_OBSERVER_PRIO

This setting configures the priority with which BLE events are processed with respect to other events coming from the stack. Modify this setting if you need to have BLE events dispatched before or after other stack events, such as ANT or SoC. Zero is the highest priority.

Note
This is an NRF_CONFIG macro.
#define NRF_SDH_CLOCK_LF_RC_CTIV

SoftDevice calibration timer interval.

Note
This is an NRF_CONFIG macro.
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV

SoftDevice calibration timer interval under constant temperature.

How often (in number of calibration intervals) the RC oscillator shall be calibrated if the temperature has not changed.

Note
This is an NRF_CONFIG macro.
#define NRF_SDH_CLOCK_LF_SRC

SoftDevice clock source.

Following options are available:

  • 0 - NRF_CLOCK_LF_SRC_RC
  • 1 - NRF_CLOCK_LF_SRC_XTAL
  • 2 - NRF_CLOCK_LF_SRC_SYNTH
Note
This is an NRF_CONFIG macro.
#define NRF_SDH_CLOCK_LF_XTAL_ACCURACY

External crystal clock accuracy used in the LL to compute timing windows.

Following options are available:

  • 0 - NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM
  • 1 - NRF_CLOCK_LF_XTAL_ACCURACY_500_PPM
  • 2 - NRF_CLOCK_LF_XTAL_ACCURACY_150_PPM
  • 3 - NRF_CLOCK_LF_XTAL_ACCURACY_100_PPM
  • 4 - NRF_CLOCK_LF_XTAL_ACCURACY_75_PPM
  • 5 - NRF_CLOCK_LF_XTAL_ACCURACY_50_PPM
  • 6 - NRF_CLOCK_LF_XTAL_ACCURACY_30_PPM
  • 7 - NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM
Note
This is an NRF_CONFIG macro.
#define NRF_SDH_DISPATCH_MODEL

NRF_SDH_DISPATCH_MODEL_INTERRUPT: SoftDevice events are passed to the application from the interrupt context. NRF_SDH_DISPATCH_MODEL_APPSH: SoftDevice events are scheduled using Scheduler. NRF_SDH_DISPATCH_MODEL_POLLING: SoftDevice events are to be fetched manually.

Following options are available:

  • 0 - NRF_SDH_DISPATCH_MODEL_INTERRUPT
  • 1 - NRF_SDH_DISPATCH_MODEL_APPSH
  • 2 - NRF_SDH_DISPATCH_MODEL_POLLING
Note
This is an NRF_CONFIG macro.
#define NRF_SDH_ENABLED

Enable the SoftDevice Handler.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRF_SDH_REQ_OBSERVER_PRIO_LEVELS

Total number of priority levels for request observers.

This setting configures the number of priority levels available for the SoftDevice request event handlers. The priority level of a handler determines the order in which it receives events, with respect to other handlers.

Note
This is an NRF_CONFIG macro.
#define NRF_SDH_SOC_STACK_OBSERVER_PRIO

This setting configures the priority with which SoC events are processed with respect to other events coming from the stack. Modify this setting if you need to have SoC events dispatched before or after other stack events, such as ANT or BLE. Zero is the highest priority.

Note
This is an NRF_CONFIG macro.
#define NRF_SDH_STACK_OBSERVER_PRIO_LEVELS

Total number of priority levels for stack event observers.

This setting configures the number of priority levels available for the SoftDevice stack event handlers (ANT, BLE, SoC). The priority level of a handler determines the order in which it receives events, with respect to other handlers.

Note
This is an NRF_CONFIG macro.
#define NRF_SDH_STATE_OBSERVER_PRIO_LEVELS

Total number of priority levels for state observers.

This setting configures the number of priority levels available for the SoftDevice state event handlers. The priority level of a handler determines the order in which it receives events, with respect to other handlers.

Note
This is an NRF_CONFIG macro.
#define POWER_CONFIG_STATE_OBSERVER_PRIO

Priority with which state events are dispatched to the Power driver.

Note
This is an NRF_CONFIG macro.
#define RNG_CONFIG_STATE_OBSERVER_PRIO

Priority with which state events are dispatched to this module.

Note
This is an NRF_CONFIG macro.

Documentation feedback | Developer Zone | Subscribe | Updated