The text of a manual · part 2 of 40
2D JANUS PSK for C/C++ Reference Manual, pages 11 to 20
Pages 11 to 20 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 11
Contents jboot.cpp B-24 keybuff.cpp B-25 keyclick.cpp B-27 keystat.cpp B-29 numpad.cpp B-31 open.cpp B-33 phterm.cpp B-34 pl220ver.cpp B-40 vp_cur.cpp B-41
I
Index xi
Page 12
blank
Page 13
Before You Begin
Before You Begin This section introduces you to standard warranty provisions, safety precautions, warnings and cautions, document formatting conventions, and sources of additional product information.
Warranty Information To receive a copy of the standard warranty provision for this product, contact your local Intermec sales organization. In the U.S. call (800) 755-5505, and in Canada call (800) 688-7043. Otherwise, refer to the Worldwide Sales & Service list shipped with this manual for the address and telephone number of your Intermec sales organization.
Cautions The cautions in this manual use the following format.
CAUTION
Caution A caution alerts you to an operating procedure, practice, condition, or statement that must be strictly observed to prevent equipment damage or destruction, or corruption or loss of data. Conseil Une précaution vous alerte d’une procédure de fonctionnement, d’une méthode, d’un état ou d’un rapport qui doit être strictement respecté pour empêcher l’endommagement ou la destruction de l’équipement, ou l’altération ou la perte de données.
xiii
Page 14
2D JANUS PSK for C/C++ Reference Manual
About This Manual This manual is part of the JANUS Programmer’s Software Kit manual set. It describes the special features and methods needed for programming the JANUS family of PC-compatible readers. If you plan to write programs in C or C++, the information in this manual is very valuable. If you plan to write programs using Interactive Reader Language (IRL), refer to the IRL Programming Reference Manual, Part No. 048609, and your JANUS user’s manual for programming guidelines.
Organization The 2D JANUS PSK for C/C++ Reference Manual is divided into five chapters and two appendixes as described below:
xiv
Chapter
What You Will Find
1
Getting Started This chapter describes the capabilities of and programming methods for the JANUS readers. It also explains how to install the Programmer’s Software Kit Language Libraries disk that is provided with this manual.
2
C Language Support This chapter describes how to write C applications using the Programmer’s Software Kit (PSK) library functions.
3
Software Interrupts This chapter explains how to use software interrupts in your programs.
4
Advanced Programming This chapter explains the various reader input modes and how to use the power management software functions.
5
Using the PSK With DCM This chapter explains how to program the reader to access a remote database connected through Intermec DCM software.
Page 15
Before You Begin
Chapter
What You Will Find
Appendix A Status Codes This appendix lists status codes that are returned by the PSK functions. Appendix B Sample Interrupt Programs This appendix lists C language programs that demonstrate how to use software interrupts.
Terms and Conventions • A reader is the JANUS 2010, 2020, or 2050 PC-compatible bar code reader. • Reader services are the functional abilities that distinguish the JANUS readers from a normal PC. For example, the reader’s ability to decode bar code data as if it came from a PC keyboard is a typical reader service. • Software interrupts are the synchronous triggering of interrupts used for application program interfaces. • Library functions are the Intermec-specific functions provided in the language libraries you use to invoke various reader services. • PSK means the Programmer’s Software Kit and refers to the language libraries and the associated manuals. • The Programmer’s Software Kit Language Libraries is the disk shipped with this manual. It contains sample programs and library functions for interfacing with the reader. • The keypad is the custom JANUS keyboard. Throughout this manual, specific references to the JANUS keyboard use the term keypad. • The keyboard buffer is the machine-level buffer that stores key presses and scanned labels. Throughout this manual, specific references to this buffer and its status flags use the term keyboard.
xv
Page 16
2D JANUS PSK for C/C++ Reference Manual
Keypad Input • Keys that you press on the keypad are emphasized in bold. For example, “press Enter” means you press the key labeled “Enter” on the reader keypad. • All key names use first-letter capitalization. For example: Ctrl = Control key Enter = Enter key F3 = F3 key • When you are required to press and release a series of keys in order, the keys are listed in order with no connectors. For example, to enter the uppercase character A, press Shift A. To enter this character, you press and release the Shift key, and then press the key marked A. • When you are required to press more than one key at the same time, the keys are connected by a dash in the text. For example, press Ctrl-Alt-Del to perform a warm boot on a standard PC. When the keys are connected by a dash, it is important that you press and hold the keys in the order they are listed in the text.
Commands • DOS commands are printed in Courier, exactly as you must type them. For example: COPY INTERMEC.* E:\ • Code examples are printed in 8-point Courier. For example: if(step != 0) level = step; if(level >= 31) level = 0;
// use step value if provided // keep level within bounds
Other Conventions • Italic type identifies a syntax parameter where it is defined in text. Italic type is also used to indicate references to other manuals and to indicate important terminology. • Hexadecimal numbers in text are followed by an uppercase H. For example, 03 hex is shown as 03H. • Hexadecimal numbers in C language code segments begin with 0x. For example, AX_REG = 0x5300.
xvi
Page 17
Before You Begin
Other Intermec Manuals You may need additional information when working with the PSK in a data collection system. Please visit our Web site at www.intermec.com to download many of our current manuals in PDF format. To order printed versions of the Intermec manuals, contact your local Intermec representative or distributor.
xvii
Page 18
blank
Page 19
1 Getting Started
Page 20
blank