SOH.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. /*
  2. * File: SOH.h
  3. *
  4. * Code generated for Simulink model 'SOH'.
  5. *
  6. * Model version : 1.31
  7. * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
  8. * C/C++ source code generated on : Thu Sep 2 11:40:39 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]; /* '<S13>/d' */
  30. uint16_T Add2; /* '<S13>/Add2' */
  31. uint16_T Qavrg; /* '<S3>/Chart' */
  32. uint16_T sohn_Q_packCapArrEo[10]; /* '<S3>/Chart' */
  33. uint16_T Divide1; /* '<S11>/Divide1' */
  34. } B_SOH_c_T;
  35. #endif /*SOH_MDLREF_HIDE_CHILD_*/
  36. /* Block states (default storage) for model 'SOH' */
  37. #ifndef SOH_MDLREF_HIDE_CHILD_
  38. typedef struct {
  39. int32_T curr_icr_Delay_DSTATE; /* '<S11>/curr_icr_Delay' */
  40. uint16_T Time_Delay_DSTATE; /* '<S10>/Time_Delay' */
  41. uint16_T sohd_tm_chrgStartSta_Delay_DSTA;/* '<S6>/sohd_tm_chrgStartSta_Delay' */
  42. uint16_T UnitDelay1_DSTATE; /* '<S7>/Unit Delay1' */
  43. uint16_T Time_Delay_DSTATE_k; /* '<S9>/Time_Delay' */
  44. uint16_T sohv_V_chrgStartEo_Delay_DSTATE[28];/* '<S6>/sohv_V_chrgStartEo_Delay' */
  45. uint8_T UnitDelay_DSTATE; /* '<S6>/Unit Delay' */
  46. uint8_T UnitDelay_DSTATE_g; /* '<S7>/Unit Delay' */
  47. boolean_T First_Delay_DSTATE; /* '<S4>/First_Delay' */
  48. boolean_T UnitDelay_DSTATE_e; /* '<S3>/Unit Delay' */
  49. boolean_T UnitDelay1_DSTATE_j; /* '<S6>/Unit Delay1' */
  50. boolean_T Fflg; /* '<S3>/Chart' */
  51. boolean_T ResettableSubsystem_MODE; /* '<S8>/Resettable Subsystem' */
  52. boolean_T ResettableSubsystem_MODE_i;/* '<S6>/Resettable Subsystem' */
  53. } DW_SOH_f_T;
  54. #endif /*SOH_MDLREF_HIDE_CHILD_*/
  55. #ifndef SOH_MDLREF_HIDE_CHILD_
  56. /* Real-time Model Data Structure */
  57. struct tag_RTM_SOH_T {
  58. const char_T **errorStatus;
  59. };
  60. #endif /*SOH_MDLREF_HIDE_CHILD_*/
  61. #ifndef SOH_MDLREF_HIDE_CHILD_
  62. typedef struct {
  63. RT_MODEL_SOH_T rtm;
  64. } MdlrefDW_SOH_T;
  65. #endif /*SOH_MDLREF_HIDE_CHILD_*/
  66. extern void SOH_Init(void);
  67. extern void SOH_Disable(void);
  68. extern void SOH(void);
  69. /* Model reference registration function */
  70. extern void SOH_initialize(const char_T **rt_errorStatus);
  71. #ifndef SOH_MDLREF_HIDE_CHILD_
  72. extern void SOH_ArrMin_Init(uint16_T *rty_minCap);
  73. extern void SOH_ArrMin(const uint16_T rtu_sohn_Q_cellCap[28], uint8_T rtu_N,
  74. uint16_T *rty_minCap);
  75. #endif /*SOH_MDLREF_HIDE_CHILD_*/
  76. #ifndef SOH_MDLREF_HIDE_CHILD_
  77. extern MdlrefDW_SOH_T SOH_MdlrefDW;
  78. #endif /*SOH_MDLREF_HIDE_CHILD_*/
  79. #ifndef SOH_MDLREF_HIDE_CHILD_
  80. /* Block signals (default storage) */
  81. extern B_SOH_c_T SOH_B;
  82. /* Block states (default storage) */
  83. extern DW_SOH_f_T SOH_DW;
  84. #endif /*SOH_MDLREF_HIDE_CHILD_*/
  85. /*-
  86. * These blocks were eliminated from the model due to optimizations:
  87. *
  88. * Block '<S7>/Scope' : Unused code path elimination
  89. * Block '<S7>/Scope1' : Unused code path elimination
  90. * Block '<S9>/Saturation' : Eliminated Saturate block
  91. */
  92. /*-
  93. * The generated code includes comments that allow you to trace directly
  94. * back to the appropriate location in the model. The basic format
  95. * is <system>/block_name, where system is the system number (uniquely
  96. * assigned by Simulink) and block_name is the name of the block.
  97. *
  98. * Use the MATLAB hilite_system command to trace the generated code back
  99. * to the model. For example,
  100. *
  101. * hilite_system('<S3>') - opens system 3
  102. * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
  103. *
  104. * Here is the system hierarchy for this model
  105. *
  106. * '<Root>' : 'SOH'
  107. * '<S1>' : 'SOH/SOH'
  108. * '<S2>' : 'SOH/SOH/Chrgmation'
  109. * '<S3>' : 'SOH/SOH/Conut'
  110. * '<S4>' : 'SOH/SOH/CountEn'
  111. * '<S5>' : 'SOH/SOH/EEDeal'
  112. * '<S6>' : 'SOH/SOH/Chrgmation/ChrgBe'
  113. * '<S7>' : 'SOH/SOH/Chrgmation/ChrgEnd'
  114. * '<S8>' : 'SOH/SOH/Chrgmation/Chrging'
  115. * '<S9>' : 'SOH/SOH/Chrgmation/ChrgBe/Resettable Subsystem'
  116. * '<S10>' : 'SOH/SOH/Chrgmation/ChrgBe/keep2'
  117. * '<S11>' : 'SOH/SOH/Chrgmation/Chrging/Resettable Subsystem'
  118. * '<S12>' : 'SOH/SOH/Conut/Chart'
  119. * '<S13>' : 'SOH/SOH/Conut/Subsystem'
  120. * '<S14>' : 'SOH/SOH/Conut/Subsystem/Subsystem'
  121. * '<S15>' : 'SOH/SOH/Conut/Subsystem/Subsystem1'
  122. * '<S16>' : 'SOH/SOH/Conut/Subsystem/Subsystem/ArrMin'
  123. * '<S17>' : 'SOH/SOH/Conut/Subsystem/Subsystem1/ArrMin'
  124. * '<S18>' : 'SOH/SOH/EEDeal/EECkeck'
  125. * '<S19>' : 'SOH/SOH/EEDeal/FalseAction'
  126. * '<S20>' : 'SOH/SOH/EEDeal/TureAction'
  127. */
  128. #endif /* RTW_HEADER_SOH_h_ */
  129. /*
  130. * File trailer for generated code.
  131. *
  132. * [EOF]
  133. */