This model is configured to demonstrate code interface packaging. By default, model data is communicated to the generated code through global data structures, and data is accessed with direct memory access. Consequently, the generated code is not reentrant. However, on the Code Generation > Interface pane, when the Code interface packaging parameter is set to
Reusable function, model data is passed into the generated code by function arguments. Therefore, the code is reentrant.
With Embedded Coder®, you can control whether the generated code passes root-level input and output as individual arguments, as structure references, or as part of the real-time model data structure. Additionally, with Embedded Coder, you can control whether the generated code allocates memory for model data statically or dynamically (using