How to Create an array in Altair Embed ?

Reshmi
Altair Community Member
Hi Team…
I'm currently working on communication side (like UART , SPI) of Altair Embed.In that i have doubt how to create an array and how to access the index values of that.Because ,If i read the values using READ block, i need to know how to store it in an array and how to access that.
Tagged:
0
Answers
-
Hi ,
To store and process a sequential data, please use the Embed buffer block and use the index to access the data.
More details attached with example.
Also you can use extern block to define your own array and use it.
Example attached, which use
"unsigned char UART_DataBytes[20]"
Let me know if you need any additional help on this
Sreejith
0