usblib_ctrl_msg
Prev | 3.10. ctrlmsg.h | Next

## Name

usblib_ctrl_msg — Sends an USB standard contrl message

## Synopsis

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

## 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

Prev | Up | Next
usb_decode_result | Home | usblib_select_if