比如说msk,我只知道033U是我在HAL里messagebox处设置的,接着的7FF是因为是标准can,但前面的0xC0000000U和左移18是什么意思呢,
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;
感谢各位的帮忙,万圣节第二天快乐
Susan Yang:
您可以看一下 Configuring a CAN Node on Hercules™ ARM® Safety MCUs
www.ti.com/…/spna131.pdf
3.1 Configuring CAN Message Object to Transmit
有相关的代码解析