/* * File: SOH.h * * Code generated for Simulink model 'SOH'. * * Model version : 1.14 * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020 * C/C++ source code generated on : Thu Aug 12 17:54:32 2021 * * Target selection: ert.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) * Code generation objectives: Unspecified * Validation result: Not run */ #ifndef RTW_HEADER_SOH_h_ #define RTW_HEADER_SOH_h_ #ifndef SOH_COMMON_INCLUDES_ #define SOH_COMMON_INCLUDES_ #include "rtwtypes.h" #endif /* SOH_COMMON_INCLUDES_ */ #include "SOH_types.h" /* Block signals for model 'SOH' */ typedef struct { uint16_T Divide1[28]; /* '/Divide1' */ uint16_T Add2; /* '/Add2' */ uint16_T Qavrg; /* '/Chart' */ uint16_T sohn_Q_packCapArrEo[10]; /* '/Chart' */ uint16_T Divide1_c; /* '/Divide1' */ } B_SOH_c_T; /* Block states (default storage) for model 'SOH' */ typedef struct { int32_T UnitDelay_DSTATE; /* '/Unit Delay' */ uint16_T UnitDelay2_DSTATE; /* '/Unit Delay2' */ uint16_T UnitDelay1_DSTATE; /* '/Unit Delay1' */ uint16_T UnitDelay_DSTATE_o; /* '/Unit Delay' */ uint16_T UnitDelay1_DSTATE_i[28]; /* '/Unit Delay1' */ uint8_T UnitDelay_DSTATE_e; /* '/Unit Delay' */ uint8_T UnitDelay_DSTATE_g; /* '/Unit Delay' */ uint8_T UnitDelay_DSTATE_gh; /* '/Unit Delay' */ boolean_T UnitDelay3_DSTATE; /* '/Unit Delay3' */ boolean_T UnitDelay1_DSTATE_m; /* '/Unit Delay1' */ boolean_T flg; /* '/Chart' */ } DW_SOH_f_T; /* Real-time Model Data Structure */ struct tag_RTM_SOH_T { const char_T **errorStatus; }; typedef struct { B_SOH_c_T rtb; DW_SOH_f_T rtdw; RT_MODEL_SOH_T rtm; } MdlrefDW_SOH_T; /* Model reference registration function */ extern void SOH_initialize(const char_T **rt_errorStatus, RT_MODEL_SOH_T *const SOH_M); extern void SOH_Init(DW_SOH_f_T *localDW); extern void SOH(B_SOH_c_T *localB, DW_SOH_f_T *localDW); /* Exported data declaration */ /* Declaration for custom storage class: ExportToFile */ extern int16_T ihd_I_curr; /* 电池包电流; */ extern uint8_T ihd_st_workStat; /* 电池工作状态; */ extern uint32_T ihd_tm_parkTime; /* 驻车时间; */ extern uint16_T ihv_V_cellU[28]; /* 电池单体电压(数组); */ extern uint16_T sohd_Q_chrgEi; /* 充入容量读取量; */ extern uint16_T sohd_Q_chrgEo; /* '/Resettable Subsystem' */ /* 充入容量写入量; */ extern boolean_T sohd_flg_chrgEndEi; /* 充电结束标志位读取量; */ extern boolean_T sohd_flg_chrgEndEo; /* '/Switch' */ /* 充电结束标志位写入量; */ extern uint16_T sohd_pct_bcuSoh; /* '/Saturation' */ /* 电池SOH; */ extern uint16_T sohd_tm_chrgStartStatEi; /* 充电前静置时间读取量; */ extern uint16_T sohd_tm_chrgStartStatEo;/* '/Saturation' */ /* 充电前静置时间写入量; */ extern uint16_T sohv_Q_cellCap[28]; /* '/Subsystem' */ /* 充入容量写入量; */ extern uint16_T sohv_Q_packCapArrEi[10]; /* 10次整包容量(数组)读取量; */ extern uint16_T sohv_Q_packCapArrEo[10];/* '/Chart' */ /* 10次整包容量(数组)写入量; */ extern uint16_T sohv_V_chrgStartStatEi[28]; /* 充电开始时刻的单体电压(数组)读取量; */ extern uint16_T sohv_V_chrgStartStatEo[28];/* '/Switch' */ /* 充电开始时刻的单体电压(数组)写入量; */ /*- * These blocks were eliminated from the model due to optimizations: * * Block '/Scope' : Unused code path elimination * Block '/Scope1' : Unused code path elimination * Block '/Saturation' : Eliminated Saturate block */ /*- * The generated code includes comments that allow you to trace directly * back to the appropriate location in the model. The basic format * is /block_name, where system is the system number (uniquely * assigned by Simulink) and block_name is the name of the block. * * Use the MATLAB hilite_system command to trace the generated code back * to the model. For example, * * hilite_system('') - opens system 3 * hilite_system('/Kp') - opens and selects block Kp which resides in S3 * * Here is the system hierarchy for this model * * '' : 'SOH' * '' : 'SOH/Subsystem4' * '' : 'SOH/Subsystem4/Chrgmation' * '' : 'SOH/Subsystem4/Conut' * '' : 'SOH/Subsystem4/CountEn' * '' : 'SOH/Subsystem4/EEDeal' * '' : 'SOH/Subsystem4/Chrgmation/ChrgBe' * '' : 'SOH/Subsystem4/Chrgmation/ChrgEnd' * '' : 'SOH/Subsystem4/Chrgmation/Chrging' * '' : 'SOH/Subsystem4/Chrgmation/ChrgBe/Resettable Subsystem' * '' : 'SOH/Subsystem4/Chrgmation/ChrgBe/keep' * '' : 'SOH/Subsystem4/Chrgmation/Chrging/Resettable Subsystem' * '' : 'SOH/Subsystem4/Conut/Chart' * '' : 'SOH/Subsystem4/Conut/Subsystem' * '' : 'SOH/Subsystem4/EEDeal/EECkeck' * '' : 'SOH/Subsystem4/EEDeal/FalseAction' * '' : 'SOH/Subsystem4/EEDeal/TureAction' */ #endif /* RTW_HEADER_SOH_h_ */ /* * File trailer for generated code. * * [EOF] */