mcpwm_generator_set_actions_on_compare_event() function
Set generator actions on multiple MCPWM compare events
Arguments
generator
MCPWM generator handle, allocated by `mcpwm_new_generator()`
ev_act
MCPWM compare event action list, must be terminated by `MCPWM_GEN_COMPARE_EVENT_ACTION_END()`
Return value
- 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
Notes
This is an aggregation version of `mcpwm_generator_set_action_on_compare_event`, which allows user to set multiple actions in one call.
mcpwm_generator_set_actions_on_compare_event() calls 3 functions:
![]()
mcpwm_generator_set_actions_on_compare_event()
mcpwm_generator_set_actions_on_compare_event() reads 16 variables:
![]()
mcpwm_generator_set_actions_on_compare_event()