usblib_ctrl_msg — Sends an USB standard contrl message
extern usb_wait_t* usblib_ctrl_msg( | usb_pipe_t* pipe, | |
usb_buffer_t* data, | ||
usb_buffer_t* msg, | ||
usb_wait_t* 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 |