UsbControlRecipient UsbControlRecipient UsbControlRecipient UsbControlRecipient Enum

Defines constants that indicate the recipient of a USB control transfer. The recipient is defined in the setup packet of the control request. See Table 9.2 of section 9.3 of the Universal Serial Bus (USB) specification (www.usb.org).

Syntax

Declaration

public enum UsbControlRecipientpublic enum UsbControlRecipientPublic Enum UsbControlRecipient

Remarks

For conceptual information about USB control transfers, see "About the default endpoint" and "Layout of a control transfer" in How to send a USB control transfer.

Fields

DefaultInterface
DefaultInterface
DefaultInterface
DefaultInterface

The recipient of the control transfer is the default (or the first) USB interface in the selected configuration of the device.If the recipient is the first interface of the active configuration (DefaultInterface ), SendControlInTransferAsync(Windows.Devices.Usb.UsbSetupPacket) and SendControlOutTransferAsync(Windows.Devices.Usb.UsbSetupPacket) methods overwrite the low byte of Index with the interface number of the default interface.

By using this value, an app can omit the interface number in an interface-recipient request.

Device
Device
Device
Device

The recipient of the control transfer is the device.

Endpoint
Endpoint
Endpoint
Endpoint

The recipient of the control transfer is an endpoint.

Other
Other
Other
Other

The recipient of the control transfer is other.

SpecifiedInterface
SpecifiedInterface
SpecifiedInterface
SpecifiedInterface

The recipient of the control transfer is the USB interface that is specified in the request.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Devices.Usb.dll