PT630 Programming Reference Guide
Page 19 of 59
------------------------------------------------------------------------------------------------------------------
1.5.12.4 Enable/Disable RS232 Port
Entry Parameter: AH = 1AH
BH = 4
AL
=
0/1
;
disable/enable
Return
Value:
None
Example
:
void TD_serial(int status)
{
regs.h.ah= 0x1A;
regs.h.bh= 4;
regs.h.al= (unsigned char)status;
int86(0x21,®s,®s);
}
1.5.12.5 Enable/Disable Key or Key Function
Entry Parameter: AH = 1AH
BH = 5
AL
=
0 ;
All
keys
1 ;
Supervisor
mode
2
; Cold start
3 ;
Warm
start
4
; User mode (press [CMD] for 2 seconds)
5 ;
ALPHA
key
BL =
0
; Disable key or key function
1 ;
Enable
key
or
key
function
Return
Value:
None
Example
:
void TD_keylock(int type,int status)
{
regs.h.ah= 0x1A;
regs.h.bh= 5;
regs.h.al= (unsigned char)type;
regs.h.bl= (unsigned char)status;
int86(0x21,®s,®s);
}