EasyManua.ls Logo

W&T Com-Server++ - Page 195

W&T Com-Server++
228 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
195
W&T Expanded services of the Com-Server
Subject to error and alteration
word break_mode :1; //1 = set_break was set - HighByte
//0 = clear_break was set |
word dummy :1; //not used |
word send_xoff :1; //Send XOFF asynchron |
word ush_rd :1; //Flush serial input buffer |
word ush_wr :1; //Flush serial output buffer|
word set_rts_dtr :1; //set RTS to rts_hold and |
//DTR to dtr_hold |
word set_break :1; //Independent setting break |
//mode |
word clear_break :1; //Independent clearing break |
//mode -
};
};
word cbInQue; //Receive byte count of COM ring buffer
word cbOutQue; //Transmit byte count of COM ring buffer
} 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
Depending on how the Com-Server and the
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-

Table of Contents

Related product manuals