ISerial::FlowControl

Description

If this property is set to ASRL_FLOW_NONE, the transfer mechanism does not use flow control, and buffers on both sides of the connection are assumed to be large enough to hold all data transferred. If this property is set to ASRL_FLOW_XON_XOFF, the transfer mechanism uses the XON and XOFF characters to perform flow control. The transfer mechanism controls input flow by sending XOFF when the receive buffer is nearly full, and it controls the output flow by suspending transmission when XOFF is received.

If this property is set to ASRL_FLOW_RTS_CTS, the transfer mechanism uses the RTS output signal and the CTS input signal to perform flow control. The transfer mechanism controls input flow by unasserting the RTS signal when the receive buffer is nearly full, and it controls output flow by suspending the transmission when the CTS signal is unasserted.

If this property is set to ASRL_FLOW_DTR_DSR, the transfer mechanism uses the DTR output signal and the DSR input signal to perform flow control. The transfer mechanism controls input flow by unasserting the DTR signal when the receive buffer is nearly full, and it controls output flow by suspending the transmission when the DSR signal is unasserted.

This property can specify multiple flow control mechanisms by bit-ORing multiple values together. However, certain combinations may not be supported by all serial ports and/or operating systems.

VB Prototype

Dim value As SerialflowControl
value = object.FlowControl

object.FlowControl = value

C++ Prototype

HRESULT get_FlowControl(
  SerialFlowControl* FlowControl
);

HRESULT put_FlowControl(
  SerialFlowControl FlowControl
);

Return Value

Refer to the table of return codes.

See Also

ComponentVersion, SpecVersion, HardwareInterfaceName, HardwareInterfaceNumber, HardwareInterfaceType, LockState, OptionString, ProgID, ResourceName, SessionType, SoftwareManufacturerID, SoftwareManufacturerName, Timeout, LastStatus, BytesAvailable, BaudRate, DataBits, ClearToSendState, DataCarrierDetectState, DataSetReadyState, DataTerminalReadyState, EndIn, EndOut, FlowControl, Parity, RingIndicatorState, RequestToSendState, StopBits, ReplacementCharacter, XONCharacter, XOFFCharacter, GetAttribute, SetAttribute, LockRsrc, UnlockRsrc, Init, Close, SetBufferSize, Flush, ISerial Overview