Understanding bit masking with CAN extended ID

Hey

I'dont understand what is this bit masking doing :thinking:

Why those 3 MSB are not needed?

My original question is at Stack Overflow

what's rxID?

Don't post snippets (Snippets R Us!)
Don't post image of code, just post the code using code tags

--

according to the comments and the doc, an extended ID fits on 29 bits, so if you got the info into uint32_t variable, then you need to drop 3 bits.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.