Respected sir,
I am developing CAN master program for communicating with slave(already developed). Already i am able to brodcast the can message and receive the can message from any node (ui32MsgIDMask = 0).
But now i want to achieve following tasks
1. Send data at particular node(201 , 202 ,203 etc)
2. Send RTR at particular node(201 , 202 ,203 etc) and receive data from those nodes.
3. Receive data from particular nodes.
So please tell me how to configure tCANMsgObject ??
Right now for reception i am using following configuration
ui32MsgData = 0;
sCANMessage.ui32MsgID = 0;
sCANMessage.ui32MsgIDMask = 0; ?????????What to write here??????????????
sCANMessage.ui32Flags = MSG_OBJ_RX_INT_ENABLE | MSG_OBJ_USE_ID_FILTER; ?????????What to write here??????????????
sCANMessage.ui32MsgLen = 8;
And for transmission
sCANMessage.ui32MsgID = 0;
sCANMessage.ui32MsgIDMask = 0; ?????????What to write here??????????????
sCANMessage.ui32Flags = MSG_OBJ_TX_INT_ENABLE; ?????????What to write here??????????????
sCANMessage.ui32MsgLen = sizeof(pui8MsgData);
sCANMessage.pui8MsgData = pui8MsgData; .