Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/touch_element/
Dtouch_slider.c598 uint32_t position_average = 0; in slider_filter_average() local
612 position_average += slider_handle->pos_filter_window[win_idx]; in slider_filter_average()
614 position_average = position_average / TE_SLD_DEFAULT_POS_FILTER_SIZE(s_te_sld_obj) + 0.5; in slider_filter_average()
615 return position_average; in slider_filter_average()
650 uint32_t position_average = slider_filter_average(slider_handle, current_position); in slider_update_position() local
651 …slider_handle->last_position = slider_handle->last_position == 0 ? (position_average << 4) : slide… in slider_update_position()
652 …slider_handle->last_position = slider_filter_iir((position_average << 4), slider_handle->last_posi… in slider_update_position()