Home
last modified time | relevance | path

Searched refs:ch_data (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.5.0/drivers/counter/
Dcounter_nxp_s32_sys_timer.c31 struct nxp_s32_sys_timer_chan_data ch_data[SYS_TIMER_NUM_CHANNELS]; member
75 struct nxp_s32_sys_timer_chan_data *ch_data = &data->ch_data[chan_id]; in nxp_s32_sys_timer_set_alarm() local
78 if (ch_data->callback) { in nxp_s32_sys_timer_set_alarm()
87 ch_data->callback = alarm_cfg->callback; in nxp_s32_sys_timer_set_alarm()
88 ch_data->user_data = alarm_cfg->user_data; in nxp_s32_sys_timer_set_alarm()
106 struct nxp_s32_sys_timer_chan_data *ch_data = &data->ch_data[chan_id]; in nxp_s32_sys_timer_cancel_alarm() local
109 ch_data->callback = NULL; in nxp_s32_sys_timer_cancel_alarm()
110 ch_data->user_data = NULL; in nxp_s32_sys_timer_cancel_alarm()
165 struct nxp_s32_sys_timer_chan_data *ch_data; in nxp_s32_sys_timer_init() local
183 ch_data = &data->ch_data[i]; in nxp_s32_sys_timer_init()
[all …]
Dcounter_rpi_pico_timer.c27 struct counter_rpi_pico_timer_ch_data *ch_data; member
75 struct counter_rpi_pico_timer_ch_data *chdata = &data->ch_data[id]; in counter_rpi_pico_timer_set_alarm()
151 counter_alarm_callback_t cb = data->ch_data[ch].callback; in counter_rpi_pico_irq_handle()
152 void *user_data = data->ch_data[ch].user_data; in counter_rpi_pico_irq_handle()
155 data->ch_data[ch].callback = NULL; in counter_rpi_pico_irq_handle()
156 data->ch_data[ch].user_data = NULL; in counter_rpi_pico_irq_handle()
198 ch_data##inst[DT_NUM_IRQS(DT_DRV_INST(inst))]; \
200 .ch_data = ch_data##inst, \
210 .channels = ARRAY_SIZE(ch_data##inst), \
Dcounter_andes_atcpit100.c69 struct counter_atcpit100_ch_data ch_data[CH_NUM_PER_COUNTER]; member
107 cb = data->ch_data[i].alarm_callback; in atcpit100_irq_handler()
108 data->ch_data[i].alarm_callback = NULL; in atcpit100_irq_handler()
111 cb(dev, i, cur_ticks, data->ch_data[i].alarm_user_data); in atcpit100_irq_handler()
230 if (data->ch_data[chan_id].alarm_callback) { in atcpit100_set_alarm()
247 data->ch_data[chan_id].alarm_callback = alarm_cfg->callback; in atcpit100_set_alarm()
248 data->ch_data[chan_id].alarm_user_data = alarm_cfg->user_data; in atcpit100_set_alarm()
270 data->ch_data[chan_id].alarm_callback = NULL; in atcpit100_set_alarm()
332 data->ch_data[chan_id].alarm_callback = NULL; in atcpit100_cancel_alarm()
350 if (data->ch_data[i].alarm_callback) { in atcpit100_set_top_value()
Dcounter_nrfx_timer.c45 struct counter_nrfx_ch_data *ch_data; member
198 config->ch_data[id].callback = NULL; in set_cc()
211 struct counter_nrfx_ch_data *chdata = &nrfx_config->ch_data[chan]; in set_alarm()
233 config->ch_data[chan_id].callback = NULL; in cancel_alarm()
249 if (nrfx_config->ch_data[i].callback) { in set_top_value()
354 chdata = &config->ch_data[id]; in alarm_irq_handle()
438 .ch_data = counter##idx##_ch_data, \
Dcounter_ll_stm32_timer.c112 struct counter_stm32_ch_data *ch_data; member
263 config->ch_data[id].callback = NULL; in counter_stm32_set_cc()
276 struct counter_stm32_ch_data *chdata = &config->ch_data[chan]; in counter_stm32_set_alarm()
297 config->ch_data[chan].callback = NULL; in counter_stm32_cancel_alarm()
314 if (config->ch_data[i].callback) { in counter_stm32_set_top_value()
568 chdata = &config->ch_data[id]; in counter_stm32_alarm_irq_handle()
667 .ch_data = counter##idx##_ch_data, \
Dcounter_nrfx_rtc.c65 struct counter_nrfx_ch_data *ch_data; member
311 config->ch_data[chan].callback = NULL; in set_cc()
333 struct counter_nrfx_ch_data *chdata = &nrfx_config->ch_data[chan]; in set_channel_alarm()
359 config->ch_data[chan].callback = NULL; in disable()
492 if (nrfx_config->ch_data[i].callback) { in set_top_value()
632 chdata = &config->ch_data[chan]; in alarm_irq_handle()
716 .ch_data = counter##idx##_ch_data, \
/Zephyr-Core-3.5.0/drivers/sensor/fdc2x1x/
Dfdc2x1x.c636 double ch_data; in fdc2x1x_channel_get() local
640 fdc2x1x_raw_to_freq(dev, 0, &ch_data); in fdc2x1x_channel_get()
641 val->val1 = (uint32_t)ch_data; in fdc2x1x_channel_get()
642 val->val2 = ((uint32_t)(ch_data * 1000000)) % 1000000; in fdc2x1x_channel_get()
646 fdc2x1x_raw_to_freq(dev, 1, &ch_data); in fdc2x1x_channel_get()
647 val->val1 = (uint32_t)ch_data; in fdc2x1x_channel_get()
648 val->val2 = ((uint32_t)(ch_data * 1000000)) % 1000000; in fdc2x1x_channel_get()
656 fdc2x1x_raw_to_freq(dev, 2, &ch_data); in fdc2x1x_channel_get()
657 val->val1 = (uint32_t)ch_data; in fdc2x1x_channel_get()
658 val->val2 = ((uint32_t)(ch_data * 1000000)) % 1000000; in fdc2x1x_channel_get()
[all …]