Hardware access layer for managing the RESET peripheral. More...
Enumerations | |
enum | nrf_reset_resetreas_mask_t { NRF_RESET_RESETREAS_RESETPIN_MASK = RESET_RESETREAS_RESETPIN_Msk , NRF_RESET_RESETREAS_DOG0_MASK = RESET_RESETREAS_DOG0_Msk , NRF_RESET_RESETREAS_SREQ_MASK = RESET_RESETREAS_SREQ_Msk , NRF_RESET_RESETREAS_LOCKUP_MASK = RESET_RESETREAS_LOCKUP_Msk , NRF_RESET_RESETREAS_OFF_MASK = RESET_RESETREAS_OFF_Msk , NRF_RESET_RESETREAS_DIF_MASK = RESET_RESETREAS_DIF_Msk , NRF_RESET_RESETREAS_NFC_MASK = RESET_RESETREAS_NFC_Msk , NRF_RESET_RESETREAS_DOG1_MASK = RESET_RESETREAS_DOG1_Msk , NRF_RESET_RESETREAS_CTRLAPSOFT_MASK = RESET_RESETREAS_CTRLAPSOFT_Msk , NRF_RESET_RESETREAS_CTRLAPHARD_MASK = RESET_RESETREAS_CTRLAPHARD_Msk , NRF_RESET_RESETREAS_CTRLAPPIN_MASK = RESET_RESETREAS_CTRLAPPIN_Msk , NRF_RESET_RESETREAS_CTRLAP_MASK = RESET_RESETREAS_CTRLAP_Msk , NRF_RESET_RESETREAS_LPCOMP_MASK = RESET_RESETREAS_LPCOMP_Msk , NRF_RESET_RESETREAS_LSREQ_MASK = RESET_RESETREAS_LSREQ_Msk , NRF_RESET_RESETREAS_LLOCKUP_MASK = RESET_RESETREAS_LLOCKUP_Msk , NRF_RESET_RESETREAS_LDOG_MASK = RESET_RESETREAS_LDOG_Msk , NRF_RESET_RESETREAS_MFORCEOFF_MASK = RESET_RESETREAS_MFORCEOFF_Msk , NRF_RESET_RESETREAS_GRTC_MASK = RESET_RESETREAS_GRTC_Msk , NRF_RESET_RESETREAS_VBUS_MASK = RESET_RESETREAS_VBUS_Msk , NRF_RESET_RESETREAS_LCTRLAP_MASK = RESET_RESETREAS_LCTRLAP_Msk , NRF_RESET_RESETREAS_SECTAMPER_MASK = RESET_RESETREAS_SECTAMPER_Msk } |
Reset reason bit masks. More... | |
Functions | |
NRF_STATIC_INLINE uint32_t | nrf_reset_resetreas_get (NRF_RESET_Type const *p_reg) |
Function for getting the reset reason bitmask. | |
NRF_STATIC_INLINE void | nrf_reset_resetreas_clear (NRF_RESET_Type *p_reg, uint32_t mask) |
Function for clearing the selected reset reason field. | |
NRF_STATIC_INLINE void | nrf_reset_network_force_off (NRF_RESET_Type *p_reg, bool hold) |
Function for setting the force off signal for the Network core. | |
Hardware access layer for managing the RESET peripheral.
Reset reason bit masks.
NRF_STATIC_INLINE void nrf_reset_network_force_off | ( | NRF_RESET_Type * | p_reg, |
bool | hold | ||
) |
Function for setting the force off signal for the Network core.
A force off will reset the Network core and switch off its power and clocks.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | hold | True if the force off signal is to be held. False if the force off signal is to be released. |
NRF_STATIC_INLINE void nrf_reset_resetreas_clear | ( | NRF_RESET_Type * | p_reg, |
uint32_t | mask | ||
) |
Function for clearing the selected reset reason field.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | The mask constructed from nrf_reset_resetreas_mask_t enumerator values. |
NRF_STATIC_INLINE uint32_t nrf_reset_resetreas_get | ( | NRF_RESET_Type const * | p_reg | ) |
Function for getting the reset reason bitmask.
This function returns 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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |