Lines Matching refs:counter_cfg
35 cyhal_timer_cfg_t counter_cfg; member
162 data->counter_cfg.compare_value = 0; in ifx_cat1_counter_init()
163 data->counter_cfg.period = config->counter_info.max_top_value; in ifx_cat1_counter_init()
164 data->counter_cfg.direction = CYHAL_TIMER_DIR_UP; in ifx_cat1_counter_init()
165 data->counter_cfg.is_compare = true; in ifx_cat1_counter_init()
166 data->counter_cfg.is_continuous = true; in ifx_cat1_counter_init()
167 data->counter_cfg.value = 0; in ifx_cat1_counter_init()
170 rslt = cyhal_timer_configure(&data->counter_obj, &data->counter_cfg); in ifx_cat1_counter_init()
261 data->counter_cfg.period = cfg->ticks; in ifx_cat1_counter_set_top_value()
268 ticks_gt_period = cfg->ticks > data->counter_cfg.period; in ifx_cat1_counter_set_top_value()
271 data->counter_cfg.value = 0u; in ifx_cat1_counter_set_top_value()
273 data->counter_cfg.value = 0u; in ifx_cat1_counter_set_top_value()
280 data->counter_cfg.value = cyhal_timer_read(&data->counter_obj); in ifx_cat1_counter_set_top_value()
288 rslt = cyhal_timer_configure(&data->counter_obj, &data->counter_cfg); in ifx_cat1_counter_set_top_value()
315 return data->counter_cfg.period; in ifx_cat1_counter_get_top_value()
415 data->counter_cfg.compare_value = val; in ifx_cat1_counter_set_alarm()
422 data->counter_cfg.value = cyhal_timer_read(&data->counter_obj); in ifx_cat1_counter_set_alarm()
426 rslt = cyhal_timer_configure(&data->counter_obj, &data->counter_cfg); in ifx_cat1_counter_set_alarm()
433 data->counter_cfg.compare_value; in ifx_cat1_counter_set_alarm()