The text of a manual · part 22 of 40
2D JANUS PSK for C/C++ Reference Manual, pages 211 to 220
Pages 211 to 220 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 211
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 212
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 213
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 214
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
Page 215
INT 79H, Function 01H
Return Value:
When AL = 06H, the return values are: AL =
See Also:
3
0 to 60 Backlight timeout in seconds FFH Bad parameters were received
BACKLITE.CPP in Appendix B, “Sample Interrupt Programs.”
3-23
Page 216
INT 79H, Function 02H
INT 79H, Function 02H LCD Display Size Mode Manager Purpose:
This function establishes the display setup when in text mode.
Call With:
AH =
02H
LCD display size mode manager
AL =
00H BH = BH = BH = BH = BL = BL = BL = BL = CH = CH =
Initialize 80x25 or 40x25 text mode 00H Video mode 0 (40 x 25) 01H Video mode 1 (40 x 25) 02H Video mode 2 (80 x 25) 03H Video mode 3 (80 x 25) 00H Scroll at line 25 01H Scroll at line 16 (2010 and 2020) 02H Scroll at line 8 (2010 and 2020) 03H Scroll at line 13 (2050 and double height) 00H Standard character height 01H Double character height
AL =
01H 02H 03H
Initialize 20x16 text mode (2010 and 2020) Initialize 20x8 text mode (2010 and 2020) Return current video mode, size mode, character height, and scroll mode Initialize 10x16 text mode (2010 and 2020) Initialize 10x8 text mode (2010 and 2020) Enable or disable character height and scroll mode keys BL = 00H Disable 01H Enable
04H 05H 06H
AL =
3-24
07H
Returns whether the character height and scroll mode keys are enabled or disabled
Page 217
INT 79H, Function 02H
Return Value:
3
When AL = 03H, the return values are: AH =
00H 01H 02H 03H
Video mode 0 Video mode 1 (40x25) Video mode 2 (80x25) Video mode 3 (80x25)
AL =
00H 01H 02H 03H 04H
80x25 or 40x25 size mode 20x16 size mode (2010 and 2020) 20x8 size mode (2010 and 2020) 10x16 size mode (2010 and 2020) 10x8 size mode (2010 and 2020)
BH =
00H 01H
Standard character height Double character height
BL =
00H 01H 02H
Scroll mode 0 Scroll mode 1 Scroll mode 2
When AL = 07H, the return values are: AL =
00H 01H FFH
Disabled Enabled Bad parameters were received
When AL = any other value (except 03H and 07H), the return values are: AL =
See Also:
00H FFH
Good parameters were received Bad parameters were received
PHTERM.CPP in Appendix B, “Sample Interrupt Programs.”
3-25
Page 218
INT 79H, Function 03H
INT 79H, Function 03H Viewport Move Purpose:
This function provides program and keypad control of the viewport. This service is available only in modes where the display buffer cannot be completely viewed within a 20x16 window. This function does not apply to the JANUS 2050.
Call With:
AH =
03H
Viewport move
AL =
00H BL = BL =
Disable or enable movement keys 00H Disable 01H Enable
AL =
01H BX = CX =
Absolute viewport move Row number Column number
AL =
02H BH =
Relative viewport move Direction 00H Left 01H Right 02H Up 03H Down Calling source 00H Keypad 01H Application Distance 00H Default distance
BL =
CX =
3-26
AL =
03H BL = BH = CX =
Set the viewport default step size Video mode Row default step size Column default step size
AL =
04H
Get the viewport default step size
AL =
05H
Get the video, size, and position mode
Page 219
INT 79H, Function 03H
Call With:
AL =
06H
Return Value:
When AL = 01H, the return values are:
3
Return whether viewport keys are enabled or disabled
AX = nn FFH
Row number (nn) actually achieved Bad parameters were received
BX = nn FFH
Column number (nn) actually achieved Bad parameters were received
When AL = 02H, the return values are: AX = nn FFH
Row number (nn) actually achieved Bad parameters were received
BX = nn FFH
Column number (nn) actually achieved Bad parameters were received
When AL = 03H, the return values are: AL =
00H FFH
Good parameters were received Bad parameters were received
When AL = 04H, the return values are: AL = nn FFH
Row step size (nn) Bad parameters were received
BH = nn
Row default step size (nn)
BX = nn
Column step size (nn)
CX = nn
Column default step size (nn)
3-27
Page 220
INT 79H, Function 03H
Return Value:
When AL = 05H, the return values are: AH = nn
Video mode (nn)
AL = nn FFH
Size mode (nn) Bad parameters were received
BX = nn
Row number (nn)
CX = nn
Column number (nn)
When AL = 06H, the return values are: AL =
See Also:
3-28
00H 01H FFH
Disabled Enabled Bad parameters were received
PHTERM.CPP in Appendix B, “Sample Interrupt Programs.”