Export (0) Print
Expand All
URB
Expand Minimize

WINUSB_SETUP_PACKET structure

The WINUSB_SETUP_PACKET structure describes a USB setup packet.

Syntax


typedef struct _WINUSB_SETUP_PACKET {
  UCHAR  RequestType;
  UCHAR  Request;
  USHORT Value;
  USHORT Index;
  USHORT Length;
} WINUSB_SETUP_PACKET, *PWINUSB_SETUP_PACKET;

Members

RequestType

The request type. The values that are assigned to this member are defined in Table 9.2 of section 9.3 of the Universal Serial Bus (USB) specification (www.usb.org).

Request

The device request. The values that are assigned to this member are defined in Table 9.3 of section 9.4 of the Universal Serial Bus (USB) specification.

Value

The meaning of this member varies according to the request. For an explanation of this member, see the Universal Serial Bus (USB) specification.

Index

The meaning of this member varies according to the request. For an explanation of this member, see the Universal Serial Bus (USB) specification.

Length

The number of bytes to transfer.

Remarks

Callers of the WinUsb_ControlTransfer routine must pass in a WINUSB_SETUP_PACKET structure.

Requirements

Header

Winusb.h (include Winusbio.h)

See also

WinUsb_ControlTransfer
USB Structures

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft