hcdPipeResetToggle
Purpose
Resets data toggle flag to DATA0.
Syntax
#include <hcdi.h>
USBstatus hcdPipeResetToggle(pHCDI, hpipe)
PHCDI pHCDI;
USBhandle hpipe;
Parameter
Item | Description |
---|---|
pHCDI | Pointer to the HCDI structure. |
hpipe | Pipe handles returned by the hcdPipeConnect function. |
Description
This function is an HCD supplied function, called by the USBD to reset the data synchronization toggle bit to DATA0. The specified pipe handle specifies a halted bulk or interrupt pipe.
Execution Environment
This function can be called from the interrupt (HCD_OFFLEVEL priority or lower) or process environment. This function can also be called from the usbdPostIOB routine.
Return Values
Value | Description |
---|---|
USBD_SUCCESS | Success |
All others | Failure |