The text of a manual · part 1 of 42
JANUS PSK for C/C++ Reference Manual, Version 2.1, pages 1 to 10
Pages 1 to 10 of 414
The original document is the PDF (690 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 1
Reference Manual
JANUS PSK for C/C++ Version 2.1 062133-003
Page 2
Intermec Corporation 6001 36th Avenue West P.O. Box 4280 Everett, WA 98203-9280 U.S. technical and service support: 1-800-755-5505 U.S. media supplies ordering information: 1-800-227-9947 Canadian technical and service support: 1-800-688-7043 Canadian media supplies ordering information: 1-800-268-6936 Outside U.S. and Canada:
Contact your local Intermec service supplier.
The information contained herein is proprietary and is provided solely for the purpose of allowing customers to operate and/or service Intermec manufactured equipment and is not to be released, reproduced, or used for any other purpose without written permission of Intermec. Information and specifications in this manual are subject to change without notice. 1996 by Intermec Corporation All Rights Reserved The word Intermec, the Intermec logo, JANUS, IRL, Duratherm, Virtual Wedge, and CrossBar are trademarks of Intermec Corporation. Throughout this manual, trademarked names may be used. Rather than put a trademark () symbol in every occurrence of a trademarked name, we state that we are using the names only in an editorial fashion, and to the benefit of the trademark owner, with no intention of infringement.
Page 3
Manual Change Record This page records the changes to this manual. Version
Date
Description of Change
058427-001
6/93
Original publication as part number 058427-001.
062133-001
9/94
Updated the manual to support the Programmer’s Software Kit version 2.0. The new information includes: • Part number changed from 058427 to 062133. • Enhanced parameter definitions. • Extended discussion on power management. • Added interrupt definitions. • New commands for C and BASIC. • New and revised program examples.
002
8/95
Renumbered chapters and made other changes according to current Technical Publications document standards. Created separate books for C/C++ and Basic languages. Updated manual to support the Programmer’s Software Kit version 2.1. The new information includes: • Functions to support JANUS J2050 VMU. • Functions for DCM database support for C languages. • Preamble and postamble functions. Other new topics include: • Using the status code macros. • Using JANUS Application Simulator. • Complete list of status codes with their related messages, sorted by code number. Continued iii
Page 4
Manual Change Record (continued) Version
Date
Description of Change Deleted five functions from the manual. They are available in the PSK library, but Intermec does not recommend using them: im_flush_expanded_keyboard im_get_expanded_keyboard im_set_expanded_keyboard im_kb_insert_keycodes im_kb_insert_string
003 iv
3/96
Updated the manual as follows: •
Removed a sample software interrupt program from Appendix B.
•
Edited the syntax descriptions in Chapter 2 to use IM_STATUS instead of IM_USHORT, where appropriate.
•
Added two binary file transfer (BFT) functions to Chapter 2: IM_GET_REBOOT_FLAG and IM_READY_FOR_REBOOT.
•
Added a note to IM_SET_DISPLAY_MODE in Chapter 2 warning against the use of direct video addressing and double width display sizes in JANUS applications.
•
Corrected simple text errors throughout the manual.
Page 5
Contents
Contents Before You Begin xv Warranty Information xv Cautions xv About This Manual xvi Other Intermec Manuals xix
1
Getting Started What Your JANUS Reader Can Do 1-3 Virtual Wedge 1-4 Reader Services 1-5 Function Libraries 1-6 Software Interrupts 1-7 Installing the Programmer’s Software Kit 1-8
2
C Language Support Building Your Program Using Borland C/C++ 2-3 Building Your Program Using Microsoft C/C++ 2-4 Debugging With JANUS Application Simulator 2-5 Debugging a Program With Turbo Debugger 2-5 Status Code Macros 2-7 Runtime Requirements 2-8 Protocol Handlers 2-8 Reader Wedge 2-9 Specific Functions With Runtime Requirements 2-10 v
Page 6
JANUS PSK for C/C++ Reference Manual
Certified C Language Functions 2-12 Intermec C Library Functions 2-14 C Library Functions Listed by Category 2-15 im_appl_break_status 2-17 im_backlight_off 2-19 im_backlight_on 2-20 im_backlight_toggle 2-21 im_cancel_rx_buffer 2-22 im_cancel_tx_buffer 2-23 im_clear_abort_callback 2-24 im_command 2-25 im_cursor_to_viewport 2-27 im_decrease_contrast 2-28 im_get_config_info 2-30 im_get_contrast 2-32 im_get_control_key 2-34 im_get_display_mode 2-36 im_get_display_type 2-38 im_get_follow_cursor 2-39 im_get_input_mode 2-41 im_get_keyclick 2-43 im_get_label_symbology 2-45 im_get_length 2-47 im_get_postamble 2-48 im_get_preamble 2-49 im_get_reboot_flag 2-50 im_get_viewport_lock 2-53 im_get_warm_boot 2-55 im_increase_contrast 2-57 im_input_status 2-59 im_irl_a 2-61 im_irl_k 2-65 im_irl_n 2-68 im_irl_v 2-71 im_irl_y 2-76 vi
Page 7
Contents
IM_ISERROR 2-81 IM_ISGOOD 2-82 IM_ISSUCCESS 2-83 IM_ISWARN 2-84 im_link_comm 2-85 im_message 2-87 im_number_pad_off 2-88 im_number_pad_on 2-89 im_parse_host_response 2-91 im_power_status 2-93 im_protocol_extended_status 2-96 im_ready_for_reboot 2-99 im_receive_buffer 2-100 im_receive_buffer_no_wait 2-103 im_receive_buffer_noprot 2-106 im_receive_byte 2-109 im_receive_input 2-111 im_rs_installed 2-115 im_rx_check_status 2-116 im_serial_protocol_control 2-117 im_set_abort_callback 2-120 im_set_contrast 2-124 im_set_control_key 2-126 im_set_display_mode 2-127 im_set_follow_cursor 2-130 im_set_input_mode 2-131 im_set_keyclick 2-133 im_set_viewport_lock 2-134 im_set_warm_boot 2-135 im_setup_trx 2-136 im_sound 2-139 im_standard_trx 2-141 im_standby_wait 2-144 im_transmit_buffer 2-145 im_transmit_buffer_no_wait 2-147 im_transmit_buffer_noprot 2-150 vii
Page 8
JANUS PSK for C/C++ Reference Manual im_transmit_byte 2-153 im_unlink_comm 2-155 im_viewport_end 2-156 im_viewport_getxy 2-157 im_viewport_home 2-158 im_viewport_move 2-159 im_viewport_page_down 2-161 im_viewport_page_up 2-162 im_viewport_setxy 2-163 im_viewport_to_cursor 2-167
3
Software Interrupts Using the Software Interrupts 3-3 Programming With Software Interrupts 3-6 Specific Software Interrupt Definitions 3-6 INT 14H, Function 17H 3-7 Receive Next Buffer 3-7 INT 14H, Function 50H 3-8 Transmit Buffer 3-8 INT 14H, Function 60H 3-9 Receive Buffer 3-9 INT 14H, Function 71H 3-10 Protocol Extended Status 3-10 INT 14H, Function 84H 3-11 Cancel RX Buffer 3-11 INT 14H, Function 85H 3-12 Cancel TX Buffer 3-12 INT 16H, Function B4H 3-13 Enable/Disable Expanded Keyboard Buffer 3-13 INT 16H, Function B5H 3-14 Insert String Into Expanded Keyboard Buffer 3-14 INT 16H, Function B6H 3-15 Flush Expanded Keyboard Buffer 3-15 viii
Page 9
Contents
INT 16H, Function B7H 3-16 Enable/Disable Ctrl-Alt-Del Warm Boot 3-16 INT 78H, Function 06H 3-17 Restore UART Configurations 3-17 INT 79H, Function 00H 3-21 LCD Display Contrast 3-21 INT 79H, Function 01H 3-22 LCD Display Backlight 3-22 INT 79H, Function 02H 3-24 LCD Display Size Mode Manager 3-24 INT 79H, Function 03H 3-26 Viewport Move 3-26 INT 7CH, Function 64H 3-29 Generate Sound 3-29 INT 7DH, Function 08H 3-30 Reader Wedge Control 3-30 INT 7EH, Function 01H 3-35 Get Application Break Status 3-35 INT 7EH, Function 03H 3-37 Get Keypad Scanner Version 3-37 INT 7EH, Function 04H 3-38 Get Keypad Map Table ID and Status 3-38 INT 7EH, Function 05H 3-39 Enable/Disable KSCPU Keyclick 3-39 INT 7EH, Function 06H 3-40 Enable/Disable Numeric Keypad 3-40 INT 7EH, Function 08H 3-42 Enable/Disable Ctrl Key 3-42 INT 7EH, Function 10H 3-43 Enable Viewport 3-43 INT 7EH, Function 11H 3-44 Disable Viewport 3-44 ix
Page 10
JANUS PSK for C/C++ Reference Manual
4
Advanced Programming Reader Input Modes 4-3 Wedge Mode 4-3 Programmer Mode 4-4 Desktop Mode 4-4 Differences in Input Modes 4-4 Receiving Serial Data 4-6 Reader Services Routines 4-6 Communications Routines 4-8 Transmitting Serial Data 4-9 Communications Port UART Modes 4-9 Display “Color” 4-10 Advanced Power Management 4-11 Power Management Software Layers 4-11 System BIOS Interface 4-12 Application Interface 4-12 The APM Power States 4-14 Ready 4-14 Standby 4-14 Suspend 4-15 Off 4-15 Power State Transitions 4-15 Power State Cooperation 4-16 IPM Interface Functionality 4-18 Normal Suspend 4-18 Normal Resume 4-18 Critical Suspend 4-19 Critical Resume 4-19 APM Interface Functionality 4-20 Special APM BIOS Calls 4-22 APM Installation Check 4-24 x