libusb-1.0
Public Attributes | List of all members
libusb_control_setup Struct Reference

#include <libusb.h>

Public Attributes

uint8_t bmRequestType
 
uint8_t bRequest
 
uint16_t wValue
 
uint16_t wIndex
 
uint16_t wLength
 

Detailed Description

Setup packet for control transfers.

Member Data Documentation

◆ bmRequestType

uint8_t libusb_control_setup::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.

◆ bRequest

uint8_t libusb_control_setup::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.

◆ wIndex

uint16_t libusb_control_setup::wIndex

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

◆ wLength

uint16_t libusb_control_setup::wLength

Number of bytes to transfer

◆ wValue

uint16_t libusb_control_setup::wValue

Value. Varies according to request


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