Generic Reset Reason layer¶
-
group
nrfx_reset_reason
Helper layer that provides a uniform way of checking the reset reason.
Enums
-
enum
nrfx_reset_reason_mask_t
¶ Reset reason bit masks.
Values:
-
enumerator
NRFX_RESET_REASON_RESETPIN_MASK
¶ Reset from pin-reset detected.
-
enumerator
NRFX_RESET_REASON_DOG0_MASK
¶ Reset from watchdog/application watchdog timer 0 detected.
-
enumerator
NRFX_RESET_REASON_DOG_MASK
¶ Reset from watchdog/application watchdog timer 0 detected.
-
enumerator
NRFX_RESET_REASON_CTRLAP_MASK
¶ Reset from application CTRL-AP detected.
-
enumerator
NRFX_RESETREAS_SREQ_MASK
¶ Reset from soft reset/application soft reset detected.
-
enumerator
NRFX_RESET_REASON_LOCKUP_MASK
¶ Reset from CPU lockup/application CPU lockup detected.
-
enumerator
NRFX_RESET_REASON_OFF_MASK
¶ Reset due to wakeup from System OFF mode when wakeup is triggered by DETECT signal from GPIO.
-
enumerator
NRFX_RESET_REASON_LPCOMP_MASK
¶ Reset due to wakeup from System OFF mode when wakeup is triggered by ANADETECT signal from LPCOMP.
-
enumerator
NRFX_RESET_REASON_DIF_MASK
¶ Reset due to wakeup from System OFF mode when wakeup is triggered by entering the debug interface mode.
-
enumerator
NRFX_RESET_REASON_NFC_MASK
¶ Reset after wakeup from System OFF mode due to NRF field being detected.
-
enumerator
NRFX_RESET_REASON_DOG1_MASK
¶ Reset from application watchdog timer 1 detected.
-
enumerator
NRFX_RESET_REASON_VBUS_MASK
¶ Reset after wakeup from System OFF mode due to VBUS rising into valid range.
-
enumerator
Functions
-
__STATIC_INLINE uint32_t
nrfx_reset_reason_get
(void)¶ Function for getting the reset reason bitmask.
Unless cleared, the RESETREAS register is cumulative. If none of the reset sources is flagged, the chip was reset from the on-chip reset generator. This indicates a power-on-reset or a brown out reset.
- Returns
Mask of reset reasons constructed from nrfx_reset_reason_mask_t values.
-
__STATIC_INLINE void
nrfx_reset_reason_clear
(uint32_t mask)¶ Function for clearing the selected reset reason fields.
- Parameters
mask – [in] Mask constructed from nrfx_reset_reason_mask_t values.
-
enum