Various types and definitions available to all applications when using SoftDevice.
More...
Various types and definitions available to all applications when using SoftDevice.
| #define ANON_UNIONS_DISABLE |
Macro to disable anonymous unions from a certain point in the code.
- Note
- Call only after first calling ANON_UNIONS_ENABLE.
| #define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) |
| #define CRITICAL_REGION_ENTER |
( |
| ) |
app_util_critical_region_enter(NULL) |
| #define CRITICAL_REGION_EXIT |
( |
| ) |
app_util_critical_region_exit(0) |
| #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) |
Macro for setting a breakpoint.
If it is possible to detect debugger presence then it is set only in that case.
The interrupt priorities available to the application while the SoftDevice is active.
| Enumerator |
|---|
| APP_IRQ_PRIORITY_THREAD |
"Interrupt level" when running in Thread Mode.
|
| uint8_t current_int_priority_get |
( |
void |
| ) |
|
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. |
| uint8_t privilege_level_get |
( |
void |
| ) |
|
Function for finding out the current privilege level.
- Returns
- Current privilege level.
- Return values
-
| APP_LEVEL_UNPRIVILEGED | We are running in unprivileged level. |
| APP_LEVEL_PRIVILEGED | We are running in privileged level. |