2.5.1.2 DCB


Name

DCB

Description

Declaration

typedef struct _DCB {
    DWORD DCBlength;
    DWORD BaudRate;
    DWORD fBinary:1;
    DWORD fParity:1;
    DWORD fOutxCtsFlow:1;
    DWORD fOutxDsrFlow:1;
    DWORD fDtrControl:2;
    DWORD fDsrSensitivity:1;
    DWORD fTXContinueOnXoff:1;
    DWORD fOutX:1;
    DWORD fInX:1;
    DWORD fErrorChar:1;
    DWORD fNull:1;
    DWORD fRtsControl:2;
    DWORD fAbortOnError:1;
    DWORD fDummy2:17;
    WORD wReserved;
    WORD XonLim;
    WORD XoffLim;
    BYTE ByteSize;
    BYTE Parity;
    BYTE StopBits;
    char XonChar;
    char XoffChar;
    char ErrorChar;
    char EofChar;
    char EvtChar;
    WORD wReserved1;
} DCB, *LPDCB;

Members

DCBlength
sizeof(DCB)
BaudRate
Baudrate at which running
fBinary:1
Binary Mode (skip EOF check)
fParity:1
Enable parity checking
fOutxCtsFlow:1
CTS handshaking on output
fOutxDsrFlow:1
DSR handshaking on output
fDtrControl:2
DTR Flow control
fDsrSensitivity:1
DSR Sensitivity
fTXContinueOnXoff:1
Continue TX when Xoff sent
fOutX:1
Enable output X-ON/X-OFF
fInX:1
Enable input X-ON/X-OFF
fErrorChar:1
Enable Err Replacement
fNull:1
Enable Null stripping
fRtsControl:2
Rts Flow control
fAbortOnError:1
Abort all reads and writes on Error
fDummy2:17
Reserved
wReserved
Not currently used
XonLim
Transmit X-ON threshold
XoffLim
Transmit X-OFF threshold
ByteSize
Number of bits/byte, 4-8
Parity
0-4=None,Odd,Even,Mark,Space
StopBits
0,1,2 = 1, 1.5, 2
XonChar
Tx and Rx X-ON character
XoffChar
Tx and Rx X-OFF character
ErrorChar
Error replacement char
EofChar
End of Input character
EvtChar
Received Event character
wReserved1
Fill for now.

Remark

Examples

Header to Include

mscomm.h

See Also

Reference