libusb_control_setup Struct Reference
[Asynchronous device I/O]

Setup packet for control transfers. More...

#include <libusb.h>


Data Fields

uint8_t bmRequestType
 Request type.
uint8_t bRequest
 Request.
uint16_t wValue
 Value.
uint16_t wIndex
 Index.
uint16_t wLength
 Number of bytes to transfer.


Detailed Description

Setup packet for control transfers.


Field Documentation

Request type.

Bits 0:4 determine recipient, see libusb_request_recipient. Bits 5:6 determine type, see libusb_request_type. Bit 7 determines data transfer direction, see libusb_endpoint_direction.

Request.

If the type bits of bmRequestType are equal to LIBUSB_REQUEST_TYPE_STANDARD then this field refers to libusb_standard_request. For other cases, use of this field is application-specific.

Value.

Varies according to request

Index.

Varies according to request, typically used to pass an index or offset


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

Generated on Thu Oct 14 14:56:36 2010 for libusb by  doxygen 1.5.9