Utility Functions and Definitions (Platform)

nRF5 SDK v10.0.0

nRF51 SDK v10.0.0

Various types and definitions available to all applications when using SoftDevice. More...

Macros

#define NRF_APP_PRIORITY_THREAD 4
#define PACKED (TYPE)   __packed TYPE
#define CRITICAL_REGION_ENTER ()   critical_region_enter()
Macro for entering a critical region. More...
#define CRITICAL_REGION_EXIT ()   critical_region_exit()
Macro for leaving a critical region. More...

Enumerations

enum app_irq_priority_t {
APP_IRQ_PRIORITY_HIGHEST = 0,
APP_IRQ_PRIORITY_HIGH = 1,
APP_IRQ_PRIORITY_MID = 2,
APP_IRQ_PRIORITY_LOW = 3
}
The interrupt priorities available to the application while the SoftDevice is active.

Functions

void critical_region_enter (void)
void critical_region_exit (void)
static __INLINE uint8_t current_int_priority_get (void)
Function for finding the current interrupt level. More...

Detailed Description

Various types and definitions available to all applications when using SoftDevice.

Macro Definition Documentation

#define CRITICAL_REGION_ENTER ( ) critical_region_enter()

Macro for entering a critical region.

Note
Due to implementation details, there must exist one and only one call to CRITICAL_REGION_EXIT() for each call to CRITICAL_REGION_ENTER() , and they must be located in the same scope.
#define CRITICAL_REGION_EXIT ( ) critical_region_exit()

Macro for leaving a critical region.

Note
Due to implementation details, there must exist one and only one call to CRITICAL_REGION_EXIT() for each call to CRITICAL_REGION_ENTER() , and they must be located in the same scope.
#define NRF_APP_PRIORITY_THREAD   4

"Interrupt level" when running in Thread Mode.

Function Documentation

static __INLINE uint8_t current_int_priority_get ( void )
static

Function for finding the current interrupt level.

Returns
Current interrupt level.
Return values
APP_IRQ_PRIORITY_HIGH We are running in Application High interrupt level.
APP_IRQ_PRIORITY_LOW We are running in Application Low interrupt level.
APP_IRQ_PRIORITY_THREAD We are running in Thread Mode.

< "Interrupt level" when running in Thread Mode.


Please send us your feedback about the documentation! For technical questions, visit the Nordic Developer Zone .