BLC.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /*
  2. * File: BLC.h
  3. *
  4. * Code generated for Simulink model 'BLC'.
  5. *
  6. * Model version : 1.24
  7. * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
  8. * C/C++ source code generated on : Thu Aug 12 17:54:13 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_BLC_h_
  16. #define RTW_HEADER_BLC_h_
  17. #include <string.h>
  18. #ifndef BLC_COMMON_INCLUDES_
  19. #define BLC_COMMON_INCLUDES_
  20. #include "rtwtypes.h"
  21. #endif /* BLC_COMMON_INCLUDES_ */
  22. #include "BLC_types.h"
  23. /* Block signals for model 'BLC' */
  24. typedef struct {
  25. uint32_T Merge1[28]; /* '<S2>/Merge1' */
  26. uint16_T blcn_Q_reqCpNow_j[28]; /* '<S6>/Chart' */
  27. uint16_T blcn_Q_impleCp[28]; /* '<S5>/Chart' */
  28. uint16_T Merge[28]; /* '<S2>/Merge' */
  29. boolean_T blcn_flg_stop[28]; /* '<S7>/Chart' */
  30. boolean_T blcn_flg_blcable[28]; /* '<S5>/Chart' */
  31. boolean_T blcn_flg_pause[28]; /* '<S4>/Chart' */
  32. } B_BLC_c_T;
  33. /* Block states (default storage) for model 'BLC' */
  34. typedef struct {
  35. uint32_T blcCap[28]; /* '<S5>/Chart' */
  36. uint16_T UnitDelay_DSTATE[28]; /* '<S1>/Unit Delay' */
  37. uint16_T QL; /* '<S6>/Chart1' */
  38. boolean_T UnitDelay1_DSTATE; /* '<S1>/Unit Delay1' */
  39. uint8_T i_close; /* '<S4>/Chart' */
  40. uint8_T i_open; /* '<S4>/Chart' */
  41. boolean_T FristFlg; /* '<S6>/Chart1' */
  42. boolean_T FristFlg_b; /* '<S6>/Chart' */
  43. } DW_BLC_f_T;
  44. /* Real-time Model Data Structure */
  45. struct tag_RTM_BLC_T {
  46. const char_T **errorStatus;
  47. };
  48. typedef struct {
  49. B_BLC_c_T rtb;
  50. DW_BLC_f_T rtdw;
  51. RT_MODEL_BLC_T rtm;
  52. } MdlrefDW_BLC_T;
  53. /* Model reference registration function */
  54. extern void BLC_initialize(const char_T **rt_errorStatus, RT_MODEL_BLC_T *const
  55. BLC_M);
  56. extern void BLC_Init(DW_BLC_f_T *localDW);
  57. extern void BLC(B_BLC_c_T *localB, DW_BLC_f_T *localDW);
  58. /* Exported data declaration */
  59. /* Declaration for custom storage class: ExportToFile */
  60. extern uint16_T blcv_Q_reqCpEi[28];
  61. /* 均衡需求容量 读取量(数组); */
  62. extern uint16_T blcv_Q_reqCpEo[28]; /* '<S5>/Add' */
  63. /* 均衡需求容量 写入量(数组); */
  64. extern uint32_T blcv_Q_totalCpEi[28];
  65. /* 累计均衡容量 读取量(数组); */
  66. extern uint32_T blcv_Q_totalCpEo[28]; /* '<S5>/Add1' */
  67. /* 累计均衡容量 写入量(数组); */
  68. extern boolean_T blcv_flg_excute[28]; /* '<S5>/Chart' */
  69. /* 均衡执行请求标志位 (数组) */
  70. extern int16_T ihd_T_bdtemp;
  71. extern uint16_T ihd_V_cellUMin;
  72. /* 电池单体电压最小; */
  73. extern uint8_T ihd_st_fault;
  74. /* 故障等级 */
  75. extern uint32_T ihd_tm_parkTime;
  76. /* 驻车时间; */
  77. extern uint16_T ihv_V_cellU[28];
  78. /* 电池单体电压(数组); */
  79. extern uint16_T sohv_Q_cellCap[28];
  80. /* 充入容量写入量; */
  81. /*-
  82. * These blocks were eliminated from the model due to optimizations:
  83. *
  84. * Block '<S1>/Display' : Unused code path elimination
  85. * Block '<S1>/Display1' : Unused code path elimination
  86. * Block '<S1>/Display2' : Unused code path elimination
  87. * Block '<S1>/Display3' : Unused code path elimination
  88. * Block '<S1>/Display4' : Unused code path elimination
  89. * Block '<S3>/Display' : Unused code path elimination
  90. * Block '<S5>/Display' : Unused code path elimination
  91. * Block '<S5>/Scope' : Unused code path elimination
  92. * Block '<S6>/Display' : Unused code path elimination
  93. * Block '<S6>/Display2' : Unused code path elimination
  94. */
  95. /*-
  96. * The generated code includes comments that allow you to trace directly
  97. * back to the appropriate location in the model. The basic format
  98. * is <system>/block_name, where system is the system number (uniquely
  99. * assigned by Simulink) and block_name is the name of the block.
  100. *
  101. * Use the MATLAB hilite_system command to trace the generated code back
  102. * to the model. For example,
  103. *
  104. * hilite_system('<S3>') - opens system 3
  105. * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
  106. *
  107. * Here is the system hierarchy for this model
  108. *
  109. * '<Root>' : 'BLC'
  110. * '<S1>' : 'BLC/Subsystem'
  111. * '<S2>' : 'BLC/Subsystem/EE'
  112. * '<S3>' : 'BLC/Subsystem/Enalbe'
  113. * '<S4>' : 'BLC/Subsystem/pause'
  114. * '<S5>' : 'BLC/Subsystem/record'
  115. * '<S6>' : 'BLC/Subsystem/reqCpNow_Count'
  116. * '<S7>' : 'BLC/Subsystem/stop'
  117. * '<S8>' : 'BLC/Subsystem/EE/If Action Subsystem'
  118. * '<S9>' : 'BLC/Subsystem/EE/If Action Subsystem1'
  119. * '<S10>' : 'BLC/Subsystem/EE/Subsystem'
  120. * '<S11>' : 'BLC/Subsystem/pause/Chart'
  121. * '<S12>' : 'BLC/Subsystem/record/Chart'
  122. * '<S13>' : 'BLC/Subsystem/reqCpNow_Count/Chart'
  123. * '<S14>' : 'BLC/Subsystem/reqCpNow_Count/Chart1'
  124. * '<S15>' : 'BLC/Subsystem/stop/Chart'
  125. */
  126. #endif /* RTW_HEADER_BLC_h_ */
  127. /*
  128. * File trailer for generated code.
  129. *
  130. * [EOF]
  131. */