123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- /*
- * 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]; /* '<S13>/Divide1' */
- uint16_T Add2; /* '<S13>/Add2' */
- uint16_T Qavrg; /* '<S3>/Chart' */
- uint16_T sohn_Q_packCapArrEo[10]; /* '<S3>/Chart' */
- uint16_T Divide1_c; /* '<S11>/Divide1' */
- } B_SOH_c_T;
- /* Block states (default storage) for model 'SOH' */
- typedef struct {
- int32_T UnitDelay_DSTATE; /* '<S11>/Unit Delay' */
- uint16_T UnitDelay2_DSTATE; /* '<S6>/Unit Delay2' */
- uint16_T UnitDelay1_DSTATE; /* '<S7>/Unit Delay1' */
- uint16_T UnitDelay_DSTATE_o; /* '<S9>/Unit Delay' */
- uint16_T UnitDelay1_DSTATE_i[28]; /* '<S6>/Unit Delay1' */
- uint8_T UnitDelay_DSTATE_e; /* '<S6>/Unit Delay' */
- uint8_T UnitDelay_DSTATE_g; /* '<S7>/Unit Delay' */
- uint8_T UnitDelay_DSTATE_gh; /* '<S8>/Unit Delay' */
- boolean_T UnitDelay3_DSTATE; /* '<S10>/Unit Delay3' */
- boolean_T UnitDelay1_DSTATE_m; /* '<S4>/Unit Delay1' */
- boolean_T flg; /* '<S3>/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; /* '<S8>/Resettable Subsystem' */
- /* 充入容量写入量; */
- extern boolean_T sohd_flg_chrgEndEi;
- /* 充电结束标志位读取量; */
- extern boolean_T sohd_flg_chrgEndEo; /* '<S7>/Switch' */
- /* 充电结束标志位写入量; */
- extern uint16_T sohd_pct_bcuSoh; /* '<S3>/Saturation' */
- /* 电池SOH; */
- extern uint16_T sohd_tm_chrgStartStatEi;
- /* 充电前静置时间读取量; */
- extern uint16_T sohd_tm_chrgStartStatEo;/* '<S6>/Saturation' */
- /* 充电前静置时间写入量; */
- extern uint16_T sohv_Q_cellCap[28]; /* '<S3>/Subsystem' */
- /* 充入容量写入量; */
- extern uint16_T sohv_Q_packCapArrEi[10];
- /* 10次整包容量(数组)读取量; */
- extern uint16_T sohv_Q_packCapArrEo[10];/* '<S3>/Chart' */
- /* 10次整包容量(数组)写入量; */
- extern uint16_T sohv_V_chrgStartStatEi[28];
- /* 充电开始时刻的单体电压(数组)读取量; */
- extern uint16_T sohv_V_chrgStartStatEo[28];/* '<S6>/Switch' */
- /* 充电开始时刻的单体电压(数组)写入量; */
- /*-
- * These blocks were eliminated from the model due to optimizations:
- *
- * Block '<S7>/Scope' : Unused code path elimination
- * Block '<S7>/Scope1' : Unused code path elimination
- * Block '<S9>/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 <system>/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('<S3>') - opens system 3
- * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
- *
- * Here is the system hierarchy for this model
- *
- * '<Root>' : 'SOH'
- * '<S1>' : 'SOH/Subsystem4'
- * '<S2>' : 'SOH/Subsystem4/Chrgmation'
- * '<S3>' : 'SOH/Subsystem4/Conut'
- * '<S4>' : 'SOH/Subsystem4/CountEn'
- * '<S5>' : 'SOH/Subsystem4/EEDeal'
- * '<S6>' : 'SOH/Subsystem4/Chrgmation/ChrgBe'
- * '<S7>' : 'SOH/Subsystem4/Chrgmation/ChrgEnd'
- * '<S8>' : 'SOH/Subsystem4/Chrgmation/Chrging'
- * '<S9>' : 'SOH/Subsystem4/Chrgmation/ChrgBe/Resettable Subsystem'
- * '<S10>' : 'SOH/Subsystem4/Chrgmation/ChrgBe/keep'
- * '<S11>' : 'SOH/Subsystem4/Chrgmation/Chrging/Resettable Subsystem'
- * '<S12>' : 'SOH/Subsystem4/Conut/Chart'
- * '<S13>' : 'SOH/Subsystem4/Conut/Subsystem'
- * '<S14>' : 'SOH/Subsystem4/EEDeal/EECkeck'
- * '<S15>' : 'SOH/Subsystem4/EEDeal/FalseAction'
- * '<S16>' : 'SOH/Subsystem4/EEDeal/TureAction'
- */
- #endif /* RTW_HEADER_SOH_h_ */
- /*
- * File trailer for generated code.
- *
- * [EOF]
- */
|