![]() |
nrfx 4.5.0
|
Hardware access layer for managing the Reset information peripheral (RESETINFO). More...
Enumerations | |
| enum | nrf_resetinfo_resetreas_global_mask_t { NRF_RESETINFO_RESETREAS_GLOBAL_POR_MASK = RESETINFO_RESETREAS_GLOBAL_RESETPORONLY_Msk , NRF_RESETINFO_RESETREAS_GLOBAL_PIN_MASK = RESETINFO_RESETREAS_GLOBAL_RESETPIN_Msk , NRF_RESETINFO_RESETREAS_GLOBAL_DOG_MASK = RESETINFO_RESETREAS_GLOBAL_DOG_Msk , NRF_RESETINFO_RESETREAS_GLOBAL_CTRLAP_MASK = RESETINFO_RESETREAS_GLOBAL_CTRLAP_Msk , NRF_RESETINFO_RESETREAS_GLOBAL_SECSREQ_MASK = RESETINFO_RESETREAS_GLOBAL_SECSREQ_Msk , NRF_RESETINFO_RESETREAS_GLOBAL_SECWDT0_MASK = RESETINFO_RESETREAS_GLOBAL_SECWDT0_Msk , NRF_RESETINFO_RESETREAS_GLOBAL_SECWDT1_MASK = RESETINFO_RESETREAS_GLOBAL_SECWDT1_Msk , NRF_RESETINFO_RESETREAS_GLOBAL_SECLOCKUP_MASK = RESETINFO_RESETREAS_GLOBAL_SECLOCKUP_Msk , NRF_RESETINFO_RESETREAS_GLOBAL_SECTAMPER_MASK = RESETINFO_RESETREAS_GLOBAL_SECTAMPER_Msk , NRF_RESETINFO_RESETREAS_GLOBAL_GPIO_MASK = RESETINFO_RESETREAS_GLOBAL_OFF_Msk , NRF_RESETINFO_RESETREAS_GLOBAL_LPCOMP_MASK = RESETINFO_RESETREAS_GLOBAL_LPCOMP_Msk , NRF_RESETINFO_RESETREAS_GLOBAL_DIF_MASK = RESETINFO_RESETREAS_GLOBAL_DIF_Msk , NRF_RESETINFO_RESETREAS_GLOBAL_GRTC_MASK = RESETINFO_RESETREAS_GLOBAL_GRTC_Msk , NRF_RESETINFO_RESETREAS_GLOBAL_NFC_MASK = RESETINFO_RESETREAS_GLOBAL_NFC_Msk , NRF_RESETINFO_RESETREAS_GLOBAL_VUSB_MASK = RESETINFO_RESETREAS_GLOBAL_VUSB_Msk } |
| Global reset reason mask. More... | |
| enum | nrf_resetinfo_resetreas_local_mask_t { NRF_RESETINFO_RESETREAS_LOCAL_WDT0_MASK = RESETINFO_RESETREAS_LOCAL_WDT0_Msk , NRF_RESETINFO_RESETREAS_LOCAL_WDT1_MASK = RESETINFO_RESETREAS_LOCAL_WDT1_Msk , NRF_RESETINFO_RESETREAS_LOCAL_DOG_MASK = RESETINFO_RESETREAS_LOCAL_DOG_Msk , NRF_RESETINFO_RESETREAS_LOCAL_DOGNS_MASK = RESETINFO_RESETREAS_LOCAL_DOGNS_Msk , NRF_RESETINFO_RESETREAS_LOCAL_SREQ_MASK = RESETINFO_RESETREAS_LOCAL_SREQ_Msk , NRF_RESETINFO_RESETREAS_LOCAL_LOCKUP_MASK = RESETINFO_RESETREAS_LOCAL_LOCKUP_Msk , NRF_RESETINFO_RESETREAS_LOCAL_CROSSDOMAIN_MASK = RESETINFO_RESETREAS_LOCAL_CROSSDOMAIN_Msk , NRF_RESETINFO_RESETREAS_LOCAL_UNRETAINED_MASK = RESETINFO_RESETREAS_LOCAL_UNRETAINEDWAKE_Msk } |
| Local reset reason mask. More... | |
Functions | |
| NRF_STATIC_INLINE void | nrf_resetinfo_resetreas_global_set (NRF_RESETINFO_Type *p_reg, uint32_t mask) |
| Function for setting the global reset reason. | |
| NRF_STATIC_INLINE uint32_t | nrf_resetinfo_resetreas_global_get (NRF_RESETINFO_Type const *p_reg) |
| Function for getting the global reset reason. | |
| NRF_STATIC_INLINE void | nrf_resetinfo_resetreas_local_set (NRF_RESETINFO_Type *p_reg, uint32_t mask) |
| Function for setting the local reset reason. | |
| NRF_STATIC_INLINE uint32_t | nrf_resetinfo_resetreas_local_get (NRF_RESETINFO_Type const *p_reg) |
| Function for getting the local reset reason. | |
| NRF_STATIC_INLINE void | nrf_resetinfo_error_status_set (NRF_RESETINFO_Type *p_reg, uint8_t status) |
| Function for setting the reset error status. | |
| NRF_STATIC_INLINE uint8_t | nrf_resetinfo_error_status_get (NRF_RESETINFO_Type const *p_reg) |
| Function for getting the reset error status. | |
| NRF_STATIC_INLINE void | nrf_resetinfo_error_address_set (NRF_RESETINFO_Type *p_reg, uint32_t address) |
| Function for setting the reset error address. | |
| NRF_STATIC_INLINE uint32_t | nrf_resetinfo_error_address_get (NRF_RESETINFO_Type const *p_reg) |
| Function for getting the reset error address. | |
| NRF_STATIC_INLINE void | nrf_resetinfo_restore_valid_set (NRF_RESETINFO_Type *p_reg, bool enable) |
| Function for setting the flag indicating presence of valid restore image in RAM. | |
| NRF_STATIC_INLINE bool | nrf_resetinfo_restore_valid_check (NRF_RESETINFO_Type const *p_reg) |
| Function for getting the flag indicating presence of valid restore image in RAM. | |
| NRF_STATIC_INLINE void | nrf_resetinfo_mask_lockup_set (NRF_RESETINFO_Type *p_reg, bool enable) |
| Function for setting the flag indicating if CPU lockup signal is to be masked. | |
| NRF_STATIC_INLINE bool | nrf_resetinfo_mask_lockup_check (NRF_RESETINFO_Type const *p_reg) |
| Function for getting the flag indicating if CPU lockup signal is to be masked. | |
Hardware access layer for managing the Reset information peripheral (RESETINFO).
Global reset reason mask.
Local reset reason mask.
| NRF_STATIC_INLINE uint32_t nrf_resetinfo_error_address_get | ( | NRF_RESETINFO_Type const * | p_reg | ) |
Function for getting the reset error address.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_resetinfo_error_address_set | ( | NRF_RESETINFO_Type * | p_reg, |
| uint32_t | address ) |
Function for setting the reset error address.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | address | Reset error address to be set. |
| NRF_STATIC_INLINE uint8_t nrf_resetinfo_error_status_get | ( | NRF_RESETINFO_Type const * | p_reg | ) |
Function for getting the reset error status.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_resetinfo_error_status_set | ( | NRF_RESETINFO_Type * | p_reg, |
| uint8_t | status ) |
Function for setting the reset error status.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | status | Reset error status to be set. |
| NRF_STATIC_INLINE bool nrf_resetinfo_mask_lockup_check | ( | NRF_RESETINFO_Type const * | p_reg | ) |
Function for getting the flag indicating if CPU lockup signal is to be masked.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| true | CPU lockup signal is to be masked. |
| false | CPU lockup signal is not to be masked. |
| NRF_STATIC_INLINE void nrf_resetinfo_mask_lockup_set | ( | NRF_RESETINFO_Type * | p_reg, |
| bool | enable ) |
Function for setting the flag indicating if CPU lockup signal is to be masked.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | enable | True if lockup signal is to be masked, false otherwise. |
| NRF_STATIC_INLINE uint32_t nrf_resetinfo_resetreas_global_get | ( | NRF_RESETINFO_Type const * | p_reg | ) |
Function for getting the global reset reason.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_resetinfo_resetreas_global_set | ( | NRF_RESETINFO_Type * | p_reg, |
| uint32_t | mask ) |
Function for setting the global reset reason.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of reasons to be set, constructed from nrf_resetinfo_resetreas_global_mask_t enumerator values. |
| NRF_STATIC_INLINE uint32_t nrf_resetinfo_resetreas_local_get | ( | NRF_RESETINFO_Type const * | p_reg | ) |
Function for getting the local reset reason.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_resetinfo_resetreas_local_set | ( | NRF_RESETINFO_Type * | p_reg, |
| uint32_t | mask ) |
Function for setting the local reset reason.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of reasons to be set, constructed from nrf_resetinfo_resetreas_local_mask_t enumerator values. |
| NRF_STATIC_INLINE bool nrf_resetinfo_restore_valid_check | ( | NRF_RESETINFO_Type const * | p_reg | ) |
Function for getting the flag indicating presence of valid restore image in RAM.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| true | Valid restore image is present in RAM. |
| false | Valid restore image is not present in RAM. |
| NRF_STATIC_INLINE void nrf_resetinfo_restore_valid_set | ( | NRF_RESETINFO_Type * | p_reg, |
| bool | enable ) |
Function for setting the flag indicating presence of valid restore image in RAM.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | enable | True if valid restore image is present in RAM, false otherwise. |