User`s manual

126 www.rabbit.com Applications Programming
6.6.10 Serial Communication
serMode
int serMode(int mode);
DESCRIPTION
Sets up user interface for the serial communication lines. This function must be called after exe-
cuting serXOpen(). Whether you are opening one or multiple serial ports, this function must
be executed after executing the last serXOpen() AND before you start using any of the serial
ports.
This function is non-reentrant.
PARAMETER
mode Defined serial port configuration if devices are installed
RETURN VALUE
0: Valid mode
1: Invalid mode
SEE ALSO
API functions in RS232.lib. Documention available in “Function Lookup” in the Dynamic C
pulldown help menu; function documentation also in the Dynamic C Function Reference Manu-
al.
Table 6-7.
Mode
Serial Port
F D or E
0 RS-232, 3-wire RS-232, 3-wire (if present)
1 RS-232, 5-wire CTS/RTS