mcpwm_capture_timer_enable() function
Enable MCPWM capture timer
Arguments
cap_timer
MCPWM capture timer handle, allocated by `mcpwm_new_capture_timer()`
Return value
- ESP_OK: Enable MCPWM capture timer successfully - ESP_ERR_INVALID_ARG: Enable MCPWM capture timer failed because of invalid argument - ESP_ERR_INVALID_STATE: Enable MCPWM capture timer failed because timer is enabled already - ESP_FAIL: Enable MCPWM capture timer failed because of other error
Examples
mcpwm_capture_timer_enable() is referenced by 2 libraries and example projects: