![Tews Technologies TPMC866-SW-42 Скачать руководство пользователя страница 36](http://html1.mh-extra.com/html/tews-technologies/tpmc866-sw-42/tpmc866-sw-42_user-manual_1093638036.webp)
TPMC866-SW-42 - VxWorks Device Driver
Page 36 of 37
5 Appendix
This chapter describes the symbols which are defined in the file
tpmc866.h
.
5.1 Predefined Symbols
FIFO Trigger Level
TP866F_NO
4
Disable FIFO (only active if transmit and receive
are set to this value)
TP866F_T8
0
Transmit FIFO trigger is 8 byte left in FIFO
TP866F_T16
1
Transmit FIFO trigger is 16 byte left in FIFO
TP866F_T32
2
Transmit FIFO trigger is 32 byte left in FIFO
TP866F_T56
3
Transmit FIFO trigger is 56 byte left in FIFO
TP866F_R8
0
FIFO trigger if 8 received bytes are in FIFO
TP866F_R16
1
FIFO trigger if 16 received bytes are in FIFO
TP866F_R56
2
FIFO trigger if 56 received bytes are in FIFO
TP866F_R60
3
FIFO trigger if 60 received bytes are in FIFO
DATABIT Settings
TP866DB_5
0
Select 5 data bits
TP866DB_6
1
Select 6 data bits
TP866DB_7
2
Select 7 data bits
TP866DB_8
3
Select 8 data bits
STOPBIT Settings
TP866SB_10
0
select 1 stop bit
TP866SB_15
1
select 1 to 1.5 stop bits (only if 5 data bits is
selected)
TP866SB_20
1
select 2 stop bits (only if 6, 7 or 8 data bits is
selected)
PARITY Settings:
TP866NOP
0
No parity checking
TP866ODP
1
Create and check odd parity
TP866EVP
2
Create and check even parity
ERRORSTATUS Bits:
TP866_FRAMING_ERR
(1 << 0)
Framing error
TP866_PARITY_ERR
(1 << 1)
Parity error