User`s manual
Software Manual • EKF Intelligent I/O Controller Family On
CompactPCI
- 62 -
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
SJA1000_ACCEPTANCE
A structure that is used to set the frame acceptance code, mask and mode of a CANbus
device to build an acceptance filter. See the data sheet of the SJA1000 stand-alone CANbus
controller for details on acceptance filter programming. The library “ekf960si1.lib” that is
delivered with source files also contains a function to build an acceptance filter.
typedef struct _SJA1000_ACCEPTANCE
{
UINT8 code0;
UINT8 code1;
UINT8 code2;
UINT8 code3;
UINT8 mask0;
UINT8 mask1;
UINT8 mask2;
UINT8 mask3;
UINT8 singleFilter;
UINT8 pad[3];
} SJA1000_ACCEPTANCE, *PSJA1000_ACCEPTANCE;
code0-3:
These 4 bytes define the acceptance code of the acceptance filter. The value of
code0 is written to the register ACR0 of the SJA1000 CANbus controller, code1 to
ACR1 and so on.
mask0-3:
These 4 bytes define the acceptance mask of the acceptance filter. The value of
mask0 is written to the register AMR0 of the SJA1000 CANbus controller, mask1 to
AMR1 and so on.
singleFilter:
This boolean, when set, flags that a single acceptance filter configuration should be
used. If cleared, a dual filter configuration is used.
pad:
For alignment purposes.
EKF_INIT_PARAMS_CAN
A structure that describes the initialization parameter block passed with the initialization
message CMDIMR_INIT for a CANbus device.
typedef struct
{
UINT32 ClockRate;
UINT32 BaudRate;
SJA1000_ACCEPTANCE Acceptance;