Function esp_idf_sys::touch_pad_set_measurement_clock_cycles

source ยท
pub unsafe extern "C" fn touch_pad_set_measurement_clock_cycles(
    clock_cycle: u16,
) -> esp_err_t
Expand description

@brief Set the clock cycles of each measurement @note This function will specify the clock cycles of each measurement and the clock is sourced from SOC_MOD_CLK_RTC_FAST, its default frequency is SOC_CLK_RC_FAST_FREQ_APPROX The touch sensor will record the charge and discharge times during these clock cycles as the final result (raw value) @note If clock cyles is too small, it may lead to inaccurate results.

@param clock_cycle The clock cycles of each measurement measure_time = clock_cycle / SOC_CLK_RC_FAST_FREQ_APPROX, the maximum measure time is 0xffff / SOC_CLK_RC_FAST_FREQ_APPROX @return - ESP_OK Set the clock cycle success