Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
LINECONTROL (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_DOSDEVICES
typedef struct _LINECONTROL { /* lnctl */
BYTE bDataBits;
BYTE bParity;
BYTE bStopBits;
BYTE fTransBreak;
} LINECONTROL;
The LINECONTROL structure contains line characteristics for a device.
Field Description
────────────────────────────────────────────────────────────────────────────
bDataBits Specifies the number of data bits to be used. It can be one of
the following values:
Value Meaning
───────────────────────────────────────────────────────────────
0x05 5 data bits
0x06 6 data bits
0x07 7 data bits
0x08 8 data bits
bParity Specifies the type of parity checking. It can be one of the
following values:
Value Meaning
───────────────────────────────────────────────────────────────
0x00 No parity
0x01 Odd parity
0x02 Even parity
0x03 Mark parity (parity bit always 1)
0x04 Space parity (parity bit always 0)
bStopBits Specifies the number of stop bits used. It can be one of the
following values:
Value Meaning
───────────────────────────────────────────────────────────────
0x00 1 stop bit
0x01 1.5 stop bits (valid only with 5-bit word length)
0x02 2 stop bits (not valid with 5-bit word length)
fTransBreak Specifies whether the device is transmitting a break character.
If this field is 0x00, a break character is not transmitted. If
it is 0x01, a break character is transmitted.
Comments
The ASYNC_GETLINECTRL function (0x0001, 0x0062) uses all four bytes. The
ASYNC_SETLINECTRL function (0x0001, 0x0042) uses only the first three
bytes.
See Also
ASYNC_GETLINECTRL, ASYNC_SETLINECTRL
♦