Issue a control transfer (request) on a pipe.
static int32_t usb_h_control_xfer( struct usb_h_pipe * pipe, uint8_t * setup, uint8_t * data, uint16_t length, int16_t timeout )
Type: struct usb_h_pipe *
The pipe
Type: uint8_t *
Pointer to the setup packet
Type: uint8_t *
Pointer to the data buffer
Type: uint16_t
The data length
Type: int16_t
Timeout for whole request in ms
Type: int32_t
Operation result status
Pipe is not allocated
Pipe is busy transferring
Argument error
Pipe is not control pipe
Operation done successfully