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
__TRUE = executed successfully; serial transmission
still active
__FALSE (0) = transmission is inactive; transmit buffer
is empty
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.