/*
 * File: BSPR_RTE.h
 *
 * Code generated for Simulink model 'BSPR_RTE'.
 *
 * Model version                  : A1.0_0
 * Simulink Coder version         : 8.11 (R2016b) 25-Aug-2016
 * C/C++ source code generated on : Tue Nov 10 16:47:36 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_RTE_h_
#define RTW_HEADER_BSPR_RTE_h_
#include <math.h>
#include <stddef.h>
#ifndef BSPR_RTE_COMMON_INCLUDES_
# define BSPR_RTE_COMMON_INCLUDES_
#include "rtwtypes.h"
#endif                                 /* BSPR_RTE_COMMON_INCLUDES_ */

#include "BSPR_RTE_types.h"

/* Includes for objects with custom storage classes. */
#include "BSPR_RTE_parameters.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;               /* '<S19>/Delay' */
  real32_T Delay_DSTATE_a;             /* '<S18>/Delay' */
} DW_BSPR_RTE_T;

/* Block states (auto storage) */
extern DW_BSPR_RTE_T BSPR_RTE_DW;

/* Model entry point functions */
extern void BSPR_RTE_initialize(void);
extern void BSPR_RTE_step(void);

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

/* Declaration for custom storage class: OutputSignal */
extern volatile boolean_T BSPR_bDCWkUp;
extern volatile real32_T BSPR_dcCrashPwmDuty;
extern volatile real32_T BSPR_dcCrashPwmDutyOutDet;
extern volatile real32_T BSPR_dcHvilPwmDutyInp;
extern volatile real32_T BSPR_dcHvilPwmDutyOutDet;
extern volatile real32_T BSPR_fCrashPwmFrq;
extern volatile real32_T BSPR_fCrashPwmFrqOutDet;
extern volatile real32_T BSPR_fHvilPwmFrq;
extern volatile real32_T BSPR_fHvilPwmFrqOutDet;
extern volatile real32_T BSPR_iAdCurr;
extern volatile real32_T BSPR_iCabSplyCurr;
extern volatile real32_T BSPR_iDcChNegCtrHsdCurr;
extern volatile real32_T BSPR_iDcChPosCtrHsdCurr;
extern volatile real32_T BSPR_iMNegCtrHsdCurr;
extern volatile real32_T BSPR_iMPosCtrHsdCurr;
extern volatile uint8_T BSPR_stBmsSelfChk;
extern volatile uint8_T BSPR_stCrashInpt;
extern volatile uint8_T BSPR_stCrashOutpFdbk;
extern volatile uint8_T BSPR_stHVILInp;
extern volatile uint8_T BSPR_stHVILOutpFdbk;
extern volatile uint8_T BSPR_stNvmRunning;
extern volatile uint8_T BSPR_stNvmShutDown;
extern volatile real32_T BSPR_uCC2Volt;
extern volatile real32_T BSPR_uCCVolt;
extern volatile real32_T BSPR_uDcChNegCtrLsdVolt;
extern volatile real32_T BSPR_uDcChPosCtrLsdVolt;
extern volatile real32_T BSPR_uDchrgNegVolt;
extern volatile real32_T BSPR_uHwCurr;
extern volatile real32_T BSPR_uHwSplyVolt;
extern volatile real32_T BSPR_uIsoPosVolt;
extern volatile real32_T BSPR_uKl30;
extern volatile real32_T BSPR_uKl30c;
extern volatile real32_T BSPR_uMNegCtrHsdVolt;
extern volatile real32_T BSPR_uMPosCtrHsdVolt;
extern volatile real32_T BSPR_uNegVolt;
extern volatile real32_T BSPR_uReservedSig1;
extern volatile real32_T BSPR_uReservedSig2;
extern volatile real32_T BSPR_uReservedSig3;
extern volatile real32_T BSPR_uReservedSig4;
extern volatile real32_T BSPR_uReservedSig5;
extern volatile real32_T BSPR_uReservedSig6;
extern volatile real32_T BSPR_uReservedSig7;
extern volatile real32_T BSPR_uReservedSig8;
extern volatile real32_T COMR_iBattCurr;
extern volatile real32_T COMR_uBattVolt;
extern volatile real32_T COMR_uDChrgVolt;
extern volatile real32_T COMR_uPackVolt;

#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>' : 'BSPR_RTE'
 * '<S1>'   : 'BSPR_RTE/BSP'
 * '<S2>'   : 'BSPR_RTE/BSP1'
 * '<S3>'   : 'BSPR_RTE/BSPR'
 * '<S4>'   : 'BSPR_RTE/BSPR_CMC '
 * '<S5>'   : 'BSPR_RTE/BSPR_Current'
 * '<S6>'   : 'BSPR_RTE/BSPR_Volt'
 * '<S7>'   : 'BSPR_RTE/BSPR_Volt1'
 * '<S8>'   : 'BSPR_RTE/BSPR_WakUp'
 * '<S9>'   : 'BSPR_RTE/BSPR_uReservedSig'
 * '<S10>'  : 'BSPR_RTE/BSP/Compare To Constant'
 * '<S11>'  : 'BSPR_RTE/BSP/Compare To Constant1'
 * '<S12>'  : 'BSPR_RTE/BSPR_Current/MATLAB Function'
 * '<S13>'  : 'BSPR_RTE/BSPR_Current/MATLAB Function1'
 * '<S14>'  : 'BSPR_RTE/BSPR_Current/MATLAB Function2'
 * '<S15>'  : 'BSPR_RTE/BSPR_Current/MATLAB Function3'
 * '<S16>'  : 'BSPR_RTE/BSPR_Current/MATLAB Function4'
 * '<S17>'  : 'BSPR_RTE/BSPR_Current/MATLAB Function5'
 * '<S18>'  : 'BSPR_RTE/BSPR_WakUp/TONV_TimeDebounce1'
 * '<S19>'  : 'BSPR_RTE/BSPR_WakUp/TONV_TimeDebounce4'
 */
#endif                                 /* RTW_HEADER_BSPR_RTE_h_ */

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