mcpwm_operator_recover_from_fault() function
Try to make the operator recover from fault
Arguments
oper
MCPWM operator, allocated by `mcpwm_new_operator()`
Return value
- ESP_OK: Recover from fault successfully - ESP_ERR_INVALID_ARG: Recover from fault failed because of invalid argument - ESP_ERR_INVALID_STATE: Recover from fault failed because the fault source is still active - ESP_FAIL: Recover from fault failed because of other error
Notes
To recover from fault or escape from trip, you make sure the fault signal has disappeared already. Otherwise the recovery can't succeed.
mcpwm_operator_recover_from_fault() calls 5 functions:
![]()
mcpwm_operator_recover_from_fault()
mcpwm_operator_recover_from_fault() reads 18 variables:
![]()
mcpwm_operator_recover_from_fault()