1 | /* |
2 | * File: untitled.h |
3 | * |
4 | * Code generated for Simulink model 'untitled'. |
5 | * |
6 | * Model version : 1.0 |
7 | * Simulink Coder version : 8.12 (R2017a) 16-Feb-2017 |
8 | * C/C++ source code generated on : Thu Mar 14 11:23:20 2019 |
9 | * |
10 | * Target selection: ert.tlc |
11 | * Embedded hardware selection: Atmel->AVR |
12 | * Code generation objectives: Unspecified |
13 | * Validation result: Not run |
14 | */ |
15 | |
16 | #ifndef RTW_HEADER_untitled_h_ |
17 | #define RTW_HEADER_untitled_h_ |
18 | #include <math.h> |
19 | #include <float.h> |
20 | #include <string.h> |
21 | #include <stddef.h> |
22 | #ifndef untitled_COMMON_INCLUDES_ |
23 | # define untitled_COMMON_INCLUDES_ |
24 | #include "rtwtypes.h" |
25 | #include "rtw_extmode.h" |
26 | #include "sysran_types.h" |
27 | #include "rtw_continuous.h" |
28 | #include "rtw_solver.h" |
29 | #include "dt_info.h" |
30 | #include "ext_work.h" |
31 | #include "arduino_analoginput_lct.h" |
32 | #endif /* untitled_COMMON_INCLUDES_ */ |
33 | |
34 | #include "untitled_types.h" |
35 | |
36 | /* Shared type includes */ |
37 | #include "multiword_types.h" |
38 | #include "MW_target_hardware_resources.h" |
39 | #include "rt_nonfinite.h" |
40 | #include "rtGetInf.h" |
41 | |
42 | /* Macros for accessing real-time model data structure */ |
43 | #ifndef rtmGetFinalTime |
44 | # define rtmGetFinalTime(rtm) ((rtm)->Timing.tFinal) |
45 | #endif |
46 | |
47 | #ifndef rtmGetRTWExtModeInfo |
48 | # define rtmGetRTWExtModeInfo(rtm) ((rtm)->extModeInfo) |
49 | #endif |
50 | |
51 | #ifndef rtmGetErrorStatus |
52 | # define rtmGetErrorStatus(rtm) ((rtm)->errorStatus) |
53 | #endif |
54 | |
55 | #ifndef rtmSetErrorStatus |
56 | # define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val)) |
57 | #endif |
58 | |
59 | #ifndef rtmGetStopRequested |
60 | # define rtmGetStopRequested(rtm) ((rtm)->Timing.stopRequestedFlag) |
61 | #endif |
62 | |
63 | #ifndef rtmSetStopRequested |
64 | # define rtmSetStopRequested(rtm, val) ((rtm)->Timing.stopRequestedFlag = (val)) |
65 | #endif |
66 | |
67 | #ifndef rtmGetStopRequestedPtr |
68 | # define rtmGetStopRequestedPtr(rtm) (&((rtm)->Timing.stopRequestedFlag)) |
69 | #endif |
70 | |
71 | #ifndef rtmGetT |
72 | # define rtmGetT(rtm) ((rtm)->Timing.taskTime0) |
73 | #endif |
74 | |
75 | #ifndef rtmGetTFinal |
76 | # define rtmGetTFinal(rtm) ((rtm)->Timing.tFinal) |
77 | #endif |
78 | |
79 | /* Block signals (auto storage) */ |
80 | typedef struct { |
81 | real_T y; /* '<Root>/MATLAB Function' */ |
82 | } B_untitled_T; |
83 | |
84 | /* Block states (auto storage) for system '<Root>' */ |
85 | typedef struct { |
86 | struct { |
87 | void *LoggedData; |
88 | } Scope_PWORK; /* '<Root>/Scope' */ |
89 | } DW_untitled_T; |
90 | |
91 | /* Parameters (auto storage) */ |
92 | struct P_untitled_T_ { |
93 | uint32_T AnalogInput_p1; /* Computed Parameter: AnalogInput_p1 |
94 | * Referenced by: '<Root>/Analog Input' |
95 | */ |
96 | }; |
97 | |
98 | /* Real-time Model Data Structure */ |
99 | struct tag_RTM_untitled_T { |
100 | const char_T *errorStatus; |
101 | RTWExtModeInfo *extModeInfo; |
102 | |
103 | /* |
104 | * Sizes: |
105 | * The following substructure contains sizes information |
106 | * for many of the model attributes such as inputs, outputs, |
107 | * dwork, sample times, etc. |
108 | */ |
109 | struct { |
110 | uint32_T checksums[4]; |
111 | } Sizes; |
112 | |
113 | /* |
114 | * SpecialInfo: |
115 | * The following substructure contains special information |
116 | * related to other components that are dependent on RTW. |
117 | */ |
118 | struct { |
119 | const void *mappingInfo; |
120 | } SpecialInfo; |
121 | |
122 | /* |
123 | * Timing: |
124 | * The following substructure contains information regarding |
125 | * the timing information for the model. |
126 | */ |
127 | struct { |
128 | time_T taskTime0; |
129 | uint32_T clockTick0; |
130 | time_T stepSize0; |
131 | time_T tFinal; |
132 | boolean_T stopRequestedFlag; |
133 | } Timing; |
134 | }; |
135 | |
136 | /* Block parameters (auto storage) */ |
137 | extern P_untitled_T untitled_P; |
138 | |
139 | /* Block signals (auto storage) */ |
140 | extern B_untitled_T untitled_B; |
141 | |
142 | /* Block states (auto storage) */ |
143 | extern DW_untitled_T untitled_DW; |
144 | |
145 | /* Model entry point functions */ |
146 | extern void untitled_initialize(void); |
147 | extern void untitled_step(void); |
148 | extern void untitled_terminate(void); |
149 | |
150 | /* Real-time Model object */ |
151 | extern RT_MODEL_untitled_T *const untitled_M; |
152 | |
153 | /*- |
154 | * The generated code includes comments that allow you to trace directly |
155 | * back to the appropriate location in the model. The basic format |
156 | * is <system>/block_name, where system is the system number (uniquely |
157 | * assigned by Simulink) and block_name is the name of the block. |
158 | * |
159 | * Use the MATLAB hilite_system command to trace the generated code back |
160 | * to the model. For example, |
161 | * |
162 | * hilite_system('<S3>') - opens system 3 |
163 | * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3 |
164 | * |
165 | * Here is the system hierarchy for this model |
166 | * |
167 | * '<Root>' : 'untitled' |
168 | * '<S1>' : 'untitled/MATLAB Function' |
169 | */ |
170 | #endif /* RTW_HEADER_untitled_h_ */ |
171 | |
172 | /* |
173 | * File trailer for generated code. |
174 | * |
175 | * [EOF] |
176 | */ |
177 |