Function esp_idf_svc::sys::mcpwm_capture_channel_trigger_soft_catch

source ยท
pub unsafe extern "C" fn mcpwm_capture_channel_trigger_soft_catch(
    cap_channel: *mut mcpwm_cap_channel_t,
) -> i32
Expand description

@brief Trigger a catch by software

@param[in] cap_channel MCPWM capture channel handle, allocated by mcpwm_new_capture_channel() @return - ESP_OK: Trigger software catch successfully - ESP_ERR_INVALID_ARG: Trigger software catch failed because of invalid argument - ESP_ERR_INVALID_STATE: Trigger software catch failed because the channel is not enabled yet - ESP_FAIL: Trigger software catch failed because of other error