OnRtsControl Event

Value of fRtsControl member of DCB structure changed.

Syntax

Visual Basic
Sub OnRtsControl(Value As Long)
Visual C++ (MFC)
void OnRtsControl(LONG Value);

Parameters

Value

Contains value of fRtsControl member of DCB structure.
The RTS (request-to-send) flow control. This member can be one of the following values. 0x00 (RTS_CONTROL_DISABLE) Disables the RTS line when the device is opened and leaves it disabled.
0x01 (RTS_CONTROL_ENABLE) Enables the RTS line when the device is opened and leaves it on.
0x02 (RTS_CONTROL_HANDSHAKE) Enables RTS handshaking. The driver raises the RTS line when the "type-ahead" (input) buffer is less than one-half full and lowers the RTS line when the buffer is more than three-quarters full. If handshaking is enabled, it is an error for the application to adjust the line by using the EscapeCommFunction() function.
0x03 (RTS_CONTROL_TOGGLE) Specifies that the RTS line will be high if bytes are available for transmission. After all buffered bytes have been sent, the RTS line will be low.