from
Code Coverage Tool
by Mark Walker
Code Coverage Tool measures C statement coverage in generated code.
|
| controller_model_h.html |
RTW Report - controller_model.h
1 /*
2 * File: controller_model.h
3 *
4 * Real-Time Workshop code generated for Simulink model controller_model.
5 *
6 * Model version : 1.79
7 * Real-Time Workshop file version : 7.2 (R2008b) 04-Aug-2008
8 * Real-Time Workshop file generated on : Thu May 14 12:41:13 2009
9 * TLC version : 7.2 (Aug 5 2008)
10 * C/C++ source code generated on : Thu May 14 12:41:14 2009
11 */
12
13 #ifndef RTW_HEADER_controller_model_h_
14 #define RTW_HEADER_controller_model_h_
15 #ifndef controller_model_COMMON_INCLUDES_
16 # define controller_model_COMMON_INCLUDES_
17 #include <string.h>
18 #include "rtwtypes.h"
19 #endif /* controller_model_COMMON_INCLUDES_ */
20
21 #include "controller_model_types.h"
22
23 /* Macros for accessing real-time model data structure */
24 #ifndef rtmGetErrorStatus
25 # define rtmGetErrorStatus(rtm) ((rtm)->errorStatus)
26 #endif
27
28 #ifndef rtmSetErrorStatus
29 # define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))
30 #endif
31
32 /* user code (top of header file) */
33 extern void __cct_dump(void);
34 extern void pilMarshallInitSFcnSimStruct(void*);
35 extern void pilMarshallInitRootSimStruct(void*);
36
37 /* Block signals (auto storage) */
38 typedef struct {
39 uint8_T Merge; /* '<S1>/Merge' */
40 } BlockIO_controller_model;
41
42 /* External inputs (root inport signals with auto storage) */
43 typedef struct {
44 uint8_T In1; /* '<Root>/In1' */
45 } ExternalInputs_controller_model;
46
47 /* Real-time Model Data Structure */
48 struct RT_MODEL_controller_model {
49 const char_T * volatile errorStatus;
50
51 /*
52 * Timing:
53 * The following substructure contains information regarding
54 * the timing information for the model.
55 */
56 struct {
57 boolean_T firstInitCondFlag;
58 } Timing;
59 };
60
61 /* Block signals (auto storage) */
62 extern BlockIO_controller_model controller_model_B;
63
64 /* External inputs (root inport signals with auto storage) */
65 extern ExternalInputs_controller_model controller_model_U;
66
67 /*
68 * Exported Global Signals
69 *
70 * Note: Exported global signals are block signals with an exported global
71 * storage class designation. RTW declares the memory for these signals
72 * and exports their symbols.
73 *
74 */
75 extern uint8_T result; /* '<S1>/Gain' */
76
77 /* Model entry point functions */
78 extern void controller_model_initialize(boolean_T firstTime);
79 extern void controller_model_step(void);
80 extern void controller_model_terminate(void);
81
82 /* Real-time Model object */
83 extern RT_MODEL_controller_model *controller_model_M;
84
85 /*-
86 * The generated code includes comments that allow you to trace directly
87 * back to the appropriate location in the model. The basic format
88 * is <system>/block_name, where system is the system number (uniquely
89 * assigned by Simulink) and block_name is the name of the block.
90 *
91 * Note that this particular code originates from a subsystem build,
92 * and has its own system numbers different from the parent model.
93 * Refer to the system hierarchy for this subsystem below, and use the
94 * MATLAB hilite_system command to trace the generated code back
95 * to the parent model. For example,
96 *
97 * hilite_system('cov_example/controller_model') - opens subsystem cov_example/controller_model
98 * hilite_system('cov_example/controller_model/Kp') - opens and selects block Kp
99 *
100 * Here is the system hierarchy for this model
101 *
102 * '<Root>' : cov_example
103 * '<S1>' : cov_example/controller_model
104 * '<S2>' : cov_example/controller_model/Chart
105 * '<S3>' : cov_example/controller_model/result 1
106 * '<S4>' : cov_example/controller_model/result 2
107 * '<S5>' : cov_example/controller_model/result 3
108 */
109 #endif /* RTW_HEADER_controller_model_h_ */
110
111 /* File trailer for Real-Time Workshop generated code.
112 *
113 * [EOF]
114 */
|
|
|
Contact us at files@mathworks.com