/hal_espressif-3.6.0/components/driver/ |
D | touch_sensor_common.c | 90 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 92 TOUCH_CHECK(touch_num < SOC_TOUCH_SENSOR_NUM, "Touch channel error", ESP_ERR_INVALID_ARG); in touch_pad_set_cnt_mode() 101 touch_hal_set_meas_mode(touch_num, &meas); in touch_pad_set_cnt_mode() 107 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 109 TOUCH_CHECK(touch_num < SOC_TOUCH_SENSOR_NUM, "Touch channel error", ESP_ERR_INVALID_ARG); in touch_pad_get_cnt_mode() 113 touch_hal_get_meas_mode(touch_num, &meas); in touch_pad_get_cnt_mode() 121 esp_err_t touch_pad_io_init(touch_pad_t touch_num) in touch_pad_io_init() argument 123 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_io_init() 124 gpio_num_t gpio_num = TOUCH_GET_IO_NUM(touch_num); in touch_pad_io_init() 180 esp_err_t touch_pad_set_thresh(touch_pad_t touch_num, uint16_t threshold) in touch_pad_set_thresh() argument [all …]
|
/hal_espressif-3.6.0/components/hal/esp32s3/include/hal/ |
D | touch_sensor_ll.h | 167 static inline void touch_ll_set_slope(touch_pad_t touch_num, touch_cnt_slope_t slope) in touch_ll_set_slope() argument 169 if (touch_num < TOUCH_PAD_NUM10) { in touch_ll_set_slope() 170 …CNTL_TOUCH_DAC_REG, RTC_CNTL_TOUCH_PAD0_DAC_V, slope, (RTC_CNTL_TOUCH_PAD0_DAC_S - touch_num * 3)); in touch_ll_set_slope() 172 …_REG, RTC_CNTL_TOUCH_PAD10_DAC_V, slope, (RTC_CNTL_TOUCH_PAD10_DAC_S - (touch_num - TOUCH_PAD_NUM1… 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 if (touch_num < TOUCH_PAD_NUM10) { in touch_ll_get_slope() 189 …S2(RTC_CNTL_TOUCH_DAC_REG, RTC_CNTL_TOUCH_PAD0_DAC_V, (RTC_CNTL_TOUCH_PAD0_DAC_S - touch_num * 3)); in touch_ll_get_slope() 191 …CH_DAC1_REG, RTC_CNTL_TOUCH_PAD10_DAC_V, (RTC_CNTL_TOUCH_PAD10_DAC_S - (touch_num - TOUCH_PAD_NUM1… in touch_ll_get_slope() 201 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 203 RTCIO.touch_pad[touch_num].tie_opt = opt; in touch_ll_set_tie_option() [all …]
|
D | touch_sensor_hal.h | 174 #define touch_hal_filter_read_smooth(touch_num, smooth_data) touch_ll_filter_read_smooth(touch_num,… argument 183 #define touch_hal_read_benchmark(touch_num, benchmark) touch_ll_read_benchmark(touch_num, benchmark) argument 191 #define touch_hal_reset_benchmark(touch_num) touch_ll_reset_benchmark(touch_num) argument 448 bool touch_hal_enable_proximity(touch_pad_t touch_num, bool enabled); 485 #define touch_hal_proximity_read_meas_cnt(touch_num, cnt) touch_ll_proximity_read_meas_cnt(touch_nu… argument 492 #define touch_hal_proximity_pad_check(touch_num) touch_ll_proximity_pad_check(touch_num) argument 523 #define touch_hal_sleep_set_channel_num(touch_num) touch_ll_sleep_set_channel_num(touch_num) argument 531 #define touch_hal_sleep_get_channel_num(touch_num) touch_ll_sleep_get_channel_num(touch_num) argument
|
/hal_espressif-3.6.0/components/hal/esp32s2/include/hal/ |
D | touch_sensor_ll.h | 175 static inline void touch_ll_set_slope(touch_pad_t touch_num, touch_cnt_slope_t slope) in touch_ll_set_slope() argument 177 RTCIO.touch_pad[touch_num].dac = slope; in touch_ll_set_slope() 190 static inline void touch_ll_get_slope(touch_pad_t touch_num, touch_cnt_slope_t *slope) in touch_ll_get_slope() argument 192 *slope = (touch_cnt_slope_t)RTCIO.touch_pad[touch_num].dac; in touch_ll_get_slope() 201 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 203 RTCIO.touch_pad[touch_num].tie_opt = opt; in touch_ll_set_tie_option() 212 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 214 *opt = (touch_tie_opt_t)RTCIO.touch_pad[touch_num].tie_opt; in touch_ll_get_tie_option() 326 static inline void touch_ll_set_threshold(touch_pad_t touch_num, uint32_t threshold) in touch_ll_set_threshold() argument 328 SENS.touch_thresh[touch_num - 1].thresh = threshold; in touch_ll_set_threshold() [all …]
|
D | touch_sensor_hal.h | 182 #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
|
/hal_espressif-3.6.0/components/driver/esp32/ |
D | touch_sensor.c | 68 static esp_err_t _touch_pad_read(touch_pad_t touch_num, uint16_t *touch_value, touch_fsm_mode_t mod… 250 esp_err_t touch_pad_config(touch_pad_t touch_num, uint16_t threshold) in touch_pad_config() argument 253 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_config() 255 touch_pad_io_init(touch_num); in touch_pad_config() 257 touch_hal_config(touch_num); in touch_pad_config() 258 touch_hal_set_threshold(touch_num, threshold); in touch_pad_config() 262 touch_pad_clear_group_mask((1 << touch_num), (1 << touch_num), (1 << touch_num)); in touch_pad_config() 263 s_touch_pad_init_bit |= (1 << touch_num); in touch_pad_config() 270 touch_pad_set_group_mask((1 << touch_num), (1 << touch_num), (1 << touch_num)); in touch_pad_config() 277 s_touch_pad_init_bit |= (1 << touch_num); in touch_pad_config() [all …]
|
/hal_espressif-3.6.0/components/hal/ |
D | touch_sensor_hal.c | 21 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-3.6.0/components/hal/esp32/include/hal/ |
D | touch_sensor_ll.h | 48 static inline touch_pad_t touch_ll_num_wrap(touch_pad_t touch_num) in touch_ll_num_wrap() argument 50 if (touch_num == TOUCH_PAD_NUM8) { in touch_ll_num_wrap() 52 } else if (touch_num == TOUCH_PAD_NUM9) { in touch_ll_num_wrap() 55 return touch_num; in touch_ll_num_wrap() 188 static inline void touch_ll_set_slope(touch_pad_t touch_num, touch_cnt_slope_t slope) in touch_ll_set_slope() argument 190 RTCIO.touch_pad[touch_num].dac = slope; in touch_ll_set_slope() 203 static inline void touch_ll_get_slope(touch_pad_t touch_num, touch_cnt_slope_t *slope) in touch_ll_get_slope() argument 205 *slope = (touch_cnt_slope_t)RTCIO.touch_pad[touch_num].dac; in touch_ll_get_slope() 214 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 216 touch_pad_t touch_pad_wrap = touch_ll_num_wrap(touch_num); in touch_ll_set_tie_option() [all …]
|
/hal_espressif-3.6.0/components/driver/esp32s3/ |
D | touch_sensor.c | 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() [all …]
|
/hal_espressif-3.6.0/components/driver/esp32s2/ |
D | touch_sensor.c | 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() [all …]
|
/hal_espressif-3.6.0/components/hal/include/hal/ |
D | touch_sensor_hal.h | 86 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);
|
D | touch_sensor_types.h | 286 touch_pad_t touch_num; /*!<Set touch channel number for sleep pad. member
|
/hal_espressif-3.6.0/components/driver/esp32s2/include/driver/ |
D | touch_sensor.h | 101 esp_err_t touch_pad_set_thresh(touch_pad_t touch_num, uint32_t threshold); 111 esp_err_t touch_pad_get_thresh(touch_pad_t touch_num, uint32_t *threshold); 156 esp_err_t touch_pad_config(touch_pad_t touch_num); 259 esp_err_t touch_pad_read_raw_data(touch_pad_t touch_num, uint32_t *raw_data); 270 esp_err_t touch_pad_read_benchmark(touch_pad_t touch_num, uint32_t *benchmark); 278 esp_err_t touch_pad_filter_read_smooth(touch_pad_t touch_num, uint32_t *smooth); 287 esp_err_t touch_pad_reset_benchmark(touch_pad_t touch_num); 420 esp_err_t touch_pad_proximity_enable(touch_pad_t touch_num, bool enabled); 433 esp_err_t touch_pad_proximity_set_count(touch_pad_t touch_num, uint32_t count); 446 esp_err_t touch_pad_proximity_get_count(touch_pad_t touch_num, uint32_t *count); [all …]
|
/hal_espressif-3.6.0/components/driver/esp32s3/include/driver/ |
D | touch_sensor.h | 101 esp_err_t touch_pad_set_thresh(touch_pad_t touch_num, uint32_t threshold); 111 esp_err_t touch_pad_get_thresh(touch_pad_t touch_num, uint32_t *threshold); 156 esp_err_t touch_pad_config(touch_pad_t touch_num); 259 esp_err_t touch_pad_read_raw_data(touch_pad_t touch_num, uint32_t *raw_data); 270 esp_err_t touch_pad_read_benchmark(touch_pad_t touch_num, uint32_t *benchmark); 278 esp_err_t touch_pad_filter_read_smooth(touch_pad_t touch_num, uint32_t *smooth); 287 esp_err_t touch_pad_reset_benchmark(touch_pad_t touch_num); 420 esp_err_t touch_pad_proximity_enable(touch_pad_t touch_num, bool enabled); 433 esp_err_t touch_pad_proximity_set_count(touch_pad_t touch_num, uint32_t count); 446 esp_err_t touch_pad_proximity_get_count(touch_pad_t touch_num, uint32_t *count); [all …]
|
/hal_espressif-3.6.0/components/driver/esp32/include/driver/ |
D | touch_sensor.h | 28 esp_err_t touch_pad_config(touch_pad_t touch_num, uint16_t threshold); 48 esp_err_t touch_pad_read(touch_pad_t touch_num, uint16_t *touch_value); 65 esp_err_t touch_pad_read_filtered(touch_pad_t touch_num, uint16_t *touch_value); 83 esp_err_t touch_pad_read_raw_data(touch_pad_t touch_num, uint16_t *touch_value); 161 esp_err_t touch_pad_set_thresh(touch_pad_t touch_num, uint16_t threshold); 171 esp_err_t touch_pad_get_thresh(touch_pad_t touch_num, uint16_t *threshold);
|
/hal_espressif-3.6.0/components/hal/esp32s2/ |
D | touch_sensor_hal.c | 121 bool touch_hal_enable_proximity(touch_pad_t touch_num, bool enabled) in touch_hal_enable_proximity() argument 128 … if (ch_num[i] == TOUCH_PAD_NUM0 || ch_num[i] >= TOUCH_PAD_MAX || ch_num[i] == touch_num) { in touch_hal_enable_proximity() 129 ch_num[i] = touch_num; in touch_hal_enable_proximity() 138 if (ch_num[i] == touch_num) { in touch_hal_enable_proximity() 161 touch_ll_sleep_get_channel_num(&slp_config->touch_num); in touch_hal_sleep_channel_get_config()
|
/hal_espressif-3.6.0/components/hal/esp32s3/ |
D | touch_sensor_hal.c | 114 bool touch_hal_enable_proximity(touch_pad_t touch_num, bool enabled) in touch_hal_enable_proximity() argument 121 … if (ch_num[i] == TOUCH_PAD_NUM0 || ch_num[i] >= TOUCH_PAD_MAX || ch_num[i] == touch_num) { in touch_hal_enable_proximity() 122 ch_num[i] = touch_num; in touch_hal_enable_proximity() 131 if (ch_num[i] == touch_num) { in touch_hal_enable_proximity() 154 touch_ll_sleep_get_channel_num(&slp_config->touch_num); in touch_hal_sleep_channel_get_config()
|
/hal_espressif-3.6.0/components/driver/include/driver/ |
D | touch_sensor_common.h | 43 esp_err_t touch_pad_io_init(touch_pad_t touch_num); 82 esp_err_t touch_pad_set_cnt_mode(touch_pad_t touch_num, touch_cnt_slope_t slope, touch_tie_opt_t op… 93 esp_err_t touch_pad_get_cnt_mode(touch_pad_t touch_num, touch_cnt_slope_t *slope, touch_tie_opt_t *…
|
/hal_espressif-3.6.0/components/esp_hw_support/ |
D | sleep_modes.c | 845 touch_pad_t touch_num = TOUCH_PAD_NUM0; in touch_wakeup_prepare() local 846 touch_ll_sleep_get_channel_num(&touch_num); // Check if the sleep pad is enabled. in touch_wakeup_prepare() 847 if ((touch_num > TOUCH_PAD_NUM0) && (touch_num < TOUCH_PAD_MAX) && touch_ll_get_fsm_state()) { in touch_wakeup_prepare() 854 touch_ll_set_channel_mask(BIT(touch_num)); in touch_wakeup_prepare()
|
/hal_espressif-3.6.0/zephyr/esp_shared/components/esp_hw_support/ |
D | sleep_modes.c | 880 touch_pad_t touch_num = TOUCH_PAD_NUM0; in touch_wakeup_prepare() local 881 touch_ll_sleep_get_channel_num(&touch_num); // Check if the sleep pad is enabled. in touch_wakeup_prepare() 882 if ((touch_num > TOUCH_PAD_NUM0) && (touch_num < TOUCH_PAD_MAX) && touch_ll_get_fsm_state()) { in touch_wakeup_prepare() 889 touch_ll_set_channel_mask(BIT(touch_num)); in touch_wakeup_prepare()
|
/hal_espressif-3.6.0/components/touch_element/ |
D | touch_element.c | 291 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-3.6.0/components/driver/test/touch_sensor_test/ |
D | test_touch_v2.c | 772 touch_pad_sleep_channel_read_benchmark(slp_config.touch_num, &touch_value); in test_touch_intr_cb() 773 touch_pad_sleep_channel_read_proximity_cnt(slp_config.touch_num, &cnt); in test_touch_intr_cb()
|