Function esp_idf_svc::hal::sys::mcpwm_soft_fault_activate

source ยท
pub unsafe extern "C" fn mcpwm_soft_fault_activate(
    fault: *mut mcpwm_fault_t,
) -> i32
Expand description

@brief Activate the software fault, trigger the fault event for once

@param[in] fault MCPWM soft fault, allocated by mcpwm_new_soft_fault() @return - ESP_OK: Trigger MCPWM software fault event successfully - ESP_ERR_INVALID_ARG: Trigger MCPWM software fault event failed because of invalid argument - ESP_FAIL: Trigger MCPWM software fault event failed because of other error