int SetCTSMode (int COMPort, int hardwareHandshaking);
Sets the hardware handshaking mode.
By default, hardware handshaking is not used.
When you enable hardware handshaking, the CTS line is monitored to determine when it is safe to send characters to the receiver. Also, the RTS line is raised only when there is space in the input queue to receive additional characters. Optionally, you can tie the DTR line to the RTS line.
SetCTSMode returns an error if you have not opened the port or if you pass an invalid parameter value.
Input | ||||||||||||||
Name | Type | Description | ||||||||||||
COMPort | integer | A number that indicates the COM port on which to operate. This number is paired with deviceName, which represents the COM port, during the OpenComConfig function call. Default Value: 1—COM1 Valid Range: 1—1,000 |
||||||||||||
hardwareHandshaking | integer | The hardware handshaking mode for the selected port. Use hardware handshaking to control the flow of data between the sender and receiver so that the receiver's input buffer does not overflow.
|
Name | Type | Description |
result | integer | The result of this function call. This code is a negative value that specifies the type of error that occurred. |