Bewerken

Delen via


UdecxUsbDeviceInitSetSpeed function (udecxusbdevice.h)

Sets the USB speed of the virtual USB device to create.

Syntax

void UdecxUsbDeviceInitSetSpeed(
  [in, out] PUDECXUSBDEVICE_INIT   UdecxUsbDeviceInit,
  [in]      UDECX_USB_DEVICE_SPEED UsbDeviceSpeed
);

Parameters

[in, out] UdecxUsbDeviceInit

A pointer to a WDF-allocated structure that contains initialization parameters for the virtual USB device. The client driver retrieved this pointer in the previous call to UdecxUsbDeviceInitAllocate.

[in] UsbDeviceSpeed

A UDECX_USB_DEVICE_SPEED-type value that indicates the USB speed to set.

Return value

None

Remarks

After the client driver sets the USB speed of the device, it only operates in that speed. The speed also determines the kind of port to which the device can connect. For example, a USB SuperSpeed device cannot connect to a USB 2.0 port.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Target Platform Windows
Minimum KMDF version 1.15
Header udecxusbdevice.h (include Udecx.h)
Library Udecxstub.lib
IRQL PASSIVE_LEVEL

See also

Architecture: USB Device Emulation (UDE)

Write a UDE client driver