2 Replies Latest reply on Mar 27, 2017 5:12 PM by regand1_2236336

    Read CAN Tx Mailbox ID

    regand1_2236336

      Is there a way to read a CAN bus mailbox ID that has been set in the configuration window? I know I can use

         

      CY_SET_REG32((reg32 *)&CAN_TX[mailbox].txid, (ID << 21u));

         

      to write a mailbox ID but I cannot find a way to read the ID in the API or seem to locate where its stored in the generated code. Basically trying to read the ID so that I can then modify it based on external inputs.