Lines Matching refs:p_reg

12 void nrf_grtc_sys_counter_cc_set(NRF_GRTC_Type * p_reg,  in nrf_grtc_sys_counter_cc_set()  argument
25 p_reg->CC[cc_channel].CCL = (uint32_t)cc_value; in nrf_grtc_sys_counter_cc_set()
27 p_reg->CC[cc_channel].CCH = cc_h & NRF_GRTC_SYSCOUNTER_CCH_MASK; in nrf_grtc_sys_counter_cc_set()
31 void nrf_grtc_sys_counter_cc_add_set(NRF_GRTC_Type * p_reg, in nrf_grtc_sys_counter_cc_add_set() argument
44 p_reg->CC[cc_channel].CCADD = ((uint32_t)reference << GRTC_CC_CCADD_REFERENCE_Pos) | in nrf_grtc_sys_counter_cc_add_set()
49 void nrf_grtc_int_enable(NRF_GRTC_Type * p_reg, uint32_t mask) in nrf_grtc_int_enable() argument
51 p_reg->GRTC_INTENSET = mask; in nrf_grtc_int_enable()
55 void nrf_grtc_int_disable(NRF_GRTC_Type * p_reg, uint32_t mask) in nrf_grtc_int_disable() argument
57 p_reg->GRTC_INTENCLR = mask; in nrf_grtc_int_disable()
63 void nrf_grtc_int_group_enable(NRF_GRTC_Type * p_reg, in nrf_grtc_int_group_enable() argument
67 *(uint32_t*)((char*)p_reg->INTENSET0 + INTENGRPOFFSET*group_idx) = mask; in nrf_grtc_int_group_enable()
71 void nrf_grtc_int_group_disable(NRF_GRTC_Type * p_reg, in nrf_grtc_int_group_disable() argument
75 *(uint32_t*)((char*)p_reg->INTENCLR0 + INTENGRPOFFSET*group_idx) = mask; in nrf_grtc_int_group_disable()
79 void nrf_grtc_subscribe_set(NRF_GRTC_Type * p_reg, in nrf_grtc_subscribe_set() argument
89 *((volatile uint32_t *) ((uint8_t *) p_reg + (uint32_t) task + 0x80uL)) = in nrf_grtc_subscribe_set()
97 void nrf_grtc_subscribe_clear(NRF_GRTC_Type * p_reg, in nrf_grtc_subscribe_clear() argument
106 *((volatile uint32_t *) ((uint8_t *) p_reg + (uint32_t) task + 0x80uL)) = 0; in nrf_grtc_subscribe_clear()
113 void nrf_grtc_event_clear(NRF_GRTC_Type * p_reg, nrf_grtc_event_t event) in nrf_grtc_event_clear() argument
115 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event)) = 0x0UL; in nrf_grtc_event_clear()
121 uint32_t nrf_grtc_sys_counter_low_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_sys_counter_low_get() argument
123 (void) p_reg; in nrf_grtc_sys_counter_low_get()
132 uint32_t nrf_grtc_sys_counter_high_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_sys_counter_high_get() argument
134 (void) p_reg; in nrf_grtc_sys_counter_high_get()
142 uint64_t nrf_grtc_sys_counter_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_sys_counter_get() argument
146 return *((const uint64_t volatile *)&p_reg->GRTC_SYSCOUNTER.SYSCOUNTERL); in nrf_grtc_sys_counter_get()
149 bool nrf_grtc_sys_counter_overflow_check(NRF_GRTC_Type const * p_reg) in nrf_grtc_sys_counter_overflow_check() argument
152 return (p_reg->GRTC_SYSCOUNTER.SYSCOUNTERH & in nrf_grtc_sys_counter_overflow_check()
156 uint64_t nrf_grtc_sys_counter_indexed_get(NRF_GRTC_Type const * p_reg, in nrf_grtc_sys_counter_indexed_get() argument
161 return *((const uint64_t volatile *)&p_reg->SYSCOUNTER[index]); in nrf_grtc_sys_counter_indexed_get()
164 void nrf_grtc_task_trigger(NRF_GRTC_Type * p_reg, nrf_grtc_task_t grtc_task) in nrf_grtc_task_trigger() argument
167 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)grtc_task)) = 0x1UL; in nrf_grtc_task_trigger()
189 void nrf_grtc_sys_counter_compare_event_enable(NRF_GRTC_Type * p_reg, in nrf_grtc_sys_counter_compare_event_enable() argument
199 p_reg->CC[cc_channel].CCEN = GRTC_CC_CCEN_ACTIVE_Enable; in nrf_grtc_sys_counter_compare_event_enable()
203 NRF_STATIC_INLINE void nrf_grtc_sys_counter_compare_event_disable(NRF_GRTC_Type * p_reg, in nrf_grtc_sys_counter_compare_event_disable() argument
212 p_reg->CC[cc_channel].CCEN = GRTC_CC_CCEN_ACTIVE_Disable; in nrf_grtc_sys_counter_compare_event_disable()