Chapter 2. API Reference
• filter_info: select filter type and threshold of detection algorithm
esp_err_t touch_pad_filter_get_config(touch_filter_config_t *filter_info)
get parameter of touch sensor filter and detection algorithm. For more details on the detection algorithm, please
refer to the application documentation.
Return
• ESP_OK Success
Parameters
• filter_info: select filter type and threshold of detection algorithm
esp_err_t touch_pad_filter_enable(void)
enable touch sensor filter for detection algorithm. For more details on the detection algorithm, please refer to
the application documentation.
Return
• ESP_OK Success
esp_err_t touch_pad_filter_disable(void)
disable touch sensor filter for detection algorithm. For more details on the detection algorithm, please refer to
the application documentation.
Return
• ESP_OK Success
esp_err_t touch_pad_denoise_set_config(const touch_pad_denoise_t *denoise)
set parameter of denoise pad (TOUCH_PAD_NUM0). T0 is an internal channel that does not have a cor-
responding external GPIO. T0 will work simultaneously with the measured channel Tn. Finally, the actual
measured value of Tn is the value after subtracting lower bits of T0. The noise reduction function filters out
interference introduced simultaneously on all channels, such as noise introduced by power supplies and external
EMI.
Return
• ESP_OK Success
Parameters
• denoise: parameter of denoise
esp_err_t touch_pad_denoise_get_config(touch_pad_denoise_t *denoise)
get parameter of denoise pad (TOUCH_PAD_NUM0).
Return
• ESP_OK Success
Parameters
• denoise: Pointer to parameter of denoise
esp_err_t touch_pad_denoise_enable(void)
enable denoise function. T0 is an internal channel that does not have a corresponding external GPIO. T0 will
work simultaneously with the measured channel Tn. Finally, the actual measured value of Tn is the value after
subtracting lower bits of T0. The noise reduction function filters out interference introduced simultaneously
on all channels, such as noise introduced by power supplies and external EMI.
Return
• ESP_OK Success
esp_err_t touch_pad_denoise_disable(void)
disable denoise function.
Return
• ESP_OK Success
esp_err_t touch_pad_denoise_read_data(uint32_t *data)
Get denoise measure value (TOUCH_PAD_NUM0).
Return
• ESP_OK Success
Parameters
Espressif Systems 404
Submit Document Feedback
Release v4.4