Function esp_idf_sys::touch_pad_read_filtered
source · pub unsafe extern "C" fn touch_pad_read_filtered(
touch_num: touch_pad_t,
touch_value: *mut u16,
) -> esp_err_t
Expand description
@brief get filtered touch sensor counter value by IIR filter.
@note touch_pad_filter_start has to be called before calling touch_pad_read_filtered. This function can be called from ISR
@param touch_num touch pad index @param touch_value pointer to accept touch sensor value
@return - ESP_OK Success - ESP_ERR_INVALID_ARG Touch pad parameter error - ESP_ERR_INVALID_STATE This touch pad hardware connection is error, the value of “touch_value” is 0. - ESP_FAIL Touch pad not initialized