IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


CanFilterSc2x3 Struct Reference
[CAN constants and data types]


Detailed Description

This is a controller-specific version of the dummy data type CanFilter. It represents the acceptance filters of the SC2x3's CAN controller. An object of this type is passed to the function canSetFilter() in order to configure the SC2x3's acceptance filters. However you have to cast the object to a general CanFilter pointer when passing it to the function. canSetFilter() will check the controllerType and structVer fields to determine that actually a CanFilterSc2x3 object has been passed.

The SC2x3's CAN controller supports four different acceptance filter modes. The mode is selected via the mode field. In dependency of the actual mode one of the fields of the filters union will be chosen.

Since:
SC2x3 V1.00 - CLIB V1.00
See also:
CanFilter
Examples:

canEcho.c, and canFilter.c.

Data Fields

unsigned char controllerType
unsigned char structVer
CanFilterSc2x3Mode mode
union {
   struct {
      unsigned long   idMask
      unsigned long   idValue
   }   f32 [2]
   struct {
      unsigned short   idMask
      unsigned short   idValue
   }   f16 [4]
   struct {
      unsigned char   idMask
      unsigned char   idValue
   }   f8 [8]
filters





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:39 2017 by Doxygen 1.6.1