Function esp_idf_sys::mcpwm_soft_fault_activate
source ยท pub unsafe extern "C" fn mcpwm_soft_fault_activate(
fault: mcpwm_fault_handle_t,
) -> esp_err_t
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