Lines Matching refs:touch_num
260 esp_err_t touch_pad_config(touch_pad_t touch_num) in touch_pad_config() argument
262 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_config()
264 touch_pad_io_init(touch_num); in touch_pad_config()
266 touch_hal_config(touch_num); in touch_pad_config()
267 touch_hal_set_channel_mask(BIT(touch_num)); in touch_pad_config()
308 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
310 …ESP_RETURN_ON_FALSE(touch_num < TOUCH_PAD_MAX && touch_num >= 0, ESP_ERR_INVALID_ARG, TOUCH_TAG, … in touch_pad_read_raw_data()
313 *raw_data = touch_hal_read_raw_data(touch_num); in touch_pad_read_raw_data()
318 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
321 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_filter_read_smooth()
323 touch_hal_filter_read_smooth(touch_num, smooth_data); in touch_pad_filter_read_smooth()
328 esp_err_t IRAM_ATTR touch_pad_read_benchmark(touch_pad_t touch_num, uint32_t *benchmark) in touch_pad_read_benchmark() argument
331 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_read_benchmark()
333 touch_hal_read_benchmark(touch_num, benchmark); in touch_pad_read_benchmark()
339 esp_err_t touch_pad_reset_benchmark(touch_pad_t touch_num) in touch_pad_reset_benchmark() argument
341 …ESP_RETURN_ON_FALSE(touch_num <= TOUCH_PAD_MAX && touch_num >= 0, ESP_ERR_INVALID_ARG, TOUCH_TAG, … in touch_pad_reset_benchmark()
343 touch_hal_reset_benchmark(touch_num); in touch_pad_reset_benchmark()
478 esp_err_t touch_pad_proximity_enable(touch_pad_t touch_num, bool enabled) in touch_pad_proximity_enable() argument
481 …ESP_RETURN_ON_FALSE(touch_num < TOUCH_PAD_MAX, ESP_ERR_INVALID_ARG, TOUCH_TAG, "Touch channel err… in touch_pad_proximity_enable()
484 if (!touch_hal_enable_proximity(touch_num, enabled)) { in touch_pad_proximity_enable()
491 esp_err_t touch_pad_proximity_set_count(touch_pad_t touch_num, uint32_t count) in touch_pad_proximity_set_count() argument
501 esp_err_t touch_pad_proximity_get_count(touch_pad_t touch_num, uint32_t *count) in touch_pad_proximity_get_count() argument
520 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
523 …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()
525 touch_hal_proximity_read_meas_cnt(touch_num, cnt); in touch_pad_proximity_read_meas_cnt()
530 esp_err_t touch_pad_proximity_get_data(touch_pad_t touch_num, uint32_t *measure_out) in touch_pad_proximity_get_data() argument
532 …ESP_RETURN_ON_FALSE(touch_hal_proximity_pad_check(touch_num), ESP_ERR_INVALID_ARG, TOUCH_TAG, "to… in touch_pad_proximity_get_data()
535 touch_hal_read_benchmark(touch_num, measure_out); in touch_pad_proximity_get_data()