SOC.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. real_T Subsystem1_Trig_ZC;
  16. } ZCV_Subsystem1_SOC_T;
  17. #endif
  18. #ifndef SOC_MDLREF_HIDE_CHILD_
  19. typedef struct {
  20. ZCSigState Subsystem1_Trig_ZCE;
  21. } ZCE_Subsystem1_SOC_T;
  22. #endif
  23. #ifndef SOC_MDLREF_HIDE_CHILD_
  24. typedef struct {
  25. real32_T in1;
  26. real32_T in2;
  27. real32_T in1_i;
  28. real32_T in2_f;
  29. real32_T in1_ix;
  30. real32_T in2_fe;
  31. real32_T Switch1;
  32. real32_T Switch;
  33. real32_T Divide;
  34. boolean_T LogicalOperator_j;
  35. } B_SOC_c_T;
  36. #endif
  37. #ifndef SOC_MDLREF_HIDE_CHILD_
  38. typedef struct {
  39. real_T UnitDelay_DSTATE;
  40. real_T UnitDelay_DSTATE_d;
  41. real_T UnitDelay_DSTATE_c;
  42. real32_T Delay_DSTATE;
  43. real32_T Delay_DSTATE_l;
  44. real32_T Delay1_DSTATE;
  45. real32_T P_Delay_DSTATE[4];
  46. real32_T Delay2_DSTATE;
  47. real32_T Delay1_DSTATE_a;
  48. real32_T P_Delay_DSTATE_k[4];
  49. real32_T Delay2_DSTATE_k;
  50. real32_T Delay1_DSTATE_n;
  51. real32_T socd_pct_battSoc0_Delay_DSTATE;
  52. real32_T socd_pct_bcuSoc0_Delay_DSTATE;
  53. real32_T socd_flg_EEsave_Delay_DSTATE;
  54. real32_T socd_flg_EEsave_Delay1_DSTATE;
  55. real32_T UnitDelay1_DSTATE;
  56. real32_T UnitDelay_DSTATE_o;
  57. real32_T UnitDelay1_DSTATE_h;
  58. real32_T Delay_DSTATE_f[10];
  59. real32_T UnitDelay_DSTATE_i;
  60. real32_T UnitDelay2_DSTATE;
  61. real32_T UnitDelay3_DSTATE;
  62. real32_T UnitDelay1_DSTATE_a;
  63. real32_T Delay_DSTATE_lp[10];
  64. real32_T Delay_DSTATE_h;
  65. real32_T Delay_DSTATE_h0;
  66. real32_T UnitDelay_DSTATE_b;
  67. real32_T Divide_DWORK4;
  68. real32_T Divide_DWORK4_l;
  69. uint16_T UnitDelay_DSTATE_n;
  70. uint16_T UnitDelay_DSTATE_m;
  71. uint16_T UnitDelay_DSTATE_p;
  72. uint16_T UnitDelay_DSTATE_ol;
  73. uint16_T UnitDelay_DSTATE_o2;
  74. uint16_T UnitDelay_DSTATE_dx;
  75. uint16_T UnitDelay_DSTATE_h;
  76. uint16_T UnitDelay5_DSTATE;
  77. uint16_T UnitDelay5_DSTATE_k;
  78. boolean_T UnitDelay_DSTATE_ca;
  79. boolean_T UnitDelay_DSTATE_f;
  80. boolean_T UnitDelay_DSTATE_fs;
  81. boolean_T UnitDelay_DSTATE_e;
  82. chrgSt Delay2_DSTATE_b;
  83. int8_T If_ActiveSubsystem;
  84. int8_T If_ActiveSubsystem_j;
  85. boolean_T icLoad;
  86. boolean_T icLoad_j;
  87. boolean_T icLoad_o;
  88. boolean_T icLoad_i;
  89. boolean_T icLoad_p;
  90. boolean_T icLoad_a;
  91. boolean_T icLoad_l;
  92. boolean_T icLoad_m;
  93. boolean_T icLoad_n;
  94. boolean_T icLoad_g;
  95. } DW_SOC_f_T;
  96. #endif
  97. #ifndef SOC_MDLREF_HIDE_CHILD_
  98. typedef struct {
  99. ZCV_Subsystem1_SOC_T Subsystem2_e;
  100. ZCV_Subsystem1_SOC_T Subsystem2;
  101. ZCV_Subsystem1_SOC_T Subsystem1;
  102. } ZCV_SOC_g_T;
  103. #endif
  104. #ifndef SOC_MDLREF_HIDE_CHILD_
  105. typedef struct {
  106. ZCE_Subsystem1_SOC_T Subsystem2_e;
  107. ZCE_Subsystem1_SOC_T Subsystem2;
  108. ZCE_Subsystem1_SOC_T Subsystem1;
  109. } ZCE_SOC_T;
  110. #endif
  111. #ifndef SOC_MDLREF_HIDE_CHILD_
  112. typedef struct {
  113. const real_T Add;
  114. const real_T Add_j;
  115. const real_T Add_m;
  116. const real_T Add_i;
  117. const real32_T Add4;
  118. const real32_T Add4_j;
  119. } ConstB_SOC_h_T;
  120. #endif
  121. #ifndef SOC_MDLREF_HIDE_CHILD_
  122. struct tag_RTM_SOC_T {
  123. const char_T **errorStatus;
  124. };
  125. #endif
  126. #ifndef SOC_MDLREF_HIDE_CHILD_
  127. typedef struct {
  128. RT_MODEL_SOC_T rtm;
  129. } MdlrefDW_SOC_T;
  130. #endif
  131. extern void SOC_Init(void);
  132. extern void SOC_Start(void);
  133. extern void SOC_Disable(void);
  134. extern void SOC(void);
  135. extern void SOC_initialize(const char_T **rt_errorStatus);
  136. #ifndef SOC_MDLREF_HIDE_CHILD_
  137. extern void SOC_IfActionSubsystem(real32_T rtu_Fitdata, real32_T *rty_Out1,
  138. real32_T rtp_m);
  139. extern void SOC_IfActionSubsystem1(real32_T rtu_Fitdata1, real32_T *rty_Out2,
  140. real32_T rtp_m);
  141. extern void SOC_Subsystem1(boolean_T rtu_Trigger, real32_T rtu_in1, real32_T
  142. rtu_in2, real32_T *rty_out1, real32_T *rty_out2, ZCE_Subsystem1_SOC_T
  143. *localZCE);
  144. #endif
  145. #ifndef SOC_MDLREF_HIDE_CHILD_
  146. extern MdlrefDW_SOC_T SOC_MdlrefDW;
  147. #endif
  148. #ifndef SOC_MDLREF_HIDE_CHILD_
  149. extern B_SOC_c_T SOC_B;
  150. extern DW_SOC_f_T SOC_DW;
  151. extern ZCE_SOC_T SOC_PrevZCX;
  152. #endif
  153. #endif