init
This commit is contained in:
152
OpenController/include/Open0.h
Normal file
152
OpenController/include/Open0.h
Normal file
@@ -0,0 +1,152 @@
|
||||
/*
|
||||
* Academic License - for use in teaching, academic research, and meeting
|
||||
* course requirements at degree granting institutions only. Not for
|
||||
* government, commercial, or other organizational use.
|
||||
*
|
||||
* File: Open0.h
|
||||
*
|
||||
* Code generated for Simulink model 'Open0'.
|
||||
*
|
||||
* Model version : 2.23
|
||||
* Simulink Coder version : 25.1 (R2025a) 21-Nov-2024
|
||||
* C/C++ source code generated on : Sat Jun 14 14:25:03 2025
|
||||
*
|
||||
* Target selection: ert.tlc
|
||||
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
||||
* Code generation objectives:
|
||||
* 1. Execution efficiency
|
||||
* 2. RAM efficiency
|
||||
* Validation result: Not run
|
||||
*/
|
||||
|
||||
#ifndef Open0_h_
|
||||
#define Open0_h_
|
||||
#ifndef Open0_COMMON_INCLUDES_
|
||||
#define Open0_COMMON_INCLUDES_
|
||||
#include "rtwtypes.h"
|
||||
#include "math.h"
|
||||
#endif /* Open0_COMMON_INCLUDES_ */
|
||||
|
||||
#include <stddef.h>
|
||||
#include "MW_target_hardware_resources.h"
|
||||
|
||||
/* Macros for accessing real-time model data structure */
|
||||
#ifndef rtmGetErrorStatus
|
||||
#define rtmGetErrorStatus(rtm) ((rtm)->errorStatus)
|
||||
#endif
|
||||
|
||||
#ifndef rtmSetErrorStatus
|
||||
#define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))
|
||||
#endif
|
||||
|
||||
#define Open0_M (rtM)
|
||||
|
||||
/* Forward declaration for rtModel */
|
||||
typedef struct tag_RTM RT_MODEL;
|
||||
|
||||
/* Constant parameters (default storage) */
|
||||
typedef struct {
|
||||
/* Expression: dlgSett.sin_table
|
||||
* Referenced by: '<S9>/sine_table_values'
|
||||
*/
|
||||
real_T sine_table_values_Value[1002];
|
||||
} ConstP;
|
||||
|
||||
/* External inputs (root inport signals with default storage) */
|
||||
typedef struct {
|
||||
real_T Ud; /* '<Root>/Ud' */
|
||||
real_T Uq; /* '<Root>/Uq' */
|
||||
real_T theta; /* '<Root>/theta' */
|
||||
} ExtU;
|
||||
|
||||
/* External outputs (root outports fed by signals with default storage) */
|
||||
typedef struct {
|
||||
real32_T CCR1; /* '<Root>/CCR1' */
|
||||
real32_T CCR2; /* '<Root>/CCR2' */
|
||||
real32_T CCR3; /* '<Root>/CCR3' */
|
||||
} ExtY;
|
||||
|
||||
/* Real-time Model Data Structure */
|
||||
struct tag_RTM {
|
||||
const char_T * volatile errorStatus;
|
||||
};
|
||||
|
||||
/* External inputs (root inport signals with default storage) */
|
||||
extern ExtU rtU;
|
||||
|
||||
/* External outputs (root outports fed by signals with default storage) */
|
||||
extern ExtY rtY;
|
||||
|
||||
/* Constant parameters (default storage) */
|
||||
extern const ConstP rtConstP;
|
||||
|
||||
/* Model entry point functions */
|
||||
extern void Open0_initialize(void);
|
||||
extern void Open0_step(void);
|
||||
|
||||
/* Real-time Model object */
|
||||
extern RT_MODEL *const rtM;
|
||||
extern volatile boolean_T stopRequested;
|
||||
extern volatile boolean_T runModel;
|
||||
|
||||
/*-
|
||||
* These blocks were eliminated from the model due to optimizations:
|
||||
*
|
||||
* Block '<S2>/D' : Unused code path elimination
|
||||
* Block '<S9>/Data Type Duplicate' : Unused code path elimination
|
||||
* Block '<S9>/Data Type Propagation' : Unused code path elimination
|
||||
* Block '<S14>/Data Type Duplicate' : Unused code path elimination
|
||||
* Block '<S15>/Data Type Duplicate' : Unused code path elimination
|
||||
* Block '<S8>/Data Type Duplicate' : Unused code path elimination
|
||||
* Block '<S8>/Data Type Duplicate1' : Unused code path elimination
|
||||
* Block '<S3>/Scope' : Unused code path elimination
|
||||
* Block '<S9>/Get_FractionVal' : Eliminate redundant data type conversion
|
||||
* Block '<S17>/Offset' : Unused code path elimination
|
||||
* Block '<S17>/Unary_Minus' : Unused code path elimination
|
||||
*/
|
||||
|
||||
/*-
|
||||
* The generated code includes comments that allow you to trace directly
|
||||
* back to the appropriate location in the model. The basic format
|
||||
* is <system>/block_name, where system is the system number (uniquely
|
||||
* assigned by Simulink) and block_name is the name of the block.
|
||||
*
|
||||
* Note that this particular code originates from a subsystem build,
|
||||
* and has its own system numbers different from the parent model.
|
||||
* Refer to the system hierarchy for this subsystem below, and use the
|
||||
* MATLAB hilite_system command to trace the generated code back
|
||||
* to the parent model. For example,
|
||||
*
|
||||
* hilite_system('foc/Open') - opens subsystem foc/Open
|
||||
* hilite_system('foc/Open/Kp') - opens and selects block Kp
|
||||
*
|
||||
* Here is the system hierarchy for this model
|
||||
*
|
||||
* '<Root>' : 'foc'
|
||||
* '<S1>' : 'foc/Open'
|
||||
* '<S2>' : 'foc/Open/Inverse Park Transform'
|
||||
* '<S3>' : 'foc/Open/Subsystem1'
|
||||
* '<S4>' : 'foc/Open/Inverse Park Transform/Variant'
|
||||
* '<S5>' : 'foc/Open/Inverse Park Transform/Variant/mcb'
|
||||
* '<S6>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform'
|
||||
* '<S7>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine'
|
||||
* '<S8>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Two inputs CRL'
|
||||
* '<S9>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup'
|
||||
* '<S10>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup/Interpolation'
|
||||
* '<S11>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup/WrapUp'
|
||||
* '<S12>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup/datatype'
|
||||
* '<S13>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup/WrapUp/Compare To Zero'
|
||||
* '<S14>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup/WrapUp/If Action Subsystem'
|
||||
* '<S15>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup/WrapUp/If Action Subsystem1'
|
||||
* '<S16>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup/datatype/datatype no change'
|
||||
* '<S17>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Two inputs CRL/Switch_Axis'
|
||||
* '<S18>' : 'foc/Open/Subsystem1/MATLAB Function1'
|
||||
* '<S19>' : 'foc/Open/Subsystem1/MATLAB Function2'
|
||||
*/
|
||||
#endif /* Open0_h_ */
|
||||
|
||||
/*
|
||||
* File trailer for generated code.
|
||||
*
|
||||
* [EOF]
|
||||
*/
|
||||
Reference in New Issue
Block a user