The text of a manual · part 41 of 42
JANUS PSK for C/C++ Reference Manual, Version 2.1, pages 401 to 410
Pages 401 to 410 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 401
phterm.cpp
B
B-49
Page 402
phterm.cpp geninterrupt(LCD_Int);
// LCD display size mode manager interrupt return(_AL);
// return status, _AL = 0 if good, 0xFF if failed
} // Return the video mode to its original status void Reset_Video_Mode() { _BX = vm_params; // restore the original video parameters _AH = 0x02; // function 2 of int 79h _AL = 0x00; _BH = vm_mode; // restore the original video mode geninterrupt(LCD_Int);
// LCD display size mode manager interrupt
} // When input exceeds line length, scroll the line left void Shift_Left(IM_UINT x) { s_buff[x] = ' '; s_buff[x+1] = '\0'; Pos_Cursor(&iw, 0, 0); printf("%s", s_buff+x-iw.lc+1); Pos_Cursor(&iw, iw.lc-1, 0); }
B-50
Page 403
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-51
Page 404
Page 405
I Index
Page 406
Page 407
Index
I
Index A About This Manual, xvi Advanced Power Management, 4-11 APM, 4-11 BIOS calls, 4-22 APM interface, 4-20
B Backlight im_backlight_off, 2-19 im_backlight_on, 2-20 im_backlight_toggle, 2-21 Battery im_power_status, 2-93 BFT im_get_reboot_flag, 2-50 im_ready_for_reboot, 2-99 binary file transfer, See BFT 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 Borland C/C++ compiler, 2-3 Break im_appl_break_status, 2-17
Build procedure Borland C/C++, 2-3 Borland C/C++ sample, 2-3 Microsoft C/C++, 2-4 Microsoft C/C++ sample, 2-4
C C language certified functions, 2-12 C language functions, 2-14 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 C language functions, continued im_irl_v, 2-71
I-3
Page 408
JANUS PSK for C/C++ Reference Manual im_irl_y, 2-76 IM_ISERROR, 2-81 IM_ISGOOD, 2-82 IM_ISSUCCESS, 2-83 IM_ISWARN, 2-84 im_link_comm, 2-85 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 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 C language functions, continued im_viewport_page_up, 2-162
I-4 im_viewport_setxy, 2-163 im_viewport_to_cursor, 2-167 C macros, 2-7 Caution, 1-5, 1-7, 2-14, 3-6, B-3 Certified functions, 2-12 Color, 4-10 Command im_command, 2-25 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-30 Contrast im_decrease_contrast, 2-28 im_get_contrast, 2-32 im_increase_contrast, 2-57 im_set_contrast, 2-124 Control key im_get_control_key, 2-34 im_set_control_key, 2-126 Conventions, manual, xvii Cursor im_cursor_to_viewport, 2-27 im_get_follow_cursor, 2-39 im_get_viewport_lock, 2-53 im_set_follow_cursor, 2-130 im_set_viewport_lock, 2-134 im_viewport_to_cursor, 2-167
D Database accessing through DCM, 5-3 defining a transaction, 5-4 delete, 5-6 im_parse_host_response, 2-91 im_setup_trx, 2-136 im_standard_trx, 2-141 Database, continued read, 5-7
Page 409
Index 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 update, 5-6 write, 5-6 DCM, 5-3, 5-6, 5-7, 5-14 configuring, 5-5 im_parse_host_response, 2-91 im_setup_trx, 2-136 sample program, 5-17 standby file, 5-15 symbolic return codes, 5-14 Debugging using JANUS Application Simulator, 2-5 using Turbo Debugger, 2-5 Defined terms, xvii Desktop mode, 2-42, 2-132, 4-4 Disk PSK, 1-8 Display im_get_display_mode, 2-36 im_get_display_type, 2-38 im_set_display_mode, 2-127 Display color, 4-10
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 contrast.cpp, B-10 ctlkey.cpp, B-12 database transaction, 5-17 exstat.cpp, B-14 Examples, C, continued fifo.cpp, B-19
I im_appl_break_status, 2-18 im_backlight_off, 2-19 im_backlight_on, 2-20 im_backlight_toggle, 2-21 im_command, 2-26 im_decrease_contrast, 2-29 im_get_config_info, 2-31 im_get_control_key, 2-35 im_get_display_type, 2-38 im_get_follow_cursor, 2-40 im_get_keyclick, 2-44 im_get_label_symbology, 2-46 im_get_postamble, 2-48 im_get_preamble, 2-49 im_get_reboot_flag, 2-51 im_get_viewport_lock, 2-54 im_get_warm_boot, 2-56 im_increase_contrast, 2-58 im_input_status, 2-60 im_irl_a, 2-64 im_irl_k, 2-67 im_irl_n, 2-70 im_irl_v, 2-75 im_irl_y, 2-78 IM_ISERROR, 2-81 IM_ISGOOD, 2-82 IM_ISSUCCESS, 2-83 IM_ISWARN, 2-84 im_number_pad_off, 2-88 im_number_pad_on, 2-90 im_power_status, 2-94 im_protocol_extended_status, 2-96 im_receive_buffer, 2-101 im_receive_buffer_no_protocol, 2-107 im_receive_buffer_no_wait, 2-104 im_receive_byte, 2-109 im_receive_input, 2-112 im_rs_installed, 2-115 im_serial_protocol_control, 2-118 im_set_abort_callback, 2-122 im_set_contrast, 2-125 im_sound, 2-140
I-5
Page 410
JANUS PSK for C/C++ Reference Manual
Examples, C, continued im_transmit_buffer, 2-146 im_transmit_buffer_no_wait, 2-148 im_transmit_buffer_noprot, 2-151 im_transmit_byte, 2-154 im_viewport_setxy, 2-164 jbeep.cpp, B-22 jboot.cpp, B-23 keybuff.cpp, B-24 keyclick.cpp, B-26 keystat.cpp, B-28 numpad.cpp, B-30 phterm.cpp, B-32 vp_cur.cpp, B-38
F Function libraries, supported languages, 1-6 Functions, listed by category, 2-15
H Hexadecimal numbers, convention for, xviii
I IM_ISERROR, 2-7 IM_ISGOOD, 2-7 IM_ISSUCCESS, 2-7 IM_ISWARN, 2-7 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
I-6
Interrupts, continued 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 INT 7EH Function 01H, 3-35 INT 7EH Function 03H, 3-37 INT 7EH Function 04H, 3-38 INT 7EH Function 05H, 3-39 INT 7EH Function 06H, 3-40 INT 7EH Function 08H, 3-42 INT 7EH Function 10H, 3-43 INT 7EH Function 11H, 3-44 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-61 K, 2-65 N, 2-68 V, 2-71 Y, 2-76
J JANUS Application Simulator, 2-5 JANUS reader, about, 1-3