Function esp_idf_svc::sys::mcpwm_operator_set_brake_on_fault

source ยท
pub unsafe extern "C" fn mcpwm_operator_set_brake_on_fault(
    oper: *mut mcpwm_oper_t,
    config: *const mcpwm_brake_config_t,
) -> i32
Expand description

@brief Set brake method for MCPWM operator

@param[in] oper MCPWM operator, allocated by mcpwm_new_operator() @param[in] config MCPWM brake configuration @return - ESP_OK: Set trip for operator successfully - ESP_ERR_INVALID_ARG: Set trip for operator failed because of invalid argument - ESP_FAIL: Set trip for operator failed because of other error