m1_ctrl/hp_dynamics/
mod.rs

1use simulink_binder::import;
2
3import! {M1_HP_Dyn,
4r##"	 
5/*
6 * File: M1_HP_Dyn.h
7 *
8 * Code generated for Simulink model 'M1_HP_Dyn'.
9 *
10 * Model version                  : 1.960
11 * Simulink Coder version         : 9.0 (R2018b) 24-May-2018
12 * C/C++ source code generated on : Fri Feb 11 10:27:20 2022
13 *
14 * Target selection: ert.tlc
15 * Embedded hardware selection: Intel->x86-64 (Linux 64)
16 * Code generation objectives: Unspecified
17 * Validation result: Not run
18 */
19
20#ifndef RTW_HEADER_M1_HP_Dyn_h_
21#define RTW_HEADER_M1_HP_Dyn_h_
22#include <string.h>
23#include <stddef.h>
24#ifndef M1_HP_Dyn_COMMON_INCLUDES_
25# define M1_HP_Dyn_COMMON_INCLUDES_
26#include "rtwtypes.h"
27#endif                                 /* M1_HP_Dyn_COMMON_INCLUDES_ */
28
29#include "M1_HP_Dyn_types.h"
30
31/* Macros for accessing real-time model data structure */
32#ifndef rtmGetErrorStatus
33# define rtmGetErrorStatus(rtm)        ((rtm)->errorStatus)
34#endif
35
36#ifndef rtmSetErrorStatus
37# define rtmSetErrorStatus(rtm, val)   ((rtm)->errorStatus = (val))
38#endif
39
40/* Block states (default storage) for system '<Root>' */
41typedef struct {
42  real_T S1HP_dyn_dTF_states[24];      /* '<S1>/S1HP_dyn_dTF' */
43  real_T S2HP_dyn_dTF_states[24];      /* '<S1>/S2HP_dyn_dTF' */
44  real_T S3HP_dyn_dTF_states[24];      /* '<S1>/S3HP_dyn_dTF' */
45  real_T S4HP_dyn_dTF_states[24];      /* '<S1>/S4HP_dyn_dTF' */
46  real_T S5HP_dyn_dTF_states[24];      /* '<S1>/S5HP_dyn_dTF' */
47  real_T S6HP_dyn_dTF_states[24];      /* '<S1>/S6HP_dyn_dTF' */
48  real_T S7HP_dyn_dTF_states[24];      /* '<S1>/S7HP_dyn_dTF' */
49} DW_M1_HP_Dyn_T;
50
51/* External inputs (root inport signals with default storage) */
52typedef struct {
53  real_T M1_RBM_cmd[42];               /* '<Root>/M1_RBM_cmd' */
54} ExtU_M1_HP_Dyn_T;
55
56/* External outputs (root outports fed by signals with default storage) */
57typedef struct {
58  real_T HP_F_cmd[42];                 /* '<Root>/HP_F_cmd' */
59} ExtY_M1_HP_Dyn_T;
60
61/* Real-time Model Data Structure */
62struct tag_RTM_M1_HP_Dyn_T {
63  const char_T * volatile errorStatus;
64};
65
66/* Block states (default storage) */
67extern DW_M1_HP_Dyn_T M1_HP_Dyn_DW;
68
69/* External inputs (root inport signals with default storage) */
70extern ExtU_M1_HP_Dyn_T M1_HP_Dyn_U;
71
72/* External outputs (root outports fed by signals with default storage) */
73extern ExtY_M1_HP_Dyn_T M1_HP_Dyn_Y;
74
75/*
76 * Exported Global Parameters
77 *
78 * Note: Exported global parameters are tunable parameters with an exported
79 * global storage class designation.  Code generation will declare the memory for
80 * these parameters and exports their symbols.
81 *
82 */
83extern real_T S1_HPstiff;              /* Variable: S1_HPstiff
84                                        * Referenced by: '<S1>/HpK8'
85                                        */
86extern real_T S1_M1RBM2HP[36];         /* Variable: S1_M1RBM2HP
87                                        * Referenced by: '<S1>/CG2Hp6'
88                                        */
89extern real_T S2_HPstiff;              /* Variable: S2_HPstiff
90                                        * Referenced by: '<S1>/HpK1'
91                                        */
92extern real_T S2_M1RBM2HP[36];         /* Variable: S2_M1RBM2HP
93                                        * Referenced by: '<S1>/CG2Hp8'
94                                        */
95extern real_T S3_HPstiff;              /* Variable: S3_HPstiff
96                                        * Referenced by: '<S1>/HpK2'
97                                        */
98extern real_T S3_M1RBM2HP[36];         /* Variable: S3_M1RBM2HP
99                                        * Referenced by: '<S1>/CG2Hp1'
100                                        */
101extern real_T S4_HPstiff;              /* Variable: S4_HPstiff
102                                        * Referenced by: '<S1>/HpK5'
103                                        */
104extern real_T S4_M1RBM2HP[36];         /* Variable: S4_M1RBM2HP
105                                        * Referenced by: '<S1>/CG2Hp2'
106                                        */
107extern real_T S5_HPstiff;              /* Variable: S5_HPstiff
108                                        * Referenced by: '<S1>/HpK3'
109                                        */
110extern real_T S5_M1RBM2HP[36];         /* Variable: S5_M1RBM2HP
111                                        * Referenced by: '<S1>/CG2Hp3'
112                                        */
113extern real_T S6_HPstiff;              /* Variable: S6_HPstiff
114                                        * Referenced by: '<S1>/HpK4'
115                                        */
116extern real_T S6_M1RBM2HP[36];         /* Variable: S6_M1RBM2HP
117                                        * Referenced by: '<S1>/CG2Hp4'
118                                        */
119extern real_T S7_HPstiff;              /* Variable: S7_HPstiff
120                                        * Referenced by: '<S1>/HpK6'
121                                        */
122extern real_T S7_M1RBM2HP[36];         /* Variable: S7_M1RBM2HP
123                                        * Referenced by: '<S1>/CG2Hp5'
124                                        */
125
126/* Model entry point functions */
127extern void M1_HP_Dyn_initialize(void);
128extern void M1_HP_Dyn_step(void);
129extern void M1_HP_Dyn_terminate(void);
130
131/* Real-time Model object */
132extern RT_MODEL_M1_HP_Dyn_T *const M1_HP_Dyn_M;
133
134/*-
135 * The generated code includes comments that allow you to trace directly
136 * back to the appropriate location in the model.  The basic format
137 * is <system>/block_name, where system is the system number (uniquely
138 * assigned by Simulink) and block_name is the name of the block.
139 *
140 * Note that this particular code originates from a subsystem build,
141 * and has its own system numbers different from the parent model.
142 * Refer to the system hierarchy for this subsystem below, and use the
143 * MATLAB hilite_system command to trace the generated code back
144 * to the parent model.  For example,
145 *
146 * hilite_system('ims_Build5pt1f/M1_HP_Dyn')    - opens subsystem ims_Build5pt1f/M1_HP_Dyn
147 * hilite_system('ims_Build5pt1f/M1_HP_Dyn/Kp') - opens and selects block Kp
148 *
149 * Here is the system hierarchy for this model
150 *
151 * '<Root>' : 'ims_Build5pt1f'
152 * '<S1>'   : 'ims_Build5pt1f/M1_HP_Dyn'
153 */
154#endif                                 /* RTW_HEADER_M1_HP_Dyn_h_ */
155
156/*
157 * File trailer for generated code.
158 *
159 * [EOF]
160 */
161"##}