LoadObsTheta.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*
  2. * File: LoadObsTheta.h
  3. *
  4. * Code generated for Simulink model 'LoadObsTheta'.
  5. *
  6. * Model version : 8.72
  7. * Simulink Coder version : 9.6 (R2021b) 14-May-2021
  8. * C/C++ source code generated on : Sat Nov 5 15:46:39 2022
  9. *
  10. * Target selection: ert.tlc
  11. * Embedded hardware selection: ARM Compatible->ARM Cortex-M
  12. * Code generation objectives: Unspecified
  13. * Validation result: Not run
  14. */
  15. #ifndef RTW_HEADER_LoadObsTheta_h_
  16. #define RTW_HEADER_LoadObsTheta_h_
  17. #ifndef LoadObsTheta_COMMON_INCLUDES_
  18. #define LoadObsTheta_COMMON_INCLUDES_
  19. #include "rtwtypes2.h"
  20. #endif /* LoadObsTheta_COMMON_INCLUDES_ */
  21. /* Model Code Variants */
  22. /* Macros for accessing real-time model data structure */
  23. /* Block states (default storage) for system '<Root>' */
  24. typedef struct
  25. {
  26. int32_T UnitDelay4_DSTATE; /* '<S3>/Unit Delay4' */
  27. int32_T UnitDelay2_DSTATE; /* '<S3>/Unit Delay2' */
  28. int32_T UnitDelay3_DSTATE; /* '<S3>/Unit Delay3' */
  29. int32_T UnitDelay1_DSTATE; /* '<S3>/Unit Delay1' */
  30. }
  31. DW_LoadObsTheta_T;
  32. /* External inputs (root inport signals with default storage) */
  33. typedef struct
  34. {
  35. uint16_T ThetamPu; /* '<Root>/ThetamPu' */
  36. int16_T IqFbkPu; /* '<Root>/IqFbkPu' */
  37. }
  38. ExtU_LoadObsTheta_T;
  39. /* External outputs (root outports fed by signals with default storage) */
  40. typedef struct
  41. {
  42. int16_T swSpdFbkPu; /* '<Root>/swSpdFbkPu' */
  43. uint16_T uwThetaObsPu; /* '<Root>/uwThetaObsPu' */
  44. int16_T swTLPu; /* '<Root>/swTLPu' */
  45. int16_T swIqCompPu; /* '<Root>/swIqCompPu' */
  46. }
  47. ExtY_LoadObsTheta_T;
  48. /* Type definition for custom storage class: Struct */
  49. typedef struct LoadObsTheta_stCoef_tag
  50. {
  51. uint16_T uwCurTs;
  52. uint16_T uwFluxPu;
  53. uint16_T uwFluxPuInv;
  54. uint16_T uwJmPuInv;
  55. uint16_T uwK1Pu;
  56. uint16_T uwK2Pu;
  57. uint16_T uwK3Pu;
  58. uint16_T uwTctrPu;
  59. }
  60. LoadObsTheta_stCoef_type;
  61. typedef struct LoadObsTheta_stCoefIn_tag
  62. {
  63. uint16_T uwFTbcHz; /* '<Root>/uwFTbcHz' */
  64. uint16_T uwFbHz; /* '<Root>/uwFbHz' */
  65. uint16_T uwFluxWb; /* '<Root>/uwFluxWb' */
  66. uint16_T uwFluxbWb; /* '<Root>/uwFluxbWb' */
  67. uint16_T uwJb; /* '<Root>/uwJb' */
  68. uint16_T uwMCoef; /* '<Root>/uwMCoef' */
  69. uint16_T uwMtJm; /* '<Root>/uwMtJm' */
  70. uint16_T uwWtcHz; /* '<Root>/uwWtcHz' */
  71. }
  72. LoadObsTheta_stCoefIn_type;
  73. /* Block states (default storage) */
  74. extern DW_LoadObsTheta_T LoadObsTheta_DW;
  75. /* External inputs (root inport signals with default storage) */
  76. extern ExtU_LoadObsTheta_T LoadObsTheta_U;
  77. /* External outputs (root outports fed by signals with default storage) */
  78. extern ExtY_LoadObsTheta_T LoadObsTheta_Y;
  79. /* Model entry point functions */
  80. extern void LoadObsTheta_initialize(void);
  81. extern void LoadObsTheta_voCoef(void);
  82. extern void LoadObsTheta_voInit(void);
  83. extern void LoadObsTheta_step(void);
  84. extern void LoadObsTheta_terminate(void);
  85. /* Exported data declaration */
  86. /* Declaration for custom storage class: Struct */
  87. extern LoadObsTheta_stCoef_type LoadObsTheta_stCoef;
  88. extern LoadObsTheta_stCoefIn_type LoadObsTheta_stCoefIn;
  89. /*-
  90. * The generated code includes comments that allow you to trace directly
  91. * back to the appropriate location in the model. The basic format
  92. * is <system>/block_name, where system is the system number (uniquely
  93. * assigned by Simulink) and block_name is the name of the block.
  94. *
  95. * Use the MATLAB hilite_system command to trace the generated code back
  96. * to the model. For example,
  97. *
  98. * hilite_system('<S3>') - opens system 3
  99. * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
  100. *
  101. * Here is the system hierarchy for this model
  102. *
  103. * '<Root>' : 'LoadObsTheta'
  104. * '<S1>' : 'LoadObsTheta/Initialize Function1'
  105. * '<S2>' : 'LoadObsTheta/Initialize Function2'
  106. * '<S3>' : 'LoadObsTheta/LoadObs_Fixdt_Pu'
  107. * '<S4>' : 'LoadObsTheta/LoadObs_Fixdt_Pu/Compare To Constant'
  108. * '<S5>' : 'LoadObsTheta/LoadObs_Fixdt_Pu/Compare To Constant1'
  109. * '<S6>' : 'LoadObsTheta/LoadObs_Fixdt_Pu/Compare To Constant2'
  110. * '<S7>' : 'LoadObsTheta/LoadObs_Fixdt_Pu/Compare To Constant3'
  111. */
  112. #endif /* RTW_HEADER_LoadObsTheta_h_ */
  113. /*
  114. * File trailer for generated code.
  115. *
  116. * [EOF]
  117. */