/* * File: BLC.h * * Code generated for Simulink model 'BLC'. * * Model version : 1.24 * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020 * C/C++ source code generated on : Thu Aug 12 17:54:13 2021 * * Target selection: ert.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) * Code generation objectives: Unspecified * Validation result: Not run */ #ifndef RTW_HEADER_BLC_h_ #define RTW_HEADER_BLC_h_ #include #ifndef BLC_COMMON_INCLUDES_ #define BLC_COMMON_INCLUDES_ #include "rtwtypes.h" #endif /* BLC_COMMON_INCLUDES_ */ #include "BLC_types.h" /* Block signals for model 'BLC' */ typedef struct { uint32_T Merge1[28]; /* '/Merge1' */ uint16_T blcn_Q_reqCpNow_j[28]; /* '/Chart' */ uint16_T blcn_Q_impleCp[28]; /* '/Chart' */ uint16_T Merge[28]; /* '/Merge' */ boolean_T blcn_flg_stop[28]; /* '/Chart' */ boolean_T blcn_flg_blcable[28]; /* '/Chart' */ boolean_T blcn_flg_pause[28]; /* '/Chart' */ } B_BLC_c_T; /* Block states (default storage) for model 'BLC' */ typedef struct { uint32_T blcCap[28]; /* '/Chart' */ uint16_T UnitDelay_DSTATE[28]; /* '/Unit Delay' */ uint16_T QL; /* '/Chart1' */ boolean_T UnitDelay1_DSTATE; /* '/Unit Delay1' */ uint8_T i_close; /* '/Chart' */ uint8_T i_open; /* '/Chart' */ boolean_T FristFlg; /* '/Chart1' */ boolean_T FristFlg_b; /* '/Chart' */ } DW_BLC_f_T; /* Real-time Model Data Structure */ struct tag_RTM_BLC_T { const char_T **errorStatus; }; typedef struct { B_BLC_c_T rtb; DW_BLC_f_T rtdw; RT_MODEL_BLC_T rtm; } MdlrefDW_BLC_T; /* Model reference registration function */ extern void BLC_initialize(const char_T **rt_errorStatus, RT_MODEL_BLC_T *const BLC_M); extern void BLC_Init(DW_BLC_f_T *localDW); extern void BLC(B_BLC_c_T *localB, DW_BLC_f_T *localDW); /* Exported data declaration */ /* Declaration for custom storage class: ExportToFile */ extern uint16_T blcv_Q_reqCpEi[28]; /* 均衡需求容量 读取量(数组); */ extern uint16_T blcv_Q_reqCpEo[28]; /* '/Add' */ /* 均衡需求容量 写入量(数组); */ extern uint32_T blcv_Q_totalCpEi[28]; /* 累计均衡容量 读取量(数组); */ extern uint32_T blcv_Q_totalCpEo[28]; /* '/Add1' */ /* 累计均衡容量 写入量(数组); */ extern boolean_T blcv_flg_excute[28]; /* '/Chart' */ /* 均衡执行请求标志位 (数组) */ extern int16_T ihd_T_bdtemp; extern uint16_T ihd_V_cellUMin; /* 电池单体电压最小; */ extern uint8_T ihd_st_fault; /* 故障等级 */ extern uint32_T ihd_tm_parkTime; /* 驻车时间; */ extern uint16_T ihv_V_cellU[28]; /* 电池单体电压(数组); */ extern uint16_T sohv_Q_cellCap[28]; /* 充入容量写入量; */ /*- * These blocks were eliminated from the model due to optimizations: * * Block '/Display' : Unused code path elimination * Block '/Display1' : Unused code path elimination * Block '/Display2' : Unused code path elimination * Block '/Display3' : Unused code path elimination * Block '/Display4' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Scope' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display2' : Unused code path elimination */ /*- * 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 * * '' : 'BLC' * '' : 'BLC/Subsystem' * '' : 'BLC/Subsystem/EE' * '' : 'BLC/Subsystem/Enalbe' * '' : 'BLC/Subsystem/pause' * '' : 'BLC/Subsystem/record' * '' : 'BLC/Subsystem/reqCpNow_Count' * '' : 'BLC/Subsystem/stop' * '' : 'BLC/Subsystem/EE/If Action Subsystem' * '' : 'BLC/Subsystem/EE/If Action Subsystem1' * '' : 'BLC/Subsystem/EE/Subsystem' * '' : 'BLC/Subsystem/pause/Chart' * '' : 'BLC/Subsystem/record/Chart' * '' : 'BLC/Subsystem/reqCpNow_Count/Chart' * '' : 'BLC/Subsystem/reqCpNow_Count/Chart1' * '' : 'BLC/Subsystem/stop/Chart' */ #endif /* RTW_HEADER_BLC_h_ */ /* * File trailer for generated code. * * [EOF] */