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. | |
Hardware access layer (HAL) for managing the reset hub (RESETHUB) peripheral.
Domain mask.
enum nrf_resethub_event_t |
RESETHUB events.
RESETHUB interrupt mask.
Global reset reason mask.
Local reset reason mask.
enum nrf_resethub_task_t |
RESETHUB tasks.
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | The mask constructed from nrf_resethub_domain_mask_t enumerator values. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be checked. |
true | The event has been generated. |
false | The event has not been generated. |
NRF_STATIC_INLINE void nrf_resethub_event_clear | ( | NRF_RESETHUB_Type * | p_reg, |
nrf_resethub_event_t | event | ||
) |
Function for clearing the specified event.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to clear. |
NRF_STATIC_INLINE uint8_t nrf_resethub_gpregret_get | ( | NRF_RESETHUB_Type const * | p_reg | ) |
Function for getting the general purpose retention register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_resethub_gpregret_set | ( | NRF_RESETHUB_Type * | p_reg, |
uint8_t | data | ||
) |
Function for setting the general purpose retention register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | data | Value to be written to the general purpose retention register. |
NRF_STATIC_INLINE void nrf_resethub_int_disable | ( | NRF_RESETHUB_Type * | p_reg, |
uint32_t | mask | ||
) |
Function for disabling specified interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be disabled. Use nrf_resethub_int_mask_t values for bit masking. |
NRF_STATIC_INLINE void nrf_resethub_int_enable | ( | NRF_RESETHUB_Type * | p_reg, |
uint32_t | mask | ||
) |
Function for enabling specified interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be enabled. Use nrf_resethub_int_mask_t values for bit masking. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be checked. Use nrf_resethub_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_resethub_reset_mask_get | ( | NRF_RESETHUB_Type const * | p_reg | ) |
Function for getting the reset request masking bitmask.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | The mask constructed from nrf_resethub_domain_mask_t enumerator values. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | domain | Domain to have reset reason cleared. |
[in] | mask | The mask constructed from nrf_resethub_resetreas_local_mask_t enumerator values. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | domain | Domain to have reset reason returned. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | The mask constructed from nrf_resethub_resetreas_global_mask_t enumerator values. |
NRF_STATIC_INLINE uint32_t nrf_resethub_resetreas_global_get | ( | NRF_RESETHUB_Type const * | p_reg | ) |
Function for getting the global reset reason bitmask.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | task | Task to be activated. |