COMM-DRV/Lib: IsTransmitBufferEmpty() Returns true if transmit buffer is empty

Description-

Returns true if the transmit buffer is empty.

Syntax-

stat = IsTransmitBufferEmpty(port);

On Entry-

int port;

Port previously opened with InitializePort() or OpenComPort().

On Exit-

int stat;

0 If transmit buffer is not empty.

1 If transmit buffer is empty.

See Also-

SpaceInTransmitBuffer()
TransmitBufferSize()

Example-

#include "comm.h"
int port=0;
 int stat;
if ((stat = IsTransmitBufferEmpty(port)) == 1)
    {
    printf("Buffer is empty\n");
    }