123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- /*
- * File: AngleObserver_discrete.h
- *
- * Code generated for Simulink model 'AngleObserver_discrete'.
- *
- * Model version : 1.28
- * Simulink Coder version : 9.6 (R2021b) 14-May-2021
- * C/C++ source code generated on : Wed Apr 27 16:33:17 2022
- *
- * Target selection: ert.tlc
- * Embedded hardware selection: Custom Processor->Custom Processor
- * Code generation objectives:
- * 1. Execution efficiency
- * 2. RAM efficiency
- * Validation result: Not run
- */
- #ifndef RTW_HEADER_AngleObserver_discrete_h_
- #define RTW_HEADER_AngleObserver_discrete_h_
- #include <stddef.h>
- #ifndef AngleObserver_discrete_COMMON_INCLUDES_
- #define AngleObserver_discrete_COMMON_INCLUDES_
- #include "rtwtypes.h"
- #endif /* AngleObserver_discrete_COMMON_INCLUDES_ */
- /* Model Code Variants */
- /* 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
- /* Forward declaration for rtModel */
- typedef struct tag_RTM RT_MODEL;
- /* Block signals and states (default storage) for system '<Root>' */
- typedef struct {
- int32_T UnitDelay1_DSTATE; /* '<S1>/Unit Delay1' */
- int32_T UnitDelay1_DSTATE_k; /* '<S4>/Unit Delay1' */
- int32_T UnitDelay3_DSTATE; /* '<S6>/Unit Delay3' */
- int32_T UnitDelay_DSTATE; /* '<S5>/Unit Delay' */
- } DW;
- /* External inputs (root inport signals with default storage) */
- typedef struct {
- int16_T AngleIn; /* '<Root>/AngleIn' */
- } ExtU;
- /* External outputs (root outports fed by signals with default storage) */
- typedef struct {
- int16_T Angle_Filtered; /* '<Root>/Angle_Filtered' */
- int16_T Speed; /* '<Root>/Speed' */
- } ExtY;
- /* Real-time Model Data Structure */
- struct tag_RTM {
- const char_T * volatile errorStatus;
- };
- /* Block signals and states (default storage) */
- extern DW rtDW;
- /* External inputs (root inport signals with default storage) */
- extern ExtU rtU;
- /* External outputs (root outports fed by signals with default storage) */
- extern ExtY rtY;
- /* Model entry point functions */
- extern void AngleObserver_discrete_initialize(void);
- /* Exported entry point function */
- extern void Trigger(void);
- /* Real-time Model object */
- extern RT_MODEL *const rtM;
- /*-
- * These blocks were eliminated from the model due to optimizations:
- *
- * Block '<S1>/Display12' : Unused code path elimination
- * Block '<S1>/Display13' : Unused code path elimination
- * Block '<S1>/Display14' : Unused code path elimination
- * Block '<S1>/Display16' : Unused code path elimination
- * Block '<S1>/Display19' : Unused code path elimination
- * Block '<S1>/Display21' : Unused code path elimination
- * Block '<S1>/Display22' : Unused code path elimination
- * Block '<S1>/Scope1' : Unused code path elimination
- * Block '<S1>/Scope2' : Unused code path elimination
- * Block '<S1>/Scope3' : Unused code path elimination
- * Block '<S5>/Scope3' : Unused code path elimination
- * Block '<S1>/Data Type Conversion' : Eliminate redundant data type conversion
- * Block '<S1>/Data Type Conversion1' : Eliminate redundant data type conversion
- * Block '<S1>/Saturation' : Eliminated Saturate block
- * Block '<S2>/Data Type Conversion' : Eliminate redundant data type conversion
- * Block '<S4>/Saturation' : Eliminated Saturate block
- * Block '<S5>/Saturation' : Eliminated Saturate block
- * Block '<S6>/Saturation' : Eliminated Saturate block
- */
- /*-
- * 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.
- *
- * Use the MATLAB hilite_system command to trace the generated code back
- * to the model. For example,
- *
- * hilite_system('<S3>') - opens system 3
- * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
- *
- * Here is the system hierarchy for this model
- *
- * '<Root>' : 'AngleObserver_discrete'
- * '<S1>' : 'AngleObserver_discrete/AngleObserver_discrete'
- * '<S2>' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem10'
- * '<S3>' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem11'
- * '<S4>' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem12'
- * '<S5>' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem13'
- * '<S6>' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem7'
- * '<S7>' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem8'
- * '<S8>' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem9'
- */
- #endif /* RTW_HEADER_AngleObserver_discrete_h_ */
- /*
- * File trailer for generated code.
- *
- * [EOF]
- */
|