The text of a manual · part 15 of 28
6400 PSK Reference Manual, pages 141 to 150
Pages 141 to 150 of 272
The original document is the PDF (1.1 MB). 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 6400
Page 141
im_set_contrast
5 im_set_contrast Purpose:
This function sets the reader's LCD display contrast level. There are eight levels of contrast (0 to 7) from very light to very dark, which are the most frequently used contrast settings.
Syntax:
#include “im64psk.h” IM_STATUS im_set_contrast (IM_UCHAR display_contrast_level);
IN Parameters:
The display_contrast_level parameter is one of these constants: IM_MIN_CONTRAST
Level 0
IM_AVE_CONTRAST
Level 4
IM_MAX_CONTRAST Level 7 OUT Parameters: Return Value:
Notes:
None. This function returns one of the standard status codes defined in Appendix A, "Status Codes." The functions im_set_contrast and im_get_contrast use a scale of 0 to 7 that is related to the scale of 0 to 31 used by im_increase_contrast and im_decrease_contrast. The follow table compares the two scales.
This Value on Scale 0 to 7
Equates to this Value on Scale 0 to 31
Contrast Level
0 1 2 3 4 5 6 7
10 12 14 16 18 20 22 24
Very light
Very dark
This function has no effect on the JANUS 2050. See Also:
im_get_contrast, im_decrease_contrast, im_increase_contrast
5-85
Page 142
im_set_contrast im_set_contrast (continued) Example /******************** im_set_contrast *******************************/ /* Also with: im_get_contrast */ #include <stdio.h> #include <conio.h> #include "im64psk.h" #include "immsg.h" void main (void) { IM_STATUS status; IM_UCHAR contrast; IM_UCHAR level; clrscr(); for (level = 0; level < 10; level++) { status = im_set_contrast(level); /* If the most significant bit is set, there is an error */ if (IM_ISERROR(status)) printf("\nSet Contrast error = %x\n", status); else printf("\nContrast set to %d\n", level); status = im_get_contrast(&contrast); /* If the most significant bit is set, there is an error */ if (IM_ISERROR(status)) printf("\nGet Contrast error = %x\n", status); else printf("\nContrast is %d\n", level); /* Pause to see result */ printf("\nAny key to continue"); getch(); } }
5-86
Page 143
im_set_cursor_style
5 im_set_cursor_style Purpose:
Defines the style used to draw the cursor.
Syntax:
#include "im64psk.h" IM_STATUS im_set_cursor_style (IM_CURS_TYPE cursor);
IN Parameters:
cursor
Flag that is one of these constants:
IM_UNDERLINE Single underline OUT Parameters: Return Value:
None. This function returns one of these codes: IM_SUCCESS Success IM_INVALID_PARAM_1
Notes:
Not supported for the current font type
This function is provided for compatibility with other PSKs, such as JANUS and Trakker Antares. The cursor style cannot be changed.
5-87
Page 144
im_set_cursor_xy im_set_cursor_xy Purpose:
This function sets the current cursor position.
Syntax:
#include "im64psk.h" IM_STATUS im_set_cursor_xy (IM_USHORT rowNum, IM_USHORT colNum);
IN Parameters:
rowNum Vertical position. The top of the display is 0. colNum Horizontal position. The left edge of the display is 0.
OUT Parameters: Return Value:
None. This function returns one of these codes: IM_SUCCESS Success IM_X_RANGE colNum value out of range, cursor moved to right edge IM_Y_RANGE rowNum value out of range, cursor moved to bottom IM_BOTH_RANGE Both colNum and rowNum values out of range, cursor moved to lower right corner
Note:
Because the 6400 reserves the last row of the display, the maximum vertical position that you can set the cursor to is row 14 when viewporting is disabled. When viewporting is enabled, the maximum vertical position is 23. If you set rowNum to 15 or greater, the cursor position is set to row 14, the last valid row.
Example See example for im_receive_field.
5-88
Page 145
im_set_display_mode
5 im_set_display_mode Purpose:
This function sets the character height of the display. Scroll and wrap parameters are included for compatibility with other PSKs, such as JANUS and Trakker Antares.
Syntax:
#include "im64psk.h" IM_STATUS im_set_display_mode (IM_FONT_TYPE font, IM_BOOL scroll IM_BOOL wrap);
IN Parameters:
font Specifies the font type code. Choose one of these constants: IM_FONT_STANDARD Text is 5 x 7 pixels, the scroll boundary is line 14, and the wrap boundary is column 19 IM_FONT_LARGE Text is 5 x 14 pixels, the scroll boundary is line 7, and the wrap boundary is column 19 IM_FONT_SPECIAL Text is 10 x 14 pixels scroll Scrolling always on. wrap Wrapping always on.
OUT Parameters: Return Value:
None. This function returns one of these codes: IM_SUCCESS Success IM_INVALID_PARAM_1
Note:
See Also:
Invalid font parameter
IM_FONT_STANDARD may be ORed with IM_TEXT_MODE to force the display into text mode for faster display capabilities. When in text mode, the IM_UNDERLINE attribute is not supported. To return to the normal display mode, call im_set_display_mode with IM_FONT_STANDARD. im_get_display_mode, im_get_display_type, im_get_display_size_physical
5-89
Page 146
im_set_follow_cursor im_set_follow_cursor Purpose:
This function enables or disables the follow-the-cursor feature.
Syntax:
#include "im64psk.h" IM_STATUS im_set_follow_cursor (IM_CONTROL follow);
IN Parameters:
OUT Parameters: Return Value:
follow One of these constants: IM_ENABLE
Enable follow-the-cursor mode.
IM_DISABLE
Disable follow-the-cursor mode.
None. This function follows one of these codes: IM_SUCCESS Follow cursor mode set. IM_DISABLED Viewporting not enabled; can only enable follow cursor when viewporting is enabled.
See Also:
im_get_follow_cursor, im_setup_follow_cursor
Example See example for im_get_follow_cursor.
5-90
Page 147
im_set_input_mode
5 im_set_input_mode Purpose:
This function sets the 6400 input mode to Wedge, Programmer, or Desktop. These modes affect how the 6400 interprets and stores input.
Syntax:
#include "im64psk.h" IM_STATUS im_set_input_mode (IM_MODE mode);
IN Parameters:
mode Specifies the mode. Choose one of these constants: IM_PROGRAMMER Input is returned as a string (default). Simple line editing is permitted using backspace. IM_WEDGE backspace.
Input is returned as a string. Simple line editing is permitted using
IM_DESKTOP Keyboard characters are returned as 4 bytes. The first byte is the ASCII code. The second byte is the scan code, and the last two bytes are flags for modifier keys (Shift and Control). OUT Parameters: Return Value: See Also:
None. IM_SUCCESS Success. im_get_input_mode, im_receive_input
5-91
Page 148
im_set_keyclick im_set_keyclick Purpose:
Each time you press a key, the reader can emit a click. This function enables or disables the keyclick.
Syntax:
#include "im64psk.h" IM_STATUS im_set_keyclick (IM_CONTROL keyclick_status);
IN Parameters:
The keyclick_status parameter is one of these constants: IM_ENABLE Enable the keyclick. IM_DISABLE
OUT Parameters: Return Value:
5-92
Disable the keyclick.
None. This function returns one of the standard status codes defined in Appendix A, "Status Codes."
Page 149
im_set_scanning
5 im_set_scanning Purpose:
This function enables or disables the scanner port.
Syntax:
#include “im64psk.h” void im_set_scanning (IM_CONTROL EnableDisable)
IN Parameters:
EnableDisable
Pointer to IM_UCHAR and is one of these constants:
IM_ENABLE
Enable scanner port.
IM_DISABLE
Disable scanner port.
OUT Parameters:
None
Return Value:
None
Notes:
The Application Simulator does not simulate this function.
5-93
Page 150
im_set_time_event im_set_time_event Purpose:
This function starts a timer that runs from 0 to 65,534 ms. After reaching the upper limit, a timeout event occurs that can be recognized by the im_event_wait function or any of the input functions.
Syntax:
#include "im64psk.h" IM_STATUS im_set_time_event (IM_USHORT iTimeout)
IN Parameters:
iTimeout occurs.
OUT Parameters:
None.
Return Value:
Number of milliseconds, from 0 to 65,534, to wait before a timeout event
This function returns one of these codes: IM_SUCCESS
Successfully started timer
E_TABLE_FULL Notes:
No more timer services available, timeout not established
The timer is accurate within 5 ms. If you call this function again before the timer reaches the value passed in, the timer is reset to 0 and starts counting toward the passed in value again. When the timeout occurs and IM_TIMER_SELECT is an allowed source for the im_event_wait or im_event_status function, IM_TIMER_SELECT is returned as the source for that function.
See Also:
im_event_wait, im_event_status, im_receive_input, im_receive_field
Example See example for im_event_wait.
5-94