Lines Matching refs:task

30                             nrf_timer_task_t task)  in nrf_timer_task_trigger()  argument
34 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL; in nrf_timer_task_trigger()
36 if (task == NRF_TIMER_TASK_START) { in nrf_timer_task_trigger()
38 } else if (task == NRF_TIMER_TASK_STOP) { in nrf_timer_task_trigger()
40 } else if (task == NRF_TIMER_TASK_COUNT) { in nrf_timer_task_trigger()
42 } else if (task == NRF_TIMER_TASK_CLEAR) { in nrf_timer_task_trigger()
45 } else if (task == NRF_TIMER_TASK_SHUTDOWN) { in nrf_timer_task_trigger()
48 } else if (task >= NRF_TIMER_TASK_CAPTURE0) { in nrf_timer_task_trigger()
49 int task_nbr = (task - NRF_TIMER_TASK_CAPTURE0)/sizeof(uint32_t); in nrf_timer_task_trigger()
53 (int) task); in nrf_timer_task_trigger()
84 nrf_timer_task_t task) in nrf_timer_subscribe_common() argument
88 if (task == NRF_TIMER_TASK_START) { in nrf_timer_subscribe_common()
90 } else if (task == NRF_TIMER_TASK_STOP) { in nrf_timer_subscribe_common()
92 } else if (task == NRF_TIMER_TASK_COUNT) { in nrf_timer_subscribe_common()
94 } else if (task == NRF_TIMER_TASK_CLEAR) { in nrf_timer_subscribe_common()
97 } else if (task == NRF_TIMER_TASK_SHUTDOWN) { in nrf_timer_subscribe_common()
100 } else if (task >= NRF_TIMER_TASK_CAPTURE0) { in nrf_timer_subscribe_common()
101 int task_nbr = (task - NRF_TIMER_TASK_CAPTURE0)/sizeof(uint32_t); in nrf_timer_subscribe_common()
105 task); in nrf_timer_subscribe_common()
110 nrf_timer_task_t task, in nrf_timer_subscribe_set() argument
113 *((volatile uint32_t *) ((uint8_t *) p_reg + (uint32_t) task + 0x80uL)) = in nrf_timer_subscribe_set()
115 nrf_timer_subscribe_common(p_reg, task); in nrf_timer_subscribe_set()
119 nrf_timer_task_t task) in nrf_timer_subscribe_clear() argument
121 *((volatile uint32_t *) ((uint8_t *) p_reg + (uint32_t) task + 0x80uL)) = 0; in nrf_timer_subscribe_clear()
122 nrf_timer_subscribe_common(p_reg, task); in nrf_timer_subscribe_clear()