SOC.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. #ifndef RTW_HEADER_SOC_h_
  2. #define RTW_HEADER_SOC_h_
  3. #ifndef SOC_COMMON_INCLUDES_
  4. #define SOC_COMMON_INCLUDES_
  5. #include "rtwtypes.h"
  6. #endif
  7. #include "SOC_types.h"
  8. #include "rtGetInf.h"
  9. #include "rt_nonfinite.h"
  10. #include "zero_crossing_types.h"
  11. #include "BCUCal.h"
  12. #include "BCUDisp.h"
  13. #ifndef SOC_MDLREF_HIDE_CHILD_
  14. typedef struct {
  15. boolean_T UnitDelay_DSTATE;
  16. } DW_FristEn_SOC_T;
  17. #endif
  18. #ifndef SOC_MDLREF_HIDE_CHILD_
  19. typedef struct {
  20. real32_T Delay_DSTATE;
  21. boolean_T icLoad;
  22. } DW_fit_SOC_T;
  23. #endif
  24. #ifndef SOC_MDLREF_HIDE_CHILD_
  25. typedef struct {
  26. uint16_T UnitDelay_DSTATE;
  27. } DW_Conditionalcounter1_SOC_T;
  28. #endif
  29. #ifndef SOC_MDLREF_HIDE_CHILD_
  30. typedef struct {
  31. real_T Subsystem1_Trig_ZC;
  32. } ZCV_Subsystem1_SOC_T;
  33. #endif
  34. #ifndef SOC_MDLREF_HIDE_CHILD_
  35. typedef struct {
  36. ZCSigState Subsystem1_Trig_ZCE;
  37. } ZCE_Subsystem1_SOC_T;
  38. #endif
  39. #ifndef SOC_MDLREF_HIDE_CHILD_
  40. typedef struct {
  41. real_T UnitDelay_DSTATE;
  42. } DW_TimeCounter_SOC_T;
  43. #endif
  44. #ifndef SOC_MDLREF_HIDE_CHILD_
  45. typedef struct {
  46. uint16_T UnitDelay_DSTATE;
  47. } DW_Conditionalcounter_SOC_T;
  48. #endif
  49. #ifndef SOC_MDLREF_HIDE_CHILD_
  50. typedef struct {
  51. real32_T in1;
  52. real32_T in2;
  53. real32_T in1_i;
  54. real32_T in2_f;
  55. real32_T in1_ix;
  56. real32_T in2_fe;
  57. real32_T SignalConversion;
  58. real32_T SignalConversion_b;
  59. real32_T Switch1;
  60. real32_T Switch_d;
  61. real32_T Divide;
  62. boolean_T LogicalOperator_j;
  63. } B_SOC_c_T;
  64. #endif
  65. #ifndef SOC_MDLREF_HIDE_CHILD_
  66. typedef struct {
  67. real32_T Delay_DSTATE;
  68. real32_T Delay_DSTATE_l;
  69. real32_T Delay1_DSTATE;
  70. real32_T P_Delay_DSTATE[4];
  71. real32_T Delay2_DSTATE;
  72. real32_T Delay1_DSTATE_a;
  73. real32_T P_Delay_DSTATE_k[4];
  74. real32_T Delay2_DSTATE_k;
  75. real32_T Delay1_DSTATE_n;
  76. real32_T socd_pct_battSoc0_Delay_DSTATE;
  77. real32_T socd_pct_bcuSoc0_Delay_DSTATE;
  78. real32_T socd_flg_EEsave_Delay_DSTATE;
  79. real32_T socd_flg_EEsave_Delay1_DSTATE;
  80. real32_T UnitDelay1_DSTATE;
  81. real32_T UnitDelay_DSTATE_o;
  82. real32_T UnitDelay1_DSTATE_h;
  83. real32_T Delay_DSTATE_f[10];
  84. real32_T UnitDelay_DSTATE_i;
  85. real32_T UnitDelay2_DSTATE;
  86. real32_T UnitDelay3_DSTATE;
  87. real32_T UnitDelay1_DSTATE_a;
  88. real32_T Delay_DSTATE_lp[10];
  89. real32_T UnitDelay_DSTATE_b;
  90. real32_T Divide_DWORK4;
  91. real32_T Divide_DWORK4_l;
  92. uint16_T UnitDelay5_DSTATE;
  93. uint16_T UnitDelay5_DSTATE_k;
  94. uint16_T UnitDelay_DSTATE_m;
  95. boolean_T UnitDelay_DSTATE_c;
  96. boolean_T UnitDelay_DSTATE_f;
  97. boolean_T UnitDelay_DSTATE_fs;
  98. boolean_T UnitDelay_DSTATE_e;
  99. chrgSt Delay2_DSTATE_b;
  100. int8_T If_ActiveSubsystem;
  101. int8_T If_ActiveSubsystem_j;
  102. boolean_T icLoad;
  103. boolean_T icLoad_j;
  104. boolean_T icLoad_o;
  105. boolean_T icLoad_i;
  106. boolean_T icLoad_p;
  107. boolean_T icLoad_a;
  108. boolean_T icLoad_l;
  109. boolean_T icLoad_m;
  110. DW_TimeCounter_SOC_T TimeCounter_c;
  111. DW_Conditionalcounter_SOC_T Conditionalcounter1_f;
  112. DW_Conditionalcounter_SOC_T Conditionalcounter_n;
  113. DW_TimeCounter_SOC_T TimeCounter;
  114. DW_Conditionalcounter1_SOC_T Conditionalcounter1_j;
  115. DW_Conditionalcounter1_SOC_T Conditionalcounter_i;
  116. DW_Conditionalcounter1_SOC_T Conditionalcounter1;
  117. DW_fit_SOC_T fit_j;
  118. DW_fit_SOC_T fit;
  119. DW_FristEn_SOC_T FristEn_n;
  120. DW_FristEn_SOC_T FristEn;
  121. } DW_SOC_f_T;
  122. #endif
  123. #ifndef SOC_MDLREF_HIDE_CHILD_
  124. typedef struct {
  125. ZCV_Subsystem1_SOC_T Subsystem2_e;
  126. ZCV_Subsystem1_SOC_T Subsystem2;
  127. ZCV_Subsystem1_SOC_T Subsystem1;
  128. } ZCV_SOC_g_T;
  129. #endif
  130. #ifndef SOC_MDLREF_HIDE_CHILD_
  131. typedef struct {
  132. ZCE_Subsystem1_SOC_T Subsystem2_e;
  133. ZCE_Subsystem1_SOC_T Subsystem2;
  134. ZCE_Subsystem1_SOC_T Subsystem1;
  135. } ZCE_SOC_T;
  136. #endif
  137. #ifndef SOC_MDLREF_HIDE_CHILD_
  138. typedef struct {
  139. const real32_T Add4;
  140. const real32_T Add4_j;
  141. } ConstB_SOC_h_T;
  142. #endif
  143. #ifndef SOC_MDLREF_HIDE_CHILD_
  144. struct tag_RTM_SOC_T {
  145. const char_T **errorStatus;
  146. };
  147. #endif
  148. #ifndef SOC_MDLREF_HIDE_CHILD_
  149. typedef struct {
  150. RT_MODEL_SOC_T rtm;
  151. } MdlrefDW_SOC_T;
  152. #endif
  153. extern void SOC_Init(void);
  154. extern void SOC_Disable(void);
  155. extern void SOC(void);
  156. extern void SOC_initialize(const char_T **rt_errorStatus);
  157. #ifndef SOC_MDLREF_HIDE_CHILD_
  158. extern void SOC_FristEn_Init(DW_FristEn_SOC_T *localDW);
  159. extern void SOC_FristEn(boolean_T *rty_Out1, DW_FristEn_SOC_T *localDW);
  160. extern void SOC_Subsystem(real32_T rtu_x, real32_T rtu_xdat, real32_T rtu_xdat_o,
  161. real32_T rtu_xdat_d, real32_T rtu_ydat, real32_T rtu_ydat_e, real32_T *rty_y);
  162. extern void SOC_UpLim(real32_T rtu_In1, real32_T *rty_Out1, real32_T rtp_m,
  163. real_T rtp_n);
  164. extern void SOC_fit_Init(DW_fit_SOC_T *localDW);
  165. extern void SOC_fit_Reset(DW_fit_SOC_T *localDW);
  166. extern void SOC_fit(real32_T rtu_data, real32_T *rty_Fitdata, real32_T rtp_m,
  167. DW_fit_SOC_T *localDW);
  168. extern void SOC_LowLim(real32_T rtu_In1, real32_T *rty_Out1, real32_T rtp_m,
  169. real_T rtp_n);
  170. extern void SOC_UpLim_n(uint16_T rtu_In1, uint16_T *rty_Out1, uint16_T rtp_m,
  171. real_T rtp_n);
  172. extern void SOC_Conditionalcounter1_Reset(DW_Conditionalcounter1_SOC_T *localDW);
  173. extern void SOC_Conditionalcounter1_Update(boolean_T rtu_Flg, uint16_T *rty_Nr,
  174. DW_Conditionalcounter1_SOC_T *localDW);
  175. extern void SOC_Conditionalcounter1(uint16_T *rty_Nr, uint16_T rtp_n,
  176. DW_Conditionalcounter1_SOC_T *localDW);
  177. extern void SOC_Subsystem1(boolean_T rtu_Trigger, real32_T rtu_in1, real32_T
  178. rtu_in2, real32_T *rty_out1, real32_T *rty_out2, ZCE_Subsystem1_SOC_T
  179. *localZCE);
  180. extern void SOC_TimeCounter_Reset(DW_TimeCounter_SOC_T *localDW);
  181. extern void SOC_TimeCounter(real_T *rty_Nr, real_T rtp_n, DW_TimeCounter_SOC_T
  182. *localDW);
  183. extern void SOC_Conditionalcounter_Reset(DW_Conditionalcounter_SOC_T *localDW);
  184. extern void SOC_Conditionalcounter_Update(boolean_T rtu_Flg, uint16_T *rty_Nr,
  185. DW_Conditionalcounter_SOC_T *localDW);
  186. extern void SOC_Conditionalcounter(uint16_T *rty_Nr, uint16_T rtp_n,
  187. DW_Conditionalcounter_SOC_T *localDW);
  188. #endif
  189. #ifndef SOC_MDLREF_HIDE_CHILD_
  190. extern MdlrefDW_SOC_T SOC_MdlrefDW;
  191. #endif
  192. #ifndef SOC_MDLREF_HIDE_CHILD_
  193. extern B_SOC_c_T SOC_B;
  194. extern DW_SOC_f_T SOC_DW;
  195. extern ZCE_SOC_T SOC_PrevZCX;
  196. #endif
  197. #endif