Function esp_idf_hal::sys::mcpwm_generator_set_actions_on_brake_event
source ยท pub unsafe extern "C" fn mcpwm_generator_set_actions_on_brake_event(
generator: *mut mcpwm_gen_t,
ev_act: mcpwm_gen_brake_event_action_t,
...
) -> i32
Expand description
@brief Set generator actions on multiple MCPWM brake events
@note This is an aggregation version of mcpwm_generator_set_action_on_brake_event
, which allows user to set multiple actions in one call.
@param[in] generator MCPWM generator handle, allocated by mcpwm_new_generator()
@param[in] ev_act MCPWM brake event action list, must be terminated by MCPWM_GEN_BRAKE_EVENT_ACTION_END()
@return
- ESP_OK: Set generator actions successfully
- ESP_ERR_INVALID_ARG: Set generator actions failed because of invalid argument
- ESP_FAIL: Set generator actions failed because of other error