MCPWM comparator handle, allocated by `mcpwm_new_comparator()`
cmp_ticks
The new compare value
Return value
- ESP_OK: Set MCPWM compare value successfully - ESP_ERR_INVALID_ARG: Set MCPWM compare value failed because of invalid argument (e.g. the cmp_ticks is out of range) - ESP_ERR_INVALID_STATE: Set MCPWM compare value failed because the operator doesn't have a timer connected - ESP_FAIL: Set MCPWM compare value failed because of other error
Related Functions
Found 7 other functions taking a mcpwm_cmpr_t
argument: