/*
 * File: BSPR_BattTempGradtDiag.h
 *
 * Code generated for Simulink model 'BSPR_BattTempGradtDiag'.
 *
 * Model version                  : A1.1_0
 * Simulink Coder version         : 8.13 (R2017b) 24-Jul-2017
 * C/C++ source code generated on : Fri Oct  9 10:43:22 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_BSPR_BattTempGradtDiag_h_
#define RTW_HEADER_BSPR_BattTempGradtDiag_h_
#include <math.h>
#ifndef BSPR_BattTempGradtDiag_COMMON_INCLUDES_
# define BSPR_BattTempGradtDiag_COMMON_INCLUDES_
#include "rtwtypes.h"
#endif                                 /* BSPR_BattTempGradtDiag_COMMON_INCLUDES_ */

#include "BSPR_BattTempGradtDiag_types.h"

/* Includes for objects with custom storage classes. */
#include "BSPR_BattTempGradtDiagparameters.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 {
  real32_T BSPR_tCellTempSec_A_b[60];  /* '<S7>/GradtDiag_Cell' */
  real32_T BSPR_tCellTempSec60s_A_b[60];/* '<S7>/GradtDiag_Cell' */
  real32_T BSPR_cntCellTGradtDiff_A_i[60];/* '<S7>/GradtDiag_Cell' */
  real32_T BSPR_tBattTGradtDiff_A_n[60];/* '<S6>/GradtDiag' */
  real32_T BSPR_tBattTempSec_A_a[60];  /* '<S6>/GradtDiag' */
  real32_T BSPR_tBattTempSec60s_A_c[60];/* '<S6>/GradtDiag' */
  real32_T BSPR_cntBattTGradtDiff_A_n[60];/* '<S6>/GradtDiag' */
  uint16_T BSPR_cntCellGradtSum_e;     /* '<S7>/GradtDiag_Cell' */
  uint16_T BSPR_cntBattGradtSum_e;     /* '<S6>/GradtDiag' */
  boolean_T BSPR_tCellTGradtDiff_A_n[60];/* '<S7>/GradtDiag_Cell' */
  boolean_T BSPR_bCellTGradtErrDet_m;  /* '<S7>/GradtDiag_Cell' */
  boolean_T BSPR_bCellTGradtErrHeal_d; /* '<S7>/GradtDiag_Cell' */
  boolean_T BSPR_bCellTGradtDiff_A_k[60];/* '<S7>/GradtDiag_Cell' */
  boolean_T BSPR_bBattTGradtErrDet_a;  /* '<S6>/GradtDiag' */
  boolean_T BSPR_bBattTGradtErrHeal_n; /* '<S6>/GradtDiag' */
  boolean_T BSPR_bBattTGradtDiff_A_d[60];/* '<S6>/GradtDiag' */
} B_BSPR_BattTempGradtDiag_T;

/* Block states (auto storage) for system '<Root>' */
typedef struct {
  uint8_T is_active_c1_BSPR_BattTempGradt;/* '<S7>/GradtDiag_Cell' */
  uint8_T is_c1_BSPR_BattTempGradtDiag;/* '<S7>/GradtDiag_Cell' */
  uint8_T i;                           /* '<S7>/GradtDiag_Cell' */
  uint8_T j;                           /* '<S7>/GradtDiag_Cell' */
  uint8_T is_active_c3_BSPR_BattTempGradt;/* '<S6>/GradtDiag' */
  uint8_T is_c3_BSPR_BattTempGradtDiag;/* '<S6>/GradtDiag' */
  uint8_T i_e;                         /* '<S6>/GradtDiag' */
  uint8_T j_a;                         /* '<S6>/GradtDiag' */
  boolean_T GradtDiag_Cell_MODE;       /* '<S1>/GradtDiag_Cell' */
  boolean_T GradtDiag_MODE;            /* '<S1>/GradtDiag' */
} DW_BSPR_BattTempGradtDiag_T;

/* Block signals (auto storage) */
extern B_BSPR_BattTempGradtDiag_T BSPR_BattTempGradtDiag_B;

/* Block states (auto storage) */
extern DW_BSPR_BattTempGradtDiag_T BSPR_BattTempGradtDiag_DW;

/* Model entry point functions */
extern void BSPR_BattTempGradtDiag_initialize(void);
extern void BSPR_BattTempGradtDiag_step(void);

/* Exported data declaration */
#define ASW1_OEM_START_SEC_DEFAULT_RAM2_CLEARED_UNSPECIFIED
#include "Asw1_OEM_MemMap.h"

/* Declaration for custom storage class: OutputSignal */
extern volatile boolean_T BSPR_bBattTGradtDiff_A[60];
extern volatile boolean_T BSPR_bBattTGradtErrDet;
extern volatile boolean_T BSPR_bBattTGradtErrHeal;
extern volatile boolean_T BSPR_bCellTGradtDiff_A[60];
extern volatile boolean_T BSPR_bCellTGradtErrDet;
extern volatile boolean_T BSPR_bCellTGradtErrHeal;
extern volatile uint16_T BSPR_cntBattGradtSum;
extern volatile real32_T BSPR_cntBattTGradtDiff_A[60];
extern volatile uint16_T BSPR_cntCellGradtSum;
extern volatile real32_T BSPR_cntCellTGradtDiff_A[60];
extern volatile boolean_T BSPR_flgBattTGradtEna;
extern volatile real32_T BSPR_tBattTGradtDiff_A[60];
extern volatile real32_T BSPR_tBattTempSec60s_A[60];
extern volatile real32_T BSPR_tBattTempSec_A[60];
extern volatile boolean_T BSPR_tCellTGradtDiff_A[60];
extern volatile real32_T BSPR_tCellTempSec60s_A[60];
extern volatile real32_T BSPR_tCellTempSec_A[60];

#define ASW1_OEM_STOP_SEC_DEFAULT_RAM2_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>' : 'BSPR_BattTempGradtDiag'
 * '<S1>'   : 'BSPR_BattTempGradtDiag/GradtDiag'
 * '<S2>'   : 'BSPR_BattTempGradtDiag/GradtDiag/Compare To Constant1'
 * '<S3>'   : 'BSPR_BattTempGradtDiag/GradtDiag/Compare To Zero'
 * '<S4>'   : 'BSPR_BattTempGradtDiag/GradtDiag/DSM_GetSFCErD'
 * '<S5>'   : 'BSPR_BattTempGradtDiag/GradtDiag/DSM_GetSFCErD1'
 * '<S6>'   : 'BSPR_BattTempGradtDiag/GradtDiag/GradtDiag'
 * '<S7>'   : 'BSPR_BattTempGradtDiag/GradtDiag/GradtDiag_Cell'
 * '<S8>'   : 'BSPR_BattTempGradtDiag/GradtDiag/DSM_GetSFCErD/DFC_IsoChkLv1_1_compare'
 * '<S9>'   : 'BSPR_BattTempGradtDiag/GradtDiag/DSM_GetSFCErD1/DFC_IsoChkLv1_1_compare'
 * '<S10>'  : 'BSPR_BattTempGradtDiag/GradtDiag/GradtDiag/Compare To Constant'
 * '<S11>'  : 'BSPR_BattTempGradtDiag/GradtDiag/GradtDiag/GradtDiag'
 * '<S12>'  : 'BSPR_BattTempGradtDiag/GradtDiag/GradtDiag/GradtDiag/sum_calc'
 * '<S13>'  : 'BSPR_BattTempGradtDiag/GradtDiag/GradtDiag_Cell/Compare To Constant'
 * '<S14>'  : 'BSPR_BattTempGradtDiag/GradtDiag/GradtDiag_Cell/GradtDiag_Cell'
 * '<S15>'  : 'BSPR_BattTempGradtDiag/GradtDiag/GradtDiag_Cell/GradtDiag_Cell/sum_calc'
 */
#endif                                 /* RTW_HEADER_BSPR_BattTempGradtDiag_h_ */

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