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

JANUS PSK for C/C++ Reference Manual, Version 2.1, pages 231 to 240

Pages 231 to 240 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 231

INT 7DH, Function 08H

Call With:

Return Value:

AL =

20H

Set input mode CX 0000H Programmer mode 0001H Wedge mode 0002H Desktop mode

22H

Set standby wait mode CX Timeout value

23H

Unlink a communications port CX = 0000H COM1 0001H COM2, scanner port (2010 and 2050) 0003H COM4

3

When AL is one of the following values, the return value in register AX is one of the standard status codes defined in Appendix A, “Status Codes.” AL =

00H 01H 06H 0AH

0BH 0CH 0DH 0EH

10H 1BH 1EH 1FH

22H 23H

When AL = 03H, the return values are: AX =

00H 01H 02H

Programmer mode Wedge mode Desktop mode

When AL = 07H, the return value is: AX = The length of the string. When AL = 08H, the return values are: AX =

00H 10H 20H 01H 02H 08H 7FH

No selection made Label selected Keyboard selected COM1 selected COM2, scanner port selected (2010 and 2050) COM4 selected All selected

3-33

Page 232

INT 7DH, Function 08H

Return Value:

When AL = 20H, there is no return value.

Notes:

Because the number of parameters passed to the IRL functions exceed the registers available, you must pass a structure variable of type struct IRL_PARAMS_S as shown in the following C code: typedef struct { IM_USHORT timeout; IM_LENGTH_SPEC test_table[]; IM_UCHAR mask_string[]; IM_UCHAR *string; IM_USHORT *cmd_count; IM_DECTYPE *symbology; } IRL_PARAMS_S;

3-34

Page 233

INT 7EH, Function 01H

3

INT 7EH, Function 01H Get Application Break Status Purpose:

This function determines if the application break sequence was entered on the keypad.

Call With:

AH = ES:BX =

Return Value:

Notes:

01H

Get application break status Far pointer to the client’s response buffer structure (two bytes, R0 and R1)

AH =

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

R0 =

Keyboard scanner CPU (KSCPU) communication status 00H Successful 01H Timeout occurred during the execution of the transaction 02H No KSCPU response (timeout on first attempted transmit) 03H KSCPU is busy 04H Forced the transaction to abort 05H KSCPU failed to process an acknowledged command within the timeout period

R1 =

Application break status 00H Application break request has not been made FFH Application break request has been made

Applications that support the application break feature must either poll the unlock status using this service, or implement a Ctrl-C handler (INT 23H) that queries using this service. In the latter case, the operator is required to enter Ctrl-C on the keypad after entering the application break sequence and resume the unit by pressing the 1/0 key.

3-35

Page 234

INT 7EH, Function 01H

To enter an application break sequence 1. Press 2. Press 3. Press 4. Press

L IB

L to turn off the reader. -

- at the same time.

. This sets the reader’s application break bit.

to turn on the reader.

This sequence resets the application break request bit if the bit is TRUE. A new application that monitors this bit can execute without terminating on the same condition that terminated the previous application. See Also:

3-36

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

Page 235

INT 7EH, Function 03H

3

INT 7EH, Function 03H Get Keypad Scanner Version Purpose:

This function returns all pertinent information about the revision level of the KSCPU and its firmware.

Call With:

AH = ES:BX =

Return Value:

03H

Get keypad scanner version Far pointer to the client’s KSCPU response buffer (five bytes, R0 to R4)

AH =

General status 00H Valid service call 01H Invalid function

R0 =

KSCPU communication status 00H Successful 01H Timeout occurred during the execution of the transaction 02H No KSCPU response (timeout on first attempted transmit) 03H KSCPU is busy 04H Forced transaction abort 05H KSCPU failed to process an acknowledged command within the timeout period

R1 =

KSCPU minor revision level

R2 =

KSCPU major revision level

R3, R4 = Workspace padding (required) See Also:

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

3-37

Page 236

INT 7EH, Function 04H

INT 7EH, Function 04H Get Keypad Map Table ID and Status Purpose:

This function returns the keypad map table ID and status.

Call With:

AH = ES:BX =

Return Value:

04H

Get keypad map table ID and status Far pointer to the client’s KSCPU response buffer (seven bytes, R0 to R6)

AH =

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

R0 =

KSCPU communication status 00H Success transaction 01H Timeout occurred during the execution of the transaction 02H No KSCPU response (timeout on first attempted transmit) 03H KSCPU is busy 04H Forced transaction abort 05H KSCPU failed to process an acknowledged command within the timeout period

R1 =

Keypad ID number

R2 =

Table validation pass/fail FFH Pass 00H Fail

R3, R4 = Keypad checksum/CRC 16-bit word, R3 is LSB R5, R6 = Workspace padding (required) See Also:

3-38

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

Page 237

INT 7EH, Function 05H

3

INT 7EH, Function 05H Enable/Disable KSCPU Keyclick Purpose:

This function turns the keypad clicker ON or OFF.

Call With:

AH =

05H

Enable/disable KSCPU keyclick

AL =

00H 01H 02H

Turn the keyclick OFF Turn the keyclick ON Get status only

ES:BX =

Return Value:

Far pointer to the client’s KSCPU response buffer (four bytes, R0 to R3)

AH =

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

R0 =

KSCPU communication status 00H Successful 01H Timeout occurred during the execution of the transaction 02H No KSCPU response (timeout on first attempted transmit) 03H KSCPU is busy 04H Forced transaction abort 05H KSCPU failed to process an acknowledged command within the timeout period

R1 =

Keyclick status 00H Keyclick disabled FFH Keyclick enabled

R2, R3 = Workspace padding (required) See Also:

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

3-39

Page 238

INT 7EH, Function 06H

INT 7EH, Function 06H Enable/Disable Numeric Keypad Purpose:

This function toggles the numeric keypad modes of the reader’s keypad. When disabled, normal QWERTY scan codes are sent by the numeric keys. When enabled, the PC KB-102 numeric keypad scan codes are sent instead.

Call With:

AH =

06H

Enable/Disable numeric keypad

AL =

00H 01H 02H 03H

Disable Enable with Num Lock on Enable with NUM LOCK off Get status only

CL =

00H 01H 02H 03H

Prohibit mode-switching from the keypad Permit mode switching from the keypad Reserved Get status only

ES:BX =

Return Value:

3-40

Far pointer to the client’s KSCPU response buffer (five bytes, R0 to R4)

AH =

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

R0 =

KSCPU communication status 00H Successful 01H Timeout occurred during the execution of the transaction 02H No KSCPU Response (timeout on first attempted transmit) 03H KSCPU is busy 04H Forced transaction abort 05H KSCPU failed to process an acknowledged command within the timeout period

Page 239

INT 7EH, Function 06H

Return Value:

R1 =

Number pad status 00H Disabled FFH Enabled

R2 =

Permit status 00H Switching the number pad is prohibited FFH Switching the number pad is permitted

3

R3, R4 = Workspace padding required Notes:

The R2 permit status only affects the manual keypad method of switching the number pad ON and OFF. Even if the numeric keypad is not manually permitted, you can use program-controlled mode changes (regardless of the previous state).

See Also:

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

3-41

Page 240

INT 7EH, Function 08H

INT 7EH, Function 08H Enable/Disable Ctrl Key Purpose:

This function enables or disables the Ctrl key on the reader’s keypad.

Call With:

AH =

08H

Enable/disable Ctrl key

AL =

00H 01H 02H

Disable Enable Get status only

ES:BX =

Return Value:

Far pointer to the client’s KSCPU response buffer (four bytes, R0 to R3)

AH =

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

R0 =

KSCPU communication status 00H Successful 01H Timeout occurred during the execution of a transaction 02H No KSCPU response (timeout on first attempted transmit) 03H KSCPU is busy 04H Forced transaction abort 05H KSCPU failed to process an acknowledged command within the timeout period

R1 =

Ctrl key status 00H Disabled FFH Enabled

R2, R3 = Workspace padding (required) Notes:

The system BIOS does not detect a Ctrl key press when you disable the Ctrl key with this interrupt.

See Also:

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

3-42