EasyManuals Logo

Espressif ESP32-S2 User Manual

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #418 background imageLoading...
Page #418 background image
Chapter 2. API Reference
ESP_OK Success
Parameters
pad_num: Set touch channel number for sleep pad. Only one touch sensor channel is supported in
deep sleep mode.
touch_thres: touch sleep pad threshold
esp_err_t touch_pad_sleep_get_threshold(touch_pad_t pad_num, uint32_t *touch_thres)
Get the trigger threshold of touch sensor in deep sleep. The threshold determines the sensitivity of the touch
sensor.
Note In general, the touch threshold during sleep can use the threshold parameter parameters before sleep.
Return
ESP_OK Success
Parameters
pad_num: Set touch channel number for sleep pad. Only one touch sensor channel is supported in
deep sleep mode.
touch_thres: touch sleep pad threshold
esp_err_t touch_pad_sleep_channel_read_benchmark(touch_pad_t pad_num, uint32_t
*benchmark)
Read benchmark of touch sensor sleep channel.
Return
ESP_OK Success
ESP_ERR_INVALID_ARG parameter is NULL
Parameters
pad_num: Set touch channel number for sleep pad. Only one touch sensor channel is supported in
deep sleep mode.
benchmark: pointer to accept touch sensor benchmark value
esp_err_t touch_pad_sleep_channel_read_smooth(touch_pad_t pad_num, uint32_t
*smooth_data)
Read smoothed data of touch sensor sleep channel. Smoothed data is filtered from the raw data.
Return
ESP_OK Success
ESP_ERR_INVALID_ARG parameter is NULL
Parameters
pad_num: Set touch channel number for sleep pad. Only one touch sensor channel is supported in
deep sleep mode.
smooth_data: pointer to accept touch sensor smoothed data
esp_err_t touch_pad_sleep_channel_read_data(touch_pad_t pad_num, uint32_t *raw_data)
Read raw data of touch sensor sleep channel.
Return
ESP_OK Success
ESP_ERR_INVALID_ARG parameter is NULL
Parameters
pad_num: Set touch channel number for sleep pad. Only one touch sensor channel is supported in
deep sleep mode.
raw_data: pointer to accept touch sensor raw data
esp_err_t touch_pad_sleep_channel_reset_benchmark(void)
Reset benchmark of touch sensor sleep channel.
Return
ESP_OK Success
esp_err_t touch_pad_sleep_channel_read_proximity_cnt(touch_pad_t pad_num, uint32_t
*proximity_cnt)
Read proximity count of touch sensor sleep channel.
Return
ESP_OK Success
Espressif Systems 407
Submit Document Feedback
Release v4.4

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Espressif ESP32-S2 and is the answer not in the manual?

Espressif ESP32-S2 Specifications

General IconGeneral
BrandEspressif
ModelESP32-S2
CategorySingle board computers
LanguageEnglish