INtime SDK Help
FlushCommBuffers (Serial Communications)
INtime SDK v7.1 > About INtime > Networking and I/O > Serial Communications (COMM) > FlushCommBuffers (Serial Communications)

Flushes the buffers of the specified COM device and causes all buffered data to be written to the device.

BOOLEAN FlushCommBuffers(
  COMMHANDLE hComm  // handle to device
);

Parameters

hComm
[in] Handle to an open device.
This function only flushes the transmit buffer.

Return Values

Non-zero
Success.
0 (zero)
Failure. To determine the status, call GetLastRtError.

Status

E_DISCONNECTED
COMM channel is closed.

Remarks

Note that this function is subject to flow control but not to write time-outs, and it does not return until all pending write operations are transmitted.

Requirements

Versions Defined in Include Link to
INtime 3.1 intime/rt/include/comm.h comm.h comm.lib
See Also