mcpwm_capture_channel_trigger_soft_catch() function
Trigger a catch by software
Arguments
cap_channel
MCPWM capture channel handle, allocated by `mcpwm_new_capture_channel()`
Return value
- ESP_OK: Trigger software catch successfully - ESP_ERR_INVALID_ARG: Trigger software catch failed because of invalid argument - ESP_ERR_INVALID_STATE: Trigger software catch failed because the channel is not enabled yet - ESP_FAIL: Trigger software catch failed because of other error