[][src]Function esp_idf_sys::touch_pad_set_meas_time

pub unsafe extern "C" fn touch_pad_set_meas_time(
    sleep_cycle: u16,
    meas_cycle: u16
) -> esp_err_t

@brief Set touch sensor measurement and sleep time @param sleep_cycle The touch sensor will sleep after each measurement. sleep_cycle decide the interval between each measurement. t_sleep = sleep_cycle / (RTC_SLOW_CLK frequency). The approximate frequency value of RTC_SLOW_CLK can be obtained using rtc_clk_slow_freq_get_hz function. @param meas_cycle The duration of the touch sensor measurement. t_meas = meas_cycle / 8M, the maximum measure time is 0xffff / 8M = 8.19 ms @return - ESP_OK on success