![]() |
nrfx 4.5.0
|
Helper layer that provides a uniform way of checking the reset reason. More...
Macros | |
| #define | NRFX_RESET_REASON_LOCAL_OFFSET (30UL - RESETINFO_RESETREAS_LOCAL_UNRETAINEDWAKE_Pos) |
| Symbol specifying the offset of local reset reasons in the reset reason bitmask. | |
| #define | NRFX_RESET_REASON_HAS_CTRLAP 1 |
| Symbol indicating whether CTRAP reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_LSREQ 1 |
| Symbol indicating whether LSREQ reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_LCTRLAP 1 |
| Symbol indicating whether LCTRLAP reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_LDOG 1 |
| Symbol indicating whether LDOG reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_LLOCKUP 1 |
| Symbol indicating whether LLOCKUP reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_MFORCEOFF 1 |
| Symbol indicating whether MFORCEOFF reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_LPCOMP 1 |
| Symbol indicating whether LPCOMP reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_NFC 1 |
| Symbol indicating whether NFC reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_VBUS 1 |
| Symbol indicating whether VBUS reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_CTRLAPSOFT 1 |
| Symbol indicating whether CTRL-AP reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_CTRLAPHARD 1 |
| Symbol indicating whether CTRL-AP hard reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_CTRLAPPIN 1 |
| Symbol indicating whether CTRL-AP pin reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_GRTC 1 |
| Symbol indicating whether GRTC reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_SECTAMPER 1 |
| Symbol indicating whether SECTAMPER reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_DOG0 1 |
| Symbol indicating whether DOG0 reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_DOG1 1 |
| Symbol indicating whether DOG1 reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_LOCAL_DOG 1 |
| Symbol indicating whether local DOG reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_LOCAL_DOG0 1 |
| Symbol indicating whether local DOG0 reset reason is present. | |
| #define | NRFX_RESET_REASON_HAS_LOCAL_DOG1 1 |
| Symbol indicating whether local DOG1 reset reason is present. | |
Enumerations | |
| enum | nrfx_reset_reason_mask_t { NRFX_RESET_REASON_RESETPIN_MASK = NRF_RESET_RESETREAS_RESETPIN_MASK , NRFX_RESET_REASON_DOG0_MASK = NRF_RESET_RESETREAS_DOG0_MASK , NRFX_RESET_REASON_DOG_MASK = NRF_RESET_RESETREAS_DOG0_MASK , NRFX_RESET_REASON_CTRLAP_MASK = NRF_RESET_RESETREAS_CTRLAP_MASK , NRFX_RESET_REASON_SREQ_MASK = NRF_RESET_RESETREAS_SREQ_MASK , NRFX_RESET_REASON_LOCKUP_MASK = NRF_RESET_RESETREAS_LOCKUP_MASK , NRFX_RESET_REASON_OFF_MASK = NRF_RESET_RESETREAS_OFF_MASK , NRFX_RESET_REASON_LPCOMP_MASK = NRF_RESET_RESETREAS_LPCOMP_MASK , NRFX_RESET_REASON_DIF_MASK = NRF_RESET_RESETREAS_DIF_MASK , NRFX_RESET_REASON_LSREQ_MASK = NRF_RESET_RESETREAS_LSREQ_MASK , NRFX_RESET_REASON_LLOCKUP_MASK = NRF_RESET_RESETREAS_LLOCKUP_MASK , NRFX_RESET_REASON_LDOG_MASK = NRF_RESET_RESETREAS_LDOG_MASK , NRFX_RESET_REASON_MFORCEOFF_MASK = NRF_RESET_RESETREAS_MFORCEOFF_MASK , NRFX_RESET_REASON_NFC_MASK = NRF_RESET_RESETREAS_NFC_MASK , NRFX_RESET_REASON_DOG1_MASK = NRF_RESET_RESETREAS_DOG1_MASK , NRFX_RESET_REASON_VBUS_MASK = NRF_RESET_RESETREAS_VBUS_MASK , NRFX_RESET_REASON_LCTRLAP_MASK = NRF_RESET_RESETREAS_LCTRLAP_MASK , NRFX_RESET_REASON_CTRLAPSOFT_MASK = NRF_RESET_RESETREAS_CTRLAPSOFT_MASK , NRFX_RESET_REASON_CTRLAPHARD_MASK = NRF_RESET_RESETREAS_CTRLAPHARD_MASK , NRFX_RESET_REASON_CTRLAPPIN_MASK = NRF_RESET_RESETREAS_CTRLAPPIN_MASK , NRFX_RESET_REASON_GRTC_MASK = NRF_RESET_RESETREAS_GRTC_MASK , NRFX_RESET_REASON_SECTAMPER_MASK = NRF_RESET_RESETREAS_SECTAMPER_MASK } |
| 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.
| #define NRFX_RESET_REASON_LOCAL_OFFSET (30UL - RESETINFO_RESETREAS_LOCAL_UNRETAINEDWAKE_Pos) |
Symbol specifying the offset of local reset reasons in the reset reason bitmask.
Local reset reasons occupy highest bits.
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.