Function esp_idf_svc::hal::sys::mcpwm_new_soft_fault

source ยท
pub unsafe extern "C" fn mcpwm_new_soft_fault(
    config: *const mcpwm_soft_fault_config_t,
    ret_fault: *mut *mut mcpwm_fault_t,
) -> i32
Expand description

@brief Create MCPWM software fault

@param[in] config MCPWM software fault configuration @param[out] ret_fault Returned software fault handle @return - ESP_OK: Create MCPWM software fault successfully - ESP_ERR_INVALID_ARG: Create MCPWM software fault failed because of invalid argument - ESP_ERR_NO_MEM: Create MCPWM software fault failed because out of memory - ESP_FAIL: Create MCPWM software fault failed because of other error