Download - UNITECH
Transcript
void TC_select_host(int status)
{
regs.h.ah = 0x1C;
regs.h.al = (unsigned char)status;
regs.h.bh = 0;
int86(0x21,®s,®s);
}
1C
Set host port protocol
Entry Parameters:
AH = 1C
BH = 1
AL = 2
3
Returned Valued:
None
void TC_protocol(int status)
{
regs.h.ah = 0x1C;
regs.h.al = (unsigned char)status;
regs.h.bh = 1;
int86(0x21,®s,®s);
}
1C
; Multi-point (default)
; None protocol
Set serial port flow control
The system provides three handshaking mode for serial port: XON/XOFF,
CTR/RTS and none. The system default flow control for serial port is ?
ONE”. The CTS/RTS is only available while the RS-232 is designated to
serial port.
Entry Parameters:
Returned Value:
AH = 1C
BH = 2
AL = 0
1
2
None
; None
; XON/XOFF
; CTS/RTS
?? NOTE:
If you want to control the hand shaking flow of serial port, you must set the
flow control as “NONE”.
void TC_flow_ctrl(int status)
{
regs.h.ah = 0x1C;
regs.h.al = (unsigned char)status;
regs.h.bh = 2;
int86(0x21,®s,®s);
3-23