COMM-DRV/Lib: Appendix

Appendix G (Constant Values)

Following are the numerical values for the symbols used throughout this manual. These are all defined in the C/C++ include file COMM.H. When using COMM-DRVwith other languages the following definitions will be very helpful.

Baud Rates

Symbol

Value

Description

BAUD110

0

110 baud

BAUD150

1

150 baud

BAUD300

2

300 baud

BAUD600

3

600 baud

BAUD1200

4

1200 baud

BAUD2400

5

2400 baud

BAUD4800

6

4800 baud

BAUD9600

7

9600 baud

BAUD19200

8

19200 baud

BAUD38400

9

38400 baud

BAUD57600

10

57600 baud

BAUD115200

11

115.2 kbaud

BAUD14400

12

14400 baud

BAUD28800

13

28800 baud

BAUDUSER02

14

User baud rate

BAUDUSER03

15

User baud rate

BAUDUSER04

16

User baud rate

BAUDUSER05

17

User baud rate

BAUDUSER06

18

User baud rate

BAUDUSER07

19

User baud rate

BAUDUSER08

20

User baud rate

BAUDUSER09

21

User baud rate

Parity

Symbol

Value

Description

PAR_NONE

0

No parity

PAR_ODD

1

ODD parity

PAR_EVEN

2

Even parity

PAR_SODD

3

Sticky ODD parity

PAR_SEVEN

4

Sticky Even parity

Lengths

Symbol

Value

Description

LENGTH_5

0

5 bits

LENGTH_6

1

6 bits

LENGTH_7

2

7 bits

LENGTH_8

3

8 bits

Stopbits

Symbol

Value

Description

STOPBIT_1

0

1 Stop bit

STOPBIT_2

1

2 Stop bit

Break

Symbol

Value

Description

BREAK_OFF

0

Break off

BREAK_ON

1

Break on

Protocol

Symbol

Value

Description

PROT_RTSRTS

0

Local Cts/Rts*Remote CTS/RTS

PROT_RTSXON

1

Local Cts/Rts*Remote XON/XOFF

PROT_RTSDTR

2

Local Cts/Rts*Remote DSR/DTR

PROT_RTSNON

3

Local Cts/Rts*Remote no prot

PROT_NONNON

4

Local no prot*Remote no prot

PROT_NONXON

5

Local no protocol*Remote Xoff/Xon

PROT_XONNON

6

Local Xoff/Xon*Remote no prot

PROT_XONXON

7

Local Xon/Xoff*Remote Xon/Xoff

PROT_DTRNON

8

Local Dsr/Dtr*Remote no protocol

PROT_DTRRTS

9

Local Dsr/Dtr*Remote Cts/Rts

PROT_DTRDTR

10

Local Dsr/Dtr*Remote Dsr/Dtr

PROT_DTRXON

11

Local  Dsr/Dtr*Remote Dsr/Dtr

PROT_NONRTS

12

Local no  prot*Remote Cts/Rts prot

PROT_NONDTR

13

Local no  prot*Remote Dsr/Dtr prot

PROT_XONRTS

14

Local Xoff/Xon*Remote Cts/Rts

PROT_XONDTR

15

Local Xoff/Xon*Remote Dsr/Dtr

Bit Flags

These values may be orred together.

Symbol

Value

Description

STOREALL

0001 Hex

Store LSR/MSR/PORT/DATA

CHAIN_INT

0004 Hex

Chain interrupts/Allowed shared interrupts with another device.

LEAVE_DTR

0008 Hex

DTR kept at its current state after serial port is closed.

LEAVE_RTS

0010 Hex

RTS kept at its current state after serial port is closed.

IGNORE_16550

0020 Hex

Do not enable the FIFO buffers on UART even if present.

DISABLE_MODEMSIG

0040 Hex

Disable RTS/DTR signals when port is opened if not already disabled.

NOCHANGE_MODEMSIG

0080 Hex

Do not change the state of the RTS/DTR signals from their current values when opening port.

STORESOME

0100 Hex

Store Port/Data only.

POLLONSTATUS

0400 Hex

Forces device to update COMM-DRV statuses and buffers.

PARENTPORT

0800 Hex

Kernel driver will store incoming data in the buffer corresponding to the pport parameter on functions used to open the port.

PCIFLAG

1000 Hex

Must be set if opening a PCI card.

TIMESTAMPBYTES

2000 Hex

Stuff 32 bit time stamp word in receive buffer.

NINEBITPROTOCOL

4000 Hex

Use 9 bit protocol for transmitting data.

MULTIDROP

8000 Hex

Use multidrop protocol for transmitting data.