Chapter 2. API Reference
touch_pad_shield_driver_t shield_driver
Waterproof. Shield channel drive capability configuration. Shield pad is used to shield the influence
of water droplets covering the touch panel. When the waterproof function is enabled, Touch14 is set
as shield channel by default. The larger the parasitic capacitance on the shielding channel, the higher
the drive capability needs to be set. The equivalent capacitance of the shield channel can be estimated
through the reading value of the denoise channel(Touch0).
struct touch_filter_config
Touch sensor filter configuration
Public Members
touch_filter_mode_t mode
Set filter mode. The input of the filter is the raw value of touch reading, and the output of the filter is
involved in the judgment of the touch state.
uint32_t debounce_cnt
Set debounce count, such as n. If the measured values continue to exceed the threshold for n+1 times,
the touch sensor state changes. Range: 0 ~ 7
uint32_t noise_thr
Noise threshold coefficient. Higher = More noise resistance. The actual noise should be less than (noise
coefficient * touch threshold). Range: 0 ~ 3. The coefficient is 0: 4/8; 1: 3/8; 2: 2/8; 3: 1;
uint32_t jitter_step
Set jitter filter step size. Range: 0 ~ 15
touch_smooth_mode_t smh_lvl
Level of filter applied on the original data against large noise interference.
struct touch_pad_sleep_channel_t
Touch sensor channel sleep configuration
Public Members
touch_pad_t touch_num
Set touch channel number for sleep pad. Only one touch sensor channel is supported in deep sleep mode.
If clear the sleep channel, point this pad to TOUCH_PAD_NUM0
bool en_proximity
enable proximity function for sleep pad
Macros
TOUCH_PAD_BIT_MASK_ALL
TOUCH_PAD_SLOPE_DEFAULT
TOUCH_PAD_TIE_OPT_DEFAULT
TOUCH_PAD_BIT_MASK_MAX
TOUCH_PAD_HIGH_VOLTAGE_THRESHOLD
TOUCH_PAD_LOW_VOLTAGE_THRESHOLD
TOUCH_PAD_ATTEN_VOLTAGE_THRESHOLD
TOUCH_PAD_IDLE_CH_CONNECT_DEFAULT
TOUCH_PAD_THRESHOLD_MAX
If set touch threshold max value, The touch sensor can’t be in touched status
Espressif Systems 412
Submit Document Feedback
Release v4.4