m2_ctrl_asm/ptt_fluid_damping/
mod.rs1use simulink_binder::import;
2
3import! {pttASMC_FluidD,
4r##"
5#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
6/*
7 * File: pttASMC_FluidD.h
8 *
9 * Code generated for Simulink model 'pttASMC_FluidD'.
10 *
11 * Model version : 5.75
12 * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
13 * C/C++ source code generated on : Fri Sep 2 10:56:05 2022
14 *
15 * Target selection: ert.tlc
16 * Embedded hardware selection: Intel->x86-64 (Linux 64)
17 * Code generation objectives: Unspecified
18 * Validation result: Not run
19 */
20
21#ifndef RTW_HEADER_pttASMC_FluidD_h_
22#define RTW_HEADER_pttASMC_FluidD_h_
23#include <string.h>
24#include <stddef.h>
25#ifndef pttASMC_FluidD_COMMON_INCLUDES_
26#define pttASMC_FluidD_COMMON_INCLUDES_
27#include "rtwtypes.h"
28#endif /* pttASMC_FluidD_COMMON_INCLUDES_ */
29
30#include "pttASMC_FluidD_types.h"
31
32/* Macros for accessing real-time model data structure */
33#ifndef rtmGetErrorStatus
34#define rtmGetErrorStatus(rtm) ((rtm)->errorStatus)
35#endif
36
37#ifndef rtmSetErrorStatus
38#define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))
39#endif
40
41/* Block states (default storage) for system '<Root>' */
42typedef struct {
43 real_T Internal_DSTATE[126]; /* '<S3>/Internal' */
44 real_T Internal_DSTATE_m[21]; /* '<S4>/Internal' */
45 real_T UD_DSTATE[21]; /* '<S2>/UD' */
46} DW_pttASMC_FluidD_T;
47
48/* Constant parameters (default storage) */
49typedef struct {
50 /* Computed Parameter: Internal_A
51 * Referenced by: '<S3>/Internal'
52 */
53 real_T Internal_A[588];
54
55 /* Computed Parameter: Internal_C
56 * Referenced by: '<S3>/Internal'
57 */
58 real_T Internal_C[252];
59
60 /* Expression: sm.Kd
61 * Referenced by: '<S1>/Kd'
62 */
63 real_T Kd_Gain[441];
64
65 /* Expression: kron([1;-1],kron(eye(7),[zeros(2,3);eye(3);zeros(1,3)]))
66 * Referenced by: '<S1>/FzMxy_2_6F'
67 */
68 real_T FzMxy_2_6F_Gain[1764];
69
70 /* Expression: sm.Kfd
71 * Referenced by: '<S1>/Kfd'
72 */
73 real_T Kfd_Gain[441];
74
75 /* Expression: kron([-1;1],kron(eye(7),[zeros(2,3);eye(3);zeros(1,3)]))
76 * Referenced by: '<S1>/FzMxydamp_2_6F'
77 */
78 real_T FzMxydamp_2_6F_Gain[1764];
79} ConstP_pttASMC_FluidD_T;
80
81/* External inputs (root inport signals with default storage) */
82typedef struct {
83 real_T Rrbfs[21]; /* '<Root>/Rrbfs' */
84 real_T ASM_FS_6D[42]; /* '<Root>/ASM_FS_6D' */
85 real_T ASM_RB_6D[42]; /* '<Root>/ASM_RB_6D' */
86} ExtU_pttASMC_FluidD_T;
87
88/* External outputs (root outports fed by signals with default storage) */
89typedef struct {
90 real_T Ucp[42]; /* '<Root>/Ucp' */
91 real_T Urb[42]; /* '<Root>/Urb' */
92 real_T Ufs[42]; /* '<Root>/Ufs' */
93} ExtY_pttASMC_FluidD_T;
94
95/* Real-time Model Data Structure */
96struct tag_RTM_pttASMC_FluidD_T {
97 const char_T * volatile errorStatus;
98};
99
100/* Block states (default storage) */
101extern DW_pttASMC_FluidD_T pttASMC_FluidD_DW;
102
103/* External inputs (root inport signals with default storage) */
104extern ExtU_pttASMC_FluidD_T pttASMC_FluidD_U;
105
106/* External outputs (root outports fed by signals with default storage) */
107extern ExtY_pttASMC_FluidD_T pttASMC_FluidD_Y;
108
109/* Constant parameters (default storage) */
110extern const ConstP_pttASMC_FluidD_T pttASMC_FluidD_ConstP;
111
112/* Model entry point functions */
113extern void pttASMC_FluidD_initialize(void);
114extern void pttASMC_FluidD_step(void);
115extern void pttASMC_FluidD_terminate(void);
116
117/* Real-time Model object */
118extern RT_MODEL_pttASMC_FluidD_T *const pttASMC_FluidD_M;
119
120/*-
121 * These blocks were eliminated from the model due to optimizations:
122 *
123 * Block '<S2>/Data Type Duplicate' : Unused code path elimination
124 * Block '<S1>/gain2' : Eliminated nontunable gain of 1
125 */
126
127/*-
128 * The generated code includes comments that allow you to trace directly
129 * back to the appropriate location in the model. The basic format
130 * is <system>/block_name, where system is the system number (uniquely
131 * assigned by Simulink) and block_name is the name of the block.
132 *
133 * Note that this particular code originates from a subsystem build,
134 * and has its own system numbers different from the parent model.
135 * Refer to the system hierarchy for this subsystem below, and use the
136 * MATLAB hilite_system command to trace the generated code back
137 * to the parent model. For example,
138 *
139 * hilite_system('ims_Build5pt3b_PTTasm/pttASMC_FluidD') - opens subsystem ims_Build5pt3b_PTTasm/pttASMC_FluidD
140 * hilite_system('ims_Build5pt3b_PTTasm/pttASMC_FluidD/Kp') - opens and selects block Kp
141 *
142 * Here is the system hierarchy for this model
143 *
144 * '<Root>' : 'ims_Build5pt3b_PTTasm'
145 * '<S1>' : 'ims_Build5pt3b_PTTasm/pttASMC_FluidD'
146 * '<S2>' : 'ims_Build5pt3b_PTTasm/pttASMC_FluidD/Discrete Derivative'
147 * '<S3>' : 'ims_Build5pt3b_PTTasm/pttASMC_FluidD/Flagd'
148 * '<S4>' : 'ims_Build5pt3b_PTTasm/pttASMC_FluidD/Fpi_d'
149 * '<S5>' : 'ims_Build5pt3b_PTTasm/pttASMC_FluidD/Flagd/Input Delay'
150 * '<S6>' : 'ims_Build5pt3b_PTTasm/pttASMC_FluidD/Flagd/Output Delay'
151 * '<S7>' : 'ims_Build5pt3b_PTTasm/pttASMC_FluidD/Fpi_d/Input Delay'
152 * '<S8>' : 'ims_Build5pt3b_PTTasm/pttASMC_FluidD/Fpi_d/Output Delay'
153 */
154#endif /* RTW_HEADER_pttASMC_FluidD_h_ */
155
156/*
157 * File trailer for generated code.
158 *
159 * [EOF]
160 */
161"##}