User`s manual
Software Manual • EKF Intelligent I/O Controller Family On
CompactPCI
- 30 -
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
Setup Acceptance Filter: IOCTL_EKF960SI1_SET_ACCEPTANCE
This I/O control request sets up the acceptance filter for a CANbus port.
Call: DeviceIoControl(
handle, // handle returned by
CreateFile
IOCTL_EKF960SI1_SET_ACCEPTANCE,
pAcceptance, // pointer to a SJA1000_ACCEPTANCE structure
1
)
sizeof(*pAcceptance),
NULL,
0,
&unused, // pointer to a DWORD variable
pOverlapped // optional pointer to overlapped buffer (may be NULL)
);
Note:
1
) This structure contains the acceptance filter settings. It is defined in the C header file
“ntddekf.h” delivered with the driver installation package.
An alternative way to setup the acceptance filter is to use the C function
Ekf960SetAcceptance
coming with the library “ekf960si1.lib”.
See also the source file of
Ekf960SetAcceptance
“setaccept.c” that is delivered with the
driver installation package, the description of the I/O control request
IOCTL_EKF960SI1_GET_ACCEPTANCE and the section “
SJA1000_ACCEPTANCE
” in
chapter “
Board Level Interface Description
”.
Clear Performance Statistics: IOCTL_SERIAL_CLEAR_STATS
This I/O control request clears the performance statistic counters for a serial or CANbus port.
Call: DeviceIoControl(
handle, // handle returned by
CreateFile
IOCTL_SERIAL_CLEAR_STATS,
NULL,
0,
NULL,
0,
&unused, // pointer to a DWORD variable
pOverlapped // optional pointer to overlapped buffer (may be NULL)
);