Preliminary User Guide, Rev. 2

USS-720

February 1999

USB Device Driver

 

 

4 I/O Control Codes (continued)

4.16 IOCTL_ISSUE_USS720_COMMAND

IOCTL_ISSUE_USS720_COMMAND issues a specific command for the USS-720 device. Details regarding parameters and error codes follow.

4.16.1 Parameters

lpInBuffer—Points to an buffer that contains a single byte which specifies one of the following USS-720 commands:

Command

Description

 

 

CMD_AUTOECP_ON

Turn Auto Mode on.

 

 

CMD_AUTOECP_OFF

Turn Auto Mode off.

 

 

CMD_COMPRESS_ON

Turn ECP RLE compression on.

 

 

CMD_COMPRESS_OFF

Turn ECP RLE compression off.

 

 

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

Returns TRUE if successful; FALSE otherwise.

4.16.3 Error Codes

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

STATUS_INSUFFICIENT_RESOURCES—Not enough memory to perform the request on this device instance.

Lucent Technologies Inc.

7-25

Page 83
Image 83
Lucent Technologies USS-720 manual IOCTLISSUEUSS720COMMAND, Command Description