User`s manual
Software Manual • EKF Intelligent I/O Controller Family On
CompactPCI
- 36 -
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
Get Performance Statistics: IOCTL_SERIAL_GET_STATS
This I/O control request returns the current performance statistics of a serial port. To get the
statistics for a CANbus port use IOCTL_EKF960SI1_GET_STATS_CAN.
Call: DeviceIoControl(
handle, // handle returned by
CreateFile
IOCTL_SERIAL_GET_STATS,
NULL,
0,
pStatistics, // pointer to a SERIALPERF_STATS structure
1
)
sizeof(*pStatistics),
&unused, // pointer to a DWORD variable
pOverlapped // optional pointer to overlapped buffer (may be NULL)
);
Note:
1
) The performance statistics are returned in this structure. It is defined in the C header file
“ntddekf.h” delivered with the driver installation package.
Get Timeout Settings: IOCTL_SERIAL_GET_TIMEOUTS
This I/O control request returns the current timeout settings of a serial or CANbus port.
Call: DeviceIoControl(
handle, // handle returned by
CreateFile
IOCTL_SERIAL_GET_TIMEOUTS,
NULL,
0,
pTimeouts, // pointer to a SERIAL_TIMEOUTS structure
1
)
sizeof(*pTimeouts),
&unused, // pointer to a DWORD variable
pOverlapped // optional pointer to overlapped buffer (may be NULL)
);
Note:
1
) The timeout parameters 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_TIMEOUTS
”. The time base of all timeouts within SERIAL_TIMEOUTS is
milliseconds.










