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.
问题1:C2000Ware_3_02_00_00_setup 安装后。C:\ti\c2000\C2000Ware_3_02_00_00\device_support\f2807x\examples\cpu1\can_loopback\cpu01 路径下的can信息发送接收的驱动函数
CANMessageSet(uint32_t ui32Base, uint32_t ui32ObjID, tCANMsgObject *pMsgObject,
tMsgObjType eMsgType)
。和 C:\ti\c2000\C2000Ware_3_02_00_00\driverlib\f2807x\examples\cpu1\can 驱动函数不一样。
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_sendMessage(uint32_t base, uint32_t objID, uint16_t msgLen,
const uint16_t *msgData);
前者在邮箱发送时会配置寄存器,而后者先配置邮箱寄存器,然后发送can通信时无需再次配置寄存器。缩短发送函数的运行时间。请问这两种方式该如何选择?