pub unsafe extern "C" fn mcpwm_capture_channel_disable(
    cap_channel: mcpwm_cap_channel_handle_t
) -> esp_err_t
Expand description

@brief Disable MCPWM capture channel

@param[in] cap_channel MCPWM capture channel handle, allocated by mcpwm_new_capture_channel() @return - ESP_OK: Disable MCPWM capture channel successfully - ESP_ERR_INVALID_ARG: Disable MCPWM capture channel failed because of invalid argument - ESP_ERR_INVALID_STATE: Disable MCPWM capture channel failed because the channel is not enabled yet - ESP_FAIL: Disable MCPWM capture channel failed because of other error