Function esp_idf_sys::touch_pad_read_raw_data
source · pub unsafe extern "C" fn touch_pad_read_raw_data(
touch_num: touch_pad_t,
touch_value: *mut u16,
) -> esp_err_t
Expand description
@brief get raw data (touch sensor counter value) from IIR filter process. Need not request hardware measurements.
@note touch_pad_filter_start has to be called before calling touch_pad_read_raw_data. 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