Download Ithaca 9000 Programmer`s Guide
Transcript
,, 6 ' 2 8 687 2 8 ) The USB interface conforms to USB Printer class standard published by the USB standards organization Version 1.1 dated January 2000. See: www.usb.org/developers/devclass_docs/usbprint11.pdf The Model 9000 Printer will appear to the host system as a USB class 7 device. There are 3 class specific requests that may be made to the printer after enumeration. Label bmRequest Type GET_DEVICE_ID bRequest wValue 0 Config Index 10100001B Interface & Alternate Setting 10100001B 1 Zero Interface 00100001B 2 Zero Interface Table 38 USB Class 7 Control pipe commands. GET_PORT_STATUS SOFT_RESET 5 F 5> wIndex 5F @" * wLength Data Length Maximum 1284 Device ID String BYTE [None] 1 Zero G A This class-specific request returns a device ID string that is compatible with IEEE 1284. See IEEE 1284 for syntax and formatting information. The wValue field is used to specify a zero-based configuration index. The high-byte of the wIndex field is used to specify the zero-based interface index. The low-byte of the wIndex field is used to specify the zerobased alternate setting. The device ID string is returned in the following format: Offset 0...n-1 Type Data 5 F - F Description IEEE 1284 device ID string (including length in the first two bytes in big endian format). ' 2 @" * G (A This class-specific request returns the printer’s current status, in a format which is compatible with the status register of a standard PC parallel port. The following table defines the data returned. Bit(s) 7 .. 6 5 4 3 2 .. 0 Field Reserved Paper Empty Select Not Error Reserved 312 Description Reserved for future use; device shall return these bits reset to zero. 1 = Paper Empty, 0 = Paper Not Empty 1 = Selected, 0 = Not Selected 1 = No Error, 0 = Error Reserved for future use; device shall return these bits reset to zero.