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 22 of 42

JANUS PSK for C/C++ Reference Manual, Version 2.1, pages 211 to 220

Pages 211 to 220 of 414

The original document is the PDF (690 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 211

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 212

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 213

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 214

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 215

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 216

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

Page 217

INT 78H, Function 06H

Notes:

3

The restore option is applied to the entire set of UART registers: • FIFO Control Register FCR • Divisor Latch least significant byte DLL, most significant byte DLL, and DLM baud rate selectors • Interrupt Enable Register IER • Line Control Register LCR • Modem Control Register MCR • Scratch Register SCR The Receive Buffer Register (RBR) holding the last received data value (prior to entering the Suspend state) is not restored. The serial communications application currently controlling the COM port must handle this protocol recovery issue. Serial activity occurring at the time of a Suspend keeps the unit awake until a timeout (see Chapter 4, “Advanced Programming”). However, critical Suspend conditions can cause a Suspend before all serial activity is completed. Client Software Requirements The power management (IPM) software normally calls the restore service. Thus, the COM1 or COM2 communications software does not need subfunction 04H. For testing purposes, any software client that wants to restore all preset (memorized) UART configurations can call subfunction 04H. Before invoking the restore service, client software must protect the system by ensuring that either all COM interrupts are disabled (IRQ3 and IRQ4), or that the COM(n) interrupt service is initialized to begin processing serial data before the UART restore service returns to the calling software.

Return Value:

When AL = 00H, the function returns: AL =

00H 01H 05H FFH

Successful Invalid AX register Invalid COM port number in BL register Undefined baud rate

AH =

Baud rate table index value (see Notes)

3-19

Page 218

INT 78H, Function 06H

Return Value:

BL =

Interrupt enable register

BH =

FIFO control register (returns the value set by subfunction 06 only, since you cannot read the FCR)

CL =

DLL value (baud divisor LSB)

CH =

DLM value (baud divisor MSB)

DL =

LCR value (line control register)

DH =

MCR value (modem control register)

When AL = 06H, the function returns:

See Also:

3-20

AL =

00H 01H 05H

Valid service Invalid AX register Invalid parameters (BL must be 01H, and DL must be 00H)

AH =

00H

BX =

Unchanged

CX =

Unchanged

DX =

Unchanged

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

Page 219

INT 79H, Function 00H

3

INT 79H, Function 00H LCD Display Contrast Purpose:

This function controls the LCD contrast. It does not interfere with the keypad user control.

Call With:

AH =

00H

LCD display contrast

AL =

00H BL = BL =

Increase or decrease contrast by one level 00H Increase 01H Decrease

AL =

01H BL =

Set contrast to an absolute value 00H to 1FH Indicates the absolute contrast value (0 to 31) 02H Restore contrast level 03H Return current contrast level

Return Value:

AL =

Absolute contrast value achieved. If AL = FFH, then the interrupt routine received bad parameters.

See Also:

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

3-21

Page 220

INT 79H, Function 01H

INT 79H, Function 01H LCD Display Backlight Purpose:

This function controls the LCD backlight. It does not interfere with the keypad user control.

Call With:

AH =

01H

LCD display backlight

AL =

00H 01H 02H 03H 04H

Backlight OFF Backlight ON Backlight toggle Return status Enable or disable the auto-off feature BL = 00H Disable BL = 01H Enable Set backlight timeout period BL = 01H to 3CH 1 to 60 seconds Return backlight timeout period Return auto-off status

05H 06H 07H Return Value:

When AL = 00H, 001H, or 05H, the return values are: AL =

00H FFH

Good parameters were received Bad parameters were received

When AL = 02H, the return values are: AL =

00H 01H FFH

Backlight is OFF after toggle Backlight is ON after toggle Bad parameters were received

When AL = 03H, 04H, or 07H, the return values are: AL =

3-22

00H 01H FFH

Disable Enable Bad parameters were received