User`s manual

Software Manual • EKF Intelligent I/O Controller Family On
CompactPCI
- 34 -
EKF Elektronik GmbH * Philipp-Reis-Str. 4 * D-59065 HAMM (Germany)
Tel. +49 (0)2381/6890-0 * Fax. +49 (0)2381/6890-90 * E-Mail info@ekf.de * Internet http://www.ekf.de
Note:
1
) The DWORD Status contains zero or more of the following flags:
SERIAL_DTR_STATE: DTR line is set
SERIAL_RTS_STATE: RTS line is set
The flags are defined in the C header file “ntddekf.h” delivered with the driver installation
package.
Get Flow Control: IOCTL_SERIAL_GET_HANDFLOW
This I/O control request returns the handshake and flow control that currently is set on a
serial port.
Call: DeviceIoControl(
handle, // handle returned by
CreateFile
IOCTL_SERIAL_GET_HANDFLOW,
NULL,
0,
pHandFlow, // pointer to a SERIAL_HANDFLOW structure
1
)
sizeof(*pHandFlow),
&unused, // pointer to a DWORD variable
pOverlapped // optional pointer to overlapped buffer (may be NULL)
);
Note:
1
) The flow control settings are returned in this structure. It is defined in the C header file
“ntddekf.h” delivered with the driver installation package. See also description in section
SERIAL_HANDFLOW
”.
Get Line Control: IOCTL_SERIAL_GET_LINE_CONTROL
This I/O control request returns the current line control settings of a serial port. This includes
the number of data bits, number of stop bits and the parity.
Call: DeviceIoControl(
handle, // handle returned by
CreateFile
IOCTL_SERIAL_GET_LINE_CONTROL,
NULL,
0,
pLineControl, // pointer to a SERIAL_LINE_CONTROL structure
1
)
sizeof(*pLineControl),
&unused, // pointer to a DWORD variable
pOverlapped // optional pointer to overlapped buffer (may be NULL)
);