Functionality And Usage - Intermec 6220 Technical Reference

Hide thumbs Also See for 6220:
Table of Contents

Advertisement

DOS Device Drivers

Functionality and Usage

struct ioargs {
far *unsigned char ioctl_cmd;
far *unsigned char ioctl_buf;
};
ONLINE = 2
STATUS = 3
GET DEVICE FEATURES = 4
SELFTEST = 5
RESET
GET CURRENT CONFIGURATION =7
XTENDED ERROR = 255
" NOTE:
Open and close the printer driver for each report transaction with the printer to take advan-
tage of the NPCP line-loss detection features. Applications should status (ioctl 3) the printer
after the last line of a report or a series of reports are sent to the printer to ensure that all
lines were printed successfully.
" NOTE:
The printer driver is multi-tasking. If the application needs to take full advantage of this fea-
ture, it must enable time slicing through the appropriate call to INT 15h (refer to the 4000API
documentation).
" NOTE:
If time-slicing is not activated, the last line buffered by the driver is not sent to the printer until
the device is closed or an ioctl status call to the printer is made. Perform an ioctl status call
before all closes to ensure the driver print buffer is sent to the printer successfully, since DOS
closes to character devices do not perform output flushes as part of the close operation. The
driver flushes the buffer upon a close, but no error is returned if the flush is unsuccessful.
2-10
6220 Hand-Held Computer Technical Reference
fopen()
= 6
SECTION 2
fprintf()

Advertisement

Table of Contents
loading

Table of Contents