This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR2355: Is it possible to pass an array into a function where the data is loaded into a generic array?

Part Number: MSP430FR2355

Hi Team,

We would like to ask your help regarding the customer's inquiry below.

Now I am trying to understand what my code should look like when I want to store and then load configuration data to i2c devices.
I imagine i would store the data in 1D or 2D arrays. Perhaps there is a different way.
So the new question is to keep the code simple with one TX Function is it possible to pass an array into a function where the data is loaded into a generic array?
e.g.

TX Function(SlaveDevX[])
{
Generic[] = SlaveX[]
}

main()
{
SlaveDev1[] = {0x05, 0x06, 0x07, 0x08, 0x10 0x11}
SlaveDev2[] = {0x05, 0x06, 0x07}
SlaveDev3[] = {0x01, 0x02}
TX Function(SlaveDev1[])
}

Interrupt ISR
{
Output buffer = Generic[];
}

Am I completely off?

Regards,

Danilo

**Attention** This is a public forum