mcpwm_new_capture_timer() function
Create MCPWM capture timer
Arguments
config
MCPWM capture timer configuration
ret_cap_timer
Returned MCPWM capture timer handle
Return value
- ESP_OK: Create MCPWM capture timer successfully - ESP_ERR_INVALID_ARG: Create MCPWM capture timer failed because of invalid argument - ESP_ERR_NO_MEM: Create MCPWM capture timer failed because out of memory - ESP_ERR_NOT_FOUND: Create MCPWM capture timer failed because can't find free resource - ESP_FAIL: Create MCPWM capture timer failed because of other error
Examples
mcpwm_new_capture_timer() is referenced by 2 libraries and example projects: