Code Interface Configuration
Before generating code from a model, inform the code generator about the target environment and programming language by specifying a type of output. To integrate generated code with external code and to comply with code standards and guidelines, configure the interfaces that the generated code uses to interact with other software in the target environment. For C code generation, configure the declarations and definitions of functions, variables, and data types in the generated code by mapping model data elements to code definitions. To generate C++ code that integrates into existing software architectures, configure generated class information, such as class names and namespaces.
To get started with configuring code interfaces for the code generator, see Model Code Interfaces and Choose Code Interface for Code Generation.
Categories
- Code Generation Output
Select output type and deployment type that the code generator uses to produce code for a loaded model
- C Data and Function Interfaces
Map model data elements and functions to model-independent code definitions
- C++ Data and Function Interfaces
Control the C++ class generated from a Simulink model
- C Service Interfaces
Map model elements and functions to service interfaces defined in an Embedded Coder Dictionary