Modify parameters of an allocated control pipe.
static int32_t usb_h_pipe_set_control_param( struct usb_h_pipe * pipe, uint8_t dev, uint8_t ep, uint16_t max_pkt_size, uint8_t speed )
Type: struct usb_h_pipe *
The pipe
Type: uint8_t
The device address
Type: uint8_t
The endpoint address
Type: uint16_t
The maximum packet size, must be equal or less than the allocated size
Type: uint8_t
The working speed
Type: int32_t
Operation result status
The pipe is not allocated
The pipe is busy transferring
Argument error
The pipe is not control pipe
The operation is done successfully