The text of a manual · part 23 of 40
2D JANUS PSK for C/C++ Reference Manual, pages 221 to 230
Pages 221 to 230 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 221
INT 7CH, Function 64H
3
INT 7CH, Function 64H Generate Sound Purpose:
This function generates a sound of specified pitch and duration.
Call With:
AX =
64H
CX =
00H
DX =
00H
Generate sound
ES:BX =Pointer to the IM_BEEP_PARAMS structure The definition for this structure is as follows: Byte
Description
0
Requested volume 0 = Off 1 = Quiet 2 = Normal 3 = Loud 4 = Very loud 5 = Default volume
1 to 2
Pitch (20 to 20,000 Hz)
3 to 4
Duration (1 to 65,000 ms)
5 to 6
Off time (1 to 65,000 ms)
nnnn
One of the standard status codes defined in Appendix A, “Status Codes.”
Return Value:
AX =
See Also:
JBEEP.CPP in Appendix B, “Sample Interrupt Programs.”
3-29
Page 222
INT 7DH, Function 08H
INT 7DH, Function 08H Reader Wedge Control Purpose:
This function provides Reader Wedge control.
Call With:
AH =
08H
Reader Wedge control
AL =
00H 01H
Clear abort callback address Modify reader configuration ES:BX Far pointer to a reader command string CX Length of the reader string Get input mode Get label symbology ES:BX Far pointer to a variable receiving the symbology
03H 06H
3-30
07H
Get length of received string CX 0010H Label selected 0020H Keyboard selected 0001H COM1 selected 0002H COM2, scanner selected (2010 and 2050) 0008H COM4 selected
08H
Get input status
0AH
Get input from keyboard or scanned label (see IRL command A) ES:BX Far pointer to IRL_PARAMS_S
0BH
Receive input from keyboard (see IRL command K) ES:BX Far pointer to IRL_PARAMS_S
0CH
Receive numeric input from keyboard or scanned label (see IRL command N) ES:BX Far pointer to IRL_PARAMS_S
Page 223
INT 7DH, Function 08H
Call With:
AL =
3
0DH
Receive input from any source in any format (see IRL command V) ES:BX Far pointer to IRL_PARAMS_S CL 00H Edit disable 01H Edit enable CH Beep mode: 00H Application beep 01H Wedge beep 02H No beep DL Display flag: 00H Flag disable 01H Flag enable DS:SI Far pointer to allowable input sources: 0000H No input source 0010H Label selected 0020H Keyboard selected 0001H COM1 selected 0002H COM2, scanner selected (2010 and 2050) 0008H COM4 selected 007FH All selected
0EH
Receive input from a selected communications port (see IRL command Y) ES:BX Far pointer to IRL_PARAMS_S CL 00H COM1 selected 01H COM2, scanner selected (2010 and 2050) 03H COM4 selected DL Protocol mode: 00H No change 01H Protocol on 02H Protocol off 03H New end-of-message character DS:SI Far pointer to the end-of-message character
10H
Link to a selected communications port ES:BX Far pointer to memory area used by Reader Wedge CX 0000H COM1 selected 0001H COM2, scanner selected (2010 and 2050) 0003H COM4 selected DX Number of bytes to allocate for the buffer array
3-31
Page 224
INT 7DH, Function 08H
Call With:
3-32
AL =
1BH
Receive input from selected source and place into buffer CX Allowed input source: 0010H Label selected 0020H Keyboard selected 0001H COM1 selected 0002H COM2, scanner port (scanner) selected (2010 and 2050) 0008H COM4 selected DX Timeout value ES:BX Far pointer to the returned source: 0000H No selection made 0010H Label selected 0020H Keyboard selected 0001H COM1 selected 0002H COM2, scanner port (scanner) selected (2010 and 2050) 0008H COM4 selected DS:SI Far pointer to the input string
1EH
Set serial protocol mode CL 00H COM1 01H COM2, scanner port (2010 and 2050) 03H COM4 CH Protocol mode: 00H No change 01H Protocol on 02H Protocol off 03H New end-of-message character DL End-of-message character
1FH
Set abort callback address CX Input source: 0010H Label selected 0020H Keyboard selected 0001H COM1 selected 0002H COM2, scanner selected (2010 and 2050) 0008H COM4 selected 007FH All selected ES:BX Far pointer to the callback routine
Page 225
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 226
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 227
INT 7DH, Function 0AH
3
INT 7DH, Function 0AH Get 2D Decoder Firmware Version Purpose:
This function returns all pertinent information about the revision level of the 2D Decoder and its firmware.
Call With:
AH = ES:BX =
0AH
Get 2D Decoder version Far pointer to the client’s Decoder response buffer (response buffer must be large enough to hold the response string)
Return Value:
The return value in register AX is one of the standard status codes defined in Appendix A, “Status Codes.”
Notes:
The JANUS 2D upon boot queries the decoder for the firmware revision level. This function returns the string “UNKNOWN” until the decoder replies with the decoder revision level.
See Also:
PL220VER.CPP in Appendix B, “Sample Interrupt Programs.”
3-35
Page 228
INT 7DH, Function 0CH
INT 7DH, Function 0CH Open COM2 Purpose:
This function opens COM2 for use by the 2D Decoder.
Call With:
AH =
Return Value:
The return value in register AX is one of the standard status codes defined in Appendix A, “Status Codes.”
Notes:
The JANUS 2D upon boot opens COM2 for use by the 2D Decoder. When COM2 is being shared with other RS-232C devices (i.e., SAVI Interrogator), it is necessary to close COM2 prior to the other device using the port and open it backup prior to the 2D Decoder using COM2.
See Also:
OPEN.CPP in Appendix B, “Sample Interrupt Programs.”
3-36
0CH
Open COM2
Page 229
INT 7DH, Function 0DH
3
INT 7DH, Function 0DH Close COM2 Purpose:
This function closes COM2 so other devices (i.e. SAVI Interrogator) can use COM2.
Call With:
AH =
Return Value:
The return value in register AX is one of the standard status codes defined in Appendix A, “Status Codes.”
Notes:
The JANUS 2D upon boot opens COM2 for use by the 2D Decoder. When COM2 is being shared with other RS-232C devices (i.e., SAVI Interrogator), it is necessary to close COM2 prior to the other device using the port and open it backup prior to the 2D Decoder using COM2.
See Also:
CLOSE.CPP in Appendix B, “Sample Interrupt Programs.”
0DH
Close COM2
3-37
Page 230
INT 7EH, Function 01H
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:
3-38
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.