Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 7 of 28

6400 PSK Reference Manual, pages 61 to 70

Pages 61 to 70 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 61

im_backlight_on

5 im_backlight_on Purpose:

This function turns the display backlight on to illuminate the 6400 display in dimly lit environments.

Syntax:

#include “im64psk.h” void im_backlight_on(void);

IN Parameters:

None.

OUT Parameters:

None.

Return Value:

None.

Notes:

See Also:

You can program the backlight to automatically turn off after a specified time to save battery power. The length of time depends on the backlight timeout configuration parameter. The configuration parameter is set in 1-second increments. The default is 10 seconds. im_backlight_off

Example /******************** im_backlight_on *****************************/ #include <stdio.h> #include "im64psk.h" void main (void) { im_backlight_on(); printf("Backlight on\n"); }

5-5

Page 62

im_backlight_toggle im_backlight_toggle Purpose:

This function toggles the display backlight ON and OFF.

Syntax:

#include “im64psk.h” void im_backlight_toggle(void);

IN Parameters:

None.

OUT Parameters:

None.

Return Value:

None

Notes:

You can program the backlight to automatically turn off after a specified time to save battery power. The length of time depends on the backlight timeout configuration parameter. The configuration parameter is set in 1-second increments. The default is 10 seconds. This function has no effect on the JANUS 2050.

See Also:

im_backlight_on, im_backlight_off

Example /******************** im_backlight_toggle *****************************/ #include <stdio.h> #include "im64psk.h" void main (void) { im_backlight_toggle(); im_cputs("Backlight switched on/off", IM_NORMAL); }

5-6

Page 63

im_cancel_rx_buffer

5 im_cancel_rx_buffer Purpose:

This function clears the receive buffer of the designated communications port.

Syntax:

#include “im64psk.h” IM_STATUS im_cancel_rx_buffer (IM_COM_PORT port_id);

IN Parameters:

The port_id parameter identifies the communications port as follows: IM_COM1 IM_NET

OUT Parameters: Return Value:

COM1 Netwrite

None. This function returns one of the standard status codes defined in Appendix A, “Status Codes.” If there is no input pending to receive, this function returns 4602H (no client).

Notes:

You must install a protocol handler to use this function.

5-7

Page 64

im_cancel_tx_buffer im_cancel_tx_buffer Purpose:

This function removes a message from the transmit buffer that is waiting to be transmitted.

Syntax:

#include "im64psk.h" IM_STATUS im_cancel_tx_buffer (IM_COM_PORT comport);

IN Parameters:

comport Specifies the communications port and is one of these constants: IM_COM1 COM1 input IM_NET

OUT Parameters: Return Value:

Network input

None. This function returns one of these codes: IM_SUCCESS

Successfully removed message

IM_PORT_INACTIVE No transmit pending IM_TRANSMIT_COMPLETE

Attempted to cancel, but message was already sent

IM_NET_ERROR Unknown network error Notes: See Also:

This function provides compatibility with the JANUS PSK functions. It is not intended for newer applications and has no effect on the 6400. im_transmit_buffer, im_transmit_buffer_no_wait_t

Example No example. This function provides compatibility with the JANUS PSK functions.

5-8

Page 65

im_clear_screen

5 im_clear_screen Purpose:

This function erases the entire display and moves the cursor to the upper left corner (home). The display font remains the same.

Syntax:

#include "im64psk.h" void im_clear_screen (void);

IN Parameters:

None.

OUT Parameters:

None.

Return Value:

None.

Example See example for im_command.

5-9

Page 66

im_command im_command Purpose:

This function sends reader and configuration commands to the 6400. For example, you can use this function to set the backlight contrast or change the baud rate on the 6400. For a list of reader and configuration commands, see Chapter 6, “Reader Command Reference,” and Chapter 7, “Configuration Command Reference.”

Syntax:

#include "im64psk.h" IM_STATUS im_command (IM_UCHAR far *command, IM_USHORT length);

IN Parameters:

command Computer command string. The command string may include more than one command. length

OUT Parameters: Return Value:

Length of the computer command string.

None. This function returns one of these codes: IM_SUCCESS

Successfully parsed and implemented command

IM_PARSER_ERROR Unable to parse command Notes:

If you are using ASCII escape sequences in your command string, the hex value for the escape sequence only counts as one character when designating the command length. For example, the following command string uses the ASCII escape sequence ETX (hex value 0x03) and has a character length of 5: im_command (“$+PF\x03”,5);

Example

To transmit DATA.TXT on the 6400’s drive C, the function would be: im_command (“%%X1,C:DATA.TXT”,15);

To receive a file through the serial port, use a command string of the form, .%X1,drive:filename. For example, to receive ITEMS.TXT on the 6400 and put the file on drive C, the function would be: im_command (“.%X1,C:ITEMS.TXT”,16);

To change the configuration, use a string of the form $+CCP, where CC represents the command, and P represents some string of parameters to the configuration command. For Example: im_command(“$+IA8”,5); //Set Baud Rate to 38400 im_command(“$+PE\x02”,5); //Set SOM to ASCII STX character im_command(“$+PF\x0d\x0a”,6); //Set EOM to Carriage Return, Line Feed

5-10

Page 67

im_cputs

5 im_cputs Purpose:

This function places a string on the screen with the specified attribute at the current cursor location without appending a carriage return and line feed (CR LF) to the string.

Syntax:

#include "im64psk.h" IM_STATUS im_cputs (IM_UCHAR far *string, IM_ATTRIBUTES attrib);

IN Parameters:

string

Far pointer to the text string to be displayed.

attrib Attribute mask and is any combination of these constants: IM_NORMAL Plain text IM_UNDERLINE Underline text IM_INVERSE OUT Parameters: Return Value:

Inverse color text

None. This function returns one of these codes: IM_SUCCESS Success IM_BAD_ADDRESS

Invalid string address

IM_INVALID_PARAM_2 Notes:

See Also:

Invalid attribute value

This function is similar to im_puts, except that it does not append a carriage return or line feed (CR LF) to the string. im_putchar, im_puts

Example See example for im_get_display_mode.

5-11

Page 68

im_cputs_ex im_cputs_ex Purpose:

This function places a string on the screen with the specified attribute at the current cursor location without appending a carriage return and line feed (CR LF) to the string. The cursor remains on the last character of the string.

Syntax:

#include "im64psk.h" IM_STATUS im_cputs (IM_UCHAR far *string, IM_ATTRIBUTES attrib);

IN Parameters:

string

Far pointer to the text string to be displayed.

attrib Attribute mask and is any combination of these constants: IM_NORMAL Plain text IM_UNDERLINE Underline text IM_INVERSE OUT Parameters: Return Value:

Inverse color text

None. This function returns one of these codes: IM_SUCCESS Success IM_BAD_ADDRESS

Invalid string address

IM_INVALID_PARAM_2 Notes:

See Also:

This function is similar to im_puts, except that it does not append a carriage return or line feed (CR LF) to the string. This function is used for printing a line the length of the column width when the user doesn’t want the cursor to move to the next line. im_putchar, im_puts

Example See example for im_get_display_mode.

5-12

Invalid attribute value

Page 69

im_cursor_to_viewport

5 im_cursor_to_viewport Purpose:

This function moves the cursor to the home position (top left corner) of the current viewport. Since the viewport can move around with or without the cursor, you can use this function to bring the cursor to the current viewport.

Syntax:

#include ”im64psk.h” void im_cursor_to_viewport(void);

IN Parameters:

None.

OUT Parameters:

None.

Return Value:

None.

Notes:

None.

See Also:

im_viewport_end, im_viewport_home, im_viewport_page_down, im_viewport_page_up, im_viewport_to_cursor, im_viewport_move

Example See example for im_viewport_setxy.

5-13

Page 70

im_erase_display im_erase_display Purpose:

This function erases a portion of the display.

Syntax:

#include “im64psk.h” void im_erase_display (IM_ERASE_CONTROL erase);

IN Parameters:

erase Flag that specifies the area to erase and is one of these constants: IM_ALL

Erases the entire screen.

IM_CURS_TO_END

Erases from the current cursor position to the end of the display

IM_START_TO_CURS position OUT Parameters:

None

Return Value:

None

Notes:

See Also:

If viewporting is enabled, this function erases to the beginning or end of the virtual display. im_clear_screen, im_erase_line

Example See example for im_erase_line.

5-14

Erases from the start of the display to the current cursor