{
case 0 : break;
case 1 : cc=cc|0x04; break;
case 2 : cc=cc|0x0c; break;
}
switch (stop)
{
case 1 : break;
case 2 : cc=cc|0x02; break;
}
switch (data)
{
case 7 : break;
case 8 : cc=cc|0x01; break;
}
regs.h.ah = 0x1C;
regs.h.bh = 1;
regs.h.al = cc;
int86(0x21,®s,®s);
}
1C
Software Control Flow
Entry Parameter:
AH = 1CH
BH = 2
AL = 0
; Enable XON/XOFF control flow
1
; Disable XON/XOFF control flow
Return Value: None
Note:
Only for NONE communication protocol
Example
:
void TC_flow_ctrl(int status)
{
if (status == 0)
// Set flow control to none
{
regs.h.ah = 0x1C;
regs.h.bh = 2;
regs.h.al = 1;
int86(0x21,®s,®s);
regs.h.ah = 0x1C;
regs.h.bh = 3;
regs.h.al = 1;
int86(0x21,®s,®s);
Summary of Contents for PT600
Page 1: ...PT600 Portable Terminal Programming Reference Guide Document number 3506000120...
Page 7: ......
Page 16: ......
Page 20: ...regs h bh 5 regs h al unsigned char type regs h bl unsigned char status int86 0x21 regs regs...
Page 57: ......
Page 66: ...Host Command STX ESC CMD parameters CS1 CS2 ADDR Acknowledgement ACK Negative ACK NAK...