Contenuto principale

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:

See Also

Topics