/* * 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 #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 '' */ typedef struct { int32_T UnitDelay1_DSTATE; /* '/Unit Delay1' */ int32_T UnitDelay1_DSTATE_k; /* '/Unit Delay1' */ int32_T UnitDelay3_DSTATE; /* '/Unit Delay3' */ int32_T UnitDelay_DSTATE; /* '/Unit Delay' */ } DW; /* External inputs (root inport signals with default storage) */ typedef struct { int16_T AngleIn; /* '/AngleIn' */ } ExtU; /* External outputs (root outports fed by signals with default storage) */ typedef struct { int16_T Angle_Filtered; /* '/Angle_Filtered' */ int16_T Speed; /* '/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 '/Display12' : Unused code path elimination * Block '/Display13' : Unused code path elimination * Block '/Display14' : Unused code path elimination * Block '/Display16' : Unused code path elimination * Block '/Display19' : Unused code path elimination * Block '/Display21' : Unused code path elimination * Block '/Display22' : Unused code path elimination * Block '/Scope1' : Unused code path elimination * Block '/Scope2' : Unused code path elimination * Block '/Scope3' : Unused code path elimination * Block '/Scope3' : Unused code path elimination * Block '/Data Type Conversion' : Eliminate redundant data type conversion * Block '/Data Type Conversion1' : Eliminate redundant data type conversion * Block '/Saturation' : Eliminated Saturate block * Block '/Data Type Conversion' : Eliminate redundant data type conversion * Block '/Saturation' : Eliminated Saturate block * Block '/Saturation' : Eliminated Saturate block * Block '/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 /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('') - opens system 3 * hilite_system('/Kp') - opens and selects block Kp which resides in S3 * * Here is the system hierarchy for this model * * '' : 'AngleObserver_discrete' * '' : 'AngleObserver_discrete/AngleObserver_discrete' * '' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem10' * '' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem11' * '' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem12' * '' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem13' * '' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem7' * '' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem8' * '' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem9' */ #endif /* RTW_HEADER_AngleObserver_discrete_h_ */ /* * File trailer for generated code. * * [EOF] */