mcpwm_operator_connect_timer() function
Connect MCPWM operator and timer, so that the operator can be driven by the timer
Arguments
oper
MCPWM operator handle, allocated by `mcpwm_new_operator()`
timer
MCPWM timer handle, allocated by `mcpwm_new_timer()`
Return value
- ESP_OK: Connect MCPWM operator and timer successfully - ESP_ERR_INVALID_ARG: Connect MCPWM operator and timer failed because of invalid argument - ESP_FAIL: Connect MCPWM operator and timer failed because of other error
mcpwm_operator_connect_timer() calls 4 functions:
![]()
mcpwm_operator_connect_timer()
mcpwm_operator_connect_timer() reads 14 variables and writes 2 variables:
![]()
mcpwm_operator_connect_timer()