Function esp_idf_svc::hal::sys::mcpwm_generator_set_action_on_sync_event
source ยท pub unsafe extern "C" fn mcpwm_generator_set_action_on_sync_event(
generator: *mut mcpwm_gen_t,
ev_act: mcpwm_gen_sync_event_action_t,
) -> i32
Expand description
@brief Set generator action on MCPWM Sync event
@note The trigger only support one sync action, regardless of the kinds. Should not call this function more than once.
@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_SYNC_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