COMM Equates

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > COMM >

COMM Equates

 

During module loading process, the following equates (constants) will be defined.

Note: inside COMM module, True<>0, False=0

 

Communication parameters:

Symbol

Read Only Parameter

Meaning

%COMM_BAUD

No

Port Baud Rate (9600, 14400, 19200, etc).

%COMM_BREAK

No

TRUE/FALSE

Break is asserted.

Break is generally used to "get the attention" of the connected modem, terminal or system.

%COMM_BYTE

No

Number of bits per byte (4, 5, 6, 7, or 8).

%COMM_CD

Yes

TRUE/FALSE

Carrier Detect state.

%COMM_CTSFLOW

No

TRUE/FALSE

Enable CTS output flow control (Input signal).

%COMM_DSRFLOW

No

TRUE/FALSE

Enable DSR output flow control (Input signal).

%COMM_DSRSENS

No

TRUE/FALSE

Enable DSR sensitivity.

%COMM_DTRFLOW

No

TRUE/FALSE

Enable DTR handshaking flow control (Output signal).

%COMM_DTRLINE

No

TRUE/FALSE

Enable DTR line.

%COMM_NULL

No

TRUE/FALSE

Null ($NUL) bytes are discarded when read.

%COMM_PARITY

No

TRUE/FALSE

Enable parity checking.

%COMM_PARITYCHAR

No

Character to use for parity error replacement.

PARITY must be enabled.

%COMM_PARITYREPL

No

TRUE/FALSE

Enable character replacement on parity error.

PARITY must be enabled.

%COMM_PARITYTYPE

No

0 = None

1 = Odd

2 = Even

3 = Mark

4 = Space

Default value = 0

%COMM_RING

Yes

TRUE/FALSE

%COMM_RLSD

Yes

Receive-line-signal-detect.

%COMM_RTSFLOW

No

Ready To Send (Output signal).

0 = Disable

1 = Enable

2 = Handshake

3 = Toggle

%COMM_RXBUFFER

No

Size of the receive buffer in bytes.

%COMM_RXQUE

Yes

Bytes currently in the receive buffer

%COMM_STOP

No

0 = 1 stop bits

1 = 1.5 stop bits

2 = 2 stop bits

%COMM_TXBUFFER

No

Size of the transmit buffer in bytes.

%COMM_TXQUE

Yes

Bytes currently in the transmit buffer.

%COMM_XINPFLOW

No

TRUE/FALSE

Enable XON/XOFF input flow control.

Default value = FALSE

%COMM_XOUTFLOW

No

TRUE/FALSE

Default value = FALSE

 

.