IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


Data Fields
CanFilter Struct Reference

Detailed Description

This is the data type of the filter parameter of canSetFilter(). It is a dummy type. In fact the function canSetFilter() expects a controller-specific filter data type. Those specific filter data types are named CanFilter* (e.g. CanFilterSW for the Software CAN filter). The CanFilter data type holds those fields that all of the controller-specific filter data types have in common. The function canSetFilter() will use these common fields to determine which filter data structure has been actually passed.

This mechanism is necessary, because each CAN controller features a different set of acceptance filters. To still keep the CAN API as hardware-independent as possible, the function canSetFilter() must be able to distinguish between several filter types.

Since
V1.02
See also
CanFilterSW
Examples:
canEcho.c, and canFilter.c.

Data Fields

unsigned char controllerType
 
unsigned char structVer
 





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Tue Dec 12 2017 09:23:37 by Doxygen 1.8.13