123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- #ifndef RTW_HEADER_SOC_h_
- #define RTW_HEADER_SOC_h_
- #ifndef SOC_COMMON_INCLUDES_
- #define SOC_COMMON_INCLUDES_
- #include "rtwtypes.h"
- #endif
- #include "SOC_types.h"
- #include "rtGetInf.h"
- #include "rt_nonfinite.h"
- #include "zero_crossing_types.h"
- #include "BCUCal.h"
- #include "BCUDisp.h"
- #ifndef SOC_MDLREF_HIDE_CHILD_
- typedef struct {
- boolean_T UnitDelay_DSTATE;
- } DW_FristEn_SOC_T;
- #endif
- #ifndef SOC_MDLREF_HIDE_CHILD_
- typedef struct {
- real32_T Delay_DSTATE;
- boolean_T icLoad;
- } DW_fit_SOC_T;
- #endif
- #ifndef SOC_MDLREF_HIDE_CHILD_
- typedef struct {
- uint16_T UnitDelay_DSTATE;
- } DW_Conditionalcounter1_SOC_T;
- #endif
- #ifndef SOC_MDLREF_HIDE_CHILD_
- typedef struct {
- real_T Subsystem1_Trig_ZC;
- } ZCV_Subsystem1_SOC_T;
- #endif
- #ifndef SOC_MDLREF_HIDE_CHILD_
- typedef struct {
- ZCSigState Subsystem1_Trig_ZCE;
- } ZCE_Subsystem1_SOC_T;
- #endif
- #ifndef SOC_MDLREF_HIDE_CHILD_
- typedef struct {
- real_T UnitDelay_DSTATE;
- } DW_TimeCounter_SOC_T;
- #endif
- #ifndef SOC_MDLREF_HIDE_CHILD_
- typedef struct {
- uint16_T UnitDelay_DSTATE;
- } DW_Conditionalcounter_SOC_T;
- #endif
- #ifndef SOC_MDLREF_HIDE_CHILD_
- typedef struct {
- real32_T in1;
- real32_T in2;
- real32_T in1_i;
- real32_T in2_f;
- real32_T in1_ix;
- real32_T in2_fe;
- real32_T SignalConversion;
- real32_T SignalConversion_b;
- real32_T Switch1;
- real32_T Switch_d;
- real32_T Divide;
- boolean_T LogicalOperator_j;
- } B_SOC_c_T;
- #endif
- #ifndef SOC_MDLREF_HIDE_CHILD_
- typedef struct {
- real32_T Delay_DSTATE;
- real32_T Delay_DSTATE_l;
- real32_T Delay1_DSTATE;
- real32_T P_Delay_DSTATE[4];
- real32_T Delay2_DSTATE;
- real32_T Delay1_DSTATE_a;
- real32_T P_Delay_DSTATE_k[4];
- real32_T Delay2_DSTATE_k;
- real32_T Delay1_DSTATE_n;
- real32_T socd_pct_battSoc0_Delay_DSTATE;
- real32_T socd_pct_bcuSoc0_Delay_DSTATE;
- real32_T socd_flg_EEsave_Delay_DSTATE;
- real32_T socd_flg_EEsave_Delay1_DSTATE;
- real32_T UnitDelay1_DSTATE;
- real32_T UnitDelay_DSTATE_o;
- real32_T UnitDelay1_DSTATE_h;
- real32_T Delay_DSTATE_f[10];
- real32_T UnitDelay_DSTATE_i;
- real32_T UnitDelay2_DSTATE;
- real32_T UnitDelay3_DSTATE;
- real32_T UnitDelay1_DSTATE_a;
- real32_T Delay_DSTATE_lp[10];
- real32_T UnitDelay_DSTATE_b;
- real32_T Divide_DWORK4;
- real32_T Divide_DWORK4_l;
- uint16_T UnitDelay5_DSTATE;
- uint16_T UnitDelay5_DSTATE_k;
- uint16_T UnitDelay_DSTATE_m;
- boolean_T UnitDelay_DSTATE_c;
- boolean_T UnitDelay_DSTATE_f;
- boolean_T UnitDelay_DSTATE_fs;
- boolean_T UnitDelay_DSTATE_e;
- chrgSt Delay2_DSTATE_b;
- int8_T If_ActiveSubsystem;
- int8_T If_ActiveSubsystem_j;
- boolean_T icLoad;
- boolean_T icLoad_j;
- boolean_T icLoad_o;
- boolean_T icLoad_i;
- boolean_T icLoad_p;
- boolean_T icLoad_a;
- boolean_T icLoad_l;
- boolean_T icLoad_m;
- DW_TimeCounter_SOC_T TimeCounter_c;
- DW_Conditionalcounter_SOC_T Conditionalcounter1_f;
- DW_Conditionalcounter_SOC_T Conditionalcounter_n;
- DW_TimeCounter_SOC_T TimeCounter;
- DW_Conditionalcounter1_SOC_T Conditionalcounter1_j;
- DW_Conditionalcounter1_SOC_T Conditionalcounter_i;
- DW_Conditionalcounter1_SOC_T Conditionalcounter1;
- DW_fit_SOC_T fit_j;
- DW_fit_SOC_T fit;
- DW_FristEn_SOC_T FristEn_n;
- DW_FristEn_SOC_T FristEn;
- } DW_SOC_f_T;
- #endif
- #ifndef SOC_MDLREF_HIDE_CHILD_
- typedef struct {
- ZCV_Subsystem1_SOC_T Subsystem2_e;
- ZCV_Subsystem1_SOC_T Subsystem2;
- ZCV_Subsystem1_SOC_T Subsystem1;
- } ZCV_SOC_g_T;
- #endif
- #ifndef SOC_MDLREF_HIDE_CHILD_
- typedef struct {
- ZCE_Subsystem1_SOC_T Subsystem2_e;
- ZCE_Subsystem1_SOC_T Subsystem2;
- ZCE_Subsystem1_SOC_T Subsystem1;
- } ZCE_SOC_T;
- #endif
- #ifndef SOC_MDLREF_HIDE_CHILD_
- typedef struct {
- const real32_T Add4;
- const real32_T Add4_j;
- } ConstB_SOC_h_T;
- #endif
- #ifndef SOC_MDLREF_HIDE_CHILD_
- struct tag_RTM_SOC_T {
- const char_T **errorStatus;
- };
- #endif
- #ifndef SOC_MDLREF_HIDE_CHILD_
- typedef struct {
- RT_MODEL_SOC_T rtm;
- } MdlrefDW_SOC_T;
- #endif
- extern void SOC_Init(void);
- extern void SOC_Disable(void);
- extern void SOC(void);
- extern void SOC_initialize(const char_T **rt_errorStatus);
- #ifndef SOC_MDLREF_HIDE_CHILD_
- extern void SOC_FristEn_Init(DW_FristEn_SOC_T *localDW);
- extern void SOC_FristEn(boolean_T *rty_Out1, DW_FristEn_SOC_T *localDW);
- extern void SOC_Subsystem(real32_T rtu_x, real32_T rtu_xdat, real32_T rtu_xdat_o,
- real32_T rtu_xdat_d, real32_T rtu_ydat, real32_T rtu_ydat_e, real32_T *rty_y);
- extern void SOC_UpLim(real32_T rtu_In1, real32_T *rty_Out1, real32_T rtp_m,
- real_T rtp_n);
- extern void SOC_fit_Init(DW_fit_SOC_T *localDW);
- extern void SOC_fit_Reset(DW_fit_SOC_T *localDW);
- extern void SOC_fit(real32_T rtu_data, real32_T *rty_Fitdata, real32_T rtp_m,
- DW_fit_SOC_T *localDW);
- extern void SOC_LowLim(real32_T rtu_In1, real32_T *rty_Out1, real32_T rtp_m,
- real_T rtp_n);
- extern void SOC_UpLim_n(uint16_T rtu_In1, uint16_T *rty_Out1, uint16_T rtp_m,
- real_T rtp_n);
- extern void SOC_Conditionalcounter1_Reset(DW_Conditionalcounter1_SOC_T *localDW);
- extern void SOC_Conditionalcounter1_Update(boolean_T rtu_Flg, uint16_T *rty_Nr,
- DW_Conditionalcounter1_SOC_T *localDW);
- extern void SOC_Conditionalcounter1(uint16_T *rty_Nr, uint16_T rtp_n,
- DW_Conditionalcounter1_SOC_T *localDW);
- extern void SOC_Subsystem1(boolean_T rtu_Trigger, real32_T rtu_in1, real32_T
- rtu_in2, real32_T *rty_out1, real32_T *rty_out2, ZCE_Subsystem1_SOC_T
- *localZCE);
- extern void SOC_TimeCounter_Reset(DW_TimeCounter_SOC_T *localDW);
- extern void SOC_TimeCounter(real_T *rty_Nr, real_T rtp_n, DW_TimeCounter_SOC_T
- *localDW);
- extern void SOC_Conditionalcounter_Reset(DW_Conditionalcounter_SOC_T *localDW);
- extern void SOC_Conditionalcounter_Update(boolean_T rtu_Flg, uint16_T *rty_Nr,
- DW_Conditionalcounter_SOC_T *localDW);
- extern void SOC_Conditionalcounter(uint16_T *rty_Nr, uint16_T rtp_n,
- DW_Conditionalcounter_SOC_T *localDW);
- #endif
- #ifndef SOC_MDLREF_HIDE_CHILD_
- extern MdlrefDW_SOC_T SOC_MdlrefDW;
- #endif
- #ifndef SOC_MDLREF_HIDE_CHILD_
- extern B_SOC_c_T SOC_B;
- extern DW_SOC_f_T SOC_DW;
- extern ZCE_SOC_T SOC_PrevZCX;
- #endif
- #endif
|