mcpwm_timer_start_stop() function
Send specific start/stop commands to MCPWM timer
Arguments
timer
MCPWM timer handle, allocated by `mcpwm_new_timer()`
command
Supported command list for MCPWM timer
Return value
- ESP_OK: Start or stop MCPWM timer successfully - ESP_ERR_INVALID_ARG: Start or stop MCPWM timer failed because of invalid argument - ESP_ERR_INVALID_STATE: Start or stop MCPWM timer failed because timer is not enabled - ESP_FAIL: Start or stop MCPWM timer failed because of other error
mcpwm_timer_start_stop() calls 5 functions:
![]()
mcpwm_timer_start_stop()
mcpwm_timer_start_stop() reads 12 variables:
![]()
mcpwm_timer_start_stop()