Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UsbSetupPacket class

Applies to Windows only

Describes the setup packet for a USB control transfer. For an explanation of the setup packet, see Table 9.2 in the Universal Serial Bus (USB) specification.

Syntax


public sealed class UsbSetupPacket

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06030000)]

Members

The UsbSetupPacket class has these types of members:

Constructors

The UsbSetupPacket class has these constructors.

ConstructorDescription
UsbSetupPacket Creates a UsbSetupPacket object.
UsbSetupPacket(IBuffer) Creates a UsbSetupPacket object from a formatted buffer (eight bytes) that contains the setup packet.

 

Properties

The UsbSetupPacket class has these properties.

PropertyAccess typeDescription

Index

Read/writeGets or sets the wIndex field in the setup packet of the USB control transfer.

Length

Read/writeGets the length, in bytes, of the setup packet.

Request

Read/writeGets or sets the bRequest field in the setup packet of the USB control transfer.

RequestType

Read/writeGets or sets the bmRequestType field in the setup packet of the USB control transfer. That field is represented by a UsbControlRequestType object.

Value

Read/writeGets or sets the wValue field in the setup packet of the USB control transfer.

 

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

None supported

Namespace

Windows.Devices.Usb
Windows::Devices::Usb [C++]

Metadata

Windows.winmd

See also

Object

 

 

Show:
© 2014 Microsoft