Serial Communication - Z-World Wildcat BL2000 User Manual

C-programmable, with ethernet
Table of Contents

Advertisement

4.4.3 Serial Communication

Library files included with Dynamic C provide a full range of serial communications sup-
port. The
RS232.LIB
library provides packet-based serial functions where packets can be delim-
PACKET.LIB
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 2000 Serial Port Software.
The following function calls are specific to the BL2000.
int serMode(int mode);
User interface to set up BL2000 serial communication lines. Call this function after
If Mode 1 is selected, CTS/RTS flow control is exercised using the
serCflowcontrolOff
PARAMETER
mode is the defined serial port configuration.
Mode
0
RS-232, 3-wire
1
RS-232, 5-wire
RETURN VALUE
0 if valid mode, 1 if not.
SEE ALSO
ser485Tx, ser485Rx
void ser485Tx(void);
Sets (high) pin 3 (DE) to enable Tx.
SEE ALSO
serMode, ser485Rx
void ser485Rx(void);
Resets (low) pin 3 (DE) to disable Tx.
SEE ALSO
serMode, ser485Tx,
42
library provides a set of circular-buffer-based serial functions. The
functions from the
B
RS-232, 3-wire
CTS/RTS
serCflowcontrolOn, serCflowcontrolOff
serCflowcontrolOn
RS232.LIB
library.
Serial Port
C
RS-485
RS-485
serXOpen()
.
and
D
Wildcat (BL2000)

Advertisement

Table of Contents
loading

Table of Contents