Re: Re: CAN Mask & Filter setting at ---- software level
Steinhoff <[email protected]>
| Newsgroups | gmane.comp.hardware.bus.can |
|---|---|
| Message-ID | <[email protected]> |
Dinesh Guleria wrote: > >> if( (!(filtr ^ a_) | mask) == *0xFFFF*) => frame accpted > > But you never mentioned in your previous mails --- 0xFFFF I believed that's is well known. > > I still doubt your equation > also --->> !(filtr ^ a_) ----> output of this equation is always --- > 0 or 1 that's true for two bit fields > > Now you see how it will come 0xFFFF > > //Dinesh > > On Sat, Dec 8, 2012 at 8:58 PM, Steinhoff <[email protected] > <mailto:[email protected]>> wrote: I wrote: *unsigned short filtr, a_, mask;* > > if( (!(filtr ^ a_) | mask)== 0xFFFF) => frame accpted > >