Function esp_idf_sys::mcpwm_operator_set_brake_on_fault

source ยท
pub unsafe extern "C" fn mcpwm_operator_set_brake_on_fault(
    oper: mcpwm_oper_handle_t,
    config: *const mcpwm_brake_config_t,
) -> esp_err_t
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