serSetHandshake (Function) |
Top Previous Next |
serSetHandshake controls the handshaking on the serial port by using CTS and RTS signals. This function is only supported on serial ports with control signals (typically serial port 1). By using RTS/CTS handshake, the device will only transmit when CTS is active. RTS will be set to inactive when the receive buffer is more than 80% full, and it will be set back to active when the the receive buffer is less than 40% full. When sending data it is possible to specify a timeout waiting for the handshake.
Input: port : SINT (0..127) (default 1) Selects which serial port to use.
RtsCts : BOOL If true, RTS and CTS handshaking is active.
Returns: INT
Declaration: FUNCTION serSetHandshake : INT;
Example: INCLUDE rtcu.inc |