nrfx 3.3
Macros | Enumerations | Functions
RESETHUB HAL

Hardware access layer (HAL) for managing the reset hub (RESETHUB) peripheral. More...

Macros

#define NRF_RESETHUB_HAS_CROSSDOMAIN   1
 Symbol indicating whether cross-domain reset is present.
 

Enumerations

enum  nrf_resethub_task_t {
  NRF_RESETHUB_TASK_RESET_DOMAIN_0 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[0]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_1 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[1]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_2 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[2]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_3 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[3]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_4 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[4]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_5 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[5]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_6 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[6]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_7 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[7]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_8 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[8]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_9 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[9]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_10 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[10]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_11 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[11]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_12 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[12]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_13 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[13]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_14 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[14]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_15 = offsetof(NRF_RESETHUB_Type, TASKS_RESETDOMAIN[15]) ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_APPLICATION ,
  NRF_RESETHUB_TASK_RESET_DOMAIN_NETWORK
}
 RESETHUB tasks. More...
 
enum  nrf_resethub_event_t {
  NRF_RESETHUB_EVENT_DOMAIN_RESET_0 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[0]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_1 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[1]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_2 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[2]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_3 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[3]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_4 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[4]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_5 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[5]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_6 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[6]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_7 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[7]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_8 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[8]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_9 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[9]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_10 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[10]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_11 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[11]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_12 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[12]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_13 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[13]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_14 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[14]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_15 = offsetof(NRF_RESETHUB_Type, EVENTS_DOMAINRESET[15]) ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_APPLICATION ,
  NRF_RESETHUB_EVENT_DOMAIN_RESET_NETWORK
}
 RESETHUB events. More...
 
enum  nrf_resethub_int_mask_t {
  NRF_RESETHUB_INT_DOMAIN_RESET_0_MASK = RESETHUB_INTENSET_DOMAINRESET0_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_1_MASK = RESETHUB_INTENSET_DOMAINRESET1_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_2_MASK = RESETHUB_INTENSET_DOMAINRESET2_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_3_MASK = RESETHUB_INTENSET_DOMAINRESET3_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_4_MASK = RESETHUB_INTENSET_DOMAINRESET4_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_5_MASK = RESETHUB_INTENSET_DOMAINRESET5_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_6_MASK = RESETHUB_INTENSET_DOMAINRESET6_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_7_MASK = RESETHUB_INTENSET_DOMAINRESET7_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_8_MASK = RESETHUB_INTENSET_DOMAINRESET8_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_9_MASK = RESETHUB_INTENSET_DOMAINRESET9_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_10_MASK = RESETHUB_INTENSET_DOMAINRESET10_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_11_MASK = RESETHUB_INTENSET_DOMAINRESET11_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_12_MASK = RESETHUB_INTENSET_DOMAINRESET12_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_13_MASK = RESETHUB_INTENSET_DOMAINRESET13_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_14_MASK = RESETHUB_INTENSET_DOMAINRESET14_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_15_MASK = RESETHUB_INTENSET_DOMAINRESET15_Msk ,
  NRF_RESETHUB_INT_DOMAIN_RESET_APPLICATION_MASK = (1UL << NRF_DOMAIN_APPLICATION) ,
  NRF_RESETHUB_INT_DOMAIN_RESET_NETWORK_MASK = (1UL << NRF_DOMAIN_RADIOCORE)
}
 RESETHUB interrupt mask. More...
 
enum  nrf_resethub_domain_mask_t {
  NRF_RESETHUB_DOMAIN_0_MASK = RESETHUB_RESETMASK_DOMAIN0_Msk ,
  NRF_RESETHUB_DOMAIN_1_MASK = RESETHUB_RESETMASK_DOMAIN1_Msk ,
  NRF_RESETHUB_DOMAIN_2_MASK = RESETHUB_RESETMASK_DOMAIN2_Msk ,
  NRF_RESETHUB_DOMAIN_3_MASK = RESETHUB_RESETMASK_DOMAIN3_Msk ,
  NRF_RESETHUB_DOMAIN_4_MASK = RESETHUB_RESETMASK_DOMAIN4_Msk ,
  NRF_RESETHUB_DOMAIN_5_MASK = RESETHUB_RESETMASK_DOMAIN5_Msk ,
  NRF_RESETHUB_DOMAIN_6_MASK = RESETHUB_RESETMASK_DOMAIN6_Msk ,
  NRF_RESETHUB_DOMAIN_7_MASK = RESETHUB_RESETMASK_DOMAIN7_Msk ,
  NRF_RESETHUB_DOMAIN_8_MASK = RESETHUB_RESETMASK_DOMAIN8_Msk ,
  NRF_RESETHUB_DOMAIN_9_MASK = RESETHUB_RESETMASK_DOMAIN9_Msk ,
  NRF_RESETHUB_DOMAIN_10_MASK = RESETHUB_RESETMASK_DOMAIN10_Msk ,
  NRF_RESETHUB_DOMAIN_11_MASK = RESETHUB_RESETMASK_DOMAIN11_Msk ,
  NRF_RESETHUB_DOMAIN_12_MASK = RESETHUB_RESETMASK_DOMAIN12_Msk ,
  NRF_RESETHUB_DOMAIN_13_MASK = RESETHUB_RESETMASK_DOMAIN13_Msk ,
  NRF_RESETHUB_DOMAIN_14_MASK = RESETHUB_RESETMASK_DOMAIN14_Msk ,
  NRF_RESETHUB_DOMAIN_15_MASK = RESETHUB_RESETMASK_DOMAIN15_Msk ,
  NRF_RESETHUB_DOMAIN_APPLICATION_MASK = (1UL << NRF_DOMAIN_APPLICATION) ,
  NRF_RESETHUB_DOMAIN_NETWORK_MASK = (1UL << NRF_DOMAIN_RADIOCORE)
}
 Domain mask. More...
 
enum  nrf_resethub_resetreas_local_mask_t {
  NRF_RESETHUB_RESETREAS_LOCAL_DOG_MASK = RESETHUB_RESETREAS_DOMAIN_DOG_Msk ,
  NRF_RESETHUB_RESETREAS_LOCAL_DOGNS_MASK = RESETHUB_RESETREAS_DOMAIN_DOGNS_Msk ,
  NRF_RESETHUB_RESETREAS_LOCAL_SREQ_MASK = RESETHUB_RESETREAS_DOMAIN_SREQ_Msk ,
  NRF_RESETHUB_RESETREAS_LOCAL_LOCKUP_MASK = RESETHUB_RESETREAS_DOMAIN_LOCKUP_Msk ,
  NRF_RESETHUB_RESETREAS_LOCAL_CROSS_MASK = RESETHUB_RESETREAS_DOMAIN_CROSSDOMAIN_Msk
}
 Local reset reason mask. More...
 
enum  nrf_resethub_resetreas_global_mask_t {
  NRF_RESETHUB_RESETREAS_GLOBAL_POR_MASK = RESETHUB_RESETREAS_GLOBAL_RESETPOR_Msk ,
  NRF_RESETHUB_RESETREAS_GLOBAL_PIN_MASK = RESETHUB_RESETREAS_GLOBAL_RESETPIN_Msk ,
  NRF_RESETHUB_RESETREAS_GLOBAL_DOG_MASK = RESETHUB_RESETREAS_GLOBAL_DOG_Msk ,
  NRF_RESETHUB_RESETREAS_GLOBAL_CTRLAP_MASK = RESETHUB_RESETREAS_GLOBAL_CTRLAP_Msk ,
  NRF_RESETHUB_RESETREAS_GLOBAL_SECSREQ_MASK = RESETHUB_RESETREAS_GLOBAL_SECSREQ_Msk ,
  NRF_RESETHUB_RESETREAS_GLOBAL_SECWDT0_MASK = RESETHUB_RESETREAS_GLOBAL_SECWDT0_Msk ,
  NRF_RESETHUB_RESETREAS_GLOBAL_SECWDT1_MASK = RESETHUB_RESETREAS_GLOBAL_SECWDT1_Msk ,
  NRF_RESETHUB_RESETREAS_GLOBAL_SECLOCKUP_MASK = RESETHUB_RESETREAS_GLOBAL_SECLOCKUP_Msk ,
  NRF_RESETHUB_RESETREAS_GLOBAL_SECTAMPER_MASK = RESETHUB_RESETREAS_GLOBAL_SECTAMPER_Msk ,
  NRF_RESETHUB_RESETREAS_GLOBAL_GPIO_MASK = RESETHUB_RESETREAS_GLOBAL_OFF_Msk ,
  NRF_RESETHUB_RESETREAS_GLOBAL_LPCOMP_MASK = RESETHUB_RESETREAS_GLOBAL_LPCOMP_Msk ,
  NRF_RESETHUB_RESETREAS_GLOBAL_DIF_MASK = RESETHUB_RESETREAS_GLOBAL_DIF_Msk ,
  NRF_RESETHUB_RESETREAS_GLOBAL_GRTC_MASK = RESETHUB_RESETREAS_GLOBAL_GRTC_Msk ,
  NRF_RESETHUB_RESETREAS_GLOBAL_NFC_MASK = RESETHUB_RESETREAS_GLOBAL_NFC_Msk ,
  NRF_RESETHUB_RESETREAS_GLOBAL_VUSB_MASK = RESETHUB_RESETREAS_GLOBAL_VUSB_Msk
}
 Global reset reason mask. More...
 

Functions

NRF_STATIC_INLINE void nrf_resethub_task_trigger (NRF_RESETHUB_Type *p_reg, nrf_resethub_task_t task)
 Function for activating the specified RESETHUB task.
 
NRF_STATIC_INLINE void nrf_resethub_event_clear (NRF_RESETHUB_Type *p_reg, nrf_resethub_event_t event)
 Function for clearing the specified event.
 
NRF_STATIC_INLINE bool nrf_resethub_event_check (NRF_RESETHUB_Type const *p_reg, nrf_resethub_event_t event)
 Function for retrieving the state of the specified event.
 
NRF_STATIC_INLINE void nrf_resethub_int_enable (NRF_RESETHUB_Type *p_reg, uint32_t mask)
 Function for enabling specified interrupts.
 
NRF_STATIC_INLINE void nrf_resethub_int_disable (NRF_RESETHUB_Type *p_reg, uint32_t mask)
 Function for disabling specified interrupts.
 
NRF_STATIC_INLINE uint32_t nrf_resethub_int_enable_check (NRF_RESETHUB_Type const *p_reg, uint32_t mask)
 Function for checking if the specified interrupts are enabled.
 
NRF_STATIC_INLINE uint32_t nrf_resethub_resetreas_domain_get (NRF_RESETHUB_Type const *p_reg, nrf_domain_t domain)
 Function for getting the reset reason bitmask associated with specified domain.
 
NRF_STATIC_INLINE void nrf_resethub_resetreas_domain_clear (NRF_RESETHUB_Type *p_reg, nrf_domain_t domain, uint32_t mask)
 Function for clearing the selected reset reason bitmask associated with specified domain.
 
NRF_STATIC_INLINE uint32_t nrf_resethub_resetreas_global_get (NRF_RESETHUB_Type const *p_reg)
 Function for getting the global reset reason bitmask.
 
NRF_STATIC_INLINE void nrf_resethub_resetreas_global_clear (NRF_RESETHUB_Type *p_reg, uint32_t mask)
 Function for clearing the selected global reset reason bitmask.
 
NRF_STATIC_INLINE uint32_t nrf_resethub_reset_mask_get (NRF_RESETHUB_Type const *p_reg)
 Function for getting the reset request masking bitmask.
 
NRF_STATIC_INLINE void nrf_resethub_reset_mask_set (NRF_RESETHUB_Type *p_reg, uint32_t mask)
 Function for setting the reset request masking bitmask.
 
NRF_STATIC_INLINE uint32_t nrf_resethub_cross_domain_reset_get (NRF_RESETHUB_Type const *p_reg)
 Function for getting the cross domain reset enable bitmask.
 
NRF_STATIC_INLINE void nrf_resethub_cross_domain_reset_set (NRF_RESETHUB_Type *p_reg, uint32_t mask)
 Function for setting the cross domain reset enable bitmask.
 
NRF_STATIC_INLINE uint8_t nrf_resethub_gpregret_get (NRF_RESETHUB_Type const *p_reg)
 Function for getting the general purpose retention register.
 
NRF_STATIC_INLINE void nrf_resethub_gpregret_set (NRF_RESETHUB_Type *p_reg, uint8_t data)
 Function for setting the general purpose retention register.
 

Detailed Description

Hardware access layer (HAL) for managing the reset hub (RESETHUB) peripheral.

Enumeration Type Documentation

◆ nrf_resethub_domain_mask_t

Domain mask.

Enumerator
NRF_RESETHUB_DOMAIN_0_MASK 

Domain 0.

NRF_RESETHUB_DOMAIN_1_MASK 

Domain 1.

NRF_RESETHUB_DOMAIN_2_MASK 

Domain 2.

NRF_RESETHUB_DOMAIN_3_MASK 

Domain 3.

NRF_RESETHUB_DOMAIN_4_MASK 

Domain 4.

NRF_RESETHUB_DOMAIN_5_MASK 

Domain 5.

NRF_RESETHUB_DOMAIN_6_MASK 

Domain 6.

NRF_RESETHUB_DOMAIN_7_MASK 

Domain 7.

NRF_RESETHUB_DOMAIN_8_MASK 

Domain 8.

NRF_RESETHUB_DOMAIN_9_MASK 

Domain 9.

NRF_RESETHUB_DOMAIN_10_MASK 

Domain 10.

NRF_RESETHUB_DOMAIN_11_MASK 

Domain 11.

NRF_RESETHUB_DOMAIN_12_MASK 

Domain 12.

NRF_RESETHUB_DOMAIN_13_MASK 

Domain 13.

NRF_RESETHUB_DOMAIN_14_MASK 

Domain 14.

NRF_RESETHUB_DOMAIN_15_MASK 

Domain 15.

NRF_RESETHUB_DOMAIN_APPLICATION_MASK 

Application domain.

NRF_RESETHUB_DOMAIN_NETWORK_MASK 

Network domain.

◆ nrf_resethub_event_t

RESETHUB events.

Enumerator
NRF_RESETHUB_EVENT_DOMAIN_RESET_0 

Domain 0 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_1 

Domain 1 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_2 

Domain 2 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_3 

Domain 3 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_4 

Domain 4 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_5 

Domain 5 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_6 

Domain 6 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_7 

Domain 7 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_8 

Domain 8 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_9 

Domain 9 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_10 

Domain 10 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_11 

Domain 11 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_12 

Domain 12 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_13 

Domain 13 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_14 

Domain 14 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_15 

Domain 15 was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_APPLICATION 

Application domain was reset.

NRF_RESETHUB_EVENT_DOMAIN_RESET_NETWORK 

Network domain was reset.

◆ nrf_resethub_int_mask_t

RESETHUB interrupt mask.

Enumerator
NRF_RESETHUB_INT_DOMAIN_RESET_0_MASK 

Interrupt on event DOMAINRESET[0].

NRF_RESETHUB_INT_DOMAIN_RESET_1_MASK 

Interrupt on event DOMAINRESET[1].

NRF_RESETHUB_INT_DOMAIN_RESET_2_MASK 

Interrupt on event DOMAINRESET[2].

NRF_RESETHUB_INT_DOMAIN_RESET_3_MASK 

Interrupt on event DOMAINRESET[3].

NRF_RESETHUB_INT_DOMAIN_RESET_4_MASK 

Interrupt on event DOMAINRESET[4].

NRF_RESETHUB_INT_DOMAIN_RESET_5_MASK 

Interrupt on event DOMAINRESET[5].

NRF_RESETHUB_INT_DOMAIN_RESET_6_MASK 

Interrupt on event DOMAINRESET[6].

NRF_RESETHUB_INT_DOMAIN_RESET_7_MASK 

Interrupt on event DOMAINRESET[7].

NRF_RESETHUB_INT_DOMAIN_RESET_8_MASK 

Interrupt on event DOMAINRESET[8].

NRF_RESETHUB_INT_DOMAIN_RESET_9_MASK 

Interrupt on event DOMAINRESET[9].

NRF_RESETHUB_INT_DOMAIN_RESET_10_MASK 

Interrupt on event DOMAINRESET[10].

NRF_RESETHUB_INT_DOMAIN_RESET_11_MASK 

Interrupt on event DOMAINRESET[11].

NRF_RESETHUB_INT_DOMAIN_RESET_12_MASK 

Interrupt on event DOMAINRESET[12].

NRF_RESETHUB_INT_DOMAIN_RESET_13_MASK 

Interrupt on event DOMAINRESET[13].

NRF_RESETHUB_INT_DOMAIN_RESET_14_MASK 

Interrupt on event DOMAINRESET[14].

NRF_RESETHUB_INT_DOMAIN_RESET_15_MASK 

Interrupt on event DOMAINRESET[15].

NRF_RESETHUB_INT_DOMAIN_RESET_APPLICATION_MASK 

Interrupt on Application domain reset.

NRF_RESETHUB_INT_DOMAIN_RESET_NETWORK_MASK 

Interrupt on Network domain reset.

◆ nrf_resethub_resetreas_global_mask_t

Global reset reason mask.

Enumerator
NRF_RESETHUB_RESETREAS_GLOBAL_POR_MASK 

Reset from power on reset.

NRF_RESETHUB_RESETREAS_GLOBAL_PIN_MASK 

Reset from pin reset.

NRF_RESETHUB_RESETREAS_GLOBAL_DOG_MASK 

Reset from the SysCtrl watchdog timer.

NRF_RESETHUB_RESETREAS_GLOBAL_CTRLAP_MASK 

Reset from CTRL-AP.

NRF_RESETHUB_RESETREAS_GLOBAL_SECSREQ_MASK 

Reset due to secure domain system reset request.

NRF_RESETHUB_RESETREAS_GLOBAL_SECWDT0_MASK 

Reset due to the first instance of secure domain watchdog timer.

NRF_RESETHUB_RESETREAS_GLOBAL_SECWDT1_MASK 

Reset due to the second instance of secure domain watchdog timer.

NRF_RESETHUB_RESETREAS_GLOBAL_SECLOCKUP_MASK 

Reset due to secure domain lockup.

NRF_RESETHUB_RESETREAS_GLOBAL_SECTAMPER_MASK 

Reset due to secure domain tamper detected.

NRF_RESETHUB_RESETREAS_GLOBAL_GPIO_MASK 

Reset due to wakeup from System OFF triggered by DETECT signal from GPIO.

NRF_RESETHUB_RESETREAS_GLOBAL_LPCOMP_MASK 

Reset due to wakeup from System OFF triggered by LPCOMP.

NRF_RESETHUB_RESETREAS_GLOBAL_DIF_MASK 

Reset due to wakeup from System OFF triggered by entering debug interface mode.

NRF_RESETHUB_RESETREAS_GLOBAL_GRTC_MASK 

Reset due to wakeup from System OFF triggered by GRTC interrupt.

NRF_RESETHUB_RESETREAS_GLOBAL_NFC_MASK 

Reset due to wakeup from System OFF triggered by NRF field detection in sense mode.

NRF_RESETHUB_RESETREAS_GLOBAL_VUSB_MASK 

Reset due to wakeup from System OFF triggered by VBUS rising into valid range.

◆ nrf_resethub_resetreas_local_mask_t

Local reset reason mask.

Enumerator
NRF_RESETHUB_RESETREAS_LOCAL_DOG_MASK 

Reset from the local watchdog.

NRF_RESETHUB_RESETREAS_LOCAL_DOGNS_MASK 

Reset from the local non-secure watchdog.

NRF_RESETHUB_RESETREAS_LOCAL_SREQ_MASK 

Reset from the local soft reset request.

NRF_RESETHUB_RESETREAS_LOCAL_LOCKUP_MASK 

Reset from local CPU lockup.

NRF_RESETHUB_RESETREAS_LOCAL_CROSS_MASK 

Reset due to cross domain reset source.

◆ nrf_resethub_task_t

RESETHUB tasks.

Enumerator
NRF_RESETHUB_TASK_RESET_DOMAIN_0 

Reset domain 0.

NRF_RESETHUB_TASK_RESET_DOMAIN_1 

Reset domain 1.

NRF_RESETHUB_TASK_RESET_DOMAIN_2 

Reset domain 2.

NRF_RESETHUB_TASK_RESET_DOMAIN_3 

Reset domain 3.

NRF_RESETHUB_TASK_RESET_DOMAIN_4 

Reset domain 4.

NRF_RESETHUB_TASK_RESET_DOMAIN_5 

Reset domain 5.

NRF_RESETHUB_TASK_RESET_DOMAIN_6 

Reset domain 6.

NRF_RESETHUB_TASK_RESET_DOMAIN_7 

Reset domain 7.

NRF_RESETHUB_TASK_RESET_DOMAIN_8 

Reset domain 8.

NRF_RESETHUB_TASK_RESET_DOMAIN_9 

Reset domain 9.

NRF_RESETHUB_TASK_RESET_DOMAIN_10 

Reset domain 10.

NRF_RESETHUB_TASK_RESET_DOMAIN_11 

Reset domain 11.

NRF_RESETHUB_TASK_RESET_DOMAIN_12 

Reset domain 12.

NRF_RESETHUB_TASK_RESET_DOMAIN_13 

Reset domain 13.

NRF_RESETHUB_TASK_RESET_DOMAIN_14 

Reset domain 14.

NRF_RESETHUB_TASK_RESET_DOMAIN_15 

Reset domain 15.

NRF_RESETHUB_TASK_RESET_DOMAIN_APPLICATION 

Reset Application domain.

NRF_RESETHUB_TASK_RESET_DOMAIN_NETWORK 

Reset Network domain.

Function Documentation

◆ nrf_resethub_cross_domain_reset_get()

NRF_STATIC_INLINE uint32_t nrf_resethub_cross_domain_reset_get ( NRF_RESETHUB_Type const *  p_reg)

Function for getting the cross domain reset enable bitmask.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
The mask of reset request with nrf_resethub_domain_mask_t.

◆ nrf_resethub_cross_domain_reset_set()

NRF_STATIC_INLINE void nrf_resethub_cross_domain_reset_set ( NRF_RESETHUB_Type *  p_reg,
uint32_t  mask 
)

Function for setting the cross domain reset enable bitmask.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskThe mask constructed from nrf_resethub_domain_mask_t enumerator values.

◆ nrf_resethub_event_check()

NRF_STATIC_INLINE bool nrf_resethub_event_check ( NRF_RESETHUB_Type const *  p_reg,
nrf_resethub_event_t  event 
)

Function for retrieving the state of the specified event.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent to be checked.
Return values
trueThe event has been generated.
falseThe event has not been generated.

◆ nrf_resethub_event_clear()

NRF_STATIC_INLINE void nrf_resethub_event_clear ( NRF_RESETHUB_Type *  p_reg,
nrf_resethub_event_t  event 
)

Function for clearing the specified event.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent to clear.

◆ nrf_resethub_gpregret_get()

NRF_STATIC_INLINE uint8_t nrf_resethub_gpregret_get ( NRF_RESETHUB_Type const *  p_reg)

Function for getting the general purpose retention register.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Value of general purpose retention register.

◆ nrf_resethub_gpregret_set()

NRF_STATIC_INLINE void nrf_resethub_gpregret_set ( NRF_RESETHUB_Type *  p_reg,
uint8_t  data 
)

Function for setting the general purpose retention register.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]dataValue to be written to the general purpose retention register.

◆ nrf_resethub_int_disable()

NRF_STATIC_INLINE void nrf_resethub_int_disable ( NRF_RESETHUB_Type *  p_reg,
uint32_t  mask 
)

Function for disabling specified interrupts.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be disabled. Use nrf_resethub_int_mask_t values for bit masking.

◆ nrf_resethub_int_enable()

NRF_STATIC_INLINE void nrf_resethub_int_enable ( NRF_RESETHUB_Type *  p_reg,
uint32_t  mask 
)

Function for enabling specified interrupts.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be enabled. Use nrf_resethub_int_mask_t values for bit masking.

◆ nrf_resethub_int_enable_check()

NRF_STATIC_INLINE uint32_t nrf_resethub_int_enable_check ( NRF_RESETHUB_Type const *  p_reg,
uint32_t  mask 
)

Function for checking if the specified interrupts are enabled.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be checked. Use nrf_resethub_int_mask_t values for bit masking.
Returns
Mask of enabled interrupts.

◆ nrf_resethub_reset_mask_get()

NRF_STATIC_INLINE uint32_t nrf_resethub_reset_mask_get ( NRF_RESETHUB_Type const *  p_reg)

Function for getting the reset request masking bitmask.

Note
1 signifies the reset request is unmasked, 0 signifies it is masked.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
The mask of reset request masking with nrf_resethub_domain_mask_t.

◆ nrf_resethub_reset_mask_set()

NRF_STATIC_INLINE void nrf_resethub_reset_mask_set ( NRF_RESETHUB_Type *  p_reg,
uint32_t  mask 
)

Function for setting the reset request masking bitmask.

Note
Setting value to 1 will unmask the reset request, 0 will mask the reset request.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskThe mask constructed from nrf_resethub_domain_mask_t enumerator values.

◆ nrf_resethub_resetreas_domain_clear()

NRF_STATIC_INLINE void nrf_resethub_resetreas_domain_clear ( NRF_RESETHUB_Type *  p_reg,
nrf_domain_t  domain,
uint32_t  mask 
)

Function for clearing the selected reset reason bitmask associated with specified domain.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]domainDomain to have reset reason cleared.
[in]maskThe mask constructed from nrf_resethub_resetreas_local_mask_t enumerator values.

◆ nrf_resethub_resetreas_domain_get()

NRF_STATIC_INLINE uint32_t nrf_resethub_resetreas_domain_get ( NRF_RESETHUB_Type const *  p_reg,
nrf_domain_t  domain 
)

Function for getting the reset reason bitmask associated with specified domain.

Note
Unless cleared, the RESETREAS register is cumulative.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]domainDomain to have reset reason returned.
Returns
The mask of reset reasons constructed with nrf_resethub_resetreas_local_mask_t.

◆ nrf_resethub_resetreas_global_clear()

NRF_STATIC_INLINE void nrf_resethub_resetreas_global_clear ( NRF_RESETHUB_Type *  p_reg,
uint32_t  mask 
)

Function for clearing the selected global reset reason bitmask.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskThe mask constructed from nrf_resethub_resetreas_global_mask_t enumerator values.

◆ nrf_resethub_resetreas_global_get()

NRF_STATIC_INLINE uint32_t nrf_resethub_resetreas_global_get ( NRF_RESETHUB_Type const *  p_reg)

Function for getting the global reset reason bitmask.

Note
Unless cleared, the RESETREAS register is cumulative.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
The mask of reset reasons constructed with nrf_resethub_resetreas_global_mask_t.

◆ nrf_resethub_task_trigger()

NRF_STATIC_INLINE void nrf_resethub_task_trigger ( NRF_RESETHUB_Type *  p_reg,
nrf_resethub_task_t  task 
)

Function for activating the specified RESETHUB task.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]taskTask to be activated.

Documentation feedback | Developer Zone | Subscribe | Updated