libusb_fill_control_setup

Helper function to populate the setup packet (first 8 bytes of the data buffer) for a control transfer. The wIndex, wValue and wLength values should be given in host-endian byte order.

\param buffer buffer to output the setup packet into This pointer must be aligned to at least 2 bytes boundary. \param bmRequestType see the \ref libusb_control_setup::bmRequestType "bmRequestType" field of \ref libusb_control_setup \param bRequest see the \ref libusb_control_setup::bRequest "bRequest" field of \ref libusb_control_setup \param wValue see the \ref libusb_control_setup::wValue "wValue" field of \ref libusb_control_setup \param wIndex see the \ref libusb_control_setup::wIndex "wIndex" field of \ref libusb_control_setup \param wLength see the \ref libusb_control_setup::wLength "wLength" field of \ref libusb_control_setup

extern (C)
void
libusb_fill_control_setup
(
char* buffer
,,
ubyte bRequest
,
ushort wValue
,
ushort wIndex
,
ushort wLength
)

Meta