Part Number: MSP430FR2355
Hi Team,
We would like to ask your help regarding the customer's concern below.
I am struggling with an interrupt vector. I obtained a sample code for I2C transmit from master to slave. This code uses an interrupt service routine to send a data array to a transmit buffer. For this to work the data array has to be declared as a global.
When you have multiple devices on the i2c bus you will likely end up with multiple different arrays which need to be piped through the data array to the transmit buffer.
How do I create an undefined/variable array which I can use to pass other different size arrays to? This undefined array is part of the tx interrupt vector of the i2c which passes it data to the tx buffer.
I am looking for a simple structure. If I define the array size to a specific size the transmit buffer will sent all the elements. I am of course only interested in sending the elements with the required data in them.
Thank you for your support!
Regards,
Danilo