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.

TMS320F280025: CAN接收

Part Number: TMS320F280025


使用280025的DCAN去接收数据,通过CAN中断来接收数据,想要接收多个CAN ID 的数据,分别配置了不同的邮箱,例如邮箱1用于接收CAN数据ID为0x1的数据,邮箱2用于接收CAN数据ID为0x2的数据,使用void
CAN_setupMessageObject(uint32_t base, uint32_t objID, uint32_t msgID,CAN_MsgFrameType frame, CAN_MsgObjType msgType,uint32_t msgIDMask, uint32_t flags, uint16_t msgLen)来配置邮箱,使用CAN_readMessage(uint32_t base, uint32_t objID,uint16_t *msgData)来接收数据。

我的问题点是:我怎么知道我接收到的CAN数据的ID 是多少,是数据帧本身的ID,而不是邮箱ID。还是说有别的CAN接口用于接收ID,但是我没找到。