User`s manual

Software Manual • EKF Intelligent I/O Controller Family On
CompactPCI
- 43 -
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
Set Modem Line RTS: IOCTL_SERIAL_SET_RTS
This I/O control request sets the modem line
Clear To Send
(RTS) on a serial port.
Call: DeviceIoControl(
handle, // handle returned by
CreateFile
IOCTL_SERIAL_SET_RTS,
NULL,
0,
NULL,
0,
&unused, // pointer to a DWORD variable
pOverlapped // optional pointer to overlapped buffer (may be NULL)
);
Setup Timeouts: IOCTL_SERIAL_SET_TIMEOUTS
This I/O control request sets up the timeout values for read and write requests on a serial or
CANbus port.
Call: DeviceIoControl(
handle, // handle returned by
CreateFile
IOCTL_SERIAL_SET_TIMEOUTS,
pTimeouts, // pointer to a SERIAL_TIMEOUTS structure
1
)
sizeof(*pTimeouts),
NULL,
0,
&unused, // pointer to a DWORD variable
pOverlapped // optional pointer to overlapped buffer (may be NULL)
);
Note:
1
) This structure is used to pass the new timeout values. It is defined in the C header file
“ntddekf.h” delivered with the driver installation package. See also description in section
SERIAL_TIMEOUTS
”. The time base of all timeouts within SERIAL_TIMEOUTS is
milliseconds.
2
) Read interval timeouts for CANbus devices are not supported.
Setup Wait Event Mask: IOCTL_SERIAL_SET_WAIT_MASK
This I/O control request sets up the wait event mask on a serial or CANbus port. This
configures the driver to notify an application after the occurrence of at least one of the
enabled events. To wait for an event, an application may use the I/O control request
IOCTL_SERIAL_WAIT_ON_MASK.