Allocate a pipe for the USB host communication.
static struct usb_h_pipe* usb_h_pipe_allocate( struct usb_h_desc * drv, uint8_t dev, uint8_t ep, uint16_t max_pkt_size, uint8_t attr, uint8_t interval, uint8_t speed, bool minimum_rsc )
Type: struct usb_h_desc *
The USB HCD driver
Type: uint8_t
The device address
Type: uint8_t
The endpoint address
Type: uint16_t
The endpoint maximum packet size
Type: uint8_t
The endpoint attribute
Type: uint8_t
The endpoint interval (bInterval of USB Endpoint Descriptor)
Type: uint8_t
The transfer speed of the endpoint
Type: bool
Minimum resource usage,
Type: struct usb_h_pipe *
Pointer to the allocated pipe structure instance
allocation fail