nrfx 2.5
Macros | Enumerations | Functions
RESET HAL

Hardware access layer for managing the RESET peripheral. More...

Macros

#define NRF_RESET_HAS_NETWORK   1
 Presence of Network core RESET functionality.
 
#define NRF_RESET_HAS_APPLICATION   1
 Presence of Application core RESET functionality.
 

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_CTRLAP_MASK = RESET_RESETREAS_CTRLAP_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_LPCOMP_MASK = RESET_RESETREAS_LPCOMP_Msk,
  NRF_RESET_RESETREAS_DIF_MASK = RESET_RESETREAS_DIF_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_NFC_MASK = RESET_RESETREAS_NFC_Msk,
  NRF_RESET_RESETREAS_DOG1_MASK = RESET_RESETREAS_DOG1_Msk,
  NRF_RESET_RESETREAS_VBUS_MASK = RESET_RESETREAS_VBUS_Msk,
  NRF_RESET_RESETREAS_LCTRLAP_MASK = RESET_RESETREAS_LCTRLAP_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. More...
 
NRF_STATIC_INLINE void nrf_reset_resetreas_clear (NRF_RESET_Type *p_reg, uint32_t mask)
 Function for clearing the selected reset reason field. More...
 
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. More...
 

Detailed Description

Hardware access layer for managing the RESET peripheral.

Enumeration Type Documentation

◆ nrf_reset_resetreas_mask_t

Reset reason bit masks.

Enumerator
NRF_RESET_RESETREAS_RESETPIN_MASK 

Bit mask of RESETPIN field.

NRF_RESET_RESETREAS_DOG0_MASK 

Bit mask of DOG0 field.

NRF_RESET_RESETREAS_CTRLAP_MASK 

Bit mask of CTRLAP field.

NRF_RESET_RESETREAS_SREQ_MASK 

Bit mask of SREQ field.

NRF_RESET_RESETREAS_LOCKUP_MASK 

Bit mask of LOCKUP field.

NRF_RESET_RESETREAS_OFF_MASK 

Bit mask of OFF field.

NRF_RESET_RESETREAS_LPCOMP_MASK 

Bit mask of LPCOMP field.

NRF_RESET_RESETREAS_DIF_MASK 

Bit mask of DIF field.

NRF_RESET_RESETREAS_LSREQ_MASK 

Bit mask of LSREQ field.

NRF_RESET_RESETREAS_LLOCKUP_MASK 

Bit mask of LLOCKUP field.

NRF_RESET_RESETREAS_LDOG_MASK 

Bit mask of LDOG field.

NRF_RESET_RESETREAS_MFORCEOFF_MASK 

Bit mask of MFORCEOFF field.

NRF_RESET_RESETREAS_NFC_MASK 

Bit mask of NFC field.

NRF_RESET_RESETREAS_DOG1_MASK 

Bit mask of DOG1 field.

NRF_RESET_RESETREAS_VBUS_MASK 

Bit mask of VBUS field.

NRF_RESET_RESETREAS_LCTRLAP_MASK 

Bit mask of LCTRLAP field.

Function Documentation

◆ nrf_reset_network_force_off()

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
[in]p_regPointer to the structure of registers of the peripheral.
[in]holdTrue if the force off signal is to be held. False if the force off signal is to be released.

◆ nrf_reset_resetreas_clear()

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
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskThe mask constructed from nrf_reset_resetreas_mask_t enumerator values.

◆ nrf_reset_resetreas_get()

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
[in]p_regPointer to the structure of registers of the peripheral.
Returns
The mask of reset reasons constructed with nrf_reset_resetreas_mask_t.

Documentation feedback | Developer Zone | Subscribe | Updated