
Specify communication conditions in the structure "param".
param->baud baud rate
-----------------------+------------------------
BAUD_0600 600 bits/sec
BAUD_1200 1200 bits/sec
BAUD_2400 2400 bits/sec
BAUD_4800 4800 bits/sec
BAUD_9600 9600 bits/sec
param->stop_bit stop bit length
-----------------------+------------------------
STOP_1 1 bit
STOP_2 2 bits
param->parity parity check
-----------------------+------------------------
PARITY_N no parity check
PARITY_E even parity
PARITY_O odd parity
param->data_bit character length
-----------------------+------------------------
DATA_7 7 bits
DATA_8 8 bits
param->hardflow hardware flow ctrl
-----------------------+------------------------
0 no
1 both send and receive
2 send only
3 receive only
param->dc_enable DC code flow ctrl
-----------------------+------------------------
0 no
1 both send and receive
2 send only
3 receive only
param->dc_put send DC code
-----------------------+------------------------
0 no
1 yes
If "1" is specified for "dc_put", following DC code is sent to
the external device whenever the channel is opened or closed.
open mode when open when close
-----------------------+---------------+------------
receive mode DC1 DC3
send mode DC2 DC4
send/receive mode no DC code transmitted