1.Poll the TXFIFO status. Read can.SR[TXFLL] for a 0 and can.SR[TXFEMP] for a 1, and then write the message into the TXFIFO.
2.Write the message to TXFIFO. Write to all four data registers (can.TXFIFO_ID, can.TXFIFO_DLC, can.TXFIFO_DATA1, and can.TXFIFO_DATA2).