/*
 * File: COMR_MsgChkSumDiag.h
 *
 * Code generated for Simulink model 'COMR_MsgChkSumDiag'.
 *
 * Model version                  : A1.0_0
 * Simulink Coder version         : 8.11 (R2016b) 25-Aug-2016
 * C/C++ source code generated on : Fri Nov 20 15:25:01 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_MsgChkSumDiag_h_
#define RTW_HEADER_COMR_MsgChkSumDiag_h_
#include <stddef.h>
#ifndef COMR_MsgChkSumDiag_COMMON_INCLUDES_
# define COMR_MsgChkSumDiag_COMMON_INCLUDES_
#include "rtwtypes.h"
#endif                                 /* COMR_MsgChkSumDiag_COMMON_INCLUDES_ */

#include "COMR_MsgChkSumDiag_types.h"

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

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

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

/* Block signals (auto storage) */
typedef struct {
  boolean_T Switch2;                   /* '<S8>/Switch2' */
  boolean_T Switch1;                   /* '<S8>/Switch1' */
  boolean_T Switch4;                   /* '<S8>/Switch4' */
  boolean_T Switch3;                   /* '<S8>/Switch3' */
} B_COMR_MsgChkSumDiag_T;

/* Block states (auto storage) for system '<Root>' */
typedef struct {
  real32_T Delay_DSTATE;               /* '<S4>/Delay' */
  uint8_T Delay3_DSTATE;               /* '<S45>/Delay3' */
  uint8_T Delay3_DSTATE_h;             /* '<S44>/Delay3' */
  uint8_T Delay3_DSTATE_p;             /* '<S43>/Delay3' */
  uint8_T Delay3_DSTATE_l;             /* '<S23>/Delay3' */
  uint8_T Delay3_DSTATE_c;             /* '<S22>/Delay3' */
  uint8_T Delay3_DSTATE_j;             /* '<S21>/Delay3' */
  uint8_T Delay3_DSTATE_n;             /* '<S11>/Delay3' */
  boolean_T Delay2_DSTATE;             /* '<S45>/Delay2' */
  boolean_T Delay2_DSTATE_m;           /* '<S44>/Delay2' */
  boolean_T Delay2_DSTATE_h;           /* '<S43>/Delay2' */
  boolean_T Delay2_DSTATE_e;           /* '<S23>/Delay2' */
  boolean_T Delay2_DSTATE_o;           /* '<S22>/Delay2' */
  boolean_T Delay2_DSTATE_l;           /* '<S21>/Delay2' */
  boolean_T Delay2_DSTATE_oa;          /* '<S11>/Delay2' */
  boolean_T MsgChkSumDiag_MODE;        /* '<S1>/MsgChkSumDiag' */
  boolean_T OBC_MODE;                  /* '<S3>/OBC' */
} DW_COMR_MsgChkSumDiag_T;

/* Block signals (auto storage) */
extern B_COMR_MsgChkSumDiag_T COMR_MsgChkSumDiag_B;

/* Block states (auto storage) */
extern DW_COMR_MsgChkSumDiag_T COMR_MsgChkSumDiag_DW;

/* Model entry point functions */
extern void COMR_MsgChkSumDiag_initialize(void);
extern void COMR_MsgChkSumDiag_step(void);

/* Exported data declaration */

/* Volatile memory section */
#define ASW1_OEM_START_SEC_DEFAULT_RAM1_CLEARED_UNSPECIFIED
#include "Asw1_OEM_MemMap.h"

/* Declaration for custom storage class: Volatile */
extern volatile uint8_T DFC_ChkSumMsg050Err_ASW;
extern volatile uint8_T DFC_ChkSumMsg2A3Err_ASW;
extern volatile uint8_T DFC_ChkSumMsg2A5Err_ASW;
extern volatile uint8_T DFC_ChkSumMsg2A7Err_ASW;
extern volatile uint8_T DFC_ChkSumMsg2E0Err_ASW;
extern volatile uint8_T DFC_ChkSumMsg2E1Err_ASW;
extern volatile uint8_T DFC_ChkSumMsg2EBErr_ASW;

#define ASW1_OEM_STOP_SEC_DEFAULT_RAM1_CLEARED_UNSPECIFIED
#include "Asw1_OEM_MemMap.h"
#define ASW1_OEM_START_SEC_DEFAULT_RAM1_CLEARED_UNSPECIFIED
#include "Asw1_OEM_MemMap.h"

/* Declaration for custom storage class: OutputSignal */
extern volatile boolean_T COMR_bChkSumMsg050Det;
extern volatile boolean_T COMR_bChkSumMsg050Heal;
extern volatile boolean_T COMR_bChkSumMsg2A3Det;
extern volatile boolean_T COMR_bChkSumMsg2A3Heal;
extern volatile boolean_T COMR_bChkSumMsg2E1Det;
extern volatile boolean_T COMR_bChkSumMsg2E1Heal;
extern volatile boolean_T COMR_bChkSumMsg2E6Det;
extern volatile boolean_T COMR_bChkSumMsg2E6Heal;

#define ASW1_OEM_STOP_SEC_DEFAULT_RAM1_CLEARED_UNSPECIFIED
#include "Asw1_OEM_MemMap.h"

/*-
 * 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_MsgChkSumDiag'
 * '<S1>'   : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag'
 * '<S2>'   : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/EnCond'
 * '<S3>'   : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag'
 * '<S4>'   : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/EnCond/TONV_10msTimeDebounce'
 * '<S5>'   : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/ABM050'
 * '<S6>'   : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/Compare To Constant'
 * '<S7>'   : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/Compare To Constant1'
 * '<S8>'   : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC'
 * '<S9>'   : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3'
 * '<S10>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/ABM050/Compare To Constant'
 * '<S11>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/ABM050/DSM_ReportCheck1'
 * '<S12>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/ABM050/DSM_ReportCheck1/Bit Clear1'
 * '<S13>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/ABM050/DSM_ReportCheck1/Bit Clear2'
 * '<S14>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/ABM050/DSM_ReportCheck1/Bit Set'
 * '<S15>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/ABM050/DSM_ReportCheck1/Bit Set1'
 * '<S16>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/ABM050/DSM_ReportCheck1/Bit Set2'
 * '<S17>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/ABM050/DSM_ReportCheck1/Bit Set4'
 * '<S18>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/Compare To Constant'
 * '<S19>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/Compare To Constant1'
 * '<S20>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/Compare To Constant2'
 * '<S21>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck'
 * '<S22>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck1'
 * '<S23>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck2'
 * '<S24>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck/Bit Clear1'
 * '<S25>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck/Bit Clear2'
 * '<S26>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck/Bit Set'
 * '<S27>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck/Bit Set1'
 * '<S28>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck/Bit Set2'
 * '<S29>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck/Bit Set4'
 * '<S30>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck1/Bit Clear1'
 * '<S31>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck1/Bit Clear2'
 * '<S32>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck1/Bit Set'
 * '<S33>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck1/Bit Set1'
 * '<S34>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck1/Bit Set2'
 * '<S35>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck1/Bit Set4'
 * '<S36>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck2/Bit Clear1'
 * '<S37>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck2/Bit Clear2'
 * '<S38>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck2/Bit Set'
 * '<S39>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck2/Bit Set1'
 * '<S40>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck2/Bit Set2'
 * '<S41>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/OBC/DSM_ReportCheck2/Bit Set4'
 * '<S42>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/Compare To Constant'
 * '<S43>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck'
 * '<S44>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck1'
 * '<S45>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck2'
 * '<S46>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck/Bit Clear1'
 * '<S47>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck/Bit Clear2'
 * '<S48>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck/Bit Set'
 * '<S49>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck/Bit Set1'
 * '<S50>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck/Bit Set2'
 * '<S51>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck/Bit Set4'
 * '<S52>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck1/Bit Clear1'
 * '<S53>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck1/Bit Clear2'
 * '<S54>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck1/Bit Set'
 * '<S55>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck1/Bit Set1'
 * '<S56>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck1/Bit Set2'
 * '<S57>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck1/Bit Set4'
 * '<S58>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck2/Bit Clear1'
 * '<S59>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck2/Bit Clear2'
 * '<S60>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck2/Bit Set'
 * '<S61>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck2/Bit Set1'
 * '<S62>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck2/Bit Set2'
 * '<S63>'  : 'COMR_MsgChkSumDiag/COMR_MsgChkSumDiag/MsgChkSumDiag/VCU2A3/DSM_ReportCheck2/Bit Set4'
 */
#endif                                 /* RTW_HEADER_COMR_MsgChkSumDiag_h_ */

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