UsbSetupPacket UsbSetupPacket UsbSetupPacket UsbSetupPacket UsbSetupPacket Class

Definition

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.

public : sealed class UsbSetupPacket : IUsbSetupPacket
struct winrt::Windows::Devices::Usb::UsbSetupPacket : IUsbSetupPacket
public sealed class UsbSetupPacket : IUsbSetupPacket
Public NotInheritable Class UsbSetupPacket Implements IUsbSetupPacket
var usbSetupPacket = new usbSetupPacket();
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

UsbSetupPacket() UsbSetupPacket() UsbSetupPacket() UsbSetupPacket() UsbSetupPacket()

Creates a UsbSetupPacket object.

UsbSetupPacket(IBuffer) UsbSetupPacket(IBuffer) UsbSetupPacket(IBuffer) UsbSetupPacket(IBuffer) UsbSetupPacket(IBuffer)

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

Properties

Index Index Index Index Index

Gets or sets the wIndex field in the setup packet of the USB control transfer.

Length Length Length Length Length

Gets the length, in bytes, of the setup packet.

Request Request Request Request Request

Gets or sets the bRequest field in the setup packet of the USB control transfer.

RequestType RequestType RequestType RequestType RequestType

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

Value Value Value Value Value

Gets or sets the wValue field in the setup packet of the USB control transfer.