mcpwm_generator_set_action_on_timer_event() function
Set generator action on MCPWM timer event
Arguments
gen
MCPWM generator handle, allocated by `mcpwm_new_generator()`
ev_act
MCPWM timer event action, can be constructed by `MCPWM_GEN_TIMER_EVENT_ACTION` helper macro
Return value
- ESP_OK: Set generator action successfully - ESP_ERR_INVALID_ARG: Set generator action failed because of invalid argument - ESP_ERR_INVALID_STATE: Set generator action failed because of timer is not connected to operator - ESP_FAIL: Set generator action failed because of other error
mcpwm_generator_set_action_on_timer_event() calls 3 functions:
![]()
mcpwm_generator_set_action_on_timer_event()
mcpwm_generator_set_action_on_timer_event() reads 23 variables:
![]()
mcpwm_generator_set_action_on_timer_event()