Hi champion,
My customer want to use Rx FIFO mode for CANFD message object to receive message. I see in mmwave sdk 3.5.0.4 Canfd.c
In CANFD_createMsgObject, we set Rx object as buffer mode by default.
CANFD_MsgObjHandle CANFD_createMsgObject(CANFD_Handle handle, const CANFD_MCANMsgObjCfgParams* msgObjectParams, int32_t* errCode)
{......
else
{
/* Store the rx to message object handle mapping */
ptrCanFdMCB->rxMapping[i] = ptrCanMsgObj;
ptrCanMsgObj->rxElement = i;
/* Store the message RAM memory access type */
ptrCanMsgObj->memType = MCAN_MemType_BUF;
/* Add the filter to message RAM */
if (ptrCanMsgObj->msgIdType == CANFD_MCANXidType_11_BIT)
{
stdMsgIdFilter.sfid1 = ptrCanMsgObj->startMsgId & STD_MSGID_MASK;
stdMsgIdFilter.sfid2 = i;
/* Store the message in rx buffer */
stdMsgIdFilter.sfec = 0x7U;
stdMsgIdFilter.sft = 0;
MCAN_addStdMsgIDFilter(baseAddr, i, &stdMsgIdFilter);
}
I also found there is a CANFD_processFIFOElements in Canfd.c, but don't know how to use it. May I get your help to see how to switch the Rx object mode to FIFO?
Thanks,
Adam
