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 21 of 40

2D JANUS PSK for C/C++ Reference Manual, pages 201 to 210

Pages 201 to 210 of 400

The original document is the PDF (793 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 201

INT 14H, Function 60H

3

INT 14H, Function 60H Receive Buffer Purpose:

This function first establishes a link with the protocol handler and then receives the first record through the selected communications port.

Call With:

AH =

60H

DX =

Port ID: 00H COM1 01H COM2, scanner port (2010 and 2050) 03H COM4

ES:BX =

Receive buffer

Pointer to the IM_COM_DATA_BUFFER data structure defined in IM20LIB.H. The buffer must be larger than 256 bytes.

Return Value:

AX =

Notes:

You must install a protocol handler to use this interrupt.

nnnn

One of the standard status codes defined in Appendix A, “Status Codes.”

Use this function only once at the start of your program. See Also:

PHTERM.CPP in Appendix B, “Sample Interrupt Programs.”

3-9

Page 202

INT 14H, Function 71H

INT 14H, Function 71H Protocol Extended Status Purpose:

This function returns the protocol extended status for a selected communications port.

Call With:

AH =

71H

DX =

Port ID: 00H COM1 01H COM2, scanner port (2010 and 2050) 03H COM4

Protocol extended status

CX =

Status buffer length

ES:BX =

Pointer to the status buffer. See the file IM20LIB.H for details.

Return Value:

AX =

See Also:

EXSTAT.CPP in Appendix B, “Sample Interrupt Programs.”

3-10 nnnn

One of the standard status codes defined in Appendix A, “Status Codes.”

Page 203

INT 14H, Function 84H

3

INT 14H, Function 84H Cancel RX Buffer Purpose:

This function terminates the protocol handler’s connection to the receiving buffer.

Call With:

AH =

84H

DX =

Port ID: 00H COM1 01H COM2, scanner port (2010 and 2050) 03H COM4

Return Value:

AX = nnnn

Notes:

You must install a protocol handler to use this interrupt.

See Also:

PHTERM.CPP in Appendix B, “Sample Interrupt Programs.”

Cancel RX buffer

One of the standard status codes defined in Appendix A, “Status Codes.”

3-11

Page 204

INT 14H, Function 85H

INT 14H, Function 85H Cancel TX Buffer Purpose:

This function terminates the protocol handler’s connection to the transmit buffer for a selected communications port.

Call With:

AH =

85H

DX =

Port ID: 00H COM1 01H COM2, scanner port (2010 and 2050) 03H COM4

Return Value:

AX = nnnn

Notes:

You must install a protocol handler to use this interrupt.

See Also:

PHTERM.CPP in Appendix B, “Sample Interrupt Programs.”

3-12

Cancel TX buffer

One of the standard status codes defined in Appendix A, “Status Codes.”

Page 205

INT 16H, Function B4H

3

INT 16H, Function B4H Enable/Disable Expanded Keyboard Buffer Purpose:

This function enables or disables the expanded keyboard buffer. If it is enabled, the keyboard buffer is 269 bytes long. If it is disabled, the keyboard buffer is 16 bytes long.

Call With:

AH =

B4H

Enable/disable expanded keyboard buffer

AL =

00H 01H 02H

Get status only Enable expanded keyboard Disable expanded keyboard

AH =

00H

Always

AL =

00H 01H 02H 03H 04H

Command completed Expanded buffer is already installed or already enabled Expanded buffer is disabled Cannot disable because expanded buffer is not empty Invalid command

Return Value:

Notes:

You must use INT 16H to read keycodes or first call the “Flush expanded key buffer” service to empty the buffer.

See Also:

KEYBUFF.CPP in Appendix B, “Sample Interrupt Programs.”

3-13

Page 206

INT 16H, Function B5H

INT 16H, Function B5H Insert String Into Expanded Keyboard Buffer Purpose:

This function inserts a string of up to 255 characters into the keyboard buffer with a single call to the BIOS. You can encode a passed string in two ways: •

Simple byte-aligned ASCII only

•

Entire character keycode

Use the entire character keycode method to implement a unique character tagging scheme or to pass special keys such as Ctrl, F1, and Esc. The calling routine must supply the scan code. Call With:

AH =

B5H

Insert string into expanded keyboard buffer

AL =

00H 01H 02H

Use byte-aligned ASCII string format with scan code lookup Use word-aligned keycode format Use byte-aligned ASCII string format without lookup

CX =

Number of characters to put into buffer

ES:BX =Far pointer to the string Return Value:

AH =

00H

Always

AL =

00H 01H 02H 03H

Successful Expanded buffer has not been installed Keyboard buffer is full and the entire string was rejected Invalid mode value

DX = nn

Number of unused keys (nn) that remain in the buffer after the passed string has been inserted, or the number available prior to the call if the buffer cannot hold the string.

Notes:

Pass strings instead of individual characters to eliminate label fragmentation and speed up the software interface between DECODES and the keyboard stream.

See Also:

KEYBUFF.CPP in Appendix B, “Sample Interrupt Programs.”

3-14

Page 207

INT 16H, Function B6H

3

INT 16H, Function B6H Flush Expanded Keyboard Buffer Purpose:

This function initializes the expanded keyboard buffer from an unknown state. The contents of both the native and expanded buffers (all pending keycodes) are cleared and the expanded buffer is ready for new input from the keypad or from string and character insertions. This function has no effect if the expanded buffer is not enabled and keys in the native buffer are preserved.

Call With:

AH =

B6H

Flush expanded keyboard buffer

Return Value:

AH =

00H

Always

AL =

00H 01H

Buffer is cleared Expanded buffer is not installed

See Also:

KEYBUFF.CPP in Appendix B, “Sample Interrupt Programs.”

3-15

Page 208

INT 16H, Function B7H

INT 16H, Function B7H Enable/Disable Ctrl-Alt-Del Warm Boot Purpose:

This function blocks the user’s attempt to warm boot the reader from the keypad.

Call With:

AH =

B7H

Enable/disable Ctrl-Alt-Del warm boot

AL =

00H 01H 02H

Disable warm boot Enable warm boot Get status only

AH =

General status 00H Valid service call 01H Invalid function number

AL =

Keypad warm boot status 00H Warm boot is prohibited 01H Warm boot is permitted

Return Value:

Notes:

This feature locks the application program to protect transient data from being lost during warm boot.

See Also:

JBOOT.CPP in Appendix B, “Sample Interrupt Programs.”

3-16

Page 209

INT 78H, Function 06H

3

INT 78H, Function 06H Restore UART Configurations Purpose:

This function restores the UART registers for COM1. Use this function to restore the UART parameters after the reader has gone through a suspend/resume cycle.

Call With:

AH =

06H

Restore UART configurations

AL =

00H

Save the current UART parameters, and get current UART configurations 01H COM1 02H COM2, scanner port (2010 and 2050) 00H 0000H 0000H

BL = BH = CX = DX = AL =

04H BL = BH = CX = DX =

AL =

06H BL = BH = CX = DX =

Notes:

Restore the UART configuration 01H COM1 02H COM2, scanner port (2010 and 2050) 00H 0000H 0000H Store the FCR parameter (FIFO control register) 01H COM1 02H COM2, scanner port (2010 and 2050) FCR value 0000H 0000H

The parameter values for the communications ports (01H and 02H) are correct as shown. COM4 is not allowed. You can find complete register descriptions in generic data sheets for the 16x550 UART. You can find the FIFO Control Register (FCR) descriptions in your JANUS user’s manual.

3-17

Page 210

INT 78H, Function 06H

Notes:

When power resumes after a suspend/resume cycle, reader services are restored in a manner transparent to client software. If your application uses the COM1 or COM2 UART directly for serial communications without the Intermec protocol handler software, your application must follow these guidelines: 16x550 UART The 16x550 UART prevents transparent restoration of COM1 or COM2 configurations when the reader is cycled through suspend/resume. Specifically, the 16x550’s FCR is a write-only register that prohibits a transparent save operation prior to removing power from the UART. To prevent FCR-related problems in your communications application, use subfunction 06H as described below. PC-Native UART You can ignore the UART restore issue altogether by using the UART in its PC-native mode (for example, without the FIFO buffering feature that is equivalent to a 16x450 or the original 8250 UART), since all other registers are readable and the system software manages them transparently. Using Subfunctions If your application uses the FIFO feature of the 16x550, you can use subfunction 06H to store the FCR parameter (assuming all other UART registers are configured by the application). Once the FCR value is stored (a one-time operation), the entire set of UART registers are restored transparent to the application. Serial communications can survive all suspend/resume cycles for the duration of the application’s run session. Baud rates and their corresponding index values are as follows:

3-18

Baud Rate

Index Value

Baud Rate

Index Value

110

0

9600

6

300

1

19200

7

600

2

38400

8

1200

3

57600

9

2400

4

115000

10

4800

5