5 ioctl_1284_ terminate, 1 parameters, 2 notes – Lucent Technologies USS-720 User Manual

Page 72: 3 error codes, 4 i/o control codes

Advertising
background image

7-14

Lucent Technologies Inc.

USS-720

Preliminary User Guide, Rev. 2

USB Device Driver

February 1999

13

4 I/O Control Codes

(continued)

4.5 IOCTL_1284_ TERMINATE

IOCTL_1284_ TERMINATE performs a standard 1284 termination sequence. Details regarding parameters and
error codes follow.

4.5.1 Parameters

lpInBuffer—Points to an input buffer. Not used with this operation. Set to NULL.

nInBufferSize—Specifies the size (in bytes) of the buffer pointed to by lpInBuffer. Not used with this operation. Set
to zero.

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.5.2 Notes

Requires that the register-based mode be successfully set to ECP_REGISTER_MODE or
ECP_RLE_REGISTER_MODE (see

USS-720 USB-to-IEEE 1284 Bridge Preliminary Data Sheet, “Register-Based

Operation” and Section 4.4, IOCTL_1284_SET_MODE, of this document).

4.5.3 Error Codes

ERROR_INVALID_ALTERNATESETTING—This command is only supported in ALT_INTERFACE_2 (see
Section 4.9).

STATUS_IO_DEVICE_ERROR—Standard termination failed.

Advertising