Re: Re: CAN Mask & Filter setting at ---- software level
Steinhoff <[email protected]>
| Newsgroups | gmane.comp.hardware.bus.can |
|---|---|
| Message-ID | <[email protected]> |
Steinhoff wrote: > Dinesh Guleria wrote: >> >> This is the result created by every CAN controller ... it's simply >> not my equation! >> >> !( filtr ^ a_ ) | mask; ----------------- or >> ------------------>>>> !( ( filtr ^ a_ ) | mask ); >> two time you changed the enclosing brackets ... which one .. ? > > !( ( filtr ^ a_ ) | mask );==> !( filtr ^ a_ ) & !mask; ==> not equal > !(( filtr ^ a_ ) | mask Just to clean it up: unsigned short filtr, a_, mask; if( (!(filtr ^ a_) | mask)== 0xFFFF) => frame accpted --Armin > >> >> >> !( ( filtr ^ a_ ) | mask );----->> this is failing i tested many times >> I do not know why it is not working if it is standard equation >> ....... when i put break point and test under debugger ... ??? >> But mine is working & passing required ID .... tried many times >> ....even you can just try at your end ... not even take 10 minutes.. >> >> Dont know .. ? >> >> On Fri, Dec 7, 2012 at 7:13 PM, Steinhoff <[email protected] >> <mailto:[email protected]>> wrote: >> >> This is the result created by every CAN controller ... it's >> simply not my equation! >> >> >