Function esp_idf_svc::sys::mcpwm_capture_timer_disable

source ยท
pub unsafe extern "C" fn mcpwm_capture_timer_disable(
    cap_timer: *mut mcpwm_cap_timer_t,
) -> i32
Expand description

@brief Disable MCPWM capture timer

@param[in] cap_timer MCPWM capture timer handle, allocated by mcpwm_new_capture_timer() @return - ESP_OK: Disable MCPWM capture timer successfully - ESP_ERR_INVALID_ARG: Disable MCPWM capture timer failed because of invalid argument - ESP_ERR_INVALID_STATE: Disable MCPWM capture timer failed because timer is disabled already - ESP_FAIL: Disable MCPWM capture timer failed because of other error