Specifies what kind of flow control to enable for this serial port.
By default, no flow control is enabled. Built-in flow control constants should be used
in this method (
#FLOW_CONTROL_RTS_ENABLED,
#FLOW_CONTROL_CTS_ENABLED,
#FLOW_CONTROL_DTR_ENABLED,
#FLOW_CONTROL_DSR_ENABLED,
#FLOW_CONTROL_XONXOFF_IN_ENABLED,
#FLOW_CONTROL_XONXOFF_OUT_ENABLED), and can be OR'ed together.
Valid flow control configurations are:
None:
#FLOW_CONTROL_DISABLED
CTS:
#FLOW_CONTROL_CTS_ENABLED
RTS/CTS:
#FLOW_CONTROL_RTS_ENABLED |
#FLOW_CONTROL_CTS_ENABLED
DSR:
#FLOW_CONTROL_DSR_ENABLED
DTR/DSR:
#FLOW_CONTROL_DTR_ENABLED |
#FLOW_CONTROL_DSR_ENABLED
XOn/XOff:
#FLOW_CONTROL_XONXOFF_IN_ENABLED |
#FLOW_CONTROL_XONXOFF_OUT_ENABLED
Note that only one valid flow control configuration can be used at any time. For example, attempting to use both XOn/XOff
and RTS/CTS will most likely result in an unusable serial port.
Also note that some flow control modes are only available on certain operating systems. Valid modes for each OS are:
Windows: CTS, RTS/CTS, DSR, DTR/DSR, Xon, Xoff, Xon/Xoff
Mac: RTS/CTS, Xon, Xoff, Xon/Xoff
Linux: RTS/CTS, Xon, Xoff, Xon/Xoff