m1_ctrl/hp_load_cells/
mod.rs1use simulink_binder::import;
2
3import! {M1_HP_loadcells,
4r##"
5/*
6 * File: M1_HP_loadcells.h
7 *
8 * Code generated for Simulink model 'M1_HP_loadcells'.
9 *
10 * Model version : 1.788
11 * Simulink Coder version : 9.0 (R2018b) 24-May-2018
12 * C/C++ source code generated on : Thu Feb 10 11:47:20 2022
13 *
14 * Target selection: ert.tlc
15 * Embedded hardware selection: Intel->x86-64 (Windows64)
16 * Emulation hardware selection:
17 * Differs from embedded hardware (MATLAB Host)
18 * Code generation objectives: Unspecified
19 * Validation result: Not run
20 */
21
22#ifndef RTW_HEADER_M1_HP_loadcells_h_
23#define RTW_HEADER_M1_HP_loadcells_h_
24#include <string.h>
25#include <stddef.h>
26#ifndef M1_HP_loadcells_COMMON_INCLUDES_
27# define M1_HP_loadcells_COMMON_INCLUDES_
28#include "rtwtypes.h"
29#endif /* M1_HP_loadcells_COMMON_INCLUDES_ */
30
31#include "M1_HP_loadcells_types.h"
32
33/* Macros for accessing real-time model data structure */
34#ifndef rtmGetErrorStatus
35# define rtmGetErrorStatus(rtm) ((rtm)->errorStatus)
36#endif
37
38#ifndef rtmSetErrorStatus
39# define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))
40#endif
41
42/* External inputs (root inport signals with default storage) */
43typedef struct {
44 real_T M1_HP_D[84]; /* '<Root>/M1_HP_D' */
45 real_T M1_HP_cmd[42]; /* '<Root>/M1_HP_cmd' */
46} ExtU_M1_HP_loadcells_T;
47
48/* External outputs (root outports fed by signals with default storage) */
49typedef struct {
50 real_T M1_HP_LC[42]; /* '<Root>/M1_HP_LC' */
51} ExtY_M1_HP_loadcells_T;
52
53/* Real-time Model Data Structure */
54struct tag_RTM_M1_HP_loadcells_T {
55 const char_T * volatile errorStatus;
56};
57
58/* External inputs (root inport signals with default storage) */
59extern ExtU_M1_HP_loadcells_T M1_HP_loadcells_U;
60
61/* External outputs (root outports fed by signals with default storage) */
62extern ExtY_M1_HP_loadcells_T M1_HP_loadcells_Y;
63
64/*
65 * Exported Global Parameters
66 *
67 * Note: Exported global parameters are tunable parameters with an exported
68 * global storage class designation. Code generation will declare the memory for
69 * these parameters and exports their symbols.
70 *
71 */
72extern real_T S1_HPstiff; /* Variable: S1_HPstiff
73 * Referenced by: '<S2>/HpK'
74 */
75extern real_T S2_HPstiff; /* Variable: S2_HPstiff
76 * Referenced by: '<S3>/HpK'
77 */
78extern real_T S3_HPstiff; /* Variable: S3_HPstiff
79 * Referenced by: '<S4>/HpK'
80 */
81extern real_T S4_HPstiff; /* Variable: S4_HPstiff
82 * Referenced by: '<S5>/HpK'
83 */
84extern real_T S5_HPstiff; /* Variable: S5_HPstiff
85 * Referenced by: '<S6>/HpK'
86 */
87extern real_T S6_HPstiff; /* Variable: S6_HPstiff
88 * Referenced by: '<S7>/HpK'
89 */
90extern real_T S7_HPstiff; /* Variable: S7_HPstiff
91 * Referenced by: '<S8>/HpK'
92 */
93
94/* Model entry point functions */
95extern void M1_HP_loadcells_initialize(void);
96extern void M1_HP_loadcells_step(void);
97extern void M1_HP_loadcells_terminate(void);
98
99/* Real-time Model object */
100extern RT_MODEL_M1_HP_loadcells_T *const M1_HP_loadcells_M;
101
102/*-
103 * The generated code includes comments that allow you to trace directly
104 * back to the appropriate location in the model. The basic format
105 * is <system>/block_name, where system is the system number (uniquely
106 * assigned by Simulink) and block_name is the name of the block.
107 *
108 * Note that this particular code originates from a subsystem build,
109 * and has its own system numbers different from the parent model.
110 * Refer to the system hierarchy for this subsystem below, and use the
111 * MATLAB hilite_system command to trace the generated code back
112 * to the parent model. For example,
113 *
114 * hilite_system('M1DCS/M1_HP_loadcells') - opens subsystem M1DCS/M1_HP_loadcells
115 * hilite_system('M1DCS/M1_HP_loadcells/Kp') - opens and selects block Kp
116 *
117 * Here is the system hierarchy for this model
118 *
119 * '<Root>' : 'M1DCS'
120 * '<S1>' : 'M1DCS/M1_HP_loadcells'
121 * '<S2>' : 'M1DCS/M1_HP_loadcells/M1S1 Loadcell'
122 * '<S3>' : 'M1DCS/M1_HP_loadcells/M1S2 Loadcell'
123 * '<S4>' : 'M1DCS/M1_HP_loadcells/M1S3 Loadcell'
124 * '<S5>' : 'M1DCS/M1_HP_loadcells/M1S4 Loadcell'
125 * '<S6>' : 'M1DCS/M1_HP_loadcells/M1S5 Loadcell'
126 * '<S7>' : 'M1DCS/M1_HP_loadcells/M1S6 Loadcell'
127 * '<S8>' : 'M1DCS/M1_HP_loadcells/M1S7 Control'
128 */
129#endif /* RTW_HEADER_M1_HP_loadcells_h_ */
130
131/*
132 * File trailer for generated code.
133 *
134 * [EOF]
135 */
136"##}