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.

LAUNCHXL-F280049C: CAN_setupMessageObject usage

Expert 1700 points
Part Number: LAUNCHXL-F280049C


Hi Team,

I have experience with MCAN (on a different core, using the registers directly) and now I am trying to use 

CAN_setupMessageObject with the 280049c launch pad

I am able to setup everything so what I send a message with ID ox201 (for example) an interrupt is generated.

However , I want to use message filtering so that only when message 0x201 is sent , the interrupt will be generated (and message with come in).

I was unsuccessful.

I tried 

CAN_setupMessageObject(CANA_BASE, 4, 0x201, CAN_MSG_FRAME_STD, CAN_MSG_OBJ_TYPE_RX, 0x7FF, CAN_MSG_OBJ_RX_INT_ENABLE |CAN_MSG_OBJ_USE_ID_FILTER ,8);

and do not get interrupts when 0x201 is send

when I do 

CAN_setupMessageObject(CANA_BASE, 4, 0x201, CAN_MSG_FRAME_STD, CAN_MSG_OBJ_TYPE_RX, 0x7FF, CAN_MSG_OBJ_RX_INT_ENABLE ,8);

I get interrupts

I mainly do not understand how the message filter mask works

can you help me understand \ fix my setup command ?