|
| com_tx_active| Summary | |
#include <net_config.h>
BOOL com_tx_active (void);
| | Description | | The com_tx_active function checks to see if the serial transmission is still active. The serial transmission is active until it has finished sending the last byte from the transmit buffer. The com_tx_active function is part of RL-TCPnet. The prototype is defined in net_config.h. note - When TCPnet has decided to shutdown the serial data link, it monitors the serial transmission using the com_tx_active function. Only when the output buffer is empty, TCPnet hangs up the modem and disconnects the phone line.
- The serial driver functions must not use waiting loops because loops block the TCPnet system.
- You must provide the com_tx_active function if the serial controller you use is different from the ones provided in the TCPnet source.
| | Return Value | | The com_tx_active function returns __TRUE if the serial transmission is still active. Otherwise, it returns __FALSE. | | See Also | | com_getchar, com_putchar, init_serial | | Example | |
BOOL com_tx_active (void) {
/* Return status Transmitter active/not active. */
/* When transmit buffer is empty, 'tx_active' is FALSE. */
return (tx_active);
}
|
|
|