How to set MASK & filter value for -- freescale Flexcan controller

Dinesh Guleria <[email protected]>
Newsgroups gmane.comp.hardware.bus.can
Message-ID <CAKpDV8u8Jp8_gu8kW2UwR4OGuCt68RnFTzysiD0_0XufGghk7A@mail.gmail.com>
Hi,

Suppose i want to receive only ID_1 & ID_2.


ID_1  =  0x01;       // 0000 0001
ID_2  =  0x33;       // 0011 0011
mask = 0x32;       // 0011 0010
filter =    0x01;       // 0000 0001



   1. For MASK ---> put 1 where ever bits differ & 0 where bits are same
   2. For FILTER  --> dont care different bits & copy value where bits are
   same


Is above two steps right ?

Regards,
Dinesh
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.