The DCB structure defines the control setting for a serial communications device.
typedef struct _DCB { // dcb DWORD DCBlength; // sizeof(DCB) DWORD BaudRate; // current baud rate DWORD fBinary: 1; // binary mode, no EOF check DWORD fParity: 1; // enable parity checking DWORD fOutxCtsFlow:1; // CTS output flow control DWORD fOutxDsrFlow:1; // DSR output flow control DWORD fDtrControl:2; // DTR flow control type DWORD fDsrSensitivity:1; // DSR sensitivity DWORD fTXContinueOnXoff:1; // XOFF continues Tx DWORD fOutX: 1; // XON/XOFF out flow control DWORD fInX: 1; // XON/XOFF in flow control DWORD fErrorChar: 1; // enable error replacement DWORD fNull: 1; // enable null stripping DWORD fRtsControl:2; // RTS flow control DWORD fAbortOnError:1; // abort reads/writes on error DWORD fDummy2:17; // reserved WORD wReserved; // not currently used WORD XonLim; // transmit XON threshold WORD XoffLim; // transmit XOFF threshold BYTE ByteSize; // number of bits/byte, 4-8 BYTE Parity; // 0-4=no,odd,even,mark,space BYTE StopBits; // 0,1,2 = 1, 1.5, 2 char XonChar; // Tx and Rx XON character char XoffChar; // Tx and Rx XOFF character char ErrorChar; // error replacement character char EofChar; // end of input character char EvtChar; // received event character WORD wReserved1; // reserved; do not use } DCB;
CBR_110 |
CBR_19200 |
CBR_300 |
CBR_38400 |
CBR_600 |
CBR_56000 |
CBR_1200 |
CBR_57600 |
CBR_2400 |
CBR_115200 |
CBR_4800 |
CBR_128000 |
CBR_9600 |
CBR_256000 |
CBR_14400 |
Under Windows 3.1, if this member is FALSE, nonbinary mode is enabled, and the
character specified by the EofChar member is recognized on input and
remembered as the end of data.
Value |
Meaning |
DTR_CONTROL_DISABLE |
Disables the DTR line when the device is opened and leaves it disabled. |
DTR_CONTROL_ENABLE |
Enables the DTR line when the device is opened and leaves it on. |
DTR_CONTROL_HANDSHAKE |
Enables DTR handshaking. If handshaking is enabled, it is an error for the application to adjust the line by using the EscapeCommFunction function. |
Value |
Meaning |
RTS_CONTROL_DISABLE |
Disables the RTS line when the device is opened and leaves it disabled. |
RTS_CONTROL_ENABLE |
Enables the RTS line when the device is opened and leaves it on. |
RTS_CONTROL_HANDSHAKE |
Enables RTS handshaking. The driver raises the RTS line when the “type-ahead” (input) buffer is less than one-half full and lowers the RTS line when the buffer is more than three-quarters full. If handshaking is enabled, it is an error for the application to adjust the line by using the EscapeCommFunction function. |
RTS_CONTROL_TOGGLE |
Specifies that the RTS line will be high if bytes are available for transmission. After all buffered bytes have been sent, the RTS line will be low. |
Value |
Meaning |
EVENPARITY |
Even |
MARKPARITY |
Mark |
NOPARITY |
No parity |
ODDPARITY |
Odd |
SPACEPARITY |
Space |
Value |
Meaning |
ONESTOPBIT |
1 stop bit |
ONE5STOPBITS |
1.5 stop bits |
TWOSTOPBITS |
2 stop bits |
When a DCB structure is used to configure the 8250, the following restrictions apply to the values specified for the ByteSize and StopBits members:
BuildCommDCB, ClearCommError, EscapeCommFunction, GetCommState, SetCommState
file: /Techref/os/win/api/win32/struc/src/str03_2.htm, 14KB, , updated: 2000/4/7 11:20, local time: 2024/11/15 17:17,
3.145.40.251:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/techref/os/win/api/win32/struc/src/str03_2.htm"> DCB</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.