/hal_espressif-3.7.0/components/driver/touch_sensor/ |
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.7.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.7.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.7.0/components/hal/include/hal/ |
D | touch_sensor_hal.h | 78 void touch_hal_set_meas_mode(touch_pad_t touch_num, const touch_hal_meas_mode_t *meas); 86 void touch_hal_get_meas_mode(touch_pad_t touch_num, touch_hal_meas_mode_t *meas); 128 #define touch_hal_set_threshold(touch_num, threshold) touch_ll_set_threshold(touch_num, threshold) argument 136 #define touch_hal_get_threshold(touch_num, threshold) touch_ll_get_threshold(touch_num, threshold) argument 186 #define touch_hal_read_raw_data(touch_num) touch_ll_read_raw_data(touch_num) argument 213 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.7.0/components/hal/esp32s2/include/hal/ |
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
|
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 RTCIO.touch_pad[touch_num].dac = slope; in touch_ll_set_slope() 182 static inline void touch_ll_get_slope(touch_pad_t touch_num, touch_cnt_slope_t *slope) in touch_ll_get_slope() argument 184 *slope = (touch_cnt_slope_t)RTCIO.touch_pad[touch_num].dac; in touch_ll_get_slope() 193 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 195 RTCIO.touch_pad[touch_num].tie_opt = opt; in touch_ll_set_tie_option() 204 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 206 *opt = (touch_tie_opt_t)RTCIO.touch_pad[touch_num].tie_opt; in touch_ll_get_tie_option() 318 static inline void touch_ll_set_threshold(touch_pad_t touch_num, uint32_t threshold) in touch_ll_set_threshold() argument 320 SENS.touch_thresh[touch_num - 1].thresh = threshold; in touch_ll_set_threshold() [all …]
|
/hal_espressif-3.7.0/components/hal/esp32/include/hal/ |
D | touch_sensor_ll.h | 40 static inline touch_pad_t touch_ll_num_wrap(touch_pad_t touch_num) in touch_ll_num_wrap() argument 42 if (touch_num == TOUCH_PAD_NUM8) { in touch_ll_num_wrap() 44 } else if (touch_num == TOUCH_PAD_NUM9) { in touch_ll_num_wrap() 47 return touch_num; in touch_ll_num_wrap() 180 static inline void touch_ll_set_slope(touch_pad_t touch_num, touch_cnt_slope_t slope) in touch_ll_set_slope() argument 182 RTCIO.touch_pad[touch_num].dac = slope; in touch_ll_set_slope() 195 static inline void touch_ll_get_slope(touch_pad_t touch_num, touch_cnt_slope_t *slope) in touch_ll_get_slope() argument 197 *slope = (touch_cnt_slope_t)RTCIO.touch_pad[touch_num].dac; in touch_ll_get_slope() 206 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 208 touch_pad_t touch_pad_wrap = touch_ll_num_wrap(touch_num); in touch_ll_set_tie_option() [all …]
|
/hal_espressif-3.7.0/components/driver/touch_sensor/esp32/ |
D | touch_sensor.c | 69 static esp_err_t _touch_pad_read(touch_pad_t touch_num, uint16_t *touch_value, touch_fsm_mode_t mod… 278 esp_err_t touch_pad_config(touch_pad_t touch_num, uint16_t threshold) in touch_pad_config() argument 281 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_config() 283 touch_pad_io_init(touch_num); in touch_pad_config() 285 touch_hal_config(touch_num); in touch_pad_config() 286 touch_hal_set_threshold(touch_num, threshold); in touch_pad_config() 290 touch_pad_clear_group_mask((1 << touch_num), (1 << touch_num), (1 << touch_num)); in touch_pad_config() 291 s_touch_pad_init_bit |= (1 << touch_num); in touch_pad_config() 298 touch_pad_set_group_mask((1 << touch_num), (1 << touch_num), (1 << touch_num)); in touch_pad_config() 307 s_touch_pad_init_bit |= (1 << touch_num); in touch_pad_config() [all …]
|
/hal_espressif-3.7.0/components/driver/touch_sensor/esp32s3/ |
D | touch_sensor.c | 266 esp_err_t touch_pad_config(touch_pad_t touch_num) in touch_pad_config() argument 268 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_config() 270 touch_pad_io_init(touch_num); in touch_pad_config() 272 touch_hal_config(touch_num); in touch_pad_config() 273 touch_hal_set_channel_mask(BIT(touch_num)); in touch_pad_config() 314 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 316 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_read_raw_data() 319 *raw_data = touch_hal_read_raw_data(touch_num); in touch_pad_read_raw_data() 324 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 326 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_filter_read_smooth() [all …]
|
/hal_espressif-3.7.0/components/driver/touch_sensor/esp32s2/ |
D | touch_sensor.c | 292 esp_err_t touch_pad_config(touch_pad_t touch_num) in touch_pad_config() argument 294 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_config() 296 touch_pad_io_init(touch_num); in touch_pad_config() 298 touch_hal_config(touch_num); in touch_pad_config() 299 touch_hal_set_channel_mask(BIT(touch_num)); in touch_pad_config() 340 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 342 …ESP_RETURN_ON_FALSE(touch_num < TOUCH_PAD_MAX && touch_num >= 0, ESP_ERR_INVALID_ARG, TOUCH_TAG, … in touch_pad_read_raw_data() 345 *raw_data = touch_hal_read_raw_data(touch_num); in touch_pad_read_raw_data() 350 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 353 TOUCH_CHANNEL_CHECK(touch_num); in touch_pad_filter_read_smooth() [all …]
|
/hal_espressif-3.7.0/components/driver/touch_sensor/esp32s3/include/driver/ |
D | touch_sensor.h | 154 esp_err_t touch_pad_set_thresh(touch_pad_t touch_num, uint32_t threshold); 164 esp_err_t touch_pad_get_thresh(touch_pad_t touch_num, uint32_t *threshold); 209 esp_err_t touch_pad_config(touch_pad_t touch_num); 312 esp_err_t touch_pad_read_raw_data(touch_pad_t touch_num, uint32_t *raw_data); 323 esp_err_t touch_pad_read_benchmark(touch_pad_t touch_num, uint32_t *benchmark); 331 esp_err_t touch_pad_filter_read_smooth(touch_pad_t touch_num, uint32_t *smooth); 340 esp_err_t touch_pad_reset_benchmark(touch_pad_t touch_num); 473 esp_err_t touch_pad_proximity_enable(touch_pad_t touch_num, bool enabled); 486 esp_err_t touch_pad_proximity_set_count(touch_pad_t touch_num, uint32_t count); 499 esp_err_t touch_pad_proximity_get_count(touch_pad_t touch_num, uint32_t *count); [all …]
|
/hal_espressif-3.7.0/components/driver/touch_sensor/esp32s2/include/driver/ |
D | touch_sensor.h | 154 esp_err_t touch_pad_set_thresh(touch_pad_t touch_num, uint32_t threshold); 164 esp_err_t touch_pad_get_thresh(touch_pad_t touch_num, uint32_t *threshold); 209 esp_err_t touch_pad_config(touch_pad_t touch_num); 312 esp_err_t touch_pad_read_raw_data(touch_pad_t touch_num, uint32_t *raw_data); 323 esp_err_t touch_pad_read_benchmark(touch_pad_t touch_num, uint32_t *benchmark); 331 esp_err_t touch_pad_filter_read_smooth(touch_pad_t touch_num, uint32_t *smooth); 340 esp_err_t touch_pad_reset_benchmark(touch_pad_t touch_num); 473 esp_err_t touch_pad_proximity_enable(touch_pad_t touch_num, bool enabled); 486 esp_err_t touch_pad_proximity_set_count(touch_pad_t touch_num, uint32_t count); 499 esp_err_t touch_pad_proximity_get_count(touch_pad_t touch_num, uint32_t *count); [all …]
|
/hal_espressif-3.7.0/components/driver/touch_sensor/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); 214 esp_err_t touch_pad_set_thresh(touch_pad_t touch_num, uint16_t threshold); 224 esp_err_t touch_pad_get_thresh(touch_pad_t touch_num, uint16_t *threshold);
|
/hal_espressif-3.7.0/components/driver/touch_sensor/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.7.0/components/hal/esp32s2/ |
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.7.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.7.0/components/esp_hw_support/ |
D | sleep_modes.c | 1242 touch_pad_t touch_num = TOUCH_PAD_NUM0; in touch_wakeup_prepare() local 1243 touch_ll_sleep_get_channel_num(&touch_num); // Check if the sleep pad is enabled. in touch_wakeup_prepare() 1244 if ((touch_num > TOUCH_PAD_NUM0) && (touch_num < TOUCH_PAD_MAX) && touch_ll_get_fsm_state()) { in touch_wakeup_prepare() 1251 touch_ll_set_channel_mask(BIT(touch_num)); in touch_wakeup_prepare()
|