Helper layer that provides a uniform way of checking the reset reason. More...
Enumerations | |
enum | nrfx_reset_reason_mask_t { NRFX_RESET_REASON_RESETPIN_MASK = RESET_RESETREAS_RESETPIN_Msk , NRFX_RESET_REASON_DOG0_MASK = RESET_RESETREAS_DOG0_Msk , NRFX_RESET_REASON_DOG_MASK = NRFX_RESET_REASON_DOG0_MASK , NRFX_RESET_REASON_CTRLAP_MASK = RESET_RESETREAS_CTRLAP_Msk , NRFX_RESETREAS_SREQ_MASK = RESET_RESETREAS_SREQ_Msk , NRFX_RESET_REASON_SREQ_MASK = RESET_RESETREAS_SREQ_Msk , NRFX_RESET_REASON_LOCKUP_MASK = RESET_RESETREAS_LOCKUP_Msk , NRFX_RESET_REASON_OFF_MASK = RESET_RESETREAS_OFF_Msk , NRFX_RESET_REASON_LPCOMP_MASK = RESET_RESETREAS_LPCOMP_Msk , NRFX_RESET_REASON_DIF_MASK = RESET_RESETREAS_DIF_Msk , NRFX_RESET_REASON_LSREQ_MASK = RESET_RESETREAS_LSREQ_Msk , NRFX_RESET_REASON_LLOCKUP_MASK = RESET_RESETREAS_LLOCKUP_Msk , NRFX_RESET_REASON_LDOG_MASK = RESET_RESETREAS_LDOG_Msk , NRFX_RESET_REASON_MFORCEOFF_MASK = RESET_RESETREAS_MFORCEOFF_Msk , NRFX_RESET_REASON_NFC_MASK = RESET_RESETREAS_NFC_Msk , NRFX_RESET_REASON_DOG1_MASK = RESET_RESETREAS_DOG1_Msk , NRFX_RESET_REASON_VBUS_MASK = RESET_RESETREAS_VBUS_Msk , NRFX_RESET_REASON_LCTRLAP_MASK = RESET_RESETREAS_LCTRLAP_Msk , NRFX_RESET_REASON_CTRLAPHARD_MASK = RESET_RESETREAS_CTRLAPHARD_Msk , NRFX_RESET_REASON_CTRLAPPIN_MASK = RESET_RESETREAS_CTRLAPPIN_Msk , NRFX_RESET_REASON_GRTC_MASK = RESET_RESETREAS_GRTC_Msk , NRFX_RESET_REASON_SECTAMPER_MASK = RESET_RESETREAS_SECTAMPER_Msk } |
Reset reason bit masks. More... | |
Functions | |
__STATIC_INLINE uint32_t | nrfx_reset_reason_get (void) |
Function for getting the reset reason bitmask. | |
__STATIC_INLINE void | nrfx_reset_reason_clear (uint32_t mask) |
Function for clearing the selected reset reason fields. | |
Helper layer that provides a uniform way of checking the reset reason.
Reset reason bit masks.
__STATIC_INLINE void nrfx_reset_reason_clear | ( | uint32_t | mask | ) |
Function for clearing the selected reset reason fields.
[in] | mask | Mask constructed from nrfx_reset_reason_mask_t values. |
__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.