Function esp_idf_sys::mcpwm_capture_timer_enable
source ยท pub unsafe extern "C" fn mcpwm_capture_timer_enable(
cap_timer: mcpwm_cap_timer_handle_t,
) -> esp_err_t
Expand description
@brief Enable MCPWM capture timer
@param[in] cap_timer MCPWM capture timer handle, allocated by mcpwm_new_capture_timer()
@return
- ESP_OK: Enable MCPWM capture timer successfully
- ESP_ERR_INVALID_ARG: Enable MCPWM capture timer failed because of invalid argument
- ESP_ERR_INVALID_STATE: Enable MCPWM capture timer failed because timer is enabled already
- ESP_FAIL: Enable MCPWM capture timer failed because of other error