User`s guide

2 Building an Application
2-24
- Exported Stateflow machine parented data
- Model data structures, including
rtM
- Model entry point functions
model_private.h
Contains local define constants and local data required by the model and
subsystems. This file is included by the generated source files in the model.
You do not need to include
model_private.h when interfacing
hand-written code to a model. It contains
- Imported Simulink data symbols
- Imported Stateflow machine parented data
- Stateflow entry points
- Real-Time Workshop details (various macros, enums, and so forth that
are private to the code)
model_types.h
Provides forward declarations for the real-time model data structure and
the parameters data structure. These might be needed by function
declarations of reusable functions.
model_types.h is included by all the
generated header files in the model.
model_data.c
A conditionally generated C source code file containing declarations for the
parameters data structure and the constant block I/O data structure. If
these data structures are not used in the model,
model_data.c is not
generated. Note that these structures are declared
extern in model.h.
When present, this file contains
- Constant block I/O parameters
- Include files
model.h and model_private.h
- Constant parameters
subsystem.c
C source code for each noninlined nonvirtual subsystem or copy thereof
when the subsystem is configured to place code in a separate file.
subsystem.h
Header file containing exported symbols for noninlined nonvirtual
subsystems. Analogous to
model.h.