This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
自己在把CAN寄存器封装成结构体
修改例程时发现,很多的操作是在操作无效区域??
例如
CAN_IF1CMD 32位 占用0x100 和0x101,CAN_IF1MSK 32位占用0x104 和0x105
0x103 和0x104 未使用,但是在历程中却在使用
HWREGH(ui32Base + CAN_O_IF1CMD + 2) = CAN_IF1CMD_CLRINTPND >> 16;
其他也有就不举例了,请问怎么回事???
user6378804 说:一个是写入方向 一个是读取方向嘛??
是的
user6378804 说:某些操作需要在写入方向操作,有些操作需要在读取方向操作??
是的,您的理解是正确的。建议您参考下 C2000Ware下的can bitfields例程,比较方便理解
C2000Ware_3_04_00_00\device_support\f2837xd\examples\cpu1\can_loopback_bitfields