Intermec 5055 Reference Guide

Page of 216
Converting Trakker Antares, 6400, and JANUS Applications to 5055 Applications
4-9
4
JANUS PSK Functions That Must be Modified (continued)
JANUS PSK Function
5055 PSK Differences and Solutions
im_set_display_mode
5055 PSK passes different arguments. See “Changing Display Modes” later in this
chapter.
im_set_input_mode
See “Using Input Modes” later in this chapter.
im_set_keyclick
Use im_command(“KCdata”), where data is 0 (disable) or 1 (enable). For more
information, see Chapter 7, “Configuration Command Reference.”
im_set_warmboot
Not supported on 5055. Use the hot key to control application instead.
im_setup_trx
Not supported on 5055. Do not use.
im_standard_trx
Not supported on 5055. Do not use.
im_transmit_buffer
5055 PSK has a larger maximum for timeout. See “Setting Timeout Values” later
in this chapter.
im_transmit_buffer_noprot
Not supported on 5055. Do not use.
im_transmit_byte
Use im_transmit_buffer.
im_unlink_com
5055 does not need to link or unlink to use communications ports. Do not use.
Changing Display Modes
The JANUS devices use different display modes than the 5055. Both use
im_get_display_mode and im_set_display_mode, but they pass a different number of
parameters and set different attributes. You need to rewrite program segments that set
or check for display mode values.
JANUS PSK Display Mode Syntax
5055 PSK Display Mode Syntax
#include “im20lib.h”
IM_USHORT im_get_display_mode
    (IM_STD_SIZE_MODE *
size_mode,
    IM_STD_VIDEO_MODE *
video_mode,
    IM_SCROLL_MODE *
scroll_mode,
    IM_CHARACTER_HEIGHT *
char_ht
);
#include “im5055.h”
IM_STATUS im_get_display_mode
    (IM_FONT_TYPE far *
font,
    IM_UCHAR far *
phys_width,
    IM_UCHAR far *
phys_height,
    IM_BOOL far *
scroll,
    IM_BOOL far *
wrap);
Using Input Modes
The 5055 PSK and JANUS PSK support three different input modes: Wedge mode,
Programmer mode, and Desktop mode. The differences between these modes are more
important on JANUS devices than on 5055 PCs.
Wedge Mode
In Wedge mode, keypad and label inputs go directly into the keyboard buffer. Any
reader commands are executed and saved. For JANUS devices, Wedge mode is the
default mode at the DOS prompt after you load reader services (
RSERVICE.EXE
). Use
Wedge mode when your program uses Microsoft C functions on the JANUS device.