/*
 * File: BCMR_DChrgParaCalc_private.h
 *
 * Code generated for Simulink model 'BCMR_DChrgParaCalc'.
 *
 * Model version                  : 1.703
 * Simulink Coder version         : 8.11 (R2016b) 25-Aug-2016
 * C/C++ source code generated on : Fri Aug 27 14:36:36 2021
 *
 * 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_BCMR_DChrgParaCalc_private_h_
#define RTW_HEADER_BCMR_DChrgParaCalc_private_h_
#include "rtwtypes.h"
#include "zero_crossing_types.h"
#include "BCMR_DChrgParaCalc.h"

extern const uint32_T rtCP_pooled_RKzlJNFV2qcn[2];

#define rtCP_DcChrgCurrAbnorm3_maxIndex rtCP_pooled_RKzlJNFV2qcn /* Computed Parameter: rtCP_DcChrgCurrAbnorm3_maxIndex
                                                                  * Referenced by: '<S20>/DcChrgCurrAbnorm3'
                                                                  */
#define rtCP_DcChrgCurrAbnorm2_maxIndex rtCP_pooled_RKzlJNFV2qcn /* Computed Parameter: rtCP_DcChrgCurrAbnorm2_maxIndex
                                                                  * Referenced by: '<S20>/DcChrgCurrAbnorm2'
                                                                  */
#define rtCP_DcChrgCurrAbnorm1_maxIndex rtCP_pooled_RKzlJNFV2qcn /* Computed Parameter: rtCP_DcChrgCurrAbnorm1_maxIndex
                                                                  * Referenced by: '<S20>/DcChrgCurrAbnorm1'
                                                                  */
#define rtCP_DcChrgCurrAbnorm_maxIndex rtCP_pooled_RKzlJNFV2qcn  /* Computed Parameter: rtCP_DcChrgCurrAbnorm_maxIndex
                                                                  * Referenced by: '<S20>/DcChrgCurrAbnorm'
                                                                  */

extern void BCMR_DChrgParaCalc_HoldOn_Reset(B_HoldOn_BCMR_DChrgParaCalc_T
  *localB, DW_HoldOn_BCMR_DChrgParaCalc_T *localDW);
extern void BCMR_DChrgParaCalc_HoldOn(uint8_T rtu_VoltStepLast, uint8_T
  rtu_VoltStepNext, uint8_T rtu_TempStep, uint8_T rtu_TempStepL, boolean_T
  rtu_BCMR_bDChrgCoolAbnorm, const real32_T rtu_BCMR_iDcChrgCurrNew_T[196],
  const real32_T rtu_BCMR_iDcChrgCurrAbnorm_T[196], real32_T
  rtu_BCMR_tiHoldOnToCurrCalc_C, B_HoldOn_BCMR_DChrgParaCalc_T *localB,
  DW_HoldOn_BCMR_DChrgParaCalc_T *localDW);
extern void BCMR_DChrgParaCa_ParaStep_Reset(B_ParaStep_BCMR_DChrgParaCalc_T
  *localB, DW_ParaStep_BCMR_DChrgParaCal_T *localDW);
extern void BCMR_DChrgParaCalc_ParaStep(real32_T rtu_BattTemp, const real32_T
  rtu_BCMR_BattPara_A[14], const uint8_T rtu_BCMR_ParaStep_A[14], real32_T
  rtu_BCMR_HysRng_C, boolean_T rtu_BCMR_flgDChrgFulChk,
  B_ParaStep_BCMR_DChrgParaCalc_T *localB, DW_ParaStep_BCMR_DChrgParaCal_T
  *localDW);
extern void BCMR_DChrgParaC_ParaStep2_Reset(B_ParaStep2_BCMR_DChrgParaCal_T
  *localB, DW_ParaStep2_BCMR_DChrgParaCa_T *localDW);
extern void BCMR_DChrgParaCalc_ParaStep2(real32_T rtu_BattTemp, const real32_T
  rtu_BCMR_BattPara_A[14], const uint8_T rtu_BCMR_ParaStep_A[14], real32_T
  rtu_BCMR_HysRng_C, B_ParaStep2_BCMR_DChrgParaCal_T *localB,
  DW_ParaStep2_BCMR_DChrgParaCa_T *localDW);
extern void BCMR_DChrgParaC_ParaStep1_Reset(B_ParaStep1_BCMR_DChrgParaCal_T
  *localB, DW_ParaStep1_BCMR_DChrgParaCa_T *localDW);
extern void BCMR_DChrgParaCalc_ParaStep1(real32_T rtu_BattTemp, const real32_T
  rtu_BCMR_BattPara_A[14], const uint8_T rtu_BCMR_ParaStep_A[14], real32_T
  rtu_BCMR_HysRng_C, B_ParaStep1_BCMR_DChrgParaCal_T *localB,
  DW_ParaStep1_BCMR_DChrgParaCa_T *localDW);

/* Exported data declaration */

/* Declaration for custom storage class: InputSignal */
extern volatile boolean_T BCMR_bDChrgCnnt;
extern volatile boolean_T BCMR_bDChrgFul;
extern volatile boolean_T BCMR_bDChrgStopEna;
extern volatile boolean_T BCMR_bDChrgWkup;
extern volatile uint8_T BCMR_stDChrgDebugOut;
extern volatile uint8_T BCMR_stDChrgMode;
extern volatile real32_T BSER_rSoc;
extern volatile real32_T BSER_rSocDspl;
extern volatile real32_T BSER_rSoh;
extern volatile real32_T BSPR_iBattCurr;
extern volatile real32_T BSPR_tCellTempMax;
extern volatile real32_T BSPR_tCellTempMin;
extern volatile real32_T BSPR_uBattVolt;
extern volatile real32_T BSPR_uCellVoltMax;
extern volatile real32_T BSPR_uCellVoltMin;
extern volatile real32_T BSPR_uPackVolt;
extern volatile boolean_T COMR_flgAcmDistVld;
extern volatile real32_T COMR_iDcChrgMaxCurrOutputPmtdCml;
extern volatile real32_T COMR_iDcChrgMinCurrOutputPmtdCml;
extern volatile real32_T COMR_iDcChrgOutputCurrCcs;
extern volatile real32_T COMR_pwrChrgLdReq;
extern volatile uint8_T COMR_stObcElecLck;
extern volatile uint8_T COMR_stVcuFalutLvl;
extern volatile real32_T COMR_tiDcChrgTimeActualCcs;
extern volatile real32_T COMR_uDcChrgMaxVoltOutputPmtdCml;
extern volatile real32_T COMR_uDcChrgMinVoltOutputPmtdCml;
extern volatile real32_T COMR_valAcmDist;
extern volatile uint8_T DFC_CoolPerfPlaus_ASW;
extern volatile uint8_T DSMR_stFaultRank;

#endif                                 /* RTW_HEADER_BCMR_DChrgParaCalc_private_h_ */

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