Lines Matching refs:chan_id
49 static uint8_t chan_id2cc_idx(uint8_t chan_id) in chan_id2cc_idx() argument
53 switch (chan_id) { in chan_id2cc_idx()
150 static int counter_gecko_set_alarm(const struct device *dev, uint8_t chan_id, in counter_gecko_set_alarm() argument
161 if (dev_data->alarm[chan_id].callback != NULL) { in counter_gecko_set_alarm()
177 uint8_t cc_idx = chan_id2cc_idx(chan_id); in counter_gecko_set_alarm()
181 dev_data->alarm[chan_id].callback = alarm_cfg->callback; in counter_gecko_set_alarm()
182 dev_data->alarm[chan_id].user_data = alarm_cfg->user_data; in counter_gecko_set_alarm()
186 LOG_DBG("set alarm: channel %u, count %u", chan_id, ccv); in counter_gecko_set_alarm()
195 uint8_t chan_id) in counter_gecko_cancel_alarm() argument
199 uint8_t cc_idx = chan_id2cc_idx(chan_id); in counter_gecko_cancel_alarm()
205 dev_data->alarm[chan_id].callback = NULL; in counter_gecko_cancel_alarm()
206 dev_data->alarm[chan_id].user_data = NULL; in counter_gecko_cancel_alarm()
210 LOG_DBG("cancel alarm: channel %u", chan_id); in counter_gecko_cancel_alarm()