Lines Matching refs:chan
126 static void set_cc_int_pending(const struct device *dev, uint8_t chan) in set_cc_int_pending() argument
131 atomic_or(&data->cc_int_pending, BIT(chan)); in set_cc_int_pending()
145 uint8_t chan = ID_TO_CC(id); in set_cc() local
146 nrf_timer_event_t evt = nrf_timer_compare_event_get(chan); in set_cc()
155 nrf_timer_compare_int_get(chan)) == 0, in set_cc()
163 prev_val = nrf_timer_cc_get(reg, chan); in set_cc()
165 nrf_timer_cc_set(reg, chan, now); in set_cc()
187 nrf_timer_cc_set(reg, chan, val); in set_cc()
202 set_cc_int_pending(dev, chan); in set_cc()
207 nrf_timer_int_enable(reg, nrf_timer_compare_int_get(chan)); in set_cc()
213 static int set_alarm(const struct device *dev, uint8_t chan, in set_alarm() argument
217 struct counter_nrfx_ch_data *chdata = &nrfx_config->ch_data[chan]; in set_alarm()
230 return set_cc(dev, chan, alarm_cfg->ticks, alarm_cfg->flags); in set_alarm()