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
>
>
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.