usblib_ctrl_msg — Sends an USB standard contrl message
extern waiting* usblib_ctrl_msg
(usb_pipe_t* pipe, usb_io_buffer* data, usb_io_buffer* msg, waiting* wait, int reqtype, int req, int val, int index);
ep endpoint of the control pipe |
data data buffer, or NULL for no data |
msg buffer to place message data into (not NULL) |
wait waiting mode to use |
reqtype data for request-type field |
req data for request field |
val data for the value field |
index data for the index feild |
Sends a USB control message The function sends a control message to the specified pipe, filling the msg buffer specified with the values, and calling usb_request_start to start the transaction.