[][src]Function esp_idf_sys::touch_pad_set_cnt_mode

pub unsafe extern "C" fn touch_pad_set_cnt_mode(
    touch_num: touch_pad_t,
    slope: touch_cnt_slope_t,
    opt: touch_tie_opt_t
) -> esp_err_t

@brief Set touch sensor charge/discharge speed for each pad. If the slope is 0, the counter would always be zero. If the slope is 1, the charging and discharging would be slow, accordingly, the counter value would be small. If the slope is set 7, which is the maximum value, the charging and discharging would be fast, accordingly, the counter value would be larger. @param touch_num touch pad index @param slope touch pad charge/discharge speed @param opt the initial voltage @return - ESP_OK on success - ESP_ERR_INVALID_ARG if argument is wrong