hcdPipeAddIOB
Purpose
Assigns an extra buffer resources to an already connected pipe.
Syntax
#include <hcdi.h>
USBstatus hcdPIpeAddIOB(pHCDI, hpipe,number)
PHCDI pHCDI;
USBhandle hpipe;
int number;
Parameter
Item | Description |
---|---|
pHCDI | Pointer to the HCDI structure. |
hpipe | Pipe handles returned by hcdPipeConnect function. |
number | Number of extra buffers that are added. |
Description
This function is an HCD supplied function, which is called by the USBD when increases the maximum number of outstanding I/O buffers in addition to what was specified through the PIPEDESCRIPTOR structure when the USBD is connected to the pipe. The HCD must use this call to allocate any additional resources that are required to handle the new allocation.
Execution Environment
This function can be called from the process environment only.
Return Values
Value | Description |
---|---|
USBD_SUCCESS | Success |
All others | Failure |