mcpwm_capture_timer_set_phase_on_sync() function
Set sync phase for MCPWM capture timer
Arguments
cap_timer
MCPWM capture timer, allocated by `mcpwm_new_capture_timer()`
config
MCPWM capture timer sync phase configuration
Return value
- ESP_OK: Set sync phase for MCPWM capture timer successfully - ESP_ERR_INVALID_ARG: Set sync phase for MCPWM capture timer failed because of invalid argument - ESP_FAIL: Set sync phase for MCPWM capture timer failed because of other error