Other Parts Discussed in Thread: MMWAVE-SDK
Hello,
Using the MCAN driver in the mmwave_sdk, I can receive CAN messages for a single CAN ID, while all other IDs are filtered out. However, I can't work out any way to receive CAN messages for more than 1 CAN ID. I have tried modifying the following lines in canfd.c, hoping to use it with either range filter or dual filter, but couldn't get them to work.
stdMsgIdFilter.sfid1 = ptrCanMsgObj->msgId & STD_MSGID_MASK;
stdMsgIdFilter.sfid2 = (ptrCanMsgObj->msgId + 1) & STD_MSGID_MASK;
stdMsgIdFilter.sfec = 0x2U;
stdMsgIdFilter.sft = 0x1U;
MCAN_addStdMsgIDFilter(baseAddr, i, &stdMsgIdFilter);
My question is how should I set the filter parameters for dual filter and range filter, respectively?
Thanks,
- j