libusb_control_setup

* Setup packet for control transfers.

Members

Variables

bRequest
ubyte bRequest;

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

bmRequestType
ubyte bmRequestType;

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

wIndex
ushort wIndex;

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

wLength
ushort wLength;

Number of bytes to transfer

wValue
ushort wValue;

Value. Varies according to request

Meta