Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 230265

Forum Post: Help CAN transmit function selecting and configuring the mailbox

$
0
0

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


Viewing all articles
Browse latest Browse all 230265

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>