'Union data type In matlab/Simulink
I am trying to port embedded driver files to Simulink/Matlab, written in C, using C caller block I was able to port functions that do not use a global union data type.
My final aim is to generate a C code using the Embedded coder.
How do I go about porting C functions which use Union data type within its functions?
One idea is to change all unions into structure datatype. However, that would increase the memory size used.
Any suggestions are welcome.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
