Lines Matching refs:p_reg

12 static int egu_number_from_ptr(NRF_EGU_Type const * p_reg){  in egu_number_from_ptr()  argument
13 int i = ( (int)p_reg - (int)&NRF_EGU_regs[0] ) / sizeof(NRF_EGU_Type); in egu_number_from_ptr()
17 void nrf_egu_task_trigger(NRF_EGU_Type * p_reg, nrf_egu_task_t egu_task) in nrf_egu_task_trigger() argument
19 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)egu_task)) = 0x1UL; in nrf_egu_task_trigger()
21 int i = egu_number_from_ptr(p_reg); in nrf_egu_task_trigger()
27 void nrf_egu_event_clear(NRF_EGU_Type * p_reg, nrf_egu_event_t egu_event) in nrf_egu_event_clear() argument
29 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)egu_event)) = 0x0UL; in nrf_egu_event_clear()
31 int i = egu_number_from_ptr(p_reg); in nrf_egu_event_clear()
37 void nrf_egu_int_enable(NRF_EGU_Type * p_reg, uint32_t mask) in nrf_egu_int_enable() argument
39 p_reg->INTENSET = mask; in nrf_egu_int_enable()
41 int i = egu_number_from_ptr(p_reg); in nrf_egu_int_enable()
45 void nrf_egu_int_disable(NRF_EGU_Type * p_reg, uint32_t mask) in nrf_egu_int_disable() argument
47 p_reg->INTENCLR = mask; in nrf_egu_int_disable()
49 int i = egu_number_from_ptr(p_reg); in nrf_egu_int_disable()
54 void nrf_egu_subscribe_set(NRF_EGU_Type * p_reg, in nrf_egu_subscribe_set() argument
58 NRFX_ASSERT(p_reg); in nrf_egu_subscribe_set()
59 *((volatile uint32_t *) ((uint8_t *) p_reg + (uint32_t) task + 0x80uL)) = in nrf_egu_subscribe_set()
62 int i = egu_number_from_ptr(p_reg); in nrf_egu_subscribe_set()
68 void nrf_egu_subscribe_clear(NRF_EGU_Type * p_reg, in nrf_egu_subscribe_clear() argument
71 NRFX_ASSERT(p_reg); in nrf_egu_subscribe_clear()
72 *((volatile uint32_t *) ((uint8_t *) p_reg + (uint32_t) task + 0x80uL)) = 0; in nrf_egu_subscribe_clear()
74 int i = egu_number_from_ptr(p_reg); in nrf_egu_subscribe_clear()