Comtrol API (6508) for the MS-DOS User Manual
Page 14

14
Developing Applications
Developing Applications
2.8.2.3. Parity Parameter
The parity parameter is used by aaOpen() and aaReconfigure() to set the type of
parity checking done on receive and parity generation done on transmit. You
can assign only one of the flags shown in Table 2-6 to the parity parameter.
The parity parameter is declared as follows:
unsigned char Parity;
2.8.2.4. Data Bits Parameter
The data bits parameter is used by aaOpen() and aaReconfigure() to set the
number of data bits in each transmitted and received character. You can
assign only one of the flags shown in Table 2-7 to the data bits parameter. The
data bits parameter is declared as follows:
unsigned DataBits
2.8.2.5. Stop Bits Parameter
The stop bits parameter is used by aaOpen() and aaReconfigure() to set the
number of stop bits used in the framing of each transmitted and received
character. You can assign only one of the flags shown in Table 2-8 to the stop
bits parameter. The stop bits parameter is declared as follows:
unsigned char StopBits;
2.8.2.6. Flow Control Parameter
The flow control parameter is used by aaOpen() and aaReconfigure() to set the
flow control method. You can assign either
COM_FLOW_NONE
or any
combination of the remaining flags shown in Table 2-9 to the flow control
parameter.
The flow control parameter is declared as follows:
unsigned int FlowCtl;
COM_BAUD_7200
7,200 baud
COM_BAUD_9600
9,600 baud
COM_BAUD_19200
19,200 baud
COM_BAUD_38400
38,400 baud
COM_BAUD_57600
57,600 baud
COM_BAUD_76800
76,800 baud
COM_BAUD_115200
115,200 baud
COM_BAUD_230400
230,400 baud
Table 2-6. Parity Flags
Flag
Meaning When
Flag is Set
COM_PAR_NONE
No parity
COM_PAR_EVEN
Even parity
COM_PAR_ODD
Odd parity
Table 2-5. Baud Flags (Continued)
Flag
Meaning When the
Flag is Set
Table 2-7. Data Bits Flags
Flag
Meaning When
Flag is Set
COM_DATABIT_7
7 data bits
COM_DATABIT_8
8 data bits
Table 2-8. Stop Bits Flags
Flag
Meaning When
Flag Set
COM_STOPBIT_1
1 stop bit
COM_STOPBIT_2
2 stop bits
Table 2-9. Flow Control Flags
Flag
Meaning When Flag Set
COM_FLOW_NONE
No flow control
COM_FLOW_IS
Enable input software flow control
COM_FLOW_IH
Enable input hardware flow control
using
RTS