SOH.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /*
  2. * File: SOH.h
  3. *
  4. * Code generated for Simulink model 'SOH'.
  5. *
  6. * Model version : 1.14
  7. * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
  8. * C/C++ source code generated on : Thu Aug 12 17:54:32 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. /* Block signals for model 'SOH' */
  23. typedef struct {
  24. uint16_T Divide1[28]; /* '<S13>/Divide1' */
  25. uint16_T Add2; /* '<S13>/Add2' */
  26. uint16_T Qavrg; /* '<S3>/Chart' */
  27. uint16_T sohn_Q_packCapArrEo[10]; /* '<S3>/Chart' */
  28. uint16_T Divide1_c; /* '<S11>/Divide1' */
  29. } B_SOH_c_T;
  30. /* Block states (default storage) for model 'SOH' */
  31. typedef struct {
  32. int32_T UnitDelay_DSTATE; /* '<S11>/Unit Delay' */
  33. uint16_T UnitDelay2_DSTATE; /* '<S6>/Unit Delay2' */
  34. uint16_T UnitDelay1_DSTATE; /* '<S7>/Unit Delay1' */
  35. uint16_T UnitDelay_DSTATE_o; /* '<S9>/Unit Delay' */
  36. uint16_T UnitDelay1_DSTATE_i[28]; /* '<S6>/Unit Delay1' */
  37. uint8_T UnitDelay_DSTATE_e; /* '<S6>/Unit Delay' */
  38. uint8_T UnitDelay_DSTATE_g; /* '<S7>/Unit Delay' */
  39. uint8_T UnitDelay_DSTATE_gh; /* '<S8>/Unit Delay' */
  40. boolean_T UnitDelay3_DSTATE; /* '<S10>/Unit Delay3' */
  41. boolean_T UnitDelay1_DSTATE_m; /* '<S4>/Unit Delay1' */
  42. boolean_T flg; /* '<S3>/Chart' */
  43. } DW_SOH_f_T;
  44. /* Real-time Model Data Structure */
  45. struct tag_RTM_SOH_T {
  46. const char_T **errorStatus;
  47. };
  48. typedef struct {
  49. B_SOH_c_T rtb;
  50. DW_SOH_f_T rtdw;
  51. RT_MODEL_SOH_T rtm;
  52. } MdlrefDW_SOH_T;
  53. /* Model reference registration function */
  54. extern void SOH_initialize(const char_T **rt_errorStatus, RT_MODEL_SOH_T *const
  55. SOH_M);
  56. extern void SOH_Init(DW_SOH_f_T *localDW);
  57. extern void SOH(B_SOH_c_T *localB, DW_SOH_f_T *localDW);
  58. /* Exported data declaration */
  59. /* Declaration for custom storage class: ExportToFile */
  60. extern int16_T ihd_I_curr;
  61. /* 电池包电流; */
  62. extern uint8_T ihd_st_workStat;
  63. /* 电池工作状态; */
  64. extern uint32_T ihd_tm_parkTime;
  65. /* 驻车时间; */
  66. extern uint16_T ihv_V_cellU[28];
  67. /* 电池单体电压(数组); */
  68. extern uint16_T sohd_Q_chrgEi;
  69. /* 充入容量读取量; */
  70. extern uint16_T sohd_Q_chrgEo; /* '<S8>/Resettable Subsystem' */
  71. /* 充入容量写入量; */
  72. extern boolean_T sohd_flg_chrgEndEi;
  73. /* 充电结束标志位读取量; */
  74. extern boolean_T sohd_flg_chrgEndEo; /* '<S7>/Switch' */
  75. /* 充电结束标志位写入量; */
  76. extern uint16_T sohd_pct_bcuSoh; /* '<S3>/Saturation' */
  77. /* 电池SOH; */
  78. extern uint16_T sohd_tm_chrgStartStatEi;
  79. /* 充电前静置时间读取量; */
  80. extern uint16_T sohd_tm_chrgStartStatEo;/* '<S6>/Saturation' */
  81. /* 充电前静置时间写入量; */
  82. extern uint16_T sohv_Q_cellCap[28]; /* '<S3>/Subsystem' */
  83. /* 充入容量写入量; */
  84. extern uint16_T sohv_Q_packCapArrEi[10];
  85. /* 10次整包容量(数组)读取量; */
  86. extern uint16_T sohv_Q_packCapArrEo[10];/* '<S3>/Chart' */
  87. /* 10次整包容量(数组)写入量; */
  88. extern uint16_T sohv_V_chrgStartStatEi[28];
  89. /* 充电开始时刻的单体电压(数组)读取量; */
  90. extern uint16_T sohv_V_chrgStartStatEo[28];/* '<S6>/Switch' */
  91. /* 充电开始时刻的单体电压(数组)写入量; */
  92. /*-
  93. * These blocks were eliminated from the model due to optimizations:
  94. *
  95. * Block '<S7>/Scope' : Unused code path elimination
  96. * Block '<S7>/Scope1' : Unused code path elimination
  97. * Block '<S9>/Saturation' : Eliminated Saturate block
  98. */
  99. /*-
  100. * The generated code includes comments that allow you to trace directly
  101. * back to the appropriate location in the model. The basic format
  102. * is <system>/block_name, where system is the system number (uniquely
  103. * assigned by Simulink) and block_name is the name of the block.
  104. *
  105. * Use the MATLAB hilite_system command to trace the generated code back
  106. * to the model. For example,
  107. *
  108. * hilite_system('<S3>') - opens system 3
  109. * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
  110. *
  111. * Here is the system hierarchy for this model
  112. *
  113. * '<Root>' : 'SOH'
  114. * '<S1>' : 'SOH/Subsystem4'
  115. * '<S2>' : 'SOH/Subsystem4/Chrgmation'
  116. * '<S3>' : 'SOH/Subsystem4/Conut'
  117. * '<S4>' : 'SOH/Subsystem4/CountEn'
  118. * '<S5>' : 'SOH/Subsystem4/EEDeal'
  119. * '<S6>' : 'SOH/Subsystem4/Chrgmation/ChrgBe'
  120. * '<S7>' : 'SOH/Subsystem4/Chrgmation/ChrgEnd'
  121. * '<S8>' : 'SOH/Subsystem4/Chrgmation/Chrging'
  122. * '<S9>' : 'SOH/Subsystem4/Chrgmation/ChrgBe/Resettable Subsystem'
  123. * '<S10>' : 'SOH/Subsystem4/Chrgmation/ChrgBe/keep'
  124. * '<S11>' : 'SOH/Subsystem4/Chrgmation/Chrging/Resettable Subsystem'
  125. * '<S12>' : 'SOH/Subsystem4/Conut/Chart'
  126. * '<S13>' : 'SOH/Subsystem4/Conut/Subsystem'
  127. * '<S14>' : 'SOH/Subsystem4/EEDeal/EECkeck'
  128. * '<S15>' : 'SOH/Subsystem4/EEDeal/FalseAction'
  129. * '<S16>' : 'SOH/Subsystem4/EEDeal/TureAction'
  130. */
  131. #endif /* RTW_HEADER_SOH_h_ */
  132. /*
  133. * File trailer for generated code.
  134. *
  135. * [EOF]
  136. */