Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/counter/
Dcounter_gecko_stimer.c60 struct counter_gecko_top_data top_data; member
77 (((struct counter_gecko_data *const)(alarm_data->dev)->data)->top_data.ticks)); in alarm_callback()
88 struct counter_gecko_top_data *top_data = (struct counter_gecko_top_data *)data; in top_callback() local
90 if (top_data->callback != NULL) { in top_callback()
91 top_data->callback(top_data->dev, in top_callback()
92 ((struct counter_top_cfg *)(top_data->user_data))->user_data); in top_callback()
100 *ticks = ((sl_sleeptimer_get_tick_count()) % (dev_data->top_data.ticks)); in counter_gecko_get_value()
118 error_code = sl_sleeptimer_start_timer(&top_timer, dev_data->top_data.ticks, top_callback, in counter_gecko_start()
119 (void *)&dev_data->top_data, 0, 0); in counter_gecko_start()
158 dev_data->top_data.callback = cfg->callback; in counter_gecko_set_top_value()
[all …]