SOH.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. /*
  2. * File: SOH.h
  3. *
  4. * Code generated for Simulink model 'SOH'.
  5. *
  6. * Model version : 1.38
  7. * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
  8. * C/C++ source code generated on : Thu Sep 9 18:12:51 2021
  9. *
  10. * Target selection: ert.tlc
  11. * Embedded hardware selection: Intel->x86-64 (Windows64)
  12. * Code generation objectives: Unspecified
  13. * Validation result: Not run
  14. */
  15. #ifndef RTW_HEADER_SOH_h_
  16. #define RTW_HEADER_SOH_h_
  17. #ifndef SOH_COMMON_INCLUDES_
  18. #define SOH_COMMON_INCLUDES_
  19. #include "rtwtypes.h"
  20. #endif /* SOH_COMMON_INCLUDES_ */
  21. #include "SOH_types.h"
  22. /* Includes for objects with custom storage classes. */
  23. #include "BCUCal.h"
  24. #include "BCUDisp.h"
  25. /* Block signals for model 'SOH' */
  26. #ifndef SOH_MDLREF_HIDE_CHILD_
  27. typedef struct {
  28. uint16_T Divide; /* '<S9>/Divide' */
  29. uint16_T d[28]; /* '<S14>/d' */
  30. uint16_T Add2; /* '<S14>/Add2' */
  31. uint16_T in[28]; /* '<S18>/in' */
  32. uint16_T Qavrg; /* '<S3>/Chart' */
  33. uint16_T sohn_Q_packCapArrEo[10]; /* '<S3>/Chart' */
  34. uint16_T Saturation; /* '<S12>/Saturation' */
  35. uint16_T ihv_V_CellU[28]; /* '<S10>/ihv_V_CellU' */
  36. boolean_T in_g; /* '<S22>/in' */
  37. } B_SOH_c_T;
  38. #endif /*SOH_MDLREF_HIDE_CHILD_*/
  39. /* Block states (default storage) for model 'SOH' */
  40. #ifndef SOH_MDLREF_HIDE_CHILD_
  41. typedef struct {
  42. int32_T Ahincr_reset_DSTATE; /* '<S12>/Ahincr_reset' */
  43. uint16_T sohd_tm_chrgStartSta_Delay_DSTA;/* '<S6>/sohd_tm_chrgStartSta_Delay' */
  44. uint16_T Time_Delay_DSTATE; /* '<S9>/Time_Delay' */
  45. uint16_T sohv_V_chrgStartEo_Delay_DSTATE[28];/* '<S6>/sohv_V_chrgStartEo_Delay' */
  46. uint8_T UnitDelay_DSTATE; /* '<S6>/Unit Delay' */
  47. uint8_T UnitDelay_DSTATE_g; /* '<S7>/Unit Delay' */
  48. boolean_T UnitDelay1_DSTATE; /* '<S21>/Unit Delay1' */
  49. boolean_T reset_DSTATE; /* '<S6>/reset' */
  50. boolean_T sohd_flg_chrgEndEo_reset_DSTATE;/* '<S7>/sohd_flg_chrgEndEo_reset' */
  51. boolean_T UnitDelay1_DSTATE_g; /* '<S15>/Unit Delay1' */
  52. boolean_T reset_DSTATE_b; /* '<S11>/reset' */
  53. boolean_T Fflg; /* '<S3>/Chart' */
  54. boolean_T ResettableSubsystem_MODE; /* '<S8>/Resettable Subsystem' */
  55. boolean_T EnabledSubsystem_MODE; /* '<S7>/Enabled Subsystem' */
  56. boolean_T ResettableSubsystem_MODE_i;/* '<S6>/Resettable Subsystem' */
  57. } DW_SOH_f_T;
  58. #endif /*SOH_MDLREF_HIDE_CHILD_*/
  59. #ifndef SOH_MDLREF_HIDE_CHILD_
  60. /* Real-time Model Data Structure */
  61. struct tag_RTM_SOH_T {
  62. const char_T **errorStatus;
  63. };
  64. #endif /*SOH_MDLREF_HIDE_CHILD_*/
  65. #ifndef SOH_MDLREF_HIDE_CHILD_
  66. typedef struct {
  67. RT_MODEL_SOH_T rtm;
  68. } MdlrefDW_SOH_T;
  69. #endif /*SOH_MDLREF_HIDE_CHILD_*/
  70. extern void SOH_Init(void);
  71. extern void SOH_Disable(void);
  72. extern void SOH(void);
  73. /* Model reference registration function */
  74. extern void SOH_initialize(const char_T **rt_errorStatus);
  75. #ifndef SOH_MDLREF_HIDE_CHILD_
  76. extern void SOH_Min_Init(uint16_T *rty_Min);
  77. extern uint16_T SOH_Min(const uint16_T rtu_Arry[28]);
  78. #endif /*SOH_MDLREF_HIDE_CHILD_*/
  79. #ifndef SOH_MDLREF_HIDE_CHILD_
  80. extern MdlrefDW_SOH_T SOH_MdlrefDW;
  81. #endif /*SOH_MDLREF_HIDE_CHILD_*/
  82. #ifndef SOH_MDLREF_HIDE_CHILD_
  83. /* Block signals (default storage) */
  84. extern B_SOH_c_T SOH_B;
  85. /* Block states (default storage) */
  86. extern DW_SOH_f_T SOH_DW;
  87. #endif /*SOH_MDLREF_HIDE_CHILD_*/
  88. /*-
  89. * These blocks were eliminated from the model due to optimizations:
  90. *
  91. * Block '<S9>/Saturation' : Eliminated Saturate block
  92. */
  93. /*-
  94. * The generated code includes comments that allow you to trace directly
  95. * back to the appropriate location in the model. The basic format
  96. * is <system>/block_name, where system is the system number (uniquely
  97. * assigned by Simulink) and block_name is the name of the block.
  98. *
  99. * Use the MATLAB hilite_system command to trace the generated code back
  100. * to the model. For example,
  101. *
  102. * hilite_system('<S3>') - opens system 3
  103. * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
  104. *
  105. * Here is the system hierarchy for this model
  106. *
  107. * '<Root>' : 'SOH'
  108. * '<S1>' : 'SOH/SOH'
  109. * '<S2>' : 'SOH/SOH/Chrgmation'
  110. * '<S3>' : 'SOH/SOH/Conut'
  111. * '<S4>' : 'SOH/SOH/CountEn'
  112. * '<S5>' : 'SOH/SOH/EEDeal'
  113. * '<S6>' : 'SOH/SOH/Chrgmation/ChrgBe'
  114. * '<S7>' : 'SOH/SOH/Chrgmation/ChrgEnd'
  115. * '<S8>' : 'SOH/SOH/Chrgmation/Chrging'
  116. * '<S9>' : 'SOH/SOH/Chrgmation/ChrgBe/Resettable Subsystem'
  117. * '<S10>' : 'SOH/SOH/Chrgmation/ChrgBe/Resettable Subsystem1'
  118. * '<S11>' : 'SOH/SOH/Chrgmation/ChrgEnd/Enabled Subsystem'
  119. * '<S12>' : 'SOH/SOH/Chrgmation/Chrging/Resettable Subsystem'
  120. * '<S13>' : 'SOH/SOH/Conut/Chart'
  121. * '<S14>' : 'SOH/SOH/Conut/Subsystem'
  122. * '<S15>' : 'SOH/SOH/Conut/Subsystem/Frist Keep'
  123. * '<S16>' : 'SOH/SOH/Conut/Subsystem/Min'
  124. * '<S17>' : 'SOH/SOH/Conut/Subsystem/Min1'
  125. * '<S18>' : 'SOH/SOH/Conut/Subsystem/Frist Keep/Subsystem3'
  126. * '<S19>' : 'SOH/SOH/Conut/Subsystem/Min/ArrMin'
  127. * '<S20>' : 'SOH/SOH/Conut/Subsystem/Min1/ArrMin'
  128. * '<S21>' : 'SOH/SOH/CountEn/Frist Keep'
  129. * '<S22>' : 'SOH/SOH/CountEn/Frist Keep/Subsystem3'
  130. * '<S23>' : 'SOH/SOH/EEDeal/EECkeck'
  131. * '<S24>' : 'SOH/SOH/EEDeal/FalseAction'
  132. * '<S25>' : 'SOH/SOH/EEDeal/TureAction'
  133. * '<S26>' : 'SOH/SOH/EEDeal/EECkeck/Max'
  134. * '<S27>' : 'SOH/SOH/EEDeal/EECkeck/Min1'
  135. * '<S28>' : 'SOH/SOH/EEDeal/EECkeck/Max/ArrMin'
  136. * '<S29>' : 'SOH/SOH/EEDeal/EECkeck/Min1/ArrMin'
  137. */
  138. #endif /* RTW_HEADER_SOH_h_ */
  139. /*
  140. * File trailer for generated code.
  141. *
  142. * [EOF]
  143. */