<< Previous | Next >>

serXdatabits

void serXdatabits ( state ); /* where X is A-F */

Description

Sets the number of data bits in the serial format for this channel. Currently seven or eight bit modes are supported. A call to serXopen() must be made before calling this function. This function is non-reentrant.

The functions serEdatabits() and serFdatabits() may be used with the Rabbit 3000 and Rabbit 4000.

NOTE Alternatively you can use another form of this function that has been generalized for all serial ports. Instead of substituting for "X" in the function name, the prototype of the generalized function is: serXdatabits(int port, ...), where "port" is one of the macros SER_PORT_A through SER_PORT_F.

Parameters

state
An integer indicating what bit mode to use. It is best to use one of the macros provided for this:

  • PARAM_7BIT - Configures serial port to use 7 bit data.

  • PARAM_8BIT - Configures serial port to use 8 bit data (default condition).

Library

RS232.LIB


Dynamic C Functions << Previous | Next >> rabbit.com