m2_ctrl_fsm/tiptilt/
mod.rs

1use simulink_binder::import;
2
3import! {TT_Control,
4r##"	 
5#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
6/*
7 * File: TT_Control.h
8 *
9 * Code generated for Simulink model 'TT_Control'.
10 *
11 * Model version                  : 1.1033
12 * Simulink Coder version         : 9.0 (R2018b) 24-May-2018
13 * C/C++ source code generated on : Wed Mar 16 13:45:10 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_TT_Control_h_
22#define RTW_HEADER_TT_Control_h_
23#include <string.h>
24#include <stddef.h>
25#ifndef TT_Control_COMMON_INCLUDES_
26# define TT_Control_COMMON_INCLUDES_
27#include "rtwtypes.h"
28#endif                                 /* TT_Control_COMMON_INCLUDES_ */
29
30#include "TT_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 TTController_DSTATE[56];      /* '<S1>/TT Controller' */
44} DW_TT_Control_T;
45
46/* Constant parameters (default storage) */
47typedef struct {
48  /* Expression: tt7.TT2PZT
49   * Referenced by: '<S1>/TT2PZT'
50   */
51  real_T TT2PZT_Gain[294];
52} ConstP_TT_Control_T;
53
54/* External inputs (root inport signals with default storage) */
55typedef struct {
56  real_T TT_SP[14];                    /* '<Root>/TT_SP' */
57  real_T TT_FB[14];                    /* '<Root>/TT_FB' */
58} ExtU_TT_Control_T;
59
60/* External outputs (root outports fed by signals with default storage) */
61typedef struct {
62  real_T PZT_cmd[21];                  /* '<Root>/PZT_cmd' */
63} ExtY_TT_Control_T;
64
65/* Real-time Model Data Structure */
66struct tag_RTM_TT_Control_T {
67  const char_T * volatile errorStatus;
68};
69
70/* Block states (default storage) */
71extern DW_TT_Control_T TT_Control_DW;
72
73/* External inputs (root inport signals with default storage) */
74extern ExtU_TT_Control_T TT_Control_U;
75
76/* External outputs (root outports fed by signals with default storage) */
77extern ExtY_TT_Control_T TT_Control_Y;
78
79/* Constant parameters (default storage) */
80extern const ConstP_TT_Control_T TT_Control_ConstP;
81
82/* Model entry point functions */
83extern void TT_Control_initialize(void);
84extern void TT_Control_step(void);
85extern void TT_Control_terminate(void);
86
87/* Real-time Model object */
88extern RT_MODEL_TT_Control_T *const TT_Control_M;
89
90/*-
91 * These blocks were eliminated from the model due to optimizations:
92 *
93 * Block '<S1>/m2TT_en' : Eliminated nontunable gain of 1
94 */
95
96/*-
97 * The generated code includes comments that allow you to trace directly
98 * back to the appropriate location in the model.  The basic format
99 * is <system>/block_name, where system is the system number (uniquely
100 * assigned by Simulink) and block_name is the name of the block.
101 *
102 * Note that this particular code originates from a subsystem build,
103 * and has its own system numbers different from the parent model.
104 * Refer to the system hierarchy for this subsystem below, and use the
105 * MATLAB hilite_system command to trace the generated code back
106 * to the parent model.  For example,
107 *
108 * hilite_system('ims_Build5pt1f/TT_Control')    - opens subsystem ims_Build5pt1f/TT_Control
109 * hilite_system('ims_Build5pt1f/TT_Control/Kp') - opens and selects block Kp
110 *
111 * Here is the system hierarchy for this model
112 *
113 * '<Root>' : 'ims_Build5pt1f'
114 * '<S1>'   : 'ims_Build5pt1f/TT_Control'
115 */
116#endif                                 /* RTW_HEADER_TT_Control_h_ */
117
118/*
119 * File trailer for generated code.
120 *
121 * [EOF]
122 */
123"##}