Com_232_Set_Format - Advantech ADAM-5511 Manual

Table of Contents

Advertisement

com_232_set_format

Syntax:
void com_232_set_format(int data_length, int parity, int stop_bit)
Description:
Sets the parameters data length, parity and stop bits of the RS-485
port.
Parameter
data_length
parity
stop_bit
Return value:
None.
Example:
void main()
{
//Sets the data format of the RS-232 port to 8-bit data length, no parity,
1 stop bit
com_232_set_format(8, 0, 1);
}
Description
Valid range 5 to 8 bits for one character.
0: no parity
1: odd parity
2: even parity
1: 1 stop bit
2: 2 stop bits

Advertisement

Table of Contents
loading

Table of Contents