Lines Matching refs:touch_num
263 esp_err_t touch_pad_config(touch_pad_t touch_num) in touch_pad_config() argument
265 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_config()
267 touch_pad_io_init(touch_num); in touch_pad_config()
269 touch_hal_config(touch_num); in touch_pad_config()
270 touch_hal_set_channel_mask(BIT(touch_num)); in touch_pad_config()
311 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
313 …TOUCH_CHECK(touch_num < TOUCH_PAD_MAX && touch_num >= 0, "Touch channel error", ESP_ERR_INVALID_AR… in touch_pad_read_raw_data()
315 *raw_data = touch_hal_read_raw_data(touch_num); in touch_pad_read_raw_data()
320 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
322 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_filter_read_smooth()
324 touch_hal_filter_read_smooth(touch_num, smooth_data); in touch_pad_filter_read_smooth()
329 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 …TOUCH_CHECK(touch_num <= TOUCH_PAD_MAX && touch_num >= 0, "Touch channel error", ESP_ERR_INVALID_A… in touch_pad_reset_benchmark()
343 touch_hal_reset_benchmark(touch_num); in touch_pad_reset_benchmark()
471 esp_err_t touch_pad_proximity_enable(touch_pad_t touch_num, bool enabled) in touch_pad_proximity_enable() argument
474 TOUCH_CHECK(touch_num < TOUCH_PAD_MAX, "Touch channel error", ESP_ERR_INVALID_ARG); in touch_pad_proximity_enable()
477 if (!touch_hal_enable_proximity(touch_num, enabled)) { in touch_pad_proximity_enable()
484 esp_err_t touch_pad_proximity_set_count(touch_pad_t touch_num, uint32_t count) in touch_pad_proximity_set_count() argument
494 esp_err_t touch_pad_proximity_get_count(touch_pad_t touch_num, uint32_t *count) in touch_pad_proximity_get_count() argument
513 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
515 …TOUCH_CHECK(touch_hal_proximity_pad_check(touch_num), "touch num is not proximity", ESP_ERR_INVALI… in touch_pad_proximity_read_meas_cnt()
517 touch_hal_proximity_read_meas_cnt(touch_num, cnt); in touch_pad_proximity_read_meas_cnt()
522 esp_err_t touch_pad_proximity_get_data(touch_pad_t touch_num, uint32_t *measure_out) in touch_pad_proximity_get_data() argument
524 …TOUCH_CHECK(touch_hal_proximity_pad_check(touch_num), "touch num is not proximity", ESP_ERR_INVALI… in touch_pad_proximity_get_data()
526 touch_hal_read_benchmark(touch_num, measure_out); in touch_pad_proximity_get_data()