mount_ctrl_sampling1000_damping002/controller/ze00/
mod.rs1use simulink_binder::import;
2
3import! {Mount_Control,
4r##"
5#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
6/*
7 * File: Mount_Control.h
8 *
9 * Code generated for Simulink model 'Mount_Control'.
10 *
11 * Model version : 1.1309
12 * Simulink Coder version : 9.0 (R2018b) 24-May-2018
13 * C/C++ source code generated on : Tue Jun 28 09:55:56 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_Mount_Control_h_
22#define RTW_HEADER_Mount_Control_h_
23#include <string.h>
24#include <stddef.h>
25#ifndef Mount_Control_COMMON_INCLUDES_
26# define Mount_Control_COMMON_INCLUDES_
27#include "rtwtypes.h"
28#endif /* Mount_Control_COMMON_INCLUDES_ */
29
30#include "Mount_Control_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 AZFFcontroller_DSTATE[2]; /* '<S1>/AZ FF controller' */
44 real_T AZFBcontroller_DSTATE[13]; /* '<S1>/AZ FB controller' */
45 real_T ELFFcontroller_DSTATE[2]; /* '<S1>/EL FF controller' */
46 real_T ELFBcontroller_DSTATE[11]; /* '<S1>/EL FB controller' */
47 real_T GIRFFcontroller_DSTATE[2]; /* '<S1>/GIR FF controller' */
48 real_T GIRFBcontroller_DSTATE[13]; /* '<S1>/GIR FB controller' */
49} DW_Mount_Control_T;
50
51/* Constant parameters (default storage) */
52typedef struct {
53 /* Computed Parameter: AZFBcontroller_A
54 * Referenced by: '<S1>/AZ FB controller'
55 */
56 real_T AZFBcontroller_A[145];
57
58 /* Computed Parameter: AZFBcontroller_C
59 * Referenced by: '<S1>/AZ FB controller'
60 */
61 real_T AZFBcontroller_C[13];
62
63 /* Computed Parameter: ELFBcontroller_A
64 * Referenced by: '<S1>/EL FB controller'
65 */
66 real_T ELFBcontroller_A[101];
67
68 /* Computed Parameter: ELFBcontroller_C
69 * Referenced by: '<S1>/EL FB controller'
70 */
71 real_T ELFBcontroller_C[11];
72
73 /* Computed Parameter: GIRFBcontroller_A
74 * Referenced by: '<S1>/GIR FB controller'
75 */
76 real_T GIRFBcontroller_A[145];
77
78 /* Computed Parameter: GIRFBcontroller_C
79 * Referenced by: '<S1>/GIR FB controller'
80 */
81 real_T GIRFBcontroller_C[13];
82} ConstP_Mount_Control_T;
83
84/* External inputs (root inport signals with default storage) */
85typedef struct {
86 real_T Mount_SP[3]; /* '<Root>/Mount_SP' */
87 real_T Mount_FB[14]; /* '<Root>/Mount_FB' */
88} ExtU_Mount_Control_T;
89
90/* External outputs (root outports fed by signals with default storage) */
91typedef struct {
92 real_T Mount_cmd[3]; /* '<Root>/Mount_cmd' */
93} ExtY_Mount_Control_T;
94
95/* Real-time Model Data Structure */
96struct tag_RTM_Mount_Control_T {
97 const char_T * volatile errorStatus;
98};
99
100/* Block states (default storage) */
101extern DW_Mount_Control_T Mount_Control_DW;
102
103/* External inputs (root inport signals with default storage) */
104extern ExtU_Mount_Control_T Mount_Control_U;
105
106/* External outputs (root outports fed by signals with default storage) */
107extern ExtY_Mount_Control_T Mount_Control_Y;
108
109/* Constant parameters (default storage) */
110extern const ConstP_Mount_Control_T Mount_Control_ConstP;
111
112/* Model entry point functions */
113extern void Mount_Control_initialize(void);
114extern void Mount_Control_step(void);
115extern void Mount_Control_terminate(void);
116
117/* Real-time Model object */
118extern RT_MODEL_Mount_Control_T *const Mount_Control_M;
119
120/*-
121 * The generated code includes comments that allow you to trace directly
122 * back to the appropriate location in the model. The basic format
123 * is <system>/block_name, where system is the system number (uniquely
124 * assigned by Simulink) and block_name is the name of the block.
125 *
126 * Note that this particular code originates from a subsystem build,
127 * and has its own system numbers different from the parent model.
128 * Refer to the system hierarchy for this subsystem below, and use the
129 * MATLAB hilite_system command to trace the generated code back
130 * to the parent model. For example,
131 *
132 * hilite_system('ims_Build5pt1g/Mount_Control') - opens subsystem ims_Build5pt1g/Mount_Control
133 * hilite_system('ims_Build5pt1g/Mount_Control/Kp') - opens and selects block Kp
134 *
135 * Here is the system hierarchy for this model
136 *
137 * '<Root>' : 'ims_Build5pt1g'
138 * '<S1>' : 'ims_Build5pt1g/Mount_Control'
139 */
140#endif /* RTW_HEADER_Mount_Control_h_ */
141
142/*
143 * File trailer for generated code.
144 *
145 * [EOF]
146 */
147"##}