Using the F2837xD Peripheral Driver Library 1.02.00.00,
how do I get the msgID of a received message?
If I use msgID masking, and allow for more than one msgID to pass throw my receiving filter.
- it would be quite nice to get the actual msgID of the message that was received.
ref user guide for "F2837xD Peripheral Driver Library 1.02.00.00" page 42
void CAN_setupMessageObject (uint32_t base, uint32_t objID, uint32_t msgID,CAN_MsgFrameType frame, CAN_MsgObjType msgType, uint32_t msgIDMask, uint32_tflags, uint16_t msgLen);
bool CAN_readMessage (uint32_t base, uint32_t objID, uint16_t msgData);
- this method only get the raw data from the message, not the ID.
one other question:
what happens if I receive a message on the same ObjID before the old one was processed, does it get overwritten/lost or is there some kind of fifo buffer going on?
regards
Simen