![Tews Technologies TPMC866-SW-42 User Manual Download Page 10](http://html1.mh-extra.com/html/tews-technologies/tpmc866-sw-42/tpmc866-sw-42_user-manual_1093638010.webp)
TPMC866-SW-42 - VxWorks Device Driver
Page 10 of 37
devConf
This parameter points to a structure (
TP866_CHANCONF
) containing the default configuration
of the channel. (This function will be used for reconfigurations).
The structure (
TP866_CHANCONF
) has the following layout and is defined in tpmc866.h:
typedef struct
{
unsigned int
Baudrate;
unsigned int
Options;
unsigned int
FifoTrigRcv;
unsigned int
FifoTrigTrm;
unsigned int
Databits;
unsigned int
Stopbits;
unsigned int
Parity;
unsigned int
Handshake;
unsigned int
ModelType;
} TP866_CHANCONF;
Baudrate
Selects the initial baud rate of the channel - allowed values are (50 .. 460800)
Options
Selects the initial VxWorks driver options
FifoTrigRcv
Selects the receiver FIFO trigger level
(TPMC866-10/-11: use the predefined values in
tpmc866.h
)
(TPMC866-12: allowed values are 0..127 and TP866F_NO)
If one of the FIFO trigger levels is set to TP866F_NO, the other level is also disabled.
FifoTrigTrm
Selects the transmitter FIFO trigger level
(TPMC866-10/-11: use the predefined values in
tpmc866.h
)
(TPMC866-12: allowed values are 0..127 and
TP866F_NO
)
If one of the FIFO trigger levels is set to
TP866F_NO
, the other level is also disabled.
Databits
Selects the number of data bits in one data word (use predefined values in
tpmc866.h)
Stopbits
Selects the number of stop bits in one data word (use predefined values in
tpmc866.h)
Parity
Selects the parity checking mode (use predefined values in
tpmc866.h)
Handshake
If hardware handshake is enabled or disabled (after startup) select YES to use the
handshake lines, otherwise NO. This parameter is ignored for TPMC866-11/-12.