/*
 * File: COMR_Swadp.h
 *
 * Code generated for Simulink model 'COMR_Swadp'.
 *
 * Model version                  : A2.1_0
 * Simulink Coder version         : 8.11 (R2016b) 25-Aug-2016
 * C/C++ source code generated on : Thu Sep 24 10:20:59 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_COMR_Swadp_h_
#define RTW_HEADER_COMR_Swadp_h_
#include <stddef.h>
#ifndef COMR_Swadp_COMMON_INCLUDES_
# define COMR_Swadp_COMMON_INCLUDES_
#include "rtwtypes.h"
#endif                                 /* COMR_Swadp_COMMON_INCLUDES_ */

#include "COMR_Swadp_types.h"

/* Includes for objects with custom storage classes. */
#include "COMR_Swadp_parameter.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;               /* '<S70>/Delay' */
  real32_T Delay_DSTATE_h;             /* '<S69>/Delay' */
  real32_T Delay_DSTATE_k;             /* '<S58>/Delay' */
  real32_T Delay_DSTATE_b;             /* '<S57>/Delay' */
  real32_T COMR_tiHvCnntStCalc;        /* '<S1>/HvCnttCalc' */
  uint8_T Delay3_DSTATE;               /* '<S68>/Delay3' */
  uint8_T Delay3_DSTATE_i;             /* '<S56>/Delay3' */
  boolean_T Delay2_DSTATE;             /* '<Root>/Delay2' */
  boolean_T Delay1_DSTATE;             /* '<Root>/Delay1' */
  boolean_T Delay2_DSTATE_k;           /* '<S68>/Delay2' */
  boolean_T Delay2_DSTATE_o;           /* '<S56>/Delay2' */
  uint8_T Counter1_Count;              /* '<Root>/Counter1' */
  uint8_T Counter_Count;               /* '<Root>/Counter' */
  uint8_T is_active_c2_COMR_Swadp;     /* '<S6>/3E1' */
  uint8_T is_Cell_Volt;                /* '<S6>/3E1' */
  uint8_T j;                           /* '<S6>/3E1' */
  uint8_T is_active_c1_COMR_Swadp;     /* '<S5>/3E0' */
  uint8_T is_Cell_Volt_l;              /* '<S5>/3E0' */
  uint8_T i;                           /* '<S5>/3E0' */
  uint8_T is_active_c4_COMR_Swadp;     /* '<S1>/HvCnttCalc' */
  uint8_T is_c4_COMR_Swadp;            /* '<S1>/HvCnttCalc' */
} DW_COMR_Swadp_T;

/* Block states (auto storage) */
extern DW_COMR_Swadp_T COMR_Swadp_DW;

/* Model entry point functions */
extern void COMR_Swadp_initialize(void);
extern void COMR_Swadp_step(void);

/* Exported data declaration */

/* Volatile memory section */
/* Declaration for custom storage class: Volatile */
extern volatile uint8_T DFC_638LinCommErr_ASW;
extern volatile uint8_T DFC_EepReadErr_ASW;

/* Declaration for custom storage class: OutputSignal */
extern volatile uint8_T BCCR_stDcChNegCtrStatus;
extern volatile uint8_T BCCR_stDcChPosCtrStatus;
extern volatile uint8_T BCCR_stHVConnSt;
extern volatile uint8_T BCCR_stMNegChCtrStatus;
extern volatile uint8_T BCCR_stMPosCtrStatus;
extern volatile uint8_T BCCR_stPreChCtrStatus;
extern volatile boolean_T BCMR_bCC2Fault;
extern volatile boolean_T BCMR_bChrgFul;
extern volatile real32_T BCMR_tiChrgRemTime;
extern volatile boolean_T BEPR_bKl30VoltFault;
extern volatile boolean_T BEPR_bKl30VoltHiFault;
extern volatile boolean_T BEPR_bKl30VoltLoFault;
extern volatile boolean_T BMS_TempValueWarning;
extern volatile boolean_T BSER_bCellCnstFault;
extern volatile boolean_T BSER_bCellOvrVoltFault;
extern volatile boolean_T BSER_bCellUndrVoltFault;
extern volatile boolean_T BSER_bSocHiFault;
extern volatile boolean_T BSER_bSocLoFault;
extern volatile boolean_T BSPR_bBattOvrTempFault;
extern volatile boolean_T BSPR_bBattUndrTempFault;
extern volatile uint8_T BSPR_cntCellSer;
extern volatile uint8_T BSPR_cntCellTemp;
extern volatile boolean_T BSPR_flgGwAbmVld;
extern volatile real32_T BSPR_iBattCurr_CAN;
extern volatile real32_T COMR_ahCapacity;
extern volatile boolean_T COMR_b638LinComErrDet;
extern volatile boolean_T COMR_b638LinComErrHeal;
extern volatile boolean_T COMR_bCmuComBoff;
extern volatile boolean_T COMR_bCmuComTOut;
extern volatile boolean_T COMR_bDChrgComBoff;
extern volatile boolean_T COMR_bEvComBoff;
extern volatile boolean_T COMR_bObcComTOut;
extern volatile boolean_T COMR_bVcuComTOut;
extern volatile uint8_T COMR_cntCellBattSnsrNum;
extern volatile boolean_T COMR_flgBmsSlp;
extern volatile real32_T COMR_tCellBattTempRaw_A[96];
extern volatile real32_T COMR_tCellBattTemp_A[96];
extern volatile real32_T COMR_tCellTempA;
extern volatile real32_T COMR_tCellTempB;
extern volatile real32_T COMR_tCellTempC;
extern volatile real32_T COMR_tCellTempD;
extern volatile real32_T COMR_tCellTempE;
extern volatile real32_T COMR_tCellTempF;
extern volatile real32_T COMR_tCellTempG;
extern volatile real32_T COMR_uCellVoltA;
extern volatile real32_T COMR_uCellVoltB;
extern volatile real32_T COMR_uCellVoltC;
extern volatile real32_T COMR_uCellVoltD;
extern volatile real32_T COMR_uIsoVoltNeg;
extern volatile real32_T COMR_uIsoVoltPos;
extern volatile real32_T COMR_uLoPwrSply;
extern volatile real32_T COMR_uMaxCellVolt;
extern volatile real32_T COMR_uMinCellVolt;
extern volatile boolean_T HVSR_bCrashFault;
extern volatile boolean_T HVSR_bHvilInpScb;
extern volatile boolean_T HVSR_bHvilOl;
extern volatile boolean_T HVSR_bHvilScg;
extern volatile uint8_T HVSR_bIsoFault;
extern volatile boolean_T HVSR_bSrvLmp;
extern volatile boolean_T HVSR_bWarnLmp;

/*-
 * 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>' : 'COMR_Swadp'
 * '<S1>'   : 'COMR_Swadp/2C2'
 * '<S2>'   : 'COMR_Swadp/2C8'
 * '<S3>'   : 'COMR_Swadp/2CE'
 * '<S4>'   : 'COMR_Swadp/2CF'
 * '<S5>'   : 'COMR_Swadp/3E0'
 * '<S6>'   : 'COMR_Swadp/3E1'
 * '<S7>'   : 'COMR_Swadp/615'
 * '<S8>'   : 'COMR_Swadp/616'
 * '<S9>'   : 'COMR_Swadp/638_LinErr'
 * '<S10>'  : 'COMR_Swadp/ABM'
 * '<S11>'  : 'COMR_Swadp/Ah'
 * '<S12>'  : 'COMR_Swadp/Eep_ReadErr'
 * '<S13>'  : 'COMR_Swadp/2C2/HvCnttCalc'
 * '<S14>'  : 'COMR_Swadp/2C8/Compare To Zero'
 * '<S15>'  : 'COMR_Swadp/2C8/Compare To Zero1'
 * '<S16>'  : 'COMR_Swadp/2C8/Compare To Zero2'
 * '<S17>'  : 'COMR_Swadp/2CE/Compare To Constant'
 * '<S18>'  : 'COMR_Swadp/2CE/Compare To Constant1'
 * '<S19>'  : 'COMR_Swadp/2CE/Compare To Constant10'
 * '<S20>'  : 'COMR_Swadp/2CE/Compare To Constant2'
 * '<S21>'  : 'COMR_Swadp/2CE/Compare To Constant3'
 * '<S22>'  : 'COMR_Swadp/2CE/Compare To Constant4'
 * '<S23>'  : 'COMR_Swadp/2CE/Compare To Constant5'
 * '<S24>'  : 'COMR_Swadp/2CE/Compare To Constant6'
 * '<S25>'  : 'COMR_Swadp/2CE/Compare To Constant7'
 * '<S26>'  : 'COMR_Swadp/2CE/Compare To Constant8'
 * '<S27>'  : 'COMR_Swadp/2CE/Compare To Constant9'
 * '<S28>'  : 'COMR_Swadp/2CF/Compare To Constant1'
 * '<S29>'  : 'COMR_Swadp/2CF/Compare To Constant2'
 * '<S30>'  : 'COMR_Swadp/2CF/Compare To Constant3'
 * '<S31>'  : 'COMR_Swadp/2CF/Compare To Constant4'
 * '<S32>'  : 'COMR_Swadp/2CF/Compare To Constant5'
 * '<S33>'  : 'COMR_Swadp/2CF/Compare To Constant6'
 * '<S34>'  : 'COMR_Swadp/2CF/Compare To Constant7'
 * '<S35>'  : 'COMR_Swadp/2CF/Compare To Constant8'
 * '<S36>'  : 'COMR_Swadp/2CF/Compare To Constant9'
 * '<S37>'  : 'COMR_Swadp/3E0/3E0'
 * '<S38>'  : 'COMR_Swadp/3E1/3E1'
 * '<S39>'  : 'COMR_Swadp/615/Compare To Constant1'
 * '<S40>'  : 'COMR_Swadp/615/Compare To Constant11'
 * '<S41>'  : 'COMR_Swadp/615/Compare To Constant12'
 * '<S42>'  : 'COMR_Swadp/615/Compare To Constant13'
 * '<S43>'  : 'COMR_Swadp/615/Compare To Constant14'
 * '<S44>'  : 'COMR_Swadp/615/Compare To Constant15'
 * '<S45>'  : 'COMR_Swadp/615/Compare To Constant2'
 * '<S46>'  : 'COMR_Swadp/615/Compare To Constant3'
 * '<S47>'  : 'COMR_Swadp/615/Compare To Constant4'
 * '<S48>'  : 'COMR_Swadp/615/Compare To Constant5'
 * '<S49>'  : 'COMR_Swadp/615/Compare To Constant6'
 * '<S50>'  : 'COMR_Swadp/615/Compare To Constant7'
 * '<S51>'  : 'COMR_Swadp/615/Compare To Constant8'
 * '<S52>'  : 'COMR_Swadp/615/Compare To Constant9'
 * '<S53>'  : 'COMR_Swadp/616/Compare To Constant1'
 * '<S54>'  : 'COMR_Swadp/616/Compare To Constant2'
 * '<S55>'  : 'COMR_Swadp/616/Compare To Constant3'
 * '<S56>'  : 'COMR_Swadp/638_LinErr/DSM_ReportCheck3'
 * '<S57>'  : 'COMR_Swadp/638_LinErr/TONV_10msTimeDebounce1'
 * '<S58>'  : 'COMR_Swadp/638_LinErr/TONV_10msTimeDebounce2'
 * '<S59>'  : 'COMR_Swadp/638_LinErr/DSM_ReportCheck3/Bit Clear1'
 * '<S60>'  : 'COMR_Swadp/638_LinErr/DSM_ReportCheck3/Bit Clear2'
 * '<S61>'  : 'COMR_Swadp/638_LinErr/DSM_ReportCheck3/Bit Set'
 * '<S62>'  : 'COMR_Swadp/638_LinErr/DSM_ReportCheck3/Bit Set1'
 * '<S63>'  : 'COMR_Swadp/638_LinErr/DSM_ReportCheck3/Bit Set2'
 * '<S64>'  : 'COMR_Swadp/638_LinErr/DSM_ReportCheck3/Bit Set4'
 * '<S65>'  : 'COMR_Swadp/ABM/Compare To Constant1'
 * '<S66>'  : 'COMR_Swadp/ABM/Compare To Constant2'
 * '<S67>'  : 'COMR_Swadp/Eep_ReadErr/Compare To Constant'
 * '<S68>'  : 'COMR_Swadp/Eep_ReadErr/DSM_ReportCheck'
 * '<S69>'  : 'COMR_Swadp/Eep_ReadErr/TONV_10msTimeDebounce1'
 * '<S70>'  : 'COMR_Swadp/Eep_ReadErr/TONV_10msTimeDebounce2'
 * '<S71>'  : 'COMR_Swadp/Eep_ReadErr/DSM_ReportCheck/Bit Clear1'
 * '<S72>'  : 'COMR_Swadp/Eep_ReadErr/DSM_ReportCheck/Bit Clear2'
 * '<S73>'  : 'COMR_Swadp/Eep_ReadErr/DSM_ReportCheck/Bit Set'
 * '<S74>'  : 'COMR_Swadp/Eep_ReadErr/DSM_ReportCheck/Bit Set1'
 * '<S75>'  : 'COMR_Swadp/Eep_ReadErr/DSM_ReportCheck/Bit Set2'
 * '<S76>'  : 'COMR_Swadp/Eep_ReadErr/DSM_ReportCheck/Bit Set4'
 */
#endif                                 /* RTW_HEADER_COMR_Swadp_h_ */

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