[][src]Function esp_idf_bindgen::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. If the slope is set 7, which is the maximum value, the charging and discharging would be fast. @note The higher the charge and discharge current, the greater the immunity of the touch channel, but it will increase the system power consumption. @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