Lines Matching refs:touch_num
236 esp_err_t touch_pad_config(touch_pad_t touch_num) in touch_pad_config() argument
238 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_config()
240 touch_pad_io_init(touch_num); in touch_pad_config()
242 touch_hal_config(touch_num); in touch_pad_config()
243 touch_hal_set_channel_mask(BIT(touch_num)); in touch_pad_config()
288 esp_err_t IRAM_ATTR touch_pad_read_raw_data(touch_pad_t touch_num, uint32_t *raw_data) in touch_pad_read_raw_data() argument
290 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_read_raw_data()
293 *raw_data = touch_hal_read_raw_data(touch_num); in touch_pad_read_raw_data()
298 esp_err_t IRAM_ATTR touch_pad_filter_read_smooth(touch_pad_t touch_num, uint32_t *smooth_data) in touch_pad_filter_read_smooth() argument
300 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_filter_read_smooth()
303 touch_hal_filter_read_smooth(touch_num, smooth_data); in touch_pad_filter_read_smooth()
308 esp_err_t IRAM_ATTR touch_pad_read_benchmark(touch_pad_t touch_num, uint32_t *benchmark) in touch_pad_read_benchmark() argument
310 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_read_benchmark()
313 touch_hal_read_benchmark(touch_num, benchmark); in touch_pad_read_benchmark()
319 esp_err_t touch_pad_reset_benchmark(touch_pad_t touch_num) in touch_pad_reset_benchmark() argument
321 …ESP_RETURN_ON_FALSE(touch_num <= TOUCH_PAD_MAX && touch_num >= 0, ESP_ERR_INVALID_ARG, TOUCH_TAG, … in touch_pad_reset_benchmark()
323 touch_hal_reset_benchmark(touch_num); in touch_pad_reset_benchmark()
457 esp_err_t touch_pad_proximity_enable(touch_pad_t touch_num, bool enabled) in touch_pad_proximity_enable() argument
460 …ESP_RETURN_ON_FALSE(touch_num < TOUCH_PAD_MAX, ESP_ERR_INVALID_ARG, TOUCH_TAG, "Touch channel err… in touch_pad_proximity_enable()
463 if (!touch_hal_enable_proximity(touch_num, enabled)) { in touch_pad_proximity_enable()
470 esp_err_t touch_pad_proximity_set_count(touch_pad_t touch_num, uint32_t count) in touch_pad_proximity_set_count() argument
480 esp_err_t touch_pad_proximity_get_count(touch_pad_t touch_num, uint32_t *count) in touch_pad_proximity_get_count() argument
499 esp_err_t touch_pad_proximity_read_meas_cnt(touch_pad_t touch_num, uint32_t *cnt) in touch_pad_proximity_read_meas_cnt() argument
502 …ESP_RETURN_ON_FALSE(touch_hal_proximity_pad_check(touch_num), ESP_ERR_INVALID_ARG, TOUCH_TAG, "to… in touch_pad_proximity_read_meas_cnt()
504 touch_hal_proximity_read_meas_cnt(touch_num, cnt); in touch_pad_proximity_read_meas_cnt()
509 esp_err_t touch_pad_proximity_get_data(touch_pad_t touch_num, uint32_t *measure_out) in touch_pad_proximity_get_data() argument
512 …ESP_RETURN_ON_FALSE(touch_hal_proximity_pad_check(touch_num), ESP_ERR_INVALID_ARG, TOUCH_TAG, "to… in touch_pad_proximity_get_data()
514 touch_hal_read_benchmark(touch_num, measure_out); in touch_pad_proximity_get_data()