User`s manual
Software Manual • EKF Intelligent I/O Controller Family On
CompactPCI
- 39 -
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
Call: DeviceIoControl(
handle, // handle returned by
CreateFile
IOCTL_SERIAL_RESET_DEVICE,
NULL,
0,
NULL,
0,
&unused, // pointer to a DWORD variable
pOverlapped // optional pointer to overlapped buffer (may be NULL)
);
Note:
The device driver for EKF’s Intelligent I/O Controllers really does nothing when calling this
request.
Setup Port Baud Rate: IOCTL_SERIAL_SET_BAUD_RATE
This I/O control request sets the baud rate on a serial or CANbus port. The driver accepts all
well known baud rates as defined in the C header file “ntddekf.h” (SERIAL_BAUD_075
through SERIAL_BAUD_115200). Furthermore any baud rate that can be programmed with
a resulting error of less than 1% can be chosen.
Call: DeviceIoControl(
handle, // handle returned by
CreateFile
IOCTL_SERIAL_SET_BAUD_RATE,
pBaudStruct, // pointer to a SERIAL_BAUD_RATE structure
1
)
sizeof(*pBaudStruct),
NULL,
0,
&unused, // pointer to a DWORD variable
pOverlapped // optional pointer to overlapped buffer (may be NULL)
);
Note:
1
) This structure contains the baud rate value. It is defined in the C header file “ntddekf.h”
delivered with the driver installation package.
An alternative way to setup the baud rate is to use the C function
Ekf960SetBaudRate
coming with the library “ekf960si1.lib”:
Ekf960SetBaudRate(
handle, // handle returned by
CreateFile
pOverlapped, // optional pointer to overlapped buffer (may be NULL)
BaudRate // baud rate in bits per second
);
See also the source file of
Ekf960SetBaudRate
“setbaud.c” that is delivered with the driver
installation package.










