W&T
word break_mode
word dummy
word send_xoff
word flush_rd
word flush_wr
word set_rts_dtr
word set_break
word clear_break
};
};
word cbInQue;
word cbOutQue;
} COM_STAT;
Flushing buffers and influencing the handshake:
1) Copy the complete structure of an info packet received by
the Com-Server port and fill in the HighByte of the COM_
STAT structure.
2) All commands whose flags have the value 1 are executed.
If you set the flag set_rts_dtr, be sure that you also set the
flags rts_hold and dtr_hold in the LowByte correspondingly
as well.
1
D e p e n d i n g o n h o w t h e C o m - S e r v e r a n d t h e
box_cntrl.f_flags structure are configured, the RTS and
DTR signals will be used for a LOCK/UNLOCK display or for
serial flow control. In this case the Com-Server itself takes
over control of these pins. The command flag set_rts_dtr
should therefore be used only for the following setting of the
box_cntrl.f_flags structure:
f_rts_disable und f_dtr_disable = 1
f_inx_dtr und f_inx_rts = 0
Sending a break signal
The set_break/clear_break flags can be used to activate/
deactivate break mode and send a break signal to the seri-
ally connected device. Activated break mode is signaled by
break_mode=1. After setting set_break, break mode is ac-
Subject to error and alteration
Expanded services of the Com-Server
:1;
//1 = set_break was set
//0 = clear_break was set
:1;
//not used
:1;
//Send XOFF asynchron
:1;
//Flush serial input buffer |
:1;
//Flush serial output buffer|
:1;
//set RTS to rts_hold and
//DTR to dtr_hold
:1;
//Independent setting break |
//mode
:1;
//Independent clearing break |
//mode
//Receive byte count of COM ring buffer
//Transmit byte count of COM ring buffer
-
HighByte
|
|
|
|
|
|
-
195
Need help?
Do you have a question about the Com-Server++ and is the answer not in the manual?
Questions and answers