The text of a manual · part 40 of 40
2D JANUS PSK for C/C++ Reference Manual, pages 391 to 400
Pages 391 to 400 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 391
vp_cur.cpp
B vp_cur.cpp /* vp_cur.cpp .* .* This program demonstrates how to enable and disable the viewport follows cursor * function. * * Written: Sept. 23, 1993 * Last Modified: September 23, 1993 * Author: Ray Rogers * Everett, WA. .* Borland C++ 3.1, small model */ #include "string.h" #include "dos.h" #include "stdio.h" #include "im20lib.h" #define KEY_Int 0x7e #define OFF 0x11 #define ON 0x10
//vp does not follow cursor //vp follows cursor
//Prototypes IM_UINT VP_Set(IM_UINT); void main(int argc, char *argv[]) { if(argc > 1) { if(strcmp(strupr(argv[1], "OFF") == 0) VP_Set(OFF); else VP_Set(ON); //default is vp follows } else printf("\n\rUsage: vp_cur[on | off]\n\r"); } //enable/disable viewport follows cursor IM_UINT VP_Set(IM_UINT func) { _AH = func; geninterrupt(KETY_Int); return(_AX); }
B-41
Page 392
blank
Page 393
I Index
Page 394
blank
Page 395
Index
A About This Manual, xiv Advanced Power Management, 4-11 APM BIOS calls, 4-22 described, 4-11 interface, 4-20
B Backlight im_backlight_off, 2-18 im_backlight_on, 2-19 im_backlight_toggle, 2-20 Battery, im_power_status, 2-91 BFT im_get_reboot_flag, 2-48 im_ready_for_reboot, 2-97 BIOS calls APM, 4-22 APM Installation Check, 4-24 CPU Busy, 4-25 CPU Idle, 4-26 Enable/Disable Power Management, 4-27 Get PM Event, 4-28 Get Power Status, 4-30 Interface Connect, 4-31 Interface Disconnect, 4-32 Protected Mode 16-Bit Interface Connect, 4-33 Protected Mode 32-Bit Interface Connect, 4-35 Restore System BIOS Power-On Defaults, 4-37 Set Power State, 4-38 Suspend System, 4-39 System Standby, 4-40 Borland C/C++ build procedure, 2-3 compiler, 2-3 Break, im_appl_break_status, 2-16 Build procedure Borland C/C++, 2-3 Borland C/C++ sample, 2-3
I
Build procedure (continued) Microsoft C/C++, 2-4 Microsoft C/C++ sample, 2-4
C C language certified functions, 2-11 C language functions, 2-13 im_appl_break_status, 2-16 im_backlight_off, 2-18 im_backlight_on, 2-19 im_backlight_toggle, 2-20 im_cancel_rx_buffer, 2-21 im_cancel_tx_buffer, 2-22 im_clear_abort_callback, 2-23 im_command, 2-24 im_cursor_to_viewport, 2-26 im_decrease_contrast, 2-27 im_get_config_info, 2-29 im_get_contrast, 2-31 im_get_control_key, 2-32 im_get_display_mode, 2-34 im_get_display_type, 2-36 im_get_follow_cursor, 2-37 im_get_input_mode, 2-39 im_get_keyclick, 2-41 im_get_label_symbology, 2-43 im_get_length, 2-45 im_get_postamble, 2-46 im_get_preamble, 2-47 im_get_reboot_flag, 2-48 im_get_viewport_lock, 2-51 im_get_warm_boot, 2-53 im_increase_contrast, 2-55 im_input_status, 2-57 im_irl_a, 2-59 im_irl_k, 2-63 im_irl_n, 2-66 im_irl_v, 2-69 im_irl_y, 2-74 IM_ISERROR, 2-79 IM_ISGOOD, 2-80 IM_ISSUCCESS, 2-81 IM_ISWARN, 2-82
I-3
Page 396
2D JANUS PSK for C/C++ Reference Manual
C language functions (continued) im_link_comm, 2-83 im_number_pad_off, 2-86 im_number_pad_on, 2-87 im_parse_host_response, 2-89 im_power_status, 2-91 im_protocol_extended_status, 2-94 im_ready_for_reboot, 2-97 im_receive_buffer, 2-98 im_receive_buffer_no_wait, 2-101 im_receive_buffer_noprot, 2-104 im_receive_byte, 2-107 im_receive_input, 2-109 im_rs_installed, 2-113 im_rx_check_status, 2-114 im_serial_protocol_control, 2-115 im_set_abort_callback, 2-118 im_set_contrast, 2-122 im_set_control_key, 2-124 im_set_display_mode, 2-125 im_set_follow_cursor, 2-128 im_set_input_mode, 2-129 im_set_keyclick, 2-131 im_set_viewport_lock, 2-132 im_set_warm_boot, 2-133 im_setup_trx, 2-134 im_sound, 2-137 im_standard_trx, 2-139 im_standby_wait, 2-142 im_transmit_buffer, 2-143 im_transmit_buffer_no_wait, 2-145 im_transmit_buffer_noprot, 2-148 im_transmit_byte, 2-151 im_unlink_comm, 2-153 im_viewport_end, 2-154 im_viewport_getxy, 2-155 im_viewport_home, 2-156 im_viewport_move, 2-157 im_viewport_page_down, 2-159 im_viewport_page_up, 2-160 im_viewport_setxy, 2-161 im_viewport_to_cursor, 2-165 C macros, 2-6 Caution, 1-5, 1-7, 2-13, 3-6, B-3 Certified functions, 2-11
I-4
Color, 4-10 Command, im_command, 2-24 Communications receiving serial data, 4-6 transmitting serial data, 4-9 UART modes, 4-9 using INT 14H extensions, 4-8 Compiler Borland C/C++, 2-3 Microsoft C/C++, 2-4 Configuration, im_get_config_info, 2-29 Contrast im_decrease_contrast, 2-27 im_get_contrast, 2-31 im_increase_contrast, 2-55 im_set_contrast, 2-122 Control key im_get_control_key, 2-32 im_set_control_key, 2-124 Conventions, manual, xv Cursor im_cursor_to_viewport, 2-26 im_get_follow_cursor, 2-37 im_get_viewport_lock, 2-51 im_set_follow_cursor, 2-128 im_set_viewport_lock, 2-132 im_viewport_to_cursor, 2-165
D Database accessing through DCM, 5-3 defining a transaction, 5-4 delete, 5-6 im_parse_host_response, 2-89 im_setup_trx, 2-134 im_standard_trx, 2-139 read, 5-7 sample program, 5-17 setting up a reader to database transaction, 5-5 standby file, 5-15 status codes, 5-7 by calling parameter, 5-9 in numerical order, 5-12 symbolic return codes, 5-14
Page 397
Index
Database (continued) update, 5-6 write, 5-6 DCM, 5-3, 5-6, 5-7, 5-14 configuring, 5-5 im_parse_host_response, 2-89 im_setup_trx, 2-134 sample program, 5-17 standby file, 5-15 symbolic return codes, 5-14 Debugging, using Turbo Debugger, 2-5 Defined terms, xv Desktop mode, 2-40, 2-130, 4-4 Disk, PSK, 1-8 Display color, 4-10 im_get_display_mode, 2-34 im_get_display_type, 2-36 im_set_display_mode, 2-125
E Examples communications, 4-8 input modes, 4-5 multiple inputs, 4-7 Examples, C apmif.c, B-4 appbreak.cpp, B-7 backlite.cpp, B-9 close.cpp, B-10 contrast.cpp, B-11 ctlkey.cpp, B-13 database transaction, 5-17 exstat.cpp, B-15 fifo.cpp, B-20 im_appl_break_status, 2-17 im_backlight_off, 2-18 im_backlight_on, 2-19 im_backlight_toggle, 2-20 im_command, 2-25 im_decrease_contrast, 2-28 im_get_config_info, 2-30 im_get_control_key, 2-33 im_get_display_type, 2-36 im_get_follow_cursor, 2-38
I
Examples, C (continued) im_get_keyclick, 2-42 im_get_label_symbology, 2-44 im_get_postamble, 2-46 im_get_preamble, 2-47 im_get_reboot_flag, 2-49 im_get_viewport_lock, 2-52 im_get_warm_boot, 2-54 im_increase_contrast, 2-56 im_input_status, 2-58 im_irl_a, 2-62 im_irl_k, 2-65 im_irl_n, 2-68 im_irl_v, 2-73 im_irl_y, 2-76 IM_ISERROR, 2-79 IM_ISGOOD, 2-80 IM_ISSUCCESS, 2-81 IM_ISWARN, 2-82 im_number_pad_off, 2-86 im_number_pad_on, 2-88 im_power_status, 2-92 im_protocol_extended_status, 2-94 im_ready_for_reboot, 2-97 im_receive_buffer, 2-99 im_receive_buffer_no_protocol, 2-105 im_receive_buffer_no_wait, 2-102 im_receive_byte, 2-107 im_receive_input, 2-110 im_rs_installed, 2-113 im_serial_protocol_control, 2-116 im_set_abort_callback, 2-120 im_set_contrast, 2-123 im_sound, 2-138 im_transmit_buffer, 2-144 im_transmit_buffer_no_wait, 2-146 im_transmit_buffer_noprot, 2-149 im_transmit_byte, 2-152 im_viewport_setxy, 2-162 jbeep.cpp, B-23 jboot.cpp, B-24 keybuff.cpp, B-25 keyclick.cpp, B-27 keystat.cpp, B-29 numpad.cpp, B-31
I-5
Page 398
2D JANUS PSK for C/C++ Reference Manual
Examples, C (continued) open.cpp, B-33 phterm.cpp, B-34 pl220ver.cpp, B-40 vp_cur.cpp, B-41
F, H Function libraries, supported languages, 1-6 Functions, listed by category, 2-14 Hexadecimal numbers, convention for, xvi
I IM_ISERROR, 2-6 IM_ISGOOD, 2-6 IM_ISSUCCESS, 2-6 IM_ISWARN, 2-6 im_parse_host_response, status codes, 5-11, 5-13 im_setup_trx, status codes, 5-11, 5-13 im_standard_trx, status codes, 5-9, 5-10, 5-12 Input modes, 4-3 about, 4-4 Desktop mode, 4-4 Programmer mode, 4-4 Wedge mode, 4-3 Installing Programmer’s Software Kit, 1-8 Interrupts, 1-7 about, 3-3 definitions, 3-6 INT 14H Function 17H, 3-7 INT 14H Function 50H, 3-8 INT 14H Function 60H, 3-9 INT 14H Function 71H, 3-10 INT 14H Function 84H, 3-11 INT 14H Function 85H, 3-12 INT 16H Function B4H, 3-13 INT 16H Function B5H, 3-14 INT 16H Function B6H, 3-15 INT 16H Function B7H, 3-16 INT 78H Function 06H, 3-17 INT 79H Function 00H, 3-21 INT 79H Function 01H, 3-22 INT 79H Function 02H, 3-24 INT 79H Function 03H, 3-26 INT 7CH Function 64H, 3-29 INT 7DH Function 08H, 3-30
I-6
Interrupts (continued) INT 7DH Function 0AH, 3-35 INT 7DH Function 0CH, 3-36 INT 7DH Function 0DH, 3-37 INT 7EH Function 01H, 3-38 INT 7EH Function 03H, 3-40 INT 7EH Function 04H, 3-41 INT 7EH Function 05H, 3-42 INT 7EH Function 06H, 3-43 INT 7EH Function 08H, 3-45 INT 7EH Function 10H, 3-46 INT 7EH Function 11H, 3-47 programming, 3-6 sample programs, B-3 table of, 3-4 IPM interface, 4-18 Critical Resume, 4-19 Critical Suspend, 4-19 Normal Resume, 4-18 Normal Suspend, 4-18 IRL Command A, 2-59 K, 2-63 N, 2-66 V, 2-69 Y, 2-74
J, K, L JANUS reader, about, 1-3 Keyboard, using, xvi Keypad, using, xvi Label, im_get_label_symbology, 2-43 Libraries, PSK Language Libraries disk, 1-8 LOADSYMB.EXE, 4-4
M Macros, status codes, 2-6 Manuals, other Intermec, xvii Microsoft C/C++ build procedure, 2-4 compiler, 2-4 Mode Desktop, 2-40, 2-130 im_get_input_mode, 2-39 im_set_input_mode, 2-129
Page 399
Index
Mode (continued) input, 4-3 Programmer, 2-39, 2-129 Wedge, 2-39, 2-129 Multiple inputs, 4-6
N, O Nontransparent mode, 4-16 Number pad im_number_pad_off, 2-86 im_number_pad_on, 2-87 Off power state, 4-15
P PHIMEC.EXE, 2-7 PHPCSTD.EXE, 2-7 Postamble, im_get_postamble, 2-46 Power management application interface, 4-12 BIOS calls, 4-22 components, 4-11 power states, 4-14 diagram, 4-13 Off, 4-15 Ready, 4-14 Standby, 4-14 Suspend, 4-15 software layers, 4-11 system BIOS interface, 4-12 Power states cooperation, 4-16 diagram, 4-13 nontransparent mode, 4-16 transitions, 4-15 transparent mode, 4-16 POWER.EXE, 4-17, 4-20, 4-21 Preamble, im_get_preamble, 2-47 Programmer mode, 2-39, 2-129, 4-4 Protocol handlers, 2-7 im_protocol_extended_status, 2-94 im_serial_protocol_control, 2-115
I
R Reader about, 1-3 Desktop mode, 4-4 display color, 4-10 input modes, 4-3, 4-4 Programmer mode, 4-4 Virtual Wedge, 1-4 Wedge mode, 4-3 Reader services, 4-3 allowing multiple inputs, 4-6 im_rs_installed, 2-113 using function libraries, 1-5 using software interrupts, 1-5 Reader Wedge, 2-8 Ready power state, 4-14 Receive buffer im_cancel_rx_buffer, 2-21 im_receive_buffer, 2-98 im_receive_buffer_no_wait, 2-101 im_receive_buffer_noprot, 2-104 im_receive_byte, 2-107 im_receive_input, 2-109 im_rx_check_status, 2-114 Receiving serial data, 4-6 Remote debugging with Borland C/C++, 2-5 RSERVICE.EXE, 4-3, 4-4 Run, caution, 1-5, 1-7, 2-13, 3-6, B-3 Runtime requirements described, 2-7 specific functions, 2-9 RWTSR.EXE, 2-8
S Sample interrupt programs, B-3 Software interrupts, 1-7 definitions, 3-6 programming, 3-6 sample programs, B-3 Software Interrupts, about, 3-3 Sound, im_sound, 2-137
I-7
Page 400
2D JANUS PSK for C/C++ Reference Manual
Standby file, 5-15, 5-16 im_standby_wait, 2-142 power state, 4-14 Status code macros IM_ISERROR, 2-79 IM_ISGOOD, 2-80 IM_ISSUCCESS, 2-81 IM_ISWARN, 2-82 Status codes, 2-6, A-1 bit values, A-3 database, 5-7 by calling parameter, 5-9 in numerical order, 5-12 symbolic return codes, 5-14 listed by subsystem, A-22 listed numerically, A-4 Subsystem Beep, A-36 Communications, A-32, A-33 Configuration management, A-24, A-25 DCM support, A-43 Decodes, A-28, A-29 Display, A-42 Event logger, A-38 Intermec library, A-37 Keyboard, A-39 Keypad, A-41 Power management, A-34 Reader services, A-23 Reader Wedge, A-30, A-31 Scanner, A-27 System configuration, A-40 Timer, A-35 Suspend power state, 4-15
T TDREMOTE.EXE, 2-5 Terms and conventions, xv
I-8
Transaction defining a database, 5-4 sample program, 5-17 sending to database, 5-6 Transmit buffer im_cancel_tx_buffer, 2-22 im_transmit_buffer, 2-143 im_transmit_buffer_no_wait, 2-145 im_transmit_buffer_noprot, 2-148 im_transmit_byte, 2-151 Transmitting serial data, 4-9 Transparent mode, 4-16 Turbo Debugger, 2-5
U, V, W UART modes, 4-9 restoring configurations, 3-17 Viewport im_cursor_to_viewport, 2-26 im_get_follow_cursor, 2-37 im_get_viewport_lock, 2-51 im_set_follow_cursor, 2-128 im_set_viewport_lock, 2-132 im_viewport_end, 2-154 im_viewport_getxy, 2-155 im_viewport_home, 2-156 im_viewport_move, 2-157 im_viewport_page_down, 2-159 im_viewport_page_up, 2-160 im_viewport_setxy, 2-161 im_viewport_to_cursor, 2-165 Virtual Wedge, 1-4 Warm boot im_get_warm_boot, 2-53 im_set_warm_boot, 2-133 Warranty information, xiii Wedge mode, 2-39, 2-129, 4-3