usblib_ctrl_msg

usblib_ctrl_msg — Sends an USB standard contrl message

Synopsis

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);

Arguments

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

Description

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.

See Also

usb_request_start