LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
libusb_control_setup Struct Reference

#include <libusb.h>

Data Fields

uint8_t bmRequestType
 
uint8_t bRequest
 
uint16_t wValue
 
uint16_t wIndex
 
uint16_t wLength
 

Detailed Description

Setup packet for control transfers.

Definition at line 512 of file libusb.h.

Field Documentation

uint8_t bmRequestType

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.

Definition at line 518 of file libusb.h.

uint8_t bRequest

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.

Definition at line 525 of file libusb.h.

uint16_t wIndex

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

Definition at line 532 of file libusb.h.

uint16_t wLength

Number of bytes to transfer

Definition at line 535 of file libusb.h.

uint16_t wValue

Value. Varies according to request

Definition at line 528 of file libusb.h.


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