/*
 * File: BSER_SocRngDiag.h
 *
 * Code generated for Simulink model 'BSER_SocRngDiag'.
 *
 * Model version                  : 1.1395F
 * Simulink Coder version         : 8.11F (R2016b) 25-Aug-2016
 * C/C++ source code generated on : Thu Mar 26 14:37:30 2020
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: Infineon->TriCore
 * Code generation objectives:
 *    1. MISRA C:2012 guidelines
 *    2. Execution efficiency
 * Validation result: Not run
 */

#ifndef RTW_HEADER_BSER_SocRngDiag_h_
#define RTW_HEADER_BSER_SocRngDiag_h_
#include <math.h>
#include <stddef.h>
#ifndef BSER_SocRngDiag_COMMON_INCLUDES_
# define BSER_SocRngDiag_COMMON_INCLUDES_
#include "rtwtypes.h"
#endif                                 /* BSER_SocRngDiag_COMMON_INCLUDES_ */

#include "BSER_SocRngDiag_types.h"

/* Includes for objects with custom storage classes. */
#include "BSER_SocRngDiagParameter.h"

/* Macros for accessing real-time model data structure */

/* user code (top of header file) */
#include "ASW_Interface.h"

/* Block states (auto storage) for system '<Root>' */
typedef struct {
  real32_T Delay_DSTATE;               /* '<S47>/Delay' */
  real32_T Delay_DSTATE_d;             /* '<S46>/Delay' */
  real32_T Delay_DSTATE_j;             /* '<S45>/Delay' */
  real32_T Delay_DSTATE_g;             /* '<S48>/Delay' */
  real32_T Delay_DSTATE_c;             /* '<S49>/Delay' */
  real32_T Delay_DSTATE_m;             /* '<S41>/Delay' */
  real32_T Delay_DSTATE_gy;            /* '<S40>/Delay' */
  real32_T Delay_DSTATE_p;             /* '<S39>/Delay' */
  real32_T Delay_DSTATE_mz;            /* '<S42>/Delay' */
  real32_T Delay_DSTATE_mh;            /* '<S43>/Delay' */
  uint8_T Delay3_DSTATE;               /* '<S13>/Delay3' */
  uint8_T Delay3_DSTATE_h;             /* '<S12>/Delay3' */
  uint8_T Delay3_DSTATE_f;             /* '<S11>/Delay3' */
  uint8_T Delay3_DSTATE_l;             /* '<S10>/Delay3' */
  boolean_T Delay2_DSTATE;             /* '<S13>/Delay2' */
  boolean_T Delay2_DSTATE_b;           /* '<S12>/Delay2' */
  boolean_T Delay2_DSTATE_j;           /* '<S11>/Delay2' */
  boolean_T Delay2_DSTATE_j1;          /* '<S10>/Delay2' */
  boolean_T CurrCond_MODE;             /* '<S4>/CurrCond' */
  boolean_T CurrCond_MODE_p;           /* '<S5>/CurrCond' */
} DW_BSER_SocRngDiag_T;

/* Block states (auto storage) */
extern DW_BSER_SocRngDiag_T BSER_SocRngDiag_DW;

/* Model entry point functions */
extern void BSER_SocRngDiag_initialize(void);
extern void BSER_SocRngDiag_step(void);

/* Exported data declaration */

/* Volatile memory section */
 
 

/* Declaration for custom storage class: Volatile */
extern volatile uint8_T DFC_SocRngHiMax_ASW;/* Max fault of battery soc out of range high */
extern volatile uint8_T DFC_SocRngHiMin_ASW;/* Min fault of battery soc out of range high */
extern volatile uint8_T DFC_SocRngLoMax_ASW;/* Max fault of battery soc out of range low */
extern volatile uint8_T DFC_SocRngLoMin_ASW;/* Min fault of battery soc out of range low */

 
 

/* Declaration for custom storage class: OutputSignal */
extern volatile boolean_T BSER_bBattSocRngHiFaultDet;/* Fault detect flag for soc out of range high fault */
extern volatile boolean_T BSER_bBattSocRngHiFaultHeal;/* Fault healing flag for soc out of range high fault */
extern volatile boolean_T BSER_bBattSocRngHiWarnDet;/* Fault detect flag for soc out of range high warn */
extern volatile boolean_T BSER_bBattSocRngHiWarnHeal;/* Fault healing flag for soc out of range high warn */
extern volatile boolean_T BSER_bBattSocRngLoFaultDet;/* Fault detect flag for soc out of range low fault */
extern volatile boolean_T BSER_bBattSocRngLoFaultHeal;/* Fault healing flag for soc out of range low fault */
extern volatile boolean_T BSER_bBattSocRngLoWarnDet;/* Fault detect flag for soc out of range low warn */
extern volatile boolean_T BSER_bBattSocRngLoWarnHeal;/* Fault healing flag for soc out of range low warn */

/*-
 * 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>' : 'BSER_SocRngDiag'
 * '<S1>'   : 'BSER_SocRngDiag/BSER_SocRngDiag'
 * '<S2>'   : 'BSER_SocRngDiag/BSER_SocRngDiag/DiagCoord'
 * '<S3>'   : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm'
 * '<S4>'   : 'BSER_SocRngDiag/BSER_SocRngDiag/SocRngHiDiag'
 * '<S5>'   : 'BSER_SocRngDiag/BSER_SocRngDiag/SocRngLoDiag'
 * '<S6>'   : 'BSER_SocRngDiag/BSER_SocRngDiag/DiagCoord/Compare To Constant'
 * '<S7>'   : 'BSER_SocRngDiag/BSER_SocRngDiag/DiagCoord/Compare To Constant1'
 * '<S8>'   : 'BSER_SocRngDiag/BSER_SocRngDiag/DiagCoord/Compare To Constant2'
 * '<S9>'   : 'BSER_SocRngDiag/BSER_SocRngDiag/DiagCoord/Compare To Constant3'
 * '<S10>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck'
 * '<S11>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck1'
 * '<S12>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck2'
 * '<S13>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck3'
 * '<S14>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck/Bit Clear1'
 * '<S15>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck/Bit Clear2'
 * '<S16>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck/Bit Set'
 * '<S17>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck/Bit Set1'
 * '<S18>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck/Bit Set2'
 * '<S19>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck/Bit Set4'
 * '<S20>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck1/Bit Clear1'
 * '<S21>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck1/Bit Clear2'
 * '<S22>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck1/Bit Set'
 * '<S23>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck1/Bit Set1'
 * '<S24>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck1/Bit Set2'
 * '<S25>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck1/Bit Set4'
 * '<S26>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck2/Bit Clear1'
 * '<S27>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck2/Bit Clear2'
 * '<S28>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck2/Bit Set'
 * '<S29>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck2/Bit Set1'
 * '<S30>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck2/Bit Set2'
 * '<S31>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck2/Bit Set4'
 * '<S32>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck3/Bit Clear1'
 * '<S33>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck3/Bit Clear2'
 * '<S34>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck3/Bit Set'
 * '<S35>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck3/Bit Set1'
 * '<S36>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck3/Bit Set2'
 * '<S37>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/RptDsm/DSM_ReportCheck3/Bit Set4'
 * '<S38>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/SocRngHiDiag/CurrCond'
 * '<S39>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/SocRngHiDiag/TONV_10msTimeDebounce'
 * '<S40>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/SocRngHiDiag/TONV_10msTimeDebounce1'
 * '<S41>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/SocRngHiDiag/TONV_10msTimeDebounce2'
 * '<S42>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/SocRngHiDiag/CurrCond/Integrate'
 * '<S43>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/SocRngHiDiag/CurrCond/TONV_10msTimeDebounce2'
 * '<S44>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/SocRngLoDiag/CurrCond'
 * '<S45>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/SocRngLoDiag/TONV_10msTimeDebounce'
 * '<S46>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/SocRngLoDiag/TONV_10msTimeDebounce1'
 * '<S47>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/SocRngLoDiag/TONV_10msTimeDebounce2'
 * '<S48>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/SocRngLoDiag/CurrCond/Integrate'
 * '<S49>'  : 'BSER_SocRngDiag/BSER_SocRngDiag/SocRngLoDiag/CurrCond/TONV_10msTimeDebounce2'
 */
#endif                                 /* RTW_HEADER_BSER_SocRngDiag_h_ */

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
