123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- /*
- * 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 '<Root>' */
- typedef struct
- {
- int32_T UnitDelay4_DSTATE; /* '<S3>/Unit Delay4' */
- int32_T UnitDelay2_DSTATE; /* '<S3>/Unit Delay2' */
- int32_T UnitDelay3_DSTATE; /* '<S3>/Unit Delay3' */
- int32_T UnitDelay1_DSTATE; /* '<S3>/Unit Delay1' */
- }
- DW_LoadObsTheta_T;
- /* External inputs (root inport signals with default storage) */
- typedef struct
- {
- uint16_T ThetamPu; /* '<Root>/ThetamPu' */
- int16_T IqFbkPu; /* '<Root>/IqFbkPu' */
- }
- ExtU_LoadObsTheta_T;
- /* External outputs (root outports fed by signals with default storage) */
- typedef struct
- {
- int16_T swSpdFbkPu; /* '<Root>/swSpdFbkPu' */
- uint16_T uwThetaObsPu; /* '<Root>/uwThetaObsPu' */
- int16_T swTLPu; /* '<Root>/swTLPu' */
- int16_T swIqCompPu; /* '<Root>/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; /* '<Root>/uwFTbcHz' */
- uint16_T uwFbHz; /* '<Root>/uwFbHz' */
- uint16_T uwFluxWb; /* '<Root>/uwFluxWb' */
- uint16_T uwFluxbWb; /* '<Root>/uwFluxbWb' */
- uint16_T uwJb; /* '<Root>/uwJb' */
- uint16_T uwMCoef; /* '<Root>/uwMCoef' */
- uint16_T uwMtJm; /* '<Root>/uwMtJm' */
- uint16_T uwWtcHz; /* '<Root>/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 <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>' : 'LoadObsTheta'
- * '<S1>' : 'LoadObsTheta/Initialize Function1'
- * '<S2>' : 'LoadObsTheta/Initialize Function2'
- * '<S3>' : 'LoadObsTheta/LoadObs_Fixdt_Pu'
- * '<S4>' : 'LoadObsTheta/LoadObs_Fixdt_Pu/Compare To Constant'
- * '<S5>' : 'LoadObsTheta/LoadObs_Fixdt_Pu/Compare To Constant1'
- * '<S6>' : 'LoadObsTheta/LoadObs_Fixdt_Pu/Compare To Constant2'
- * '<S7>' : 'LoadObsTheta/LoadObs_Fixdt_Pu/Compare To Constant3'
- */
- #endif /* RTW_HEADER_LoadObsTheta_h_ */
- /*
- * File trailer for generated code.
- *
- * [EOF]
- */
|