m2_ctrl_asm/positionner/
mod.rs1use simulink_binder::import;
2
3import! {M2_POS_Control,
4r##"
5#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
6/*
7 * File: M2_POS_Control.h
8 *
9 * Code generated for Simulink model 'M2_POS_Control'.
10 *
11 * Model version : 5.76
12 * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
13 * C/C++ source code generated on : Fri Sep 2 12:29:45 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_M2_POS_Control_h_
22#define RTW_HEADER_M2_POS_Control_h_
23#include <string.h>
24#include <stddef.h>
25#ifndef M2_POS_Control_COMMON_INCLUDES_
26#define M2_POS_Control_COMMON_INCLUDES_
27#include "rtwtypes.h"
28#endif /* M2_POS_Control_COMMON_INCLUDES_ */
29
30#include "M2_POS_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 FBcontroller_states[126]; /* '<S1>/FB controller' */
44} DW_M2_POS_Control_T;
45
46/* Constant parameters (default storage) */
47typedef struct {
48 /* Expression: kron(eye(42),[1;-1])
49 * Referenced by: '<S1>/kron(eye(42),[1;-1])'
50 */
51 real_T kroneye4211_Gain[3528];
52} ConstP_M2_POS_Control_T;
53
54/* External inputs (root inport signals with default storage) */
55typedef struct {
56 real_T M2_pos_cmd[42]; /* '<Root>/M2_pos_cmd' */
57 real_T M2_pos_FB[84]; /* '<Root>/M2_pos_FB' */
58} ExtU_M2_POS_Control_T;
59
60/* External outputs (root outports fed by signals with default storage) */
61typedef struct {
62 real_T M2_pos_act_F[84]; /* '<Root>/M2_pos_act_F' */
63} ExtY_M2_POS_Control_T;
64
65/* Real-time Model Data Structure */
66struct tag_RTM_M2_POS_Control_T {
67 const char_T * volatile errorStatus;
68};
69
70/* Block states (default storage) */
71extern DW_M2_POS_Control_T M2_POS_Control_DW;
72
73/* External inputs (root inport signals with default storage) */
74extern ExtU_M2_POS_Control_T M2_POS_Control_U;
75
76/* External outputs (root outports fed by signals with default storage) */
77extern ExtY_M2_POS_Control_T M2_POS_Control_Y;
78
79/* Constant parameters (default storage) */
80extern const ConstP_M2_POS_Control_T M2_POS_Control_ConstP;
81
82/* Model entry point functions */
83extern void M2_POS_Control_initialize(void);
84extern void M2_POS_Control_step(void);
85extern void M2_POS_Control_terminate(void);
86
87/* Real-time Model object */
88extern RT_MODEL_M2_POS_Control_T *const M2_POS_Control_M;
89
90/*-
91 * The generated code includes comments that allow you to trace directly
92 * back to the appropriate location in the model. The basic format
93 * is <system>/block_name, where system is the system number (uniquely
94 * assigned by Simulink) and block_name is the name of the block.
95 *
96 * Note that this particular code originates from a subsystem build,
97 * and has its own system numbers different from the parent model.
98 * Refer to the system hierarchy for this subsystem below, and use the
99 * MATLAB hilite_system command to trace the generated code back
100 * to the parent model. For example,
101 *
102 * hilite_system('ims_Build5pt3b_PTTasm/M2_POS_Control') - opens subsystem ims_Build5pt3b_PTTasm/M2_POS_Control
103 * hilite_system('ims_Build5pt3b_PTTasm/M2_POS_Control/Kp') - opens and selects block Kp
104 *
105 * Here is the system hierarchy for this model
106 *
107 * '<Root>' : 'ims_Build5pt3b_PTTasm'
108 * '<S1>' : 'ims_Build5pt3b_PTTasm/M2_POS_Control'
109 */
110#endif /* RTW_HEADER_M2_POS_Control_h_ */
111
112/*
113 * File trailer for generated code.
114 *
115 * [EOF]
116 */
117"##}