SetCommState

■ Function

Configures a communications device according to the specifications in a device-control block.

■ Supported or Not

Some functions are not supported.

■ Support Items

The supports for parameters, members of parameters and bits are as follows.

Parameters

Members or Bits

Supported or Not

DCB structure

DCBlength

-

 

BaudRate

Yes

 

fBinary

No

 

fParity

No

 

fOutxCtsFlow

Individually*

 

fOutxDsrFlow

No

 

fDtrControl

No

 

fDsrSensitivity

No

 

fTXContinueOnXoff

No

 

fOutX

Individually*

 

fInX

Individually*

 

fErrorChar

No

 

fNull

Yes

 

fRtsControl

Individually*

 

fAbortOnError

No

 

fDummy2

-

 

wReserved

-

 

XonLim

No

 

XoffLim

No

 

ByteSize

Yes

 

Parity

Yes

 

StopBits

Yes

 

XonChar

Yes

 

XoffChar

Yes

 

ErrorChar

No

 

EofChar

No

 

EvtChar

Yes

* "Individually" indicates implementing individually. Please refer to Limits.

■ Limits

- Flow control

For flow control, RP-COM Series devices only support the following combinations. The Virtual COM driver implementation related to flow control is set by the following combinations.

- No

fOutxCtsFlow = FALSE;

fOutX = FALSE;

fInX = FALSE;

fRtsControl = RTS_CONTROL_ENABLE;

- Hardware

fOutxCtsFlow = TRUE;

fOutX = FALSE;

fInX = FALSE;

fRtsControl = RTS_CONTROL_HANDSHAKE;

- XON/XOFF

fOutxCtsFlow = FALSE;

fOutX = TRUE;

fInX = TRUE;

fRtsControl = RTS_CONTROL_ENABLE;

- If you wish to specify the setting other than the combinations shown above

The values set with property page