Skip to main content

mount_ctrl_sampling8000_damping0005/drives/
mod.rs

1use simulink_binder::import;
2
3import! {Mount_Drv_PDR2021_linear,
4r##"
5#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
6/*
7 * File: Mount_Drv_PDR2021_linear.h
8 *
9 * Code generated for Simulink model 'Mount_Drv_PDR2021_linear'.
10 *
11 * Model version                  : 5.66
12 * Simulink Coder version         : 9.4 (R2020b) 29-Jul-2020
13 * C/C++ source code generated on : Thu Sep  1 11:53:21 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_Drv_PDR2021_linear_h_
22#define RTW_HEADER_Mount_Drv_PDR2021_linear_h_
23#include <string.h>
24#include <stddef.h>
25#ifndef Mount_Drv_PDR2021_linear_COMMON_INCLUDES_
26#define Mount_Drv_PDR2021_linear_COMMON_INCLUDES_
27#include "rtwtypes.h"
28#endif                           /* Mount_Drv_PDR2021_linear_COMMON_INCLUDES_ */
29
30#include "Mount_Drv_PDR2021_linear_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 AZ_delay_DSTATE[32];          /* '<S1>/AZ_delay' */
44  real_T AZ_TFd_states;                /* '<S1>/AZ_TFd' */
45  real_T EL_delay_DSTATE[32];          /* '<S1>/EL_delay' */
46  real_T EL_TFd_states;                /* '<S1>/EL_TFd' */
47  real_T GIR_delay_DSTATE[32];         /* '<S1>/GIR_delay' */
48  real_T GIR_TFd_states;               /* '<S1>/GIR_TFd' */
49  uint32_T CircBufIdx;                 /* '<S1>/AZ_delay' */
50  uint32_T CircBufIdx_g;               /* '<S1>/EL_delay' */
51  uint32_T CircBufIdx_l;               /* '<S1>/GIR_delay' */
52} DW_Mount_Drv_PDR2021_linear_T;
53
54/* External inputs (root inport signals with default storage) */
55typedef struct {
56  real_T Mount_cmd[3];                 /* '<Root>/Mount_cmd' */
57  real_T Mount_pos[14];                /* '<Root>/Mount_pos' */
58} ExtU_Mount_Drv_PDR2021_linear_T;
59
60/* External outputs (root outports fed by signals with default storage) */
61typedef struct {
62  real_T Mount_T[20];                  /* '<Root>/Mount_T' */
63} ExtY_Mount_Drv_PDR2021_linear_T;
64
65/* Real-time Model Data Structure */
66struct tag_RTM_Mount_Drv_PDR2021_linear_T {
67  const char_T * volatile errorStatus;
68};
69
70/* Block states (default storage) */
71extern DW_Mount_Drv_PDR2021_linear_T Mount_Drv_PDR2021_linear_DW;
72
73/* External inputs (root inport signals with default storage) */
74extern ExtU_Mount_Drv_PDR2021_linear_T Mount_Drv_PDR2021_linear_U;
75
76/* External outputs (root outports fed by signals with default storage) */
77extern ExtY_Mount_Drv_PDR2021_linear_T Mount_Drv_PDR2021_linear_Y;
78
79/* Model entry point functions */
80extern void Mount_Drv_PDR2021_linear_initialize(void);
81extern void Mount_Drv_PDR2021_linear_step(void);
82extern void Mount_Drv_PDR2021_linear_terminate(void);
83
84/* Real-time Model object */
85extern RT_MODEL_Mount_Drv_PDR2021_linear_T *const Mount_Drv_PDR2021_linear_M;
86
87/*-
88 * The generated code includes comments that allow you to trace directly
89 * back to the appropriate location in the model.  The basic format
90 * is <system>/block_name, where system is the system number (uniquely
91 * assigned by Simulink) and block_name is the name of the block.
92 *
93 * Note that this particular code originates from a subsystem build,
94 * and has its own system numbers different from the parent model.
95 * Refer to the system hierarchy for this subsystem below, and use the
96 * MATLAB hilite_system command to trace the generated code back
97 * to the parent model.  For example,
98 *
99 * hilite_system('ims_Build5pt3b_PTTasm/Mount_Drv_PDR2021_linear')    - opens subsystem ims_Build5pt3b_PTTasm/Mount_Drv_PDR2021_linear
100 * hilite_system('ims_Build5pt3b_PTTasm/Mount_Drv_PDR2021_linear/Kp') - opens and selects block Kp
101 *
102 * Here is the system hierarchy for this model
103 *
104 * '<Root>' : 'ims_Build5pt3b_PTTasm'
105 * '<S1>'   : 'ims_Build5pt3b_PTTasm/Mount_Drv_PDR2021_linear'
106 */
107#endif                              /* RTW_HEADER_Mount_Drv_PDR2021_linear_h_ */
108
109/*
110 * File trailer for generated code.
111 *
112 * [EOF]
113 */
114"##}