123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- /*
- * File: SFM.h
- *
- * Code generated for Simulink model 'SFM'.
- *
- * Model version : 1.88
- * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
- * C/C++ source code generated on : Fri Sep 10 17:41:38 2021
- *
- * Target selection: ert.tlc
- * Embedded hardware selection: Intel->x86-64 (Windows64)
- * Code generation objectives: Unspecified
- * Validation result: Not run
- */
- #ifndef RTW_HEADER_SFM_h_
- #define RTW_HEADER_SFM_h_
- #ifndef SFM_COMMON_INCLUDES_
- #define SFM_COMMON_INCLUDES_
- #include "rtwtypes.h"
- #endif /* SFM_COMMON_INCLUDES_ */
- #include "SFM_types.h"
- /* Includes for objects with custom storage classes. */
- #include "BCUCal.h"
- #include "BCUDisp.h"
- /* Block states (default storage) for system '<S27>/Subsytem' */
- #ifndef SFM_MDLREF_HIDE_CHILD_
- typedef struct {
- uint8_T delay_DSTATE; /* '<S31>/delay' */
- } DW_Subsytem_SFM_T;
- #endif /*SFM_MDLREF_HIDE_CHILD_*/
- /* Block states (default storage) for system '<S27>/Subsytem1' */
- #ifndef SFM_MDLREF_HIDE_CHILD_
- typedef struct {
- uint8_T delay_DSTATE; /* '<S32>/delay' */
- } DW_Subsytem1_SFM_T;
- #endif /*SFM_MDLREF_HIDE_CHILD_*/
- /* Block states (default storage) for system '<S28>/Subsytem' */
- #ifndef SFM_MDLREF_HIDE_CHILD_
- typedef struct {
- uint8_T delay_DSTATE; /* '<S41>/delay' */
- } DW_Subsytem_SFM_d_T;
- #endif /*SFM_MDLREF_HIDE_CHILD_*/
- /* Block states (default storage) for system '<S28>/Subsytem1' */
- #ifndef SFM_MDLREF_HIDE_CHILD_
- typedef struct {
- uint8_T delay_DSTATE; /* '<S42>/delay' */
- } DW_Subsytem1_SFM_k_T;
- #endif /*SFM_MDLREF_HIDE_CHILD_*/
- /* Block states (default storage) for system '<S28>/Subsytem6' */
- #ifndef SFM_MDLREF_HIDE_CHILD_
- typedef struct {
- uint8_T delay_DSTATE; /* '<S47>/delay' */
- } DW_Subsytem6_SFM_T;
- #endif /*SFM_MDLREF_HIDE_CHILD_*/
- /* Block states (default storage) for system '<S28>/Subsytem7' */
- #ifndef SFM_MDLREF_HIDE_CHILD_
- typedef struct {
- uint8_T delay_DSTATE; /* '<S48>/delay' */
- } DW_Subsytem7_SFM_T;
- #endif /*SFM_MDLREF_HIDE_CHILD_*/
- /* Block signals for model 'SFM' */
- #ifndef SFM_MDLREF_HIDE_CHILD_
- typedef struct {
- uint16_T CellU[28]; /* '<S13>/Chart' */
- uint16_T MinU; /* '<S13>/Chart' */
- uint16_T MaxU; /* '<S13>/Chart' */
- boolean_T ErrFlg[28]; /* '<S13>/Chart' */
- boolean_T GNDFlg; /* '<S13>/Chart' */
- } B_SFM_c_T;
- #endif /*SFM_MDLREF_HIDE_CHILD_*/
- /* Block states (default storage) for model 'SFM' */
- #ifndef SFM_MDLREF_HIDE_CHILD_
- typedef struct {
- uint16_T Time_Delay_DSTATE; /* '<S23>/Time_Delay' */
- uint16_T Cntl; /* '<S3>/FltCodeArry' */
- uint16_T CellUArry[84]; /* '<S13>/Chart' */
- uint8_T delay_DSTATE; /* '<S30>/delay' */
- uint8_T delay_DSTATE_j; /* '<S29>/delay' */
- uint8_T ChgNr[28]; /* '<S13>/Chart' */
- uint8_T RecNr[28]; /* '<S13>/Chart' */
- uint8_T UdelNr[28]; /* '<S13>/Chart' */
- boolean_T FirstFlg; /* '<S13>/Chart' */
- boolean_T ErrUFlg[28]; /* '<S13>/Chart' */
- DW_Subsytem7_SFM_T Subsytem9; /* '<S28>/Subsytem9' */
- DW_Subsytem6_SFM_T Subsytem8; /* '<S28>/Subsytem8' */
- DW_Subsytem7_SFM_T Subsytem7; /* '<S28>/Subsytem7' */
- DW_Subsytem6_SFM_T Subsytem6; /* '<S28>/Subsytem6' */
- DW_Subsytem_SFM_d_T Subsytem5_l; /* '<S28>/Subsytem5' */
- DW_Subsytem_SFM_d_T Subsytem4_p; /* '<S28>/Subsytem4' */
- DW_Subsytem1_SFM_k_T Subsytem3_b; /* '<S28>/Subsytem3' */
- DW_Subsytem_SFM_d_T Subsytem2_p; /* '<S28>/Subsytem2' */
- DW_Subsytem1_SFM_k_T Subsytem1_n; /* '<S28>/Subsytem1' */
- DW_Subsytem_SFM_d_T Subsytem_j0; /* '<S28>/Subsytem' */
- DW_Subsytem_SFM_T Subsytem5; /* '<S27>/Subsytem5' */
- DW_Subsytem_SFM_T Subsytem4; /* '<S27>/Subsytem4' */
- DW_Subsytem1_SFM_T Subsytem3; /* '<S27>/Subsytem3' */
- DW_Subsytem_SFM_T Subsytem2; /* '<S27>/Subsytem2' */
- DW_Subsytem1_SFM_T Subsytem1_e; /* '<S27>/Subsytem1' */
- DW_Subsytem_SFM_T Subsytem_j; /* '<S27>/Subsytem' */
- } DW_SFM_f_T;
- #endif /*SFM_MDLREF_HIDE_CHILD_*/
- #ifndef SFM_MDLREF_HIDE_CHILD_
- /* Real-time Model Data Structure */
- struct tag_RTM_SFM_T {
- const char_T **errorStatus;
- };
- #endif /*SFM_MDLREF_HIDE_CHILD_*/
- #ifndef SFM_MDLREF_HIDE_CHILD_
- typedef struct {
- RT_MODEL_SFM_T rtm;
- } MdlrefDW_SFM_T;
- #endif /*SFM_MDLREF_HIDE_CHILD_*/
- extern void SFM_Init(void);
- extern void SFM(void);
- /* Model reference registration function */
- extern void SFM_initialize(const char_T **rt_errorStatus);
- #ifndef SFM_MDLREF_HIDE_CHILD_
- extern void SFM_Subsytem_Init(DW_Subsytem_SFM_T *localDW);
- extern boolean_T SFM_Subsytem(uint8_T rtu_Enable, boolean_T rtu_Precondition,
- int16_T rtu_inputs, int16_T rtu_threshold, uint8_T rtu_CtrN, DW_Subsytem_SFM_T
- *localDW);
- extern void SFM_Subsytem1_Init(DW_Subsytem1_SFM_T *localDW);
- extern boolean_T SFM_Subsytem1(uint8_T rtu_Enable, boolean_T rtu_Precondition,
- int16_T rtu_InputS, int16_T rtu_threshold, uint8_T rtu_CtrN,
- DW_Subsytem1_SFM_T *localDW);
- extern boolean_T SFM_Subsystem5(boolean_T rtu_In1, boolean_T rtu_In2);
- extern void SFM_Subsytem_b_Init(DW_Subsytem_SFM_d_T *localDW);
- extern boolean_T SFM_Subsytem_j(uint8_T rtu_Enable, boolean_T rtu_Precondition,
- uint16_T rtu_inputs, uint16_T rtu_threshold, uint8_T rtu_CtrN,
- DW_Subsytem_SFM_d_T *localDW);
- extern void SFM_Subsytem1_f_Init(DW_Subsytem1_SFM_k_T *localDW);
- extern boolean_T SFM_Subsytem1_n(uint8_T rtu_Enable, boolean_T rtu_Precondition,
- uint16_T rtu_InputS, uint16_T rtu_threshold, uint8_T rtu_CtrN,
- DW_Subsytem1_SFM_k_T *localDW);
- extern void SFM_Subsytem6_Init(DW_Subsytem6_SFM_T *localDW);
- extern boolean_T SFM_Subsytem6(uint8_T rtu_Enable, boolean_T rtu_Precondition,
- uint32_T rtu_inputs, uint16_T rtu_threshold, uint8_T rtu_CtrN,
- DW_Subsytem6_SFM_T *localDW);
- extern void SFM_Subsytem7_Init(DW_Subsytem7_SFM_T *localDW);
- extern boolean_T SFM_Subsytem7(uint8_T rtu_Enable, boolean_T rtu_Precondition,
- uint32_T rtu_InputS, uint16_T rtu_threshold, uint8_T rtu_CtrN,
- DW_Subsytem7_SFM_T *localDW);
- #endif /*SFM_MDLREF_HIDE_CHILD_*/
- #ifndef SFM_MDLREF_HIDE_CHILD_
- extern MdlrefDW_SFM_T SFM_MdlrefDW;
- #endif /*SFM_MDLREF_HIDE_CHILD_*/
- #ifndef SFM_MDLREF_HIDE_CHILD_
- /* Block signals (default storage) */
- extern B_SFM_c_T SFM_B;
- /* Block states (default storage) */
- extern DW_SFM_f_T SFM_DW;
- #endif /*SFM_MDLREF_HIDE_CHILD_*/
- /*-
- * These blocks were eliminated from the model due to optimizations:
- *
- * Block '<S3>/Bitwise Operator' : Unused code path elimination
- * Block '<S3>/Constant82' : Unused code path elimination
- * Block '<S3>/Constant83' : Unused code path elimination
- * Block '<S3>/Display' : Unused code path elimination
- * Block '<S3>/Display1' : Unused code path elimination
- * Block '<S3>/Display3' : Unused code path elimination
- * Block '<S3>/Display7' : Unused code path elimination
- * Block '<S17>/Signal Conversion' : Unused code path elimination
- * Block '<S28>/Display' : Unused code path elimination
- * Block '<S28>/Display1' : Unused code path elimination
- * Block '<S28>/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 <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>' : 'SFM'
- * '<S1>' : 'SFM/SFM'
- * '<S2>' : 'SFM/SFM/Fault Data'
- * '<S3>' : 'SFM/SFM/Fault report'
- * '<S4>' : 'SFM/SFM/diagnosis'
- * '<S5>' : 'SFM/SFM/Fault report/FltCodeArry'
- * '<S6>' : 'SFM/SFM/diagnosis/ thermal runaway diagnosis'
- * '<S7>' : 'SFM/SFM/diagnosis/Acquisition signal diagnosis'
- * '<S8>' : 'SFM/SFM/diagnosis/Algt diagnosis'
- * '<S9>' : 'SFM/SFM/diagnosis/Communication diagnosis'
- * '<S10>' : 'SFM/SFM/diagnosis/Relay diagnosis'
- * '<S11>' : 'SFM/SFM/diagnosis/Threshold diagnosis'
- * '<S12>' : 'SFM/SFM/diagnosis/high voltage diagnosis'
- * '<S13>' : 'SFM/SFM/diagnosis/Acquisition signal diagnosis/BattU'
- * '<S14>' : 'SFM/SFM/diagnosis/Acquisition signal diagnosis/I'
- * '<S15>' : 'SFM/SFM/diagnosis/Acquisition signal diagnosis/Subsystem'
- * '<S16>' : 'SFM/SFM/diagnosis/Acquisition signal diagnosis/else'
- * '<S17>' : 'SFM/SFM/diagnosis/Acquisition signal diagnosis/gas'
- * '<S18>' : 'SFM/SFM/diagnosis/Acquisition signal diagnosis/BattU/Chart'
- * '<S19>' : 'SFM/SFM/diagnosis/Acquisition signal diagnosis/Subsystem/ModMax1'
- * '<S20>' : 'SFM/SFM/diagnosis/Acquisition signal diagnosis/Subsystem/ModMin1'
- * '<S21>' : 'SFM/SFM/diagnosis/Acquisition signal diagnosis/Subsystem/ModMax1/ArrMin'
- * '<S22>' : 'SFM/SFM/diagnosis/Acquisition signal diagnosis/Subsystem/ModMin1/ArrMin'
- * '<S23>' : 'SFM/SFM/diagnosis/Communication diagnosis/keep juged'
- * '<S24>' : 'SFM/SFM/diagnosis/Threshold diagnosis/ current Threshold diagnosis'
- * '<S25>' : 'SFM/SFM/diagnosis/Threshold diagnosis/ else Threshold diagnosis'
- * '<S26>' : 'SFM/SFM/diagnosis/Threshold diagnosis/ gas Threshold diagnosis'
- * '<S27>' : 'SFM/SFM/diagnosis/Threshold diagnosis/ temperature Threshold diagnosis'
- * '<S28>' : 'SFM/SFM/diagnosis/Threshold diagnosis/voltage Threshold diagnosis'
- * '<S29>' : 'SFM/SFM/diagnosis/Threshold diagnosis/ current Threshold diagnosis/Subsytem'
- * '<S30>' : 'SFM/SFM/diagnosis/Threshold diagnosis/ current Threshold diagnosis/Subsytem1'
- * '<S31>' : 'SFM/SFM/diagnosis/Threshold diagnosis/ temperature Threshold diagnosis/Subsytem'
- * '<S32>' : 'SFM/SFM/diagnosis/Threshold diagnosis/ temperature Threshold diagnosis/Subsytem1'
- * '<S33>' : 'SFM/SFM/diagnosis/Threshold diagnosis/ temperature Threshold diagnosis/Subsytem2'
- * '<S34>' : 'SFM/SFM/diagnosis/Threshold diagnosis/ temperature Threshold diagnosis/Subsytem3'
- * '<S35>' : 'SFM/SFM/diagnosis/Threshold diagnosis/ temperature Threshold diagnosis/Subsytem4'
- * '<S36>' : 'SFM/SFM/diagnosis/Threshold diagnosis/ temperature Threshold diagnosis/Subsytem5'
- * '<S37>' : 'SFM/SFM/diagnosis/Threshold diagnosis/voltage Threshold diagnosis/Subsystem5'
- * '<S38>' : 'SFM/SFM/diagnosis/Threshold diagnosis/voltage Threshold diagnosis/Subsystem6'
- * '<S39>' : 'SFM/SFM/diagnosis/Threshold diagnosis/voltage Threshold diagnosis/Subsystem7'
- * '<S40>' : 'SFM/SFM/diagnosis/Threshold diagnosis/voltage Threshold diagnosis/Subsystem8'
- * '<S41>' : 'SFM/SFM/diagnosis/Threshold diagnosis/voltage Threshold diagnosis/Subsytem'
- * '<S42>' : 'SFM/SFM/diagnosis/Threshold diagnosis/voltage Threshold diagnosis/Subsytem1'
- * '<S43>' : 'SFM/SFM/diagnosis/Threshold diagnosis/voltage Threshold diagnosis/Subsytem2'
- * '<S44>' : 'SFM/SFM/diagnosis/Threshold diagnosis/voltage Threshold diagnosis/Subsytem3'
- * '<S45>' : 'SFM/SFM/diagnosis/Threshold diagnosis/voltage Threshold diagnosis/Subsytem4'
- * '<S46>' : 'SFM/SFM/diagnosis/Threshold diagnosis/voltage Threshold diagnosis/Subsytem5'
- * '<S47>' : 'SFM/SFM/diagnosis/Threshold diagnosis/voltage Threshold diagnosis/Subsytem6'
- * '<S48>' : 'SFM/SFM/diagnosis/Threshold diagnosis/voltage Threshold diagnosis/Subsytem7'
- * '<S49>' : 'SFM/SFM/diagnosis/Threshold diagnosis/voltage Threshold diagnosis/Subsytem8'
- * '<S50>' : 'SFM/SFM/diagnosis/Threshold diagnosis/voltage Threshold diagnosis/Subsytem9'
- */
- #endif /* RTW_HEADER_SFM_h_ */
- /*
- * File trailer for generated code.
- *
- * [EOF]
- */
|