Tool/software: Code Composer Studio
I wanted to understand the composition of the code, but I didn't quite understand the parts.
For example, the MSK part of the code,”0x00000333U“ is what I set at HAL's messagebox,"0x0000007FF"because I set the standard CAN.
But what I don't understand is the meaning of 0xC0000000U and shift left 18.
I hope your answers can solve my doubts.Thank you. I wish you all a happy Halloween.
canREG1->IF1MSK = 0xC0000000U | (uint32)((uint32)((uint32)0x00000333U & (uint32)0x000007FFU) << (uint32)18U);
canREG1->IF1ARB = (uint32)0x80000000U | (uint32)0x00000000U | (uint32)0x00000000U | (uint32)((uint32)((uint32)0x1U & (uint32)0x000007FFU) << (uint32)18U);
canREG1->IF1MCTL = 0x00001000U | (uint32)0x00000400U | (uint32)0x00000000U | (uint32)0x00000000U | (uint32)8U;