pub unsafe extern "C" fn mcpwm_generator_set_action_on_fault_event(
generator: mcpwm_gen_handle_t,
ev_act: mcpwm_gen_fault_event_action_t,
) -> esp_err_t
Expand description
@brief Set generator action on MCPWM Fault event
@param[in] generator MCPWM generator handle, allocated by mcpwm_new_generator()
@param[in] ev_act MCPWM trigger event action, can be constructed by MCPWM_GEN_FAULT_EVENT_ACTION
helper macro
@return
- ESP_OK: Set generator action successfully
- ESP_ERR_INVALID_ARG: Set generator action failed because of invalid argument
- ESP_FAIL: Set generator action failed because of other error