Hardware access layer for managing Global Resource Controller (GRCCONF). More...
Macros | |
#define | NRF_GRCCONF_EVENTS_GRCPERIPH0_COUNT GRCCONF_EVENTS_GRCPERIPH0_MaxCount |
Number of events consolidated with IRQ0. | |
#define | NRF_GRCCONF_EVENTS_GRCPERIPH1_COUNT GRCCONF_EVENTS_GRCPERIPH1_MaxCount |
Number of events consolidated with IRQ1. | |
#define | NRF_GRCCONF_EVENTS_GRCPERIPH_TOTAL_COUNT |
Number of all events consolidated with IRQ0 and IRQ1. | |
Enumerations | |
enum | nrf_grcconf_event_t { NRF_GRCCONF_EVENT_GRCPERIPH0_0 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[0]) , NRF_GRCCONF_EVENT_GRCPERIPH0_1 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[1]) , NRF_GRCCONF_EVENT_GRCPERIPH0_2 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[2]) , NRF_GRCCONF_EVENT_GRCPERIPH0_3 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[3]) , NRF_GRCCONF_EVENT_GRCPERIPH0_4 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[4]) , NRF_GRCCONF_EVENT_GRCPERIPH0_5 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[5]) , NRF_GRCCONF_EVENT_GRCPERIPH0_6 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[6]) , NRF_GRCCONF_EVENT_GRCPERIPH0_7 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[7]) , NRF_GRCCONF_EVENT_GRCPERIPH0_8 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[8]) , NRF_GRCCONF_EVENT_GRCPERIPH0_9 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[9]) , NRF_GRCCONF_EVENT_GRCPERIPH0_10 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[10]) , NRF_GRCCONF_EVENT_GRCPERIPH0_11 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[11]) , NRF_GRCCONF_EVENT_GRCPERIPH0_12 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[12]) , NRF_GRCCONF_EVENT_GRCPERIPH0_13 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[13]) , NRF_GRCCONF_EVENT_GRCPERIPH0_14 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[14]) , NRF_GRCCONF_EVENT_GRCPERIPH0_15 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[15]) , NRF_GRCCONF_EVENT_GRCPERIPH0_16 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[16]) , NRF_GRCCONF_EVENT_GRCPERIPH0_17 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[17]) , NRF_GRCCONF_EVENT_GRCPERIPH0_18 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[18]) , NRF_GRCCONF_EVENT_GRCPERIPH0_19 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[19]) , NRF_GRCCONF_EVENT_GRCPERIPH0_20 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[20]) , NRF_GRCCONF_EVENT_GRCPERIPH0_21 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[21]) , NRF_GRCCONF_EVENT_GRCPERIPH0_22 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[22]) , NRF_GRCCONF_EVENT_GRCPERIPH0_23 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[23]) , NRF_GRCCONF_EVENT_GRCPERIPH0_24 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[24]) , NRF_GRCCONF_EVENT_GRCPERIPH0_25 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[25]) , NRF_GRCCONF_EVENT_GRCPERIPH0_26 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[26]) , NRF_GRCCONF_EVENT_GRCPERIPH0_27 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[27]) , NRF_GRCCONF_EVENT_GRCPERIPH0_28 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[28]) , NRF_GRCCONF_EVENT_GRCPERIPH0_29 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[29]) , NRF_GRCCONF_EVENT_GRCPERIPH0_30 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[30]) , NRF_GRCCONF_EVENT_GRCPERIPH0_31 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH0[31]) , NRF_GRCCONF_EVENT_GRCPERIPH1_0 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[0]) , NRF_GRCCONF_EVENT_GRCPERIPH1_1 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[1]) , NRF_GRCCONF_EVENT_GRCPERIPH1_2 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[2]) , NRF_GRCCONF_EVENT_GRCPERIPH1_3 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[3]) , NRF_GRCCONF_EVENT_GRCPERIPH1_4 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[4]) , NRF_GRCCONF_EVENT_GRCPERIPH1_5 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[5]) , NRF_GRCCONF_EVENT_GRCPERIPH1_6 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[6]) , NRF_GRCCONF_EVENT_GRCPERIPH1_7 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[7]) , NRF_GRCCONF_EVENT_GRCPERIPH1_8 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[8]) , NRF_GRCCONF_EVENT_GRCPERIPH1_9 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[9]) , NRF_GRCCONF_EVENT_GRCPERIPH1_10 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[10]) , NRF_GRCCONF_EVENT_GRCPERIPH1_11 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[11]) , NRF_GRCCONF_EVENT_GRCPERIPH1_12 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[12]) , NRF_GRCCONF_EVENT_GRCPERIPH1_13 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[13]) , NRF_GRCCONF_EVENT_GRCPERIPH1_14 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[14]) , NRF_GRCCONF_EVENT_GRCPERIPH1_15 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[15]) , NRF_GRCCONF_EVENT_GRCPERIPH1_16 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[16]) , NRF_GRCCONF_EVENT_GRCPERIPH1_17 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[17]) , NRF_GRCCONF_EVENT_GRCPERIPH1_18 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[18]) , NRF_GRCCONF_EVENT_GRCPERIPH1_19 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[19]) , NRF_GRCCONF_EVENT_GRCPERIPH1_20 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[20]) , NRF_GRCCONF_EVENT_GRCPERIPH1_21 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[21]) , NRF_GRCCONF_EVENT_GRCPERIPH1_22 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[22]) , NRF_GRCCONF_EVENT_GRCPERIPH1_23 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[23]) , NRF_GRCCONF_EVENT_GRCPERIPH1_24 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[24]) , NRF_GRCCONF_EVENT_GRCPERIPH1_25 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[25]) , NRF_GRCCONF_EVENT_GRCPERIPH1_26 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[26]) , NRF_GRCCONF_EVENT_GRCPERIPH1_27 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[27]) , NRF_GRCCONF_EVENT_GRCPERIPH1_28 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[28]) , NRF_GRCCONF_EVENT_GRCPERIPH1_29 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[29]) , NRF_GRCCONF_EVENT_GRCPERIPH1_30 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[30]) , NRF_GRCCONF_EVENT_GRCPERIPH1_31 = offsetof(NRF_GRCCONF_Type, EVENTS_GRCPERIPH1[31]) , NRF_GRCCONF_EVENT_SYSTEMOFF_READY = offsetof(NRF_GRCCONF_Type, EVENTS_SYSTEMOFFREADY) , NRF_GRCCONF_EVENT_SYSTEMOFF_NOT_READY = offsetof(NRF_GRCCONF_Type, EVENTS_SYSTEMOFFNOTREADY) } |
GRCCONF events. More... | |
enum | nrf_grcconf_int_mask_t { NRF_GRCCONF_INT_TRIGGERED_0_MASK = GRCCONF_INTEN00_GRCPERIPH00_Msk , NRF_GRCCONF_INT_TRIGGERED_1_MASK = GRCCONF_INTEN00_GRCPERIPH01_Msk , NRF_GRCCONF_INT_TRIGGERED_2_MASK = GRCCONF_INTEN00_GRCPERIPH02_Msk , NRF_GRCCONF_INT_TRIGGERED_3_MASK = GRCCONF_INTEN00_GRCPERIPH03_Msk , NRF_GRCCONF_INT_TRIGGERED_4_MASK = GRCCONF_INTEN00_GRCPERIPH04_Msk , NRF_GRCCONF_INT_TRIGGERED_5_MASK = GRCCONF_INTEN00_GRCPERIPH05_Msk , NRF_GRCCONF_INT_TRIGGERED_6_MASK = GRCCONF_INTEN00_GRCPERIPH06_Msk , NRF_GRCCONF_INT_TRIGGERED_7_MASK = GRCCONF_INTEN00_GRCPERIPH07_Msk , NRF_GRCCONF_INT_TRIGGERED_8_MASK = GRCCONF_INTEN00_GRCPERIPH08_Msk , NRF_GRCCONF_INT_TRIGGERED_9_MASK = GRCCONF_INTEN00_GRCPERIPH09_Msk , NRF_GRCCONF_INT_TRIGGERED_10_MASK = GRCCONF_INTEN00_GRCPERIPH010_Msk , NRF_GRCCONF_INT_TRIGGERED_11_MASK = GRCCONF_INTEN00_GRCPERIPH011_Msk , NRF_GRCCONF_INT_TRIGGERED_12_MASK = GRCCONF_INTEN00_GRCPERIPH012_Msk , NRF_GRCCONF_INT_TRIGGERED_13_MASK = GRCCONF_INTEN00_GRCPERIPH013_Msk , NRF_GRCCONF_INT_TRIGGERED_14_MASK = GRCCONF_INTEN00_GRCPERIPH014_Msk , NRF_GRCCONF_INT_TRIGGERED_15_MASK = GRCCONF_INTEN00_GRCPERIPH015_Msk , NRF_GRCCONF_INT_TRIGGERED_16_MASK = GRCCONF_INTEN00_GRCPERIPH016_Msk , NRF_GRCCONF_INT_TRIGGERED_17_MASK = GRCCONF_INTEN00_GRCPERIPH017_Msk , NRF_GRCCONF_INT_TRIGGERED_18_MASK = GRCCONF_INTEN00_GRCPERIPH018_Msk , NRF_GRCCONF_INT_TRIGGERED_19_MASK = GRCCONF_INTEN00_GRCPERIPH019_Msk , NRF_GRCCONF_INT_TRIGGERED_20_MASK = GRCCONF_INTEN00_GRCPERIPH020_Msk , NRF_GRCCONF_INT_TRIGGERED_21_MASK = GRCCONF_INTEN00_GRCPERIPH021_Msk , NRF_GRCCONF_INT_TRIGGERED_22_MASK = GRCCONF_INTEN00_GRCPERIPH022_Msk , NRF_GRCCONF_INT_TRIGGERED_23_MASK = GRCCONF_INTEN00_GRCPERIPH023_Msk , NRF_GRCCONF_INT_TRIGGERED_24_MASK = GRCCONF_INTEN00_GRCPERIPH024_Msk , NRF_GRCCONF_INT_TRIGGERED_25_MASK = GRCCONF_INTEN00_GRCPERIPH025_Msk , NRF_GRCCONF_INT_TRIGGERED_26_MASK = GRCCONF_INTEN00_GRCPERIPH026_Msk , NRF_GRCCONF_INT_TRIGGERED_27_MASK = GRCCONF_INTEN00_GRCPERIPH027_Msk , NRF_GRCCONF_INT_TRIGGERED_28_MASK = GRCCONF_INTEN00_GRCPERIPH028_Msk , NRF_GRCCONF_INT_TRIGGERED_29_MASK = GRCCONF_INTEN00_GRCPERIPH029_Msk , NRF_GRCCONF_INT_TRIGGERED_30_MASK = GRCCONF_INTEN00_GRCPERIPH030_Msk , NRF_GRCCONF_INT_TRIGGERED_31_MASK = GRCCONF_INTEN00_GRCPERIPH031_Msk , NRF_GRCCONF_INT_SYSTEMOFF_READY_MASK = GRCCONF_INTEN02_SYSTEMOFFREADY_Msk , NRF_GRCCONF_INT_SYSTEMOFF_NOT_READY_MASK = GRCCONF_INTEN02_SYSTEMOFFNOTREADY_Msk } |
GRCCONF interrupt masks. More... | |
enum | nrf_grcconf_conf_t { NRF_GRCCONF_CONF_NOT_READY = GRCCONF_CHIPCONF_CONFREADY_NotReady , NRF_GRCCONF_CONF_READY = GRCCONF_CHIPCONF_CONFREADY_Ready } |
GRCCONF chip configuration readiness status. More... | |
enum | nrf_grcconf_trim_t { NRF_GRCCONF_TRIM_NOT_READY = GRCCONF_CHIPCONF_TRIMREADY_NotReady , NRF_GRCCONF_TRIM_READY = GRCCONF_CHIPCONF_TRIMREADY_Ready } |
GRCCONF trim configuration readiness status. More... | |
enum | nrf_grcconf_ramp_up_t { NRF_GRCCONF_RAMP_UP_NOT_DONE = GRCCONF_CHIPCONF_RAMPUP_NotDone , NRF_GRCCONF_RAMP_UP_DONE = GRCCONF_CHIPCONF_RAMPUP_Done } |
GRCCONF ramp up status. More... | |
Functions | |
NRF_STATIC_INLINE uint32_t | nrf_grcconf_event_address_get (NRF_GRCCONF_Type const *p_reg, nrf_grcconf_event_t event) |
Function for retrieving the address of the specified event. | |
NRF_STATIC_INLINE nrf_grcconf_event_t | nrf_grcconf_triggered_event_get (uint8_t index) |
Function for getting the specified GRCCONF TRIGGERED event. | |
NRF_STATIC_INLINE void | nrf_grcconf_event_clear (NRF_GRCCONF_Type *p_reg, nrf_grcconf_event_t event) |
Function for clearing the specified event. | |
NRF_STATIC_INLINE bool | nrf_grcconf_event_check (NRF_GRCCONF_Type const *p_reg, nrf_grcconf_event_t event) |
Function for retrieving the state of the specified event. | |
NRF_STATIC_INLINE void | nrf_grcconf_int_enable (NRF_GRCCONF_Type *p_reg, uint8_t group_idx, uint32_t mask) |
Function for enabling the specified interrupt. | |
NRF_STATIC_INLINE void | nrf_grcconf_int_disable (NRF_GRCCONF_Type *p_reg, uint8_t group_idx, uint32_t mask) |
Function for disabling the specified interrupt. | |
NRF_STATIC_INLINE uint32_t | nrf_grcconf_int_enable_check (NRF_GRCCONF_Type const *p_reg, uint8_t group_idx, uint32_t mask) |
Function for checking if the specified interrupts are enabled. | |
NRF_STATIC_INLINE uint32_t | nrf_grcconf_int_pending_get (NRF_GRCCONF_Type const *p_reg, uint8_t group_idx) |
Function for retrieving the state of pending interrupts. | |
NRF_STATIC_INLINE bool | nrf_grcconf_confready_check (NRF_GRCCONF_Type const *p_reg) |
Function for checking whether the chip configuration is completed. | |
NRF_STATIC_INLINE bool | nrf_grcconf_trimready_check (NRF_GRCCONF_Type const *p_reg) |
Function for checking whether the trim configuration is completed. | |
NRF_STATIC_INLINE bool | nrf_grcconf_rampup_check (NRF_GRCCONF_Type const *p_reg) |
Function for checking whether the ramp up is done. | |
NRF_STATIC_INLINE void | nrf_grcconf_system_off (NRF_GRCCONF_Type *p_reg) |
Function for going into System OFF mode. | |
NRF_STATIC_INLINE void | nrf_grcconf_force_system_off (NRF_GRCCONF_Type *p_reg, bool now) |
Function for forcing going into System OFF mode. | |
NRF_STATIC_INLINE uint32_t | nrf_grcconf_systemoff_stat_get (NRF_GRCCONF_Type const *p_reg) |
Function for retrieving power domain readiness of going to System OFF. | |
NRF_STATIC_INLINE void | nrf_grcconf_systemoff_stat_set (NRF_GRCCONF_Type *p_reg, uint32_t mask) |
Function for setting System OFF prevention bit for specified domains. | |
NRF_STATIC_INLINE uint32_t | nrf_grcconf_grc_forceon_get (NRF_GRCCONF_Type const *p_reg, uint8_t group_idx) |
Function for retrieving power domain request mask. | |
NRF_STATIC_INLINE void | nrf_grcconf_grc_forceon_set (NRF_GRCCONF_Type *p_reg, uint8_t group_idx, uint32_t mask) |
Function for setting power domain request mask. | |
Hardware access layer for managing Global Resource Controller (GRCCONF).
#define NRF_GRCCONF_EVENTS_GRCPERIPH_TOTAL_COUNT |
Number of all events consolidated with IRQ0 and IRQ1.
enum nrf_grcconf_conf_t |
enum nrf_grcconf_event_t |
GRCCONF events.
GRCCONF interrupt masks.
enum nrf_grcconf_trim_t |
NRF_STATIC_INLINE bool nrf_grcconf_confready_check | ( | NRF_GRCCONF_Type const * | p_reg | ) |
Function for checking whether the chip configuration is completed.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE uint32_t nrf_grcconf_event_address_get | ( | NRF_GRCCONF_Type const * | p_reg, |
nrf_grcconf_event_t | event | ||
) |
Function for retrieving the address of the specified event.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | GRCCONF event. |
NRF_STATIC_INLINE bool nrf_grcconf_event_check | ( | NRF_GRCCONF_Type const * | p_reg, |
nrf_grcconf_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_grcconf_event_clear | ( | NRF_GRCCONF_Type * | p_reg, |
nrf_grcconf_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 void nrf_grcconf_force_system_off | ( | NRF_GRCCONF_Type * | p_reg, |
bool | now | ||
) |
Function for forcing going into System OFF mode.
Enters System OFF without waiting for PCGC or power domains. If now
is true, it does not wait for voltage regulators either.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | now | True if System OFF shall be entered immediately, false otherwise. |
NRF_STATIC_INLINE uint32_t nrf_grcconf_grc_forceon_get | ( | NRF_GRCCONF_Type const * | p_reg, |
uint8_t | group_idx | ||
) |
Function for retrieving power domain request mask.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | group_idx | Index of interrupt group to be checked. |
NRF_STATIC_INLINE void nrf_grcconf_grc_forceon_set | ( | NRF_GRCCONF_Type * | p_reg, |
uint8_t | group_idx, | ||
uint32_t | mask | ||
) |
Function for setting power domain request mask.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | group_idx | Index of interrupt group to be checked. |
[in] | mask | Mask with power domain which preventing System OFF. |
NRF_STATIC_INLINE void nrf_grcconf_int_disable | ( | NRF_GRCCONF_Type * | p_reg, |
uint8_t | group_idx, | ||
uint32_t | mask | ||
) |
Function for disabling the specified interrupt.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | group_idx | Index of interrupt group to be disabled. |
[in] | mask | Mask of interrupts to be disabled. Use nrf_grcconf_int_mask_t values for bit masking. |
NRF_STATIC_INLINE void nrf_grcconf_int_enable | ( | NRF_GRCCONF_Type * | p_reg, |
uint8_t | group_idx, | ||
uint32_t | mask | ||
) |
Function for enabling the specified interrupt.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | group_idx | Index of interrupt group to be enabled. |
[in] | mask | Mask of interrupts to be enabled. Use nrf_grcconf_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_grcconf_int_enable_check | ( | NRF_GRCCONF_Type const * | p_reg, |
uint8_t | group_idx, | ||
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] | group_idx | Index of interrupt group to be checked. |
[in] | mask | Mask of interrupts to be checked. Use nrf_grcconf_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_grcconf_int_pending_get | ( | NRF_GRCCONF_Type const * | p_reg, |
uint8_t | group_idx | ||
) |
Function for retrieving the state of pending interrupts.
States of pending interrupt are saved as a bitmask. One set at particular position means that interrupt for event is pending.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | group_idx | Index of interrupt group to be checked. |
NRF_STATIC_INLINE bool nrf_grcconf_rampup_check | ( | NRF_GRCCONF_Type const * | p_reg | ) |
Function for checking whether the ramp up is done.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_grcconf_system_off | ( | NRF_GRCCONF_Type * | p_reg | ) |
Function for going into System OFF mode.
Enters System OFF, when PCGC acknowledge the System OFF request.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE uint32_t nrf_grcconf_systemoff_stat_get | ( | NRF_GRCCONF_Type const * | p_reg | ) |
Function for retrieving power domain readiness of going to System OFF.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_grcconf_systemoff_stat_set | ( | NRF_GRCCONF_Type * | p_reg, |
uint32_t | mask | ||
) |
Function for setting System OFF prevention bit for specified domains.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of power domain which prevents System OFF. |
NRF_STATIC_INLINE nrf_grcconf_event_t nrf_grcconf_triggered_event_get | ( | uint8_t | index | ) |
Function for getting the specified GRCCONF TRIGGERED event.
[in] | index | Event index. |
NRF_STATIC_INLINE bool nrf_grcconf_trimready_check | ( | NRF_GRCCONF_Type const * | p_reg | ) |
Function for checking whether the trim configuration is completed.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |