mcpwm_timer_get_phase() function
Get MCPWM timer phase
Arguments
timer
MCPWM timer handle, allocated by `mcpwm_new_timer()`
count_value
Returned MCPWM timer phase
direction
Returned MCPWM timer counting direction
Return value
- ESP_OK: Get MCPWM timer status successfully - ESP_ERR_INVALID_ARG: Get MCPWM timer status failed because of invalid argument - ESP_FAIL: Get MCPWM timer status failed because of other error
mcpwm_timer_get_phase() calls 6 functions:
![]()
mcpwm_timer_get_phase()
mcpwm_timer_get_phase() reads 9 variables:
![]()
mcpwm_timer_get_phase()