Intermec 6200 Reference Guide

Page of 410
SECTION 2
Supporting DOS Applications
2-28    PEN*KEY
R
 6200/6300 Hand-Held Computer Programmer’s Reference Guide
printf(“Can’t open modem\n”);
exit(255);
}
// get file handle of driver
hndl = _fileno(modem);
// do the IOCTL_IN calls
GetDriverParms();
GetMfgId();
GetProdInfo();
fclose(modem);
// close driver to conserve power
}
Device Driver Errors
The following errors are returned to DOS applications:
0x0100 Command OK.
0x8102 Device not ready.  Indicates card not in slot.
0x8103 Unknown DOS command.
0x810c General failure; All other errors and power too low to run device.
Interrupts Supported by NGENMOD.SYS
The 4000 Series interrupts supported by NGENMOD.SYS are identified by the
symbolic notation, NGENMOD.
INT 14h
INT 14h interfaces manage modem power or get error codes dealing with the
modem powerĆon sequence.  The supported INT 14h functions are intercepted
when DX+1 represents the COM port specified on the modem driver line.
The list of INT 14 functions supported by the NGENMOD device driver is as
follows:
"
Initialize Communications Port
AH=00h
"
Extended Initialize
AH=04h
"
NOTE:
These two functions apply only to modems:
"
Get Extended Error
AH=FEh
"
Port Power Off/On
AH=FFh
INT 15h
APM interfaces manage modem power.  The list of INT 15 functions supported
by the NGENMOD device driver is as follows:
"
Set Power State AX=5307
"
Get Power State AX=530C
"
NOTE:
These interfaces are reserved solely for internal use and application use may affect applica-
tion portability.  Therefore, applications should not use them.
2. DOS 
Applications