The text of a manual · part 8 of 25
TRAKKER T2090 Batch Hand-Held Computer User's Manual, pages 71 to 80
Pages 71 to 80 of 246
The original document is the PDF (737 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 T2090
Page 71
im_dbyte_symbology_set
4 im_dbyte_symbology_set Purpose
This function indicates that DBFS is currently active.
Syntax
#include "imt209x.h" IM_BOOL im_dbyte_symbology_set ( void );
IN Parameters
None.
OUT Parameters
None.
Return Value
This function returns one of these codes: IM_TRUE DBFS Font installed. IM_FALSE DBFS Font not installed.
See Also im_dbyte_setfont
4-11
Page 72
im_draw_underline im_draw_underline Purpose
This function draws an underline on the screen between two points.
Syntax
#include "imt209x.h" void im_draw_underline (IM_USHORT start_row, IM_USHORT start_column, IM_USHORT end_row, IM_USHORT end_column, IM_USHORT underline);
IN Parameters start_row
Specifies the number of the row where the underline starts.
start_column end_row
Specifies the number of the column where the underline starts.
Specifies the number of the row where the underline ends.
end_column Specifies the number of the column one position after the column where the underline ends. underline
Choose one of these constants:
IM_SET_UNDERLINE to draw the underline. IM_CLEAR_UNDERLINE to erase the underline. OUT Parameters
None.
Return Value
None.
Notes
The end_column parameter specifies one column beyond the underline to make it easy for you to use im_get_cursor_xy to determine the values for start_row, start_column, end_row, and end_column. Follow these steps: 1. Use im_get_cursor_xy to determine the cursor position, passing start_row and start_column variables. 2. Display the text. 3. Use im_get_cursor_xy again to determine the cursor position (which is one position beyond the end of the text displayed), passing end_row and end_column variables. 4. Use im_draw underline to draw an underline under the text, passing start_row, start_column , end_row, and end_column variables. When you underline text, you should display the text first and then draw the underline with this function. If you use a function like im_puts, which lets you specify the underline attribute for the text being put, you do not have to use im_draw_underline.
4-12
Page 73
im_get_config_info
4 im_get_config_info Purpose
This function retrieves the current computer configuration information string and its length. The command code is passed in as a string, and the current configuration is returned in the same string.
Syntax
#include "imt209x.h" IM_STATUS im_get_config_info (IM_UCHAR far *config, IM_USHORT far *length);
IN Parameters IN/OUT Parameters
OUT Parameters Return Value
None. config As input, this parameter is the desired computer command (two characters) and should be NULL terminated. You can pass in several command codes at one time. As output, this parameter contains the requested configuration information string. The first two characters specify the configuration command returned. Any subsequent characters specify the configuration options currently set. For example, to get the beep duration setting, set config to “BD”. The function returns BD and the current configuration for beep duration. The user of this function must ensure that this character pointer points to a block of memory large enough to fit the returned NULL terminated configuration information string. length
Length of the configuration information string.
This function returns one of these codes: IM_SUCCESS Successfully parsed and returned configuration info string. IM_UNKNOWN_CONFIG Unable to parse configuration request string. IM_ERROR_TOO_BIG_FOR_BUFFER Returned for “DC” configuration request string which is unsupported due to the large amount of information that this configuration request string would require.
Notes
For a list of the configuration commands, see Chapter 6. This function differs from im_command in that you only pass the twocharacter command identifier. The im_command function passes an entire command string.
See Also im_command
4-13
Page 74
im_get_cursor_style im_get_cursor_style Purpose
This function returns the style used to display the cursor. It is DBFS aware.
Syntax
#include "imt209x.h" IM_CURS_TYPE im_get_cursor_style (void);
IN Parameters
None.
OUT Parameters
None.
Return Value
This function returns a flag indicating cursor style: IM_UNDERLINE
Single underline.
IM_NO_CURSOR No cursor displayed.
im_get_cursor_xy Purpose
This function retrieves the current cursor position. It is DBFS aware.
Syntax
#include "imt209x.h" IM_STATUS im_get_cursor_xy (IM_USHORT far *row, IM_USHORT far *col);
IN Parameters OUT Parameters
None. row Pointer to the vertical position. The top of the display is row 0. The bottom of the display is row 7 (when using standard font). col
Return Value
4-14
Pointer to the horizontal position. The left edge of the display is column 0.
IM_SUCCESS Success
Page 75
im_get_display_mode
4 im_get_display_mode Purpose
This function returns the display font, character height and width, and scrolling and wrapping status.
Syntax
#include "imt209x.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);
IN Parameters
None.
OUT Parameters font
Specifies the font type and is one of these constants:
IM_FONT_STANDARD Text is 5 x 7 pixels. IM_FONT_LARGE Text is 5 x 14 pixels. IM_FONT_SPECIAL Text is 10 x 14 pixels. phys_width Specifies the width of the physical display in the number of characters in the current font that the display can hold. phys_height Specifies the height of the physical display in the number of characters in the current font that the display can hold. scroll Because the TRAKKER T2090 computer always scrolls at the bottom of the screen, this will always be returned as positive. wrap Because the TRAKKER T2090 computer always wraps at the right edge of the screen, this will always be returned as positive. Return Value Notes See Also
IM_SUCCESS Success. To omit a parameter, set it to 0. No information for that parameter is returned. im_set_display_mode
4-15
Page 76
im_get_display_size_physical im_get_display_size_physical Purpose
This function returns the current display size.
Syntax
#include "imt209x.h" void far im_get_display_size_physical (IM_USHORT far *rows, IM_USHORT far *cols);
IN Parameters
None.
OUT Parameters rows
Current setting for the number of rows in the physical display.
cols
Current setting for the number of columns in the physical display.
Return Value
IM_SUCCESS
Notes
The default physical display for the T2090 is 20 columns by 8 rows.
See Also im_get_display_mode, im_get_display_type, im_set_display_mode im_get_display_type Purpose
This function gets the hardware display type for the TRAKKER T2090 computer.
Syntax
#include "imt209x.h" IM_STATUS im_get_display_type (IM_DISPLAY_TYPE *type);
IN Parameters
None.
OUT Parameters type
Return Value See Also
4-16
The constant returned is IM_LCD_20X8 (TRAKKER T2090 display).
IM_SUCCESS Success. im_get_display_mode, im_set_display_mode, im_get_display_size_physical
Page 77
im_get_input_mode
4 im_get_input_mode Purpose
This function provides compatibility with the JANUS PSK functions. This function retrieves the current input mode setting. Input modes affect how the reader interprets and stores input.
Syntax
#include "imt209x.h" IM_STATUS im_get_input_mode ();
IN Parameters
None.
OUT Parameters
None.
Return Value
This function returns one of these codes: IM_PROGRAMMER Input is returned as a string (default). Simple line editing is permitted using the backspace key. IM_WEDGE editing.
Input is returned as a string. Use Backspace for simple line
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 2 bytes are flags for modifier keys (Shift, Control, and Alt). For label input, the entire string is returned. See Also im_set_input_mode, im_receive_input im_get_kbmode Purpose
This function identifies the current keyboard mode.
Syntax
#include "imt209x.h" int IM_GET_KBMODE(void);
IN Parameters
None.
OUT Parameters
None.
Return Value
KEYBOARD_MODE_ALPHA The keyboard is in alphabetic mode. KEYBOARD_MODE_NUMBER The keyboard is in numeric mode.
See Also im_set_kbmode
4-17
Page 78
im_get_label_symbology im_get_label_symbology Purpose
This function gets the symbology, such as Code 39, from the most recently scanned label. Call this function after receiving data using im_receive_input or im_receive_field.
Syntax
#include "imt209x.h" IM_STATUS im_get_label_symbology (IM_DECTYPE far *symb);
IN Parameters
None.
OUT Parameters symb
Identifies the label symbology and is one of these constants:
IM_UNKNOWN_DECODE Unknown bar code. IM_CODABAR Codabar bar code. IM_CODE_39 Code 39 bar code. IM_CODE_128 Code 128 bar code. IM_I_2_OF_5 Interleaved 2 of 5. IM_MSI MSI bar code. IM_UPC Universal Product code. Return Value
This function returns one of these codes: IM_SUCCESS Successfully retrieved. IM_NO_SYMBOLOGY No symbology code available, or no scans received.
4-18
See Also im_receive_input, im_receive_field, im_get_label_symbologyid
Example
/********************* im_get_label_symbology **********************/ #include <conio.h> #include "stdio.h" #include "im209x.h" static char *bar_code[] = { "unknown", "Code 39", /* See typedef enum { ...} IM_DECTYPE in Im209x.h*/ "I 2 of 5", "Codabar", "UPC and EAN", "Code 128", "MSI" }; void main (void) { IM_UCHAR input[256]; IM_ORIGIN source; IM_DECTYPE symbol; im_clear_screen(); /* Clear the screen */ printf("Demo im_get_label_symbology\n'q' to quit\n"); /* Input loop */
Page 79
im_get_label_symbologyid
4 do { source = IM_LABEL_SELECT | IM_KEYBOARD_SELECT; im_receive_field(source, IM_INFINITE_TIMEOUT, IM_INVERSE, IM_RETURN_ON_FULL, 10, &source, input); printf("\nReceive Field:\n"); printf("%s\n", input); im_get_label_symbology( &symbol); /* Display symbology */ printf("\nSYMBOLOGY: %d\n%s\n", symbol, bar_code[symbol]); } while (input[0] != 'q' && input[0] != 'Q'); /* 'q' to quit */ } im_get_label_symbologyid Purpose
This function gets the AIM symbology ID, such as ]A0, from the most recently scanned label. Call this function after receiving data using im_receive_input or im_receive_field.
Syntax
#include "imt209x.h" IM_STATUS im_get_label_symbologyid (IM_UCHAR far *symb);
IN Parameters OUT Parameters
Return Value
None. symb Pointer to the buffer for the label symbology ID string and must be at least 6 byes in length. This function returns one of these codes: IM_SUCCESS Successfully retrieved. IM_NO_SYMBOLOGY No symbology code available, or no scans received.
See Also im_receive_input, im_receive_field, im_get_label_symbology
4-19
Page 80
im_get_length im_get_length Purpose
This function returns the length of the string received from the designated source by the most recent input function (im_receive_input, im_receive_field, or im_receive_buffer).
Syntax
#include "imt209x.h" IM_USHORT im_get_length (IM_ORIGIN source);
IN Parameters source
Specifies the source of the input. Choose one of these constants:
IM_LABEL_SELECT Label selected. IM_KEYBOARD_SELECT Keypad selected. IM_COM1_SELECT COM1 selected. OUT Parameters Return Value
Notes
4-20
None. This function returns the length of the last input string read from the designated source. All input from the keypad or labels has a null termination character added to the end of the string so that it can be used as a normal C string. However, some data might contain embedded null characters, such as data from COM or NET sources. If so, this function supplies the true data length.
See Also im_receive_input, im_receive_field
Example
See example for im_receive_input.