Home
last modified time | relevance | path

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

/hal_espressif-2.7.6/components/driver/
Dtouch_sensor_common.c98 esp_err_t touch_pad_set_cnt_mode(touch_pad_t touch_num, touch_cnt_slope_t slope, touch_tie_opt_t op… in touch_pad_set_cnt_mode() argument
100 TOUCH_CHECK(touch_num < SOC_TOUCH_SENSOR_NUM, "Touch channel error", ESP_ERR_INVALID_ARG); in touch_pad_set_cnt_mode()
109 touch_hal_set_meas_mode(touch_num, &meas); in touch_pad_set_cnt_mode()
115 esp_err_t touch_pad_get_cnt_mode(touch_pad_t touch_num, touch_cnt_slope_t *slope, touch_tie_opt_t *… in touch_pad_get_cnt_mode() argument
117 TOUCH_CHECK(touch_num < SOC_TOUCH_SENSOR_NUM, "Touch channel error", ESP_ERR_INVALID_ARG); in touch_pad_get_cnt_mode()
121 touch_hal_get_meas_mode(touch_num, &meas); in touch_pad_get_cnt_mode()
129 esp_err_t touch_pad_io_init(touch_pad_t touch_num) in touch_pad_io_init() argument
131 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_io_init()
132 gpio_num_t gpio_num = TOUCH_GET_IO_NUM(touch_num); in touch_pad_io_init()
188 esp_err_t touch_pad_set_thresh(touch_pad_t touch_num, uint16_t threshold) in touch_pad_set_thresh() argument
[all …]
/hal_espressif-2.7.6/components/hal/
Dtouch_sensor_hal.c21 void touch_hal_config(touch_pad_t touch_num) in touch_hal_config() argument
23 touch_ll_set_threshold(touch_num, SOC_TOUCH_PAD_THRESHOLD_MAX); in touch_hal_config()
24 touch_ll_set_slope(touch_num, TOUCH_PAD_SLOPE_DEFAULT); in touch_hal_config()
25 touch_ll_set_tie_option(touch_num, TOUCH_PAD_TIE_OPT_DEFAULT); in touch_hal_config()
42 void touch_hal_set_meas_mode(touch_pad_t touch_num, const touch_hal_meas_mode_t *meas) in touch_hal_set_meas_mode() argument
44 touch_ll_set_slope(touch_num, meas->slope); in touch_hal_set_meas_mode()
45 touch_ll_set_tie_option(touch_num, meas->tie_opt); in touch_hal_set_meas_mode()
48 void touch_hal_get_meas_mode(touch_pad_t touch_num, touch_hal_meas_mode_t *meas) in touch_hal_get_meas_mode() argument
50 touch_ll_get_slope(touch_num, &meas->slope); in touch_hal_get_meas_mode()
51 touch_ll_get_tie_option(touch_num, &meas->tie_opt); in touch_hal_get_meas_mode()
/hal_espressif-2.7.6/components/hal/include/hal/
Dtouch_sensor_hal.h86 void touch_hal_set_meas_mode(touch_pad_t touch_num, const touch_hal_meas_mode_t *meas);
94 void touch_hal_get_meas_mode(touch_pad_t touch_num, touch_hal_meas_mode_t *meas);
136 #define touch_hal_set_threshold(touch_num, threshold) touch_ll_set_threshold(touch_num, threshold) argument
144 #define touch_hal_get_threshold(touch_num, threshold) touch_ll_get_threshold(touch_num, threshold) argument
194 #define touch_hal_read_raw_data(touch_num) touch_ll_read_raw_data(touch_num) argument
221 void touch_hal_config(touch_pad_t touch_num);
Dtouch_sensor_types.h283 touch_pad_t touch_num; /*!<Set touch channel number for sleep pad. member
/hal_espressif-2.7.6/components/hal/esp32s2/include/hal/
Dtouch_sensor_hal.h182 #define touch_hal_filter_read_smooth(touch_num, smooth_data) touch_ll_filter_read_smooth(touch_num,… argument
191 #define touch_hal_read_benchmark(touch_num, benchmark) touch_ll_read_benchmark(touch_num, benchmark) argument
199 #define touch_hal_reset_benchmark(touch_num) touch_ll_reset_benchmark(touch_num) argument
456 bool touch_hal_enable_proximity(touch_pad_t touch_num, bool enabled);
493 #define touch_hal_proximity_read_meas_cnt(touch_num, cnt) touch_ll_proximity_read_meas_cnt(touch_nu… argument
500 #define touch_hal_proximity_pad_check(touch_num) touch_ll_proximity_pad_check(touch_num) argument
531 #define touch_hal_sleep_set_channel_num(touch_num) touch_ll_sleep_set_channel_num(touch_num) argument
539 #define touch_hal_sleep_get_channel_num(touch_num) touch_ll_sleep_get_channel_num(touch_num) argument
Dtouch_sensor_ll.h171 static inline void touch_ll_set_slope(touch_pad_t touch_num, touch_cnt_slope_t slope) in touch_ll_set_slope() argument
173 RTCIO.touch_pad[touch_num].dac = slope; in touch_ll_set_slope()
186 static inline void touch_ll_get_slope(touch_pad_t touch_num, touch_cnt_slope_t *slope) in touch_ll_get_slope() argument
188 *slope = (touch_cnt_slope_t)RTCIO.touch_pad[touch_num].dac; in touch_ll_get_slope()
197 static inline void touch_ll_set_tie_option(touch_pad_t touch_num, touch_tie_opt_t opt) in touch_ll_set_tie_option() argument
199 RTCIO.touch_pad[touch_num].tie_opt = opt; in touch_ll_set_tie_option()
208 static inline void touch_ll_get_tie_option(touch_pad_t touch_num, touch_tie_opt_t *opt) in touch_ll_get_tie_option() argument
210 *opt = (touch_tie_opt_t)RTCIO.touch_pad[touch_num].tie_opt; in touch_ll_get_tie_option()
322 static inline void touch_ll_set_threshold(touch_pad_t touch_num, uint32_t threshold) in touch_ll_set_threshold() argument
324 SENS.touch_thresh[touch_num - 1].thresh = threshold; in touch_ll_set_threshold()
[all …]
/hal_espressif-2.7.6/components/hal/esp32s3/include/hal/
Dtouch_sensor_hal.h182 #define touch_hal_filter_read_smooth(touch_num, smooth_data) touch_ll_filter_read_smooth(touch_num,… argument
191 #define touch_hal_read_benchmark(touch_num, benchmark) touch_ll_read_benchmark(touch_num, benchmark) argument
199 #define touch_hal_reset_benchmark(touch_num) touch_ll_reset_benchmark(touch_num) argument
456 bool touch_hal_enable_proximity(touch_pad_t touch_num, bool enabled);
493 #define touch_hal_proximity_read_meas_cnt(touch_num, cnt) touch_ll_proximity_read_meas_cnt(touch_nu… argument
500 #define touch_hal_proximity_pad_check(touch_num) touch_ll_proximity_pad_check(touch_num) argument
531 #define touch_hal_sleep_set_channel_num(touch_num) touch_ll_sleep_set_channel_num(touch_num) argument
539 #define touch_hal_sleep_get_channel_num(touch_num) touch_ll_sleep_get_channel_num(touch_num) argument
Dtouch_sensor_ll.h171 static inline void touch_ll_set_slope(touch_pad_t touch_num, touch_cnt_slope_t slope) in touch_ll_set_slope() argument
173 RTCIO.touch_pad[touch_num].dac = slope; in touch_ll_set_slope()
186 static inline void touch_ll_get_slope(touch_pad_t touch_num, touch_cnt_slope_t *slope) in touch_ll_get_slope() argument
188 *slope = (touch_cnt_slope_t)RTCIO.touch_pad[touch_num].dac; in touch_ll_get_slope()
197 static inline void touch_ll_set_tie_option(touch_pad_t touch_num, touch_tie_opt_t opt) in touch_ll_set_tie_option() argument
199 RTCIO.touch_pad[touch_num].tie_opt = opt; in touch_ll_set_tie_option()
208 static inline void touch_ll_get_tie_option(touch_pad_t touch_num, touch_tie_opt_t *opt) in touch_ll_get_tie_option() argument
210 *opt = (touch_tie_opt_t)RTCIO.touch_pad[touch_num].tie_opt; in touch_ll_get_tie_option()
322 static inline void touch_ll_set_threshold(touch_pad_t touch_num, uint32_t threshold) in touch_ll_set_threshold() argument
324 SENS.touch_thresh[touch_num - 1].thresh = threshold; in touch_ll_set_threshold()
[all …]
/hal_espressif-2.7.6/components/driver/esp32s2/
Dtouch_sensor.c263 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()
[all …]
/hal_espressif-2.7.6/components/driver/esp32/
Dtouch_sensor.c79 static esp_err_t _touch_pad_read(touch_pad_t touch_num, uint16_t *touch_value, touch_fsm_mode_t mod…
254 esp_err_t touch_pad_config(touch_pad_t touch_num, uint16_t threshold) in touch_pad_config() argument
257 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_config()
259 touch_pad_io_init(touch_num); in touch_pad_config()
261 touch_hal_config(touch_num); in touch_pad_config()
262 touch_hal_set_threshold(touch_num, threshold); in touch_pad_config()
266 touch_pad_clear_group_mask((1 << touch_num), (1 << touch_num), (1 << touch_num)); in touch_pad_config()
267 s_touch_pad_init_bit |= (1 << touch_num); in touch_pad_config()
274 touch_pad_set_group_mask((1 << touch_num), (1 << touch_num), (1 << touch_num)); in touch_pad_config()
281 s_touch_pad_init_bit |= (1 << touch_num); in touch_pad_config()
[all …]
/hal_espressif-2.7.6/components/hal/esp32/include/hal/
Dtouch_sensor_ll.h44 static inline touch_pad_t touch_ll_num_wrap(touch_pad_t touch_num) in touch_ll_num_wrap() argument
46 if (touch_num == TOUCH_PAD_NUM8) { in touch_ll_num_wrap()
48 } else if (touch_num == TOUCH_PAD_NUM9) { in touch_ll_num_wrap()
51 return touch_num; in touch_ll_num_wrap()
184 static inline void touch_ll_set_slope(touch_pad_t touch_num, touch_cnt_slope_t slope) in touch_ll_set_slope() argument
186 RTCIO.touch_pad[touch_num].dac = slope; in touch_ll_set_slope()
199 static inline void touch_ll_get_slope(touch_pad_t touch_num, touch_cnt_slope_t *slope) in touch_ll_get_slope() argument
201 *slope = (touch_cnt_slope_t)RTCIO.touch_pad[touch_num].dac; in touch_ll_get_slope()
210 static inline void touch_ll_set_tie_option(touch_pad_t touch_num, touch_tie_opt_t opt) in touch_ll_set_tie_option() argument
212 touch_pad_t touch_pad_wrap = touch_ll_num_wrap(touch_num); in touch_ll_set_tie_option()
[all …]
/hal_espressif-2.7.6/components/driver/esp32s2/include/driver/
Dtouch_sensor.h108 esp_err_t touch_pad_set_thresh(touch_pad_t touch_num, uint32_t threshold);
118 esp_err_t touch_pad_get_thresh(touch_pad_t touch_num, uint32_t *threshold);
163 esp_err_t touch_pad_config(touch_pad_t touch_num);
266 esp_err_t touch_pad_read_raw_data(touch_pad_t touch_num, uint32_t *raw_data);
277 esp_err_t touch_pad_read_benchmark(touch_pad_t touch_num, uint32_t *benchmark);
285 esp_err_t touch_pad_filter_read_smooth(touch_pad_t touch_num, uint32_t *smooth);
294 esp_err_t touch_pad_reset_benchmark(touch_pad_t touch_num);
427 esp_err_t touch_pad_proximity_enable(touch_pad_t touch_num, bool enabled);
440 esp_err_t touch_pad_proximity_set_count(touch_pad_t touch_num, uint32_t count);
453 esp_err_t touch_pad_proximity_get_count(touch_pad_t touch_num, uint32_t *count);
[all …]
/hal_espressif-2.7.6/components/driver/esp32s3/include/driver/
Dtouch_sensor.h108 esp_err_t touch_pad_set_thresh(touch_pad_t touch_num, uint32_t threshold);
118 esp_err_t touch_pad_get_thresh(touch_pad_t touch_num, uint32_t *threshold);
163 esp_err_t touch_pad_config(touch_pad_t touch_num);
264 esp_err_t touch_pad_read_raw_data(touch_pad_t touch_num, uint32_t *raw_data);
275 esp_err_t touch_pad_read_benchmark(touch_pad_t touch_num, uint32_t *benchmark);
283 esp_err_t touch_pad_filter_read_smooth(touch_pad_t touch_num, uint32_t *smooth);
292 esp_err_t touch_pad_reset_benchmark(touch_pad_t touch_num);
425 esp_err_t touch_pad_proximity_enable(touch_pad_t touch_num, bool enabled);
438 esp_err_t touch_pad_proximity_set_count(touch_pad_t touch_num, uint32_t count);
451 esp_err_t touch_pad_proximity_get_count(touch_pad_t touch_num, uint32_t *count);
[all …]
/hal_espressif-2.7.6/components/driver/esp32/include/driver/
Dtouch_sensor.h36 esp_err_t touch_pad_config(touch_pad_t touch_num, uint16_t threshold);
56 esp_err_t touch_pad_read(touch_pad_t touch_num, uint16_t *touch_value);
73 esp_err_t touch_pad_read_filtered(touch_pad_t touch_num, uint16_t *touch_value);
91 esp_err_t touch_pad_read_raw_data(touch_pad_t touch_num, uint16_t *touch_value);
169 esp_err_t touch_pad_set_thresh(touch_pad_t touch_num, uint16_t threshold);
179 esp_err_t touch_pad_get_thresh(touch_pad_t touch_num, uint16_t *threshold);
/hal_espressif-2.7.6/components/hal/esp32s2/
Dtouch_sensor_hal.c117 bool touch_hal_enable_proximity(touch_pad_t touch_num, bool enabled) in touch_hal_enable_proximity() argument
124 … if (ch_num[i] == TOUCH_PAD_NUM0 || ch_num[i] >= TOUCH_PAD_MAX || ch_num[i] == touch_num) { in touch_hal_enable_proximity()
125 ch_num[i] = touch_num; in touch_hal_enable_proximity()
134 if (ch_num[i] == touch_num) { in touch_hal_enable_proximity()
160 touch_ll_sleep_get_channel_num(&slp_config->touch_num); in touch_hal_sleep_channel_get_config()
/hal_espressif-2.7.6/components/hal/esp32s3/
Dtouch_sensor_hal.c117 bool touch_hal_enable_proximity(touch_pad_t touch_num, bool enabled) in touch_hal_enable_proximity() argument
124 … if (ch_num[i] == TOUCH_PAD_NUM0 || ch_num[i] >= TOUCH_PAD_MAX || ch_num[i] == touch_num) { in touch_hal_enable_proximity()
125 ch_num[i] = touch_num; in touch_hal_enable_proximity()
134 if (ch_num[i] == touch_num) { in touch_hal_enable_proximity()
160 touch_ll_sleep_get_channel_num(&slp_config->touch_num); in touch_hal_sleep_channel_get_config()
/hal_espressif-2.7.6/components/driver/include/driver/
Dtouch_sensor_common.h51 esp_err_t touch_pad_io_init(touch_pad_t touch_num);
90 esp_err_t touch_pad_set_cnt_mode(touch_pad_t touch_num, touch_cnt_slope_t slope, touch_tie_opt_t op…
101 esp_err_t touch_pad_get_cnt_mode(touch_pad_t touch_num, touch_cnt_slope_t *slope, touch_tie_opt_t *…
/hal_espressif-2.7.6/components/esp_system/
Dsleep_modes.c916 touch_pad_t touch_num = TOUCH_PAD_NUM0; in touch_wakeup_prepare() local
917 touch_ll_sleep_get_channel_num(&touch_num); // Check if the sleep pad is enabled. in touch_wakeup_prepare()
918 if ((touch_num > TOUCH_PAD_NUM0) && (touch_num < TOUCH_PAD_MAX) && touch_ll_get_fsm_state()) { in touch_wakeup_prepare()
925 touch_ll_set_channel_mask(BIT(touch_num)); in touch_wakeup_prepare()
/hal_espressif-2.7.6/components/touch_element/
Dtouch_element.c291 if (channel_num != sleep_channel_info.touch_num) { in te_read_raw_signal()
304 if (channel_num != sleep_channel_info.touch_num) { in te_read_smooth_signal()
/hal_espressif-2.7.6/components/driver/test/touch_sensor_test/
Dtest_esp32s2.c780 touch_pad_sleep_channel_read_benchmark(slp_config.touch_num, &touch_value); in test_touch_intr_cb()
781 touch_pad_sleep_channel_read_proximity_cnt(slp_config.touch_num, &cnt); in test_touch_intr_cb()