|
PortController.NET
RtsCts Property
Enables/Disables RTS/CTS hardware handshaking.
Syntax
[Visual Basic]
object.RtsCts [ = value ]
[C#]
object.RtsCts [ = value ]
[C++]
object->RtsCts [ = value ]
Parameters
object
An object expression that evaluates to a PortController object.
value
A boolean value representing the state of RTS/CTS handshaking.
Return Value
The boolean value true if RTS/CTS handshaking is on, false otherwise.
Default
False
Remarks
When RTS/CTS handshaking is enabled the RTS line fluctuates between on and off.
Reading the Rts property returns the current value of the fluctuating RTS line.
Errors
None
Example
[Visual Basic]
'Set RTS/CTS
myPortController.RtsCts = True
'Get RTS/CTS
Dim rtscts As Boolean
rtscts = myPortController.RtsCts
[C#]
// Set RTS/CTS
myPortController.RtsCts = true;
// Get RTS/CTS
Boolean rtscts = myPortController.RtsCts;
[C++]
// Set RTS/CTS
myPortController->RtsCts = true;
// Get RTS/CTS
Boolean rtscts = myPortController->RtsCts;
See Also
DtrDsr property | XonXoff property
|