/*
 * File: BSER_SocJmpDiag.h
 *
 * Code generated for Simulink model 'BSER_SocJmpDiag'.
 *
 * Model version                  : 1.1451F
 * Simulink Coder version         : 8.11F (R2016b) 25-Aug-2016
 * C/C++ source code generated on : Mon Apr 13 10:56:45 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_SocJmpDiag_h_
#define RTW_HEADER_BSER_SocJmpDiag_h_
#include <math.h>
#include <stddef.h>
#ifndef BSER_SocJmpDiag_COMMON_INCLUDES_
# define BSER_SocJmpDiag_COMMON_INCLUDES_
#include "rtwtypes.h"
#endif                                 /* BSER_SocJmpDiag_COMMON_INCLUDES_ */

#include "BSER_SocJmpDiag_types.h"

/* Includes for objects with custom storage classes. */
#include "BSER_SocJmpDiagParameter.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 Delay1_DSTATE;              /* '<S5>/Delay1' */
  real32_T Delay_DSTATE;               /* '<S16>/Delay' */
  real32_T Delay_DSTATE_j;             /* '<S15>/Delay' */
  real32_T Delay_DSTATE_h;             /* '<S7>/Delay' */
  real32_T Delay_DSTATE_p;             /* '<S6>/Delay' */
  uint8_T Delay3_DSTATE;               /* '<S5>/Delay3' */
  uint8_T Delay3_DSTATE_m;             /* '<S8>/Delay3' */
  boolean_T Delay2_DSTATE;             /* '<S5>/Delay2' */
  boolean_T Delay2_DSTATE_m;           /* '<S8>/Delay2' */
  boolean_T SocSglCal_MODE;            /* '<S1>/SocSglCal' */
  boolean_T BSER_SocValRst_MODE;       /* '<S1>/BSER_SocValRst' */
} DW_BSER_SocJmpDiag_T;

/* Block states (auto storage) */
extern DW_BSER_SocJmpDiag_T BSER_SocJmpDiag_DW;

/* Model entry point functions */
extern void BSER_SocJmpDiag_initialize(void);
extern void BSER_SocJmpDiag_step(void);

/* Exported data declaration */

/* Volatile memory section */
 
 

/* Declaration for custom storage class: Volatile */
extern volatile uint8_T DFC_SocValJmp_ASW; /* Min fault of battery soc jump */

 
 

/* Declaration for custom storage class: OutputSignal */
extern volatile real32_T BSER_bBattSocJmpDta;/* socdisplay value after soc jump */
extern volatile boolean_T BSER_bBattSocJmpEn;/* Fault detect enable */
extern volatile boolean_T BSER_bBattSocJmpFaultDet;/* Fault detect flag for soc jump fault */
extern volatile boolean_T BSER_bBattSocJmpFaultHeal;/* Fault healing flag for soc jump fault */
extern volatile real32_T BSER_rSocDsplCont;/* socdisplay value continuous */
extern volatile real32_T BSER_rSocDsplPer;/* socdisplay value period */

/*-
 * 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_SocJmpDiag'
 * '<S1>'   : 'BSER_SocJmpDiag/BSER_SocJmpDiag'
 * '<S2>'   : 'BSER_SocJmpDiag/BSER_SocJmpDiag/BSER_SocValRst'
 * '<S3>'   : 'BSER_SocJmpDiag/BSER_SocJmpDiag/DsmRpt'
 * '<S4>'   : 'BSER_SocJmpDiag/BSER_SocJmpDiag/SocJmpEn'
 * '<S5>'   : 'BSER_SocJmpDiag/BSER_SocJmpDiag/SocSglCal'
 * '<S6>'   : 'BSER_SocJmpDiag/BSER_SocJmpDiag/BSER_SocValRst/TONV_10msTimeDebounce'
 * '<S7>'   : 'BSER_SocJmpDiag/BSER_SocJmpDiag/BSER_SocValRst/TONV_10msTimeDebounce1'
 * '<S8>'   : 'BSER_SocJmpDiag/BSER_SocJmpDiag/DsmRpt/DSM_ReportCheck4'
 * '<S9>'   : 'BSER_SocJmpDiag/BSER_SocJmpDiag/DsmRpt/DSM_ReportCheck4/Bit Clear1'
 * '<S10>'  : 'BSER_SocJmpDiag/BSER_SocJmpDiag/DsmRpt/DSM_ReportCheck4/Bit Clear2'
 * '<S11>'  : 'BSER_SocJmpDiag/BSER_SocJmpDiag/DsmRpt/DSM_ReportCheck4/Bit Set'
 * '<S12>'  : 'BSER_SocJmpDiag/BSER_SocJmpDiag/DsmRpt/DSM_ReportCheck4/Bit Set1'
 * '<S13>'  : 'BSER_SocJmpDiag/BSER_SocJmpDiag/DsmRpt/DSM_ReportCheck4/Bit Set2'
 * '<S14>'  : 'BSER_SocJmpDiag/BSER_SocJmpDiag/DsmRpt/DSM_ReportCheck4/Bit Set4'
 * '<S15>'  : 'BSER_SocJmpDiag/BSER_SocJmpDiag/SocJmpEn/TONV_10msTimeDebounce3'
 * '<S16>'  : 'BSER_SocJmpDiag/BSER_SocJmpDiag/SocSglCal/TONV_10msTimeDebounce2'
 */
#endif                                 /* RTW_HEADER_BSER_SocJmpDiag_h_ */

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