[][src]Function esp_idf_sys::touch_pad_config

pub unsafe extern "C" fn touch_pad_config(
    touch_num: touch_pad_t,
    threshold: u16
) -> esp_err_t

@brief Configure touch pad interrupt threshold.

@note If FSM mode is set to TOUCH_FSM_MODE_TIMER, this function will be blocked for one measurement cycle and wait for data to be valid.

@param touch_num touch pad index @param threshold interrupt threshold,

@return - ESP_OK Success - ESP_ERR_INVALID_ARG if argument wrong - ESP_FAIL if touch pad not initialized