/* * File: LoadObsTheta.h * * Code generated for Simulink model 'LoadObsTheta'. * * Model version : 8.72 * Simulink Coder version : 9.6 (R2021b) 14-May-2021 * C/C++ source code generated on : Sat Nov 5 15:46:39 2022 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M * Code generation objectives: Unspecified * Validation result: Not run */ #ifndef RTW_HEADER_LoadObsTheta_h_ #define RTW_HEADER_LoadObsTheta_h_ #ifndef LoadObsTheta_COMMON_INCLUDES_ #define LoadObsTheta_COMMON_INCLUDES_ #include "rtwtypes2.h" #endif /* LoadObsTheta_COMMON_INCLUDES_ */ /* Model Code Variants */ /* Macros for accessing real-time model data structure */ /* Block states (default storage) for system '' */ typedef struct { int32_T UnitDelay4_DSTATE; /* '/Unit Delay4' */ int32_T UnitDelay2_DSTATE; /* '/Unit Delay2' */ int32_T UnitDelay3_DSTATE; /* '/Unit Delay3' */ int32_T UnitDelay1_DSTATE; /* '/Unit Delay1' */ } DW_LoadObsTheta_T; /* External inputs (root inport signals with default storage) */ typedef struct { uint16_T ThetamPu; /* '/ThetamPu' */ int16_T IqFbkPu; /* '/IqFbkPu' */ } ExtU_LoadObsTheta_T; /* External outputs (root outports fed by signals with default storage) */ typedef struct { int16_T swSpdFbkPu; /* '/swSpdFbkPu' */ uint16_T uwThetaObsPu; /* '/uwThetaObsPu' */ int16_T swTLPu; /* '/swTLPu' */ int16_T swIqCompPu; /* '/swIqCompPu' */ } ExtY_LoadObsTheta_T; /* Type definition for custom storage class: Struct */ typedef struct LoadObsTheta_stCoef_tag { uint16_T uwCurTs; uint16_T uwFluxPu; uint16_T uwFluxPuInv; uint16_T uwJmPuInv; uint16_T uwK1Pu; uint16_T uwK2Pu; uint16_T uwK3Pu; uint16_T uwTctrPu; } LoadObsTheta_stCoef_type; typedef struct LoadObsTheta_stCoefIn_tag { uint16_T uwFTbcHz; /* '/uwFTbcHz' */ uint16_T uwFbHz; /* '/uwFbHz' */ uint16_T uwFluxWb; /* '/uwFluxWb' */ uint16_T uwFluxbWb; /* '/uwFluxbWb' */ uint16_T uwJb; /* '/uwJb' */ uint16_T uwMCoef; /* '/uwMCoef' */ uint16_T uwMtJm; /* '/uwMtJm' */ uint16_T uwWtcHz; /* '/uwWtcHz' */ } LoadObsTheta_stCoefIn_type; /* Block states (default storage) */ extern DW_LoadObsTheta_T LoadObsTheta_DW; /* External inputs (root inport signals with default storage) */ extern ExtU_LoadObsTheta_T LoadObsTheta_U; /* External outputs (root outports fed by signals with default storage) */ extern ExtY_LoadObsTheta_T LoadObsTheta_Y; /* Model entry point functions */ extern void LoadObsTheta_initialize(void); extern void LoadObsTheta_voCoef(void); extern void LoadObsTheta_voInit(void); extern void LoadObsTheta_step(void); extern void LoadObsTheta_terminate(void); /* Exported data declaration */ /* Declaration for custom storage class: Struct */ extern LoadObsTheta_stCoef_type LoadObsTheta_stCoef; extern LoadObsTheta_stCoefIn_type LoadObsTheta_stCoefIn; /*- * 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 * * '' : 'LoadObsTheta' * '' : 'LoadObsTheta/Initialize Function1' * '' : 'LoadObsTheta/Initialize Function2' * '' : 'LoadObsTheta/LoadObs_Fixdt_Pu' * '' : 'LoadObsTheta/LoadObs_Fixdt_Pu/Compare To Constant' * '' : 'LoadObsTheta/LoadObs_Fixdt_Pu/Compare To Constant1' * '' : 'LoadObsTheta/LoadObs_Fixdt_Pu/Compare To Constant2' * '' : 'LoadObsTheta/LoadObs_Fixdt_Pu/Compare To Constant3' */ #endif /* RTW_HEADER_LoadObsTheta_h_ */ /* * File trailer for generated code. * * [EOF] */