RESET HAL
- group nrf_reset_hal
Hardware access layer for managing the RESET peripheral.
Defines
-
NRF_RESET_HAS_NETWORK
Presence of Network core RESET functionality.
-
NRF_RESET_HAS_APPLICATION
Presence of Application core RESET functionality.
Enums
-
enum nrf_reset_resetreas_mask_t
Reset reason bit masks.
Values:
-
enumerator NRF_RESET_RESETREAS_RESETPIN_MASK
Bit mask of RESETPIN field.
-
enumerator NRF_RESET_RESETREAS_DOG0_MASK
Bit mask of DOG0 field.
-
enumerator NRF_RESET_RESETREAS_SREQ_MASK
Bit mask of SREQ field.
-
enumerator NRF_RESET_RESETREAS_LOCKUP_MASK
Bit mask of LOCKUP field.
-
enumerator NRF_RESET_RESETREAS_OFF_MASK
Bit mask of OFF field.
-
enumerator NRF_RESET_RESETREAS_DIF_MASK
Bit mask of DIF field.
-
enumerator NRF_RESET_RESETREAS_NFC_MASK
Bit mask of NFC field.
-
enumerator NRF_RESET_RESETREAS_DOG1_MASK
Bit mask of DOG1 field.
-
enumerator NRF_RESET_RESETREAS_CTRLAPSOFT_MASK
Bit mask of CTRLAPSOFT field.
-
enumerator NRF_RESET_RESETREAS_CTRLAPHARD_MASK
Bit mask of CTRLAPHARD field.
-
enumerator NRF_RESET_RESETREAS_CTRLAPPIN_MASK
Bit mask of CTRLAPPIN field.
-
enumerator NRF_RESET_RESETREAS_CTRLAP_MASK
Bit mask of CTRLAP field.
-
enumerator NRF_RESET_RESETREAS_LPCOMP_MASK
Bit mask of LPCOMP field.
-
enumerator NRF_RESET_RESETREAS_LSREQ_MASK
Bit mask of LSREQ field.
-
enumerator NRF_RESET_RESETREAS_LLOCKUP_MASK
Bit mask of LLOCKUP field.
-
enumerator NRF_RESET_RESETREAS_LDOG_MASK
Bit mask of LDOG field.
-
enumerator NRF_RESET_RESETREAS_MFORCEOFF_MASK
Bit mask of MFORCEOFF field.
-
enumerator NRF_RESET_RESETREAS_GRTC_MASK
Bit mask of GRTC field.
-
enumerator NRF_RESET_RESETREAS_VBUS_MASK
Bit mask of VBUS field.
-
enumerator NRF_RESET_RESETREAS_LCTRLAP_MASK
Bit mask of LCTRLAP field.
-
enumerator NRF_RESET_RESETREAS_VMON_MASK
Bit mask of VMON field.
-
enumerator NRF_RESET_RESETREAS_RESETPIN_MASK
Functions
-
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.
- Parameters:
p_reg – [in] Pointer to the structure of registers of the peripheral.
- Returns:
The mask of reset reasons constructed with nrf_reset_resetreas_mask_t.
-
NRF_STATIC_INLINE void nrf_reset_resetreas_clear(NRF_RESET_Type *p_reg, uint32_t mask)
Function for clearing the selected reset reason field.
- Parameters:
p_reg – [in] Pointer to the structure of registers of the peripheral.
mask – [in] The mask constructed from nrf_reset_resetreas_mask_t enumerator values.
-
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.
- Parameters:
p_reg – [in] Pointer to the structure of registers of the peripheral.
hold – [in] True if the force off signal is to be held. False if the force off signal is to be released.
-
NRF_RESET_HAS_NETWORK