Customize Generated Entry Point C Functions
When you generate C code from a model, some of the generated functions are entry-point functions that interface with your external code. To see a list of the generated entry-point function types, see Types of Generated Entry-Point Functions. Each entry-point function represents part of the model. The function body contains the implementation of a specific part of the model, and its return value and input arguments are used to represent the input and output signals of that part of the model.
You can customize the generated entry-point functions by configuring your model before generating code from the model. In particular, you can customize generated function names and argument-related identifiers, and customize the way root-level inports and outports are passed to the generated functions.
Use these examples to learn how to configure your model to customize the generated entry-point functions:
Customize the names of generated entry-point functions:
Customize Generated Entry-Point C Function Names — Learn how to customize the names of generated entry-point functions.
Programmatically Customize Generated Entry-Point C Function Names — Learn how to programmatically customize the names of generated entry-point functions.
Customize Default Naming Rule of Generated Entry-Point C Functions in Subcomponent Models — Learn additional options for customizing names of entry-point functions generated from models configured for subcomponent deployment type.
Customize arguments of generated entry-point functions:
Customize Generated Entry-Point C Function Arguments for Component Models — Learn how to customize the arguments of entry-point functions generated from models configured for component deployment type.
Programmatically Customize Generated Entry-Point C Function Arguments for Component Models — Learn how to programmatically customize the arguments of entry-point functions generated from models configured for component deployment type.
Customize Generated Entry-Point C Function Arguments for Subcomponent Models — Learn how to customize the arguments of entry-point functions generated from models configured for subcomponent deployment type.
Customize arguments of the step function generated from single-tasking models:
Customize Arguments of Step C Function Generated from Single-Tasking Model — Learn additional options for customizing arguments of the step function generated from a model configured as single-tasking.
Programmatically Customize Arguments of Step C Function Generated from Single Tasking Model — Learn additional options for programmatically customizing arguments of the step function generated from a model configured as single-tasking.