/*
 * File: BSER_CellBalcCtl_private.h
 *
 * Code generated for Simulink model 'BSER_CellBalcCtl'.
 *
 * Model version                  : D6_0
 * Simulink Coder version         : 8.11 (R2016b) 25-Aug-2016
 * C/C++ source code generated on : Tue Dec 15 10:14:15 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_CellBalcCtl_private_h_
#define RTW_HEADER_BSER_CellBalcCtl_private_h_
#include "rtwtypes.h"
#include "BSER_CellBalcCtl.h"

extern void BSER_CellBa_BSER_CellBalInitCal(boolean_T rty_BSER_bCellBalInit_A[96]);
extern void BSER_CellBa_BSER_CellBalWaitCal(boolean_T rty_BSER_bCellBalWait_A[96]);
extern void BSER__BSER_CellBalSortCal_Reset(B_BSER_CellBalSortCal_BSER_Ce_T
  *localB, DW_BSER_CellBalSortCal_BSER_C_T *localDW);
extern void BSER_CellBa_BSER_CellBalSortCal(const real32_T rtu_COMR_uCellVolt_A
  [96], real32_T rtu_COMR_uMinCellVolt, const boolean_T rtu_BSER_bCmuBalEna_A[8],
  const real32_T rtu_BSER_tCmcBordTemp_A[8], const real32_T
  rtu_BSER_tCmcAFETemp_A[8], boolean_T rty_BSER_bCellBalEna_A[96],
  B_BSER_CellBalSortCal_BSER_Ce_T *localB, DW_BSER_CellBalSortCal_BSER_C_T
  *localDW);
extern void CBCBMSDebounceStartZero1_Reset(DW_CBCBMSDebounceStartZero1_B_T
  *localDW);
extern void BSER_C_CBCBMSDebounceStartZero1(boolean_T rtu_Signal, real32_T
  rtu_Hearl2Fault, real32_T rtu_FaultStep, real32_T rtu_Fault2Heal, real32_T
  rtu_HealStep, B_CBCBMSDebounceStartZero1_BS_T *localB,
  DW_CBCBMSDebounceStartZero1_B_T *localDW);
extern void BSER_CellB_BSER_CellBalCtl_Init(void);
extern void BSER_CellBalcCt_BSER_CellBalCtl(void);

/* Exported data declaration */

/* Declaration for custom storage class: InputSignal */
extern volatile uint8_T BCMR_stAChrgMode;/* BCMR_AcChrg */
extern volatile uint8_T BCMR_stDChrgMode;
extern volatile uint8_T BMCR_stBmsModeCtrl;/* BMCR_ModMag */
extern volatile real32_T BSPR_iBattCurr;/* BSPR_BattCurrCoord */
extern volatile real32_T BSPR_tCellTempMax;/* BSPR_BattTempCoord */
extern volatile real32_T BSPR_tCellTempMin;/* BSPR_BattTempCoord */
extern volatile uint16_T BSW_stSysWkUpSrc;/* bit0 = T15 wakeup(PIN 52)
                                             bit1 = I_S_Wake1(PIN 54)
                                             bit2 = I_S_Wake2(PIN 35)
                                             bit3 = Charger wakeup(PIN 33)
                                             bit5 = CAN1 wakeup
                                             bit6 = Timer wakeup */
extern volatile boolean_T COMR_bLeadAcidChgHvOn;
extern volatile uint8_T COMR_stBalCirOpenFlt_A[8];
extern volatile uint8_T COMR_stBalCirShortFlt_A[8];
extern volatile uint8_T COMR_stVcuFalutLvl;
extern volatile real32_T COMR_uCellVolt_A[96];
extern volatile real32_T COMR_uMaxCellVolt;
extern volatile real32_T COMR_uMinCellVolt;
extern volatile real32_T COMR_uPcbTemp_A[16];
extern volatile uint8_T DSMR_stFaultRank;/* DSMR_FaultLvlCalc */
extern volatile uint16_T GaBSW_VAFETmp_numb[8];
extern volatile uint8_T UDSR_bBalReqEx[96];

#endif                                 /* RTW_HEADER_BSER_CellBalcCtl_private_h_ */

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