Lucent Technologies USS-720 Computer Drive User Manual


 
Preliminary User Guide, Rev. 2 USS-720
February 1999 USB Device Driver
Lucent Technologies Inc. 7-27
13
4 I/O Control Codes (continued)
4.18 IOCTL_RESET_PIPE
IOCTL_RESET_PIPE clears the halted state of the specified pipe within the USB stack and resets the stalled state
of the endpoint on the device. Details regarding parameters and error codes follow.
4.18.1 Parameters
lpInBuffer—Points to a buffer that contains a single byte which specifies one of the following values:
nInBufferSize—Specifies the size (in bytes) of the buffer pointed to by lpInBuffer. For this operation, this value
should be 1.
lpOutBuffer—Points to an output buffer. Not used with this operation. Set to NULL.
nOutBufferSize—Specifies the size (in bytes) of the buffer pointed to by lpOutBuffer. Not used with this operation.
Set to zero.
lpBytesReturned—Points to a DWORD that receives the actual size (in bytes) of the data stored into lpOutBuffer.
Not used with this operation.
4.18.2 Notes
None.
4.18.3 Error Codes
ERROR_INVALID_PIPE_INDEX—Specified pipe is invalid for this device instance or invalid for the current alter-
nate interface setting.
STATUS_INVALID_PARAMETER—nInBufferSize cannot be zero.
STATUS_INSUFFICIENT_RESOURCES—Not enough memory to allocate a request to reset the pipe on this
device instance.
Value Description
BULK_OUT_PIPE Bulk Out pipe.
BULK_IN_PIPE Bulk In pipe.
INTERRUPT_PIPE Interrupt pipe