User’s Manual
49
4.4.4 Serial Communication
Library files included with Dynamic C provide a full range of serial communications sup-
port. The RS232.LIB library provides a set of circular-buffer-based serial functions. The
PACKET.LIB
library provides packet-based serial functions where packets can be delim-
ited by the 9th bit, by transmission gaps, or with user-defined special characters. Both
libraries provide blocking functions, which do not return until they are finished transmit-
ting or receiving, and nonblocking functions, which must be called repeatedly until they
are finished. For more information, see the Dynamic C Function Reference Manual and
Technical Note 213, Rabbit Serial Port Software.
Use the following function calls with the Coyote.
Enables the RS485 transmitter. Transmitted data get echo'ed back into the receive data buffer. These
echo'ed data could be used to know when to disable the transmitter by using one of the following
methods:
Byte mode—disable the transmitter after the same byte that is transmitted is detected in the receive
data buffer.
Block data mode—disable the transmitter after the same number of bytes transmitted is detected in the
receive data buffer.
RETURN VALUE
None.
SEE ALSO
ser485Rx, serXopen
Disables the RS-485 transmitter. This puts the Coyote in listen mode, which allows it to receive data
from the RS-485 interface.
RETURN VALUE
None.
SEE ALSO
ser485Tx, serXopen
void ser485Tx(void);
void ser485Rx(void);