libusbK 
3.0
Library Documentation
© 2011-2021 Travis Lee Robinson. All rights reserved.
WINUSB_SETUP_PACKET Struct Reference

The WINUSB_SETUP_PACKET structure describes a USB setup packet. More...

#include <lusbk_shared.h>

Data Fields

UCHAR 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).
 
UCHAR 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.
 
USHORT Value
 The meaning of this member varies according to the request. For an explanation of this member, see the Universal Serial Bus (USB) specification.
 
USHORT Index
 The meaning of this member varies according to the request. For an explanation of this member, see the Universal Serial Bus (USB) specification.
 
USHORT Length
 The number of bytes to transfer. (not including the WINUSB_SETUP_PACKET itself)
 

Detailed Description

The WINUSB_SETUP_PACKET structure describes a USB setup packet.

It is often more convient to use this structure in combination with a KUSB_SETUP_PACKET. For example:

Examples:
xfer-control.c.

The documentation for this struct was generated from the following file: