ComXmitting
ComXmitting tests for transmit active on the specified port. This function is useful to insure that all buffered data has been transmitted by the UART before issuing a ComClose. It may also be used to implement a "graceful" close and/or to implement half duplex communications.
- Syntax: int far ComXmitting(handle_t Handle)
- Parameters: handle_t Handle - The handle returned via a successful ComOpen.
- Returns: 0 - if there is no data queued for transmission and the UART
transmitter is currently idle
Non-zero value - if data is queued for transmission (but flow control may
be preventing transmission), or if the UART is actually
transmitting a character
- Comments: ComOpen() must first be called in order to get a valid handle to the
communications port.