The text of a manual · part 20 of 40
2D JANUS PSK for C/C++ Reference Manual, pages 191 to 200
Pages 191 to 200 of 400
The original document is the PDF (793 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec J2020, Intermec J2010 and Intermec J2050
Page 191
im_viewport_to_cursor
2 im_viewport_to_cursor Purpose:
This function centers the viewport around the cursor.
Syntax:
#include <im20lib.h> void im_viewport_to_cursor(void);
IN Parameters:
None.
OUT Parameters:
None.
Return Value:
None.
Notes:
When the cursor is not displayed, use this function to move the viewport to the cursor. This function has no effect on the JANUS 2050.
See Also:
im_cursor_to_viewport, im_viewport_end, im_viewport_home, im_viewport_move, im_viewport_page_down
Example See example for im_viewport_setxy.
2-165
Page 192
blank
Page 193
3 Software Interrupts
Page 194
blank
Page 195
Software Interrupts
3
This chapter explains how to use software interrupts in your programs.
Using the Software Interrupts If PSK library functions are not available for your programming language, you can use software interrupts to invoke the special functions of the reader. These special functions are called reader services. Reader services include several functions, ranging in complexity from controlling the beeper to controlling the internal power management software. The reader supports other standard PC/AT interrupts that control the DOS and BIOS functions of a normal PC. It is beyond the scope of this manual to list all the normal PC interrupts. This chapter deals only with the interrupts specific to the JANUS family of PC-compatible readers. Use the following tables as a quick reference point for finding the interrupts you need. Interrupt Range
Usage
00H – 1FH
Internal hardware interrupts
20H – 3FH
DOS interrupts
3FH and above
Intermec-specific interrupts
3-3
Page 196
2D JANUS PSK for C/C++ Reference Manual
Vector Interrupts Vector
Standard PC
Reader
0
Divide by Zero
Divide by Zero
1
Single Step
Single Step
2
Nonmaskable Interrupt
Nonmaskable Interrupt
3
Breakpoint
Breakpoint
4
Overflow
Overflow
5
Print Screen or Bounds Check
Print Screen or Bounds Check
6
Invalid Opcode
Invalid Opcode
7
Coprocessor Not Available
Coprocessor Not Available
8
System Timer (IRQ 0) or Double Fault
System Timer (IRQ 0) or Double Fault
9
Keyboard (IRQ 1) or Coprocessor
Keyboard (IRQ 1) or Coprocessor Segment Overflow
A
Reserved
Slave PIC (IRQ 2) or Invalid TSS
B
COM
COM 2 or 4 (IRQ 3) or Segment Not Present COM 2 is available only on the 2010 or 2050
C
COM
COM 1 or 3 (IRQ 4) or Stack Exception
D
Hard Disk or LPT
Intermec Count Gathering (IRQ 5) or General Protection
E
Floppy Disk
Reserved (IRQ 6) or Page Fault
F
LPT
Reserved (IRQ 7)
10–1F
BIOS
BIOS
20–3F
DOS
DOS
40–43
BIOS
Pointers to BIOS Table
44–45
BIOS
Reserved
46
BIOS
Pointers to BIOS Table
47–49
Reserved
4A
User Alarm (RTC)
4B–59
Reserved
5A–5B
NET
Cluster Adapter
5C
NET
Net BIOS
5D–5F
3-4
Power Management (IPM)
Page 197
Software Interrupts
3
Vector Interrupts (continued) Vector
Standard PC
60–66 67
Reader User Reserved
EMS Driver
EMS Driver
68–6F
VGA
Reserved
70
IRQ 8
RTC (IRQ 8)
71
IRQ 9
Reserved (IRQ 9)
72
IRQ 10
Keypad Scanner (IRQ 10)
73
IRQ 11
Reserved (IRQ 11)
74
IRQ 12
Reserved (IRQ 12)
75
IRQ 13
Reserved (IRQ 13)
76
IRQ 14
Reserved (IRQ 14)
77
IRQ 15
Power Management (IRQ 15)
78
System Configuration and Control Services
79
Display Services
7A
Bootstrap Services
7B
Reserved
7C
Beep Utility
7D
Reader Services
7E
Special Keypad Services
7F
Bootstrap Hook
80–F0
BASIC
BASIC
F1–FF
User Reserved
User Reserved
3-5
Page 198
2D JANUS PSK for C/C++ Reference Manual
Programming With Software Interrupts To invoke the Intermec utilities, you must have a programming language that supports interrupt-level routines. Most programming languages include this type of functionality, but the support methods vary from language to language. For example, Microsoft C uses the INT86 and INT86X functions to execute software interrupts, and Microsoft QuickBasic uses the INTERRUPT and INTERRUPTX calls. For more information about interrupt functions, see the documentation for your compiler and the programming examples in Appendix B, “Sample Interrupt Programs.”
Specific Software Interrupt Definitions The following pages list software interrupts that are unique to the JANUS readers, along with notes on usage and examples of how each interrupt is generated in a program. Note: Do not run programs that use PSK library functions on your PC. If you attempt to run these programs, you will receive an error message and the program will not run.
CAUTION
Caution Do not run programs that use Intermec-specific interrupt extensions on your PC. If you attempt to run these programs, they will cause your PC to lock up and possibly corrupt your system BIOS. Consiel N’exécutez pas de programmes utilisant des extensions d’interruption spécifiques à Intermec sur votre PC. Si vous tentez de les exécuter sans le Simulator, ces programmes risquent de verrouiller votre PC et d’altérer le BIOS de votre système.
3-6
Page 199
INT 14H, Function 17H
3
INT 14H, Function 17H Receive Next Buffer Purpose:
This function requests the protocol handler to receive the next data buffer from the communications port. Use this function to receive subsequent transmissions after INT 14H, function 60H, has established the link to the protocol handle.
Call With:
AH =
17H
DX =
Port ID: 00H COM1 01H COM2, scanner port (2010 and 2050) 03H COM4
Return Value:
AX = nnnn
See Also:
PHTERM.CPP in Appendix B, “Sample Interrupt Programs.”
Receive next buffer
One of the standard status codes defined in Appendix A, “Status Codes.”
3-7
Page 200
INT 14H, Function 50H
INT 14H, Function 50H Transmit Buffer Purpose:
This function transmits the contents of a data buffer using the selected communications port. You must install a protocol handler to use this interrupt.
Call With:
AH =
50H
DX =
Port ID: 00H COM1 01H COM2, scanner port (2010 and 2050) 03H COM4
ES:BX =
Transmit buffer
Pointer to the data buffer structure defined in IM20LIB.H.
Return Value:
AX =
See Also:
PHTERM.CPP in Appendix B, “Sample Interrupt Programs.”
3-8 nnnn
One of the standard status codes defined in Appendix A, “Status Codes.”