| 1 | /* |
| 2 | * File: BSER_CmuLost.h |
| 3 | * |
| 4 | * Code generated for Simulink model 'BSER_CmuLost'. |
| 5 | * |
| 6 | * Model version : 1.1407 |
| 7 | * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 |
| 8 | * C/C++ source code generated on : Tue Jul 28 10:51:17 2020 |
| 9 | * |
| 10 | * Target selection: ert.tlc |
| 11 | * Embedded hardware selection: Infineon->TriCore |
| 12 | * Code generation objectives: |
| 13 | * 1. MISRA C:2012 guidelines |
| 14 | * 2. Execution efficiency |
| 15 | * Validation result: Not run |
| 16 | */ |
| 17 | |
| 18 | #ifndef RTW_HEADER_BSER_CmuLost_h_ |
| 19 | #define RTW_HEADER_BSER_CmuLost_h_ |
| 20 | #ifndef BSER_CmuLost_COMMON_INCLUDES_ |
| 21 | # define BSER_CmuLost_COMMON_INCLUDES_ |
| 22 | #include "rtwtypes.h" |
| 23 | #endif /* BSER_CmuLost_COMMON_INCLUDES_ */ |
| 24 | |
| 25 | #include "BSER_CmuLost_types.h" |
| 26 | |
| 27 | /* Includes for objects with custom storage classes. */ |
| 28 | #include "BSER_CmuLostParameter.h" |
| 29 | |
| 30 | /* Macros for accessing real-time model data structure */ |
| 31 | |
| 32 | /* user code (top of header file) */ |
| 33 | #include "ASW_Interface.h" |
| 34 | |
| 35 | /* Block states (auto storage) for system '<Root>' */ |
| 36 | typedef struct { |
| 37 | real32_T Delay_DSTATE; /* '<S8>/Delay' */ |
| 38 | real32_T Delay_DSTATE_m; /* '<S7>/Delay' */ |
| 39 | real32_T Delay_DSTATE_g; /* '<S6>/Delay' */ |
| 40 | real32_T Delay_DSTATE_p; /* '<S5>/Delay' */ |
| 41 | uint8_T Delay3_DSTATE; /* '<S4>/Delay3' */ |
| 42 | uint8_T Delay3_DSTATE_l; /* '<S3>/Delay3' */ |
| 43 | boolean_T Delay2_DSTATE; /* '<S4>/Delay2' */ |
| 44 | boolean_T Delay2_DSTATE_j; /* '<S3>/Delay2' */ |
| 45 | } DW_BSER_CmuLost_T; |
| 46 | |
| 47 | /* Block states (auto storage) */ |
| 48 | extern DW_BSER_CmuLost_T BSER_CmuLost_DW; |
| 49 | |
| 50 | /* Model entry point functions */ |
| 51 | extern void BSER_CmuLost_initialize(void); |
| 52 | extern void BSER_CmuLost_step(void); |
| 53 | |
| 54 | /* Exported data declaration */ |
| 55 | |
| 56 | /* Volatile memory section */ |
| 57 | /* Declaration for custom storage class: Volatile */ |
| 58 | extern volatile uint8_T DFC_ChrgCmuLost;/* Max fault of battery soc out of range high */ |
| 59 | extern volatile uint8_T DFC_DisChrgCmuLost;/* Min fault of battery soc out of range high */ |
| 60 | |
| 61 | /*- |
| 62 | * The generated code includes comments that allow you to trace directly |
| 63 | * back to the appropriate location in the model. The basic format |
| 64 | * is <system>/block_name, where system is the system number (uniquely |
| 65 | * assigned by Simulink) and block_name is the name of the block. |
| 66 | * |
| 67 | * Use the MATLAB hilite_system command to trace the generated code back |
| 68 | * to the model. For example, |
| 69 | * |
| 70 | * hilite_system('<S3>') - opens system 3 |
| 71 | * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3 |
| 72 | * |
| 73 | * Here is the system hierarchy for this model |
| 74 | * |
| 75 | * '<Root>' : 'BSER_CmuLost' |
| 76 | * '<S1>' : 'BSER_CmuLost/BSER_CmuLost' |
| 77 | * '<S2>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag' |
| 78 | * '<S3>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/DSM_ReportCheck' |
| 79 | * '<S4>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/DSM_ReportCheck1' |
| 80 | * '<S5>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/TONV_10msTimeDebounce' |
| 81 | * '<S6>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/TONV_10msTimeDebounce1' |
| 82 | * '<S7>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/TONV_10msTimeDebounce2' |
| 83 | * '<S8>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/TONV_10msTimeDebounce3' |
| 84 | * '<S9>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/DSM_ReportCheck/Bit Clear1' |
| 85 | * '<S10>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/DSM_ReportCheck/Bit Clear2' |
| 86 | * '<S11>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/DSM_ReportCheck/Bit Set' |
| 87 | * '<S12>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/DSM_ReportCheck/Bit Set1' |
| 88 | * '<S13>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/DSM_ReportCheck/Bit Set2' |
| 89 | * '<S14>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/DSM_ReportCheck/Bit Set4' |
| 90 | * '<S15>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/DSM_ReportCheck1/Bit Clear1' |
| 91 | * '<S16>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/DSM_ReportCheck1/Bit Clear2' |
| 92 | * '<S17>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/DSM_ReportCheck1/Bit Set' |
| 93 | * '<S18>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/DSM_ReportCheck1/Bit Set1' |
| 94 | * '<S19>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/DSM_ReportCheck1/Bit Set2' |
| 95 | * '<S20>' : 'BSER_CmuLost/BSER_CmuLost/CmuLostDiag/DSM_ReportCheck1/Bit Set4' |
| 96 | */ |
| 97 | #endif /* RTW_HEADER_BSER_CmuLost_h_ */ |
| 98 | |
| 99 | /* |
| 100 | * File trailer for generated code. |
| 101 | * |
| 102 | * [EOF] |
| 103 | */ |
| 104 | |