Share via


UsbTransferDirection Enum

Definition

Defines constants that indicate the direction of USB transfer: IN or OUT transfers.

public enum class UsbTransferDirection
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class UsbTransferDirection
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum UsbTransferDirection
var value = Windows.Devices.Usb.UsbTransferDirection.out
Public Enum UsbTransferDirection
Inheritance
UsbTransferDirection
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Out 0

Indicates an OUT transfer from the host to the device.

In 1

Indicates an IN transfer from the device to the host.

Remarks

The direction of a USB transfer is determined from the host side and not the target USB device. In an IN transfer, data moves from the device to the host. In an OUT transfer, data moves from the host to the device.

Applies to