libusb_control_setup is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

libusb_control_setup struct

Syntax

struct libusb_control_setup {     uint8_t  bmRequestType;     uint8_t  bRequest;     uint16_t wValue;     uint16_t wIndex;     uint16_t wLength; };

Fields

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 . Read more...

bRequest

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

wValue

Value. Varies according to request. Read more...

wIndex

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

wLength

Number of bytes to transfer. Read more...

References

LocationReferrerScopeText
libusb.h:1042
struct libusb_control_setup {
libusb.h:1717libusb_control_transfer_get_data()
libusb.h:1732libusb_control_transfer_get_setup()
static inline struct libusb_control_setup *libusb_control_transfer_get_setup(
libusb.h:1735libusb_control_transfer_get_setup()
return (struct libusb_control_setup *)(void *)transfer->buffer;
libusb.h:1765libusb_fill_control_setup()
struct libusb_control_setup *setup = (struct libusb_control_setup *)(void *)buffer;
libusb.h:1815libusb_fill_control_transfer()
struct libusb_control_setup *setup = (struct libusb_control_setup *)(void *)buffer;
libusb.h:1822libusb_fill_control_transfer()

Type Use

Variables of libusb_control_setup type
libusb_fill_control_setup()::setup
libusb_fill_control_transfer()::setup
all items filtered out
libusb_control_setup