Hi all....
I am using TMS320F28335 and I am trying to write some functions to transmit data using the CAN interface in which would be possible to select the mailbox to use in the transmission.
The idea is to pass the Mailbox number as a parameter of the function and then set up the corresponding mailbox inside. with use of switch() I have to set up ECanaMboxes and ECanaRegs structures for each of them separately that results in huge amount of code. Because every time to transmit or receive messages mailbox configuration is same, only difference is mailbox number, MSGID and data.
Is there any example code in which use of multiple mailboxes as a same time with kind of configuration function??
Any suggestion would be great help.
Thanks in advance
Mehul