Hey Everybody,
I need to configure some automatic mailboxes on the TM4C123GH6PM CAN micro.
Considering the following initialization, please correct me if I understand wrong:
sCANMessage.ui32MsgID = (0x407);
sCANMessage.ui32MsgIDMask = 0x7f8;
sCANMessage.ui32Flags = MSG_OBJ_RX_INT_ENABLE |
MSG_OBJ_USE_ID_FILTER |
MSG_OBJ_EXTENDED_ID |
MSG_OBJ_USE_EXT_FILTER|
MSG_OBJ_FIFO;
sCANMessage.ui32MsgLen = 8;
pui8MsgData[0] = 0x1;
pui8MsgData[1] = 0xa;
pui8MsgData[2] = 0x3;
pui8MsgData[3] = 0xb;
pui8MsgData[4] = 0x5;
pui8MsgData[5] = 0xc;
pui8MsgData[6] = 0x7;
pui8MsgData[7] = 0xd;
sCANMessage.pui8MsgData = &pui8MsgData;
CANMessageSet(CAN0_BASE, 1, &sCANMessage, MSG_OBJ_TYPE_RXTX_REMOTE);
1.
??
"The MSG_OBJ_TYPE_RXTX_REMOTE option ALLOW ONLY RTR messages to be filtered(my particular example) and sent back over the bus with the SET LENGHT and PAYLOAD and the RECEIVED RTR ID."
??
2. What is the correct CAN driver procedure to modify the payload on a timer basis, for a MSG_OBJ_TYPE_RXTX_REMOTE mailbox?
3. Is there a way to set a different response ID for MSG_OBJ_TYPE_RXTX_REMOTE option?
4. Considering API example:
mask 0 0000 0000 0000 0000 0111 1111 1000 0x7f8
MSG1 0 0000 0000 0000 0000 0100 0000 0000 0x400
MSG2 0 0000 0000 0000 0000 0100 0000 0111 0x407
The mask should look to bits between 4 to 11, how come the 0x407 id valid?, can anywone details this mask filtering please?
Thank You.