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.

EK-TM4C123GXL: Tiva Launchpad CAN Controller ui32Flags definition location

Part Number: EK-TM4C123GXL

Hi all !

I started a CAN-related development recently, and I found the tCANMsgObject definition in can.h ( peripheral library ).

The struct contains a variable :

uint32_t ui32Flags;

The description for this variable states : " This value holds various status flags and settings specified by tCANObjFlags "

But I can not find definition or description for tCANObjFlags in documentation or in library files.

Can someone tell me what flags exactly this variable holds?

  • Check the documentation for canmessageset and get.

    Robert
  • Thanks Robert !

    It's there indeed. The can.h comments are misleading because it says that the flags are defined in tCANObjFlags,...but if you search for that definition you will find nothing directly.

    I found it myself later in older Stellaris library document , but it's not there in new docs for Tiva. It is scattered around other command descriptions you mentioned.

    Here it is ( from Stellaris docs )>

    4.2.4.3 tCANObjFlags Description: 

    These are the flags used by the tCANMsgObject variable when calling the the CANMessageSet() and CANMessageGet() APIs. Enumerators: 
    MSG_OBJ_TX_INT_ENABLE This indicates that transmit interrupts should be enabled, or are enabled. 
    MSG_OBJ_RX_INT_ENABLE This indicates that receive interrupts should be enabled or are enabled. 
    MSG_OBJ_EXTENDED_ID This indicates that a message object will use or is using an extended identifier. 
    MSG_OBJ_USE_ID_FILTER This indicates that a message object will use or is using filtering based on the object’s message Identifier. 
    MSG_OBJ_NEW_DATA This indicates that new data was available in the message object
    MSG_OBJ_DATA_LOST This indicates that data was lost since this message object was last read. 
    MSG_OBJ_USE_DIR_FILTER This indicates that a message object will use or is using filtering 
    based on the direction of the transfer. If the direction filtering is used then ID filtering must also be enabled. 
    MSG_OBJ_USE_EXT_FILTER This indicates that a message object will use or is using message identifier filtering based of the the extended identifier. If the extended identifier filtering is used then ID filtering must also be enabled. 
    MSG_OBJ_REMOTE_FRAME This indicates that a message object is a remote frame
    MSG_OBJ_NO_FLAGS This indicates that a message object has no flags set.