/*
 * File: BCMR_AChrg_private.h
 *
 * Code generated for Simulink model 'BCMR_AChrg'.
 *
 * Model version                  : 1.1156
 * Simulink Coder version         : 8.11 (R2016b) 25-Aug-2016
 * C/C++ source code generated on : Wed Nov 17 17:27:56 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_AChrg_private_h_
#define RTW_HEADER_BCMR_AChrg_private_h_
#include "rtwtypes.h"
#include "BCMR_AChrg.h"

extern const uint32_T rtCP_pooled_RKzlJNFV2qcn[2];

#define rtCP_CurrReq_maxIndex          rtCP_pooled_RKzlJNFV2qcn  /* Computed Parameter: rtCP_CurrReq_maxIndex
                                                                  * Referenced by: '<S108>/CurrReq'
                                                                  */

extern void BCMR_BMSDebounceStartZero_Reset(DW_BMSDebounceStartZero_BCMR__T
  *localDW);
extern void BCMR_AChrg_BMSDebounceStartZero(boolean_T rtu_Signal, uint16_T
  rtu_Hearl2Fault, uint8_T rtu_FaultStep, uint16_T rtu_Fault2Heal, uint8_T
  rtu_HealStep, B_BMSDebounceStartZero_BCMR_A_T *localB,
  DW_BMSDebounceStartZero_BCMR__T *localDW);
extern void BCMR_AChrg_TONV_TimeDebounce(boolean_T rtu_u,
  DW_TONV_TimeDebounce_BCMR_ACh_T *localDW, real32_T rtp_dT, real32_T rtp_T);
extern void BCMR_AChrg_AcChgPreThemalCalc(real32_T rtu_BSPR_uBattVolt, real32_T
  rtu_COMR_uVoltObcChrg, DW_AcChgPreThemalCalc_BCMR_AC_T *localDW);
extern void HysteresisCalc(real32_T rtu_u, uint8_T rtu_para1, uint8_T rtu_para2,
  B_HysteresisCalc_T *localB, real32_T rtp_RngDwnLmt, real32_T rtp_RngUpLmt);
extern void BCMR_AChrg_TONV_TimeDebounce1(uint8_T rtu_u,
  B_TONV_TimeDebounce_BCMR_AC_b_T *localB, DW_TONV_TimeDebounce_BCMR_A_p_T
  *localDW, real32_T rtp_dT, real32_T rtp_T);
extern void BCM_BCMR_AChrgTiRevTimCalc_Init(DW_BCMR_AChrgTiRevTimCalc_BCM_T
  *localDW);
extern void BC_BCMR_AChrgTiRevTimCalc_Reset(DW_BCMR_AChrgTiRevTimCalc_BCM_T
  *localDW);
extern void BCMR_AChrgTiRevTimCalc_Disable(DW_BCMR_AChrgTiRevTimCalc_BCM_T
  *localDW);
extern void BCMR_ACh_BCMR_AChrgTiRevTimCalc(boolean_T rtu_Enable,
  B_BCMR_AChrgTiRevTimCalc_BCMR_T *localB, DW_BCMR_AChrgTiRevTimCalc_BCM_T
  *localDW);
extern void RemChgTimeCalc_AI_Filter_Reset(DW_RemChgTimeCalc_AI_Filter_T
  *localDW);
extern void RemChgTimeCalc_AI_Filter_Update(real32_T rtu_In1,
  DW_RemChgTimeCalc_AI_Filter_T *localDW);
extern void RemChgTimeCalc_AI_Filter(B_RemChgTimeCalc_AI_Filter_T *localB,
  DW_RemChgTimeCalc_AI_Filter_T *localDW);
extern void AChrg_debounce(boolean_T rtu_In1, B_AChrg_debounce_T *localB,
  DW_AChrg_debounce_T *localDW, int16_T rtp_subVal, int16_T rtp_addVal, int16_T
  rtp_setVal);
extern void AChrg_AI_Filter(real32_T rtu_In1, B_AChrg_AI_Filter_T *localB,
  DW_AChrg_AI_Filter_T *localDW);

/* Exported data declaration */

/* Declaration for custom storage class: InputSignal */
extern volatile uint8_T BCCR_stBmsCtrMode;
extern volatile uint8_T BMCR_stBmsModeCtrl;
extern volatile real32_T BSER_rSoc;
extern volatile real32_T BSER_rSocDspl;
extern volatile boolean_T BSPR_bACWkUp;
extern volatile boolean_T BSPR_bKl15WkUp;
extern volatile real32_T BSPR_iBattCurr;
extern volatile real32_T BSPR_tCellTempAvrg;
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 boolean_T COMR_bChrgStopActive;
extern volatile uint8_T COMR_bIviDischgOrd;
extern volatile boolean_T COMR_bVcuChrgDisable;
extern volatile uint8_T COMR_dcObcCP;
extern volatile boolean_T COMR_flgObcWkUp;
extern volatile real32_T COMR_iCurrObcChrg;
extern volatile real32_T COMR_iMaxCurrObcChrg;
extern volatile uint16_T COMR_pMaxpwrObcChrg;
extern volatile real32_T COMR_pwrChrgLdReq;
extern volatile uint8_T COMR_stAppChrgOrdCmd;
extern volatile uint8_T COMR_stAppChrgOrdStart;
extern volatile boolean_T COMR_stChrgEn;
extern volatile uint8_T COMR_stHoldTempReq;
extern volatile uint8_T COMR_stObcCC;
extern volatile uint8_T COMR_stObcCP;
extern volatile uint8_T COMR_stObcChrg;
extern volatile uint8_T COMR_stObcElecLck;
extern volatile uint8_T COMR_stObcFaultLvl;
extern volatile uint8_T COMR_stPreThmEna;
extern volatile uint8_T COMR_stPreThmVcuPmt;
extern volatile uint8_T COMR_stPwrUpDwnVcuReq;
extern volatile uint8_T COMR_stVcuFalutLvl;
extern volatile real32_T COMR_tiPreThemaltime;
extern volatile real32_T COMR_uMaxVoltObcChrg;
extern volatile real32_T COMR_uVoltObcChrg;
extern volatile uint8_T DSMR_stFaultRank;
extern volatile boolean_T HVSR_flgHvilFault;
extern volatile boolean_T HVSR_flgIsoFaultLvl2;
extern volatile real32_T HVSR_resIso;  /* Insulation detection resistance */

#endif                                 /* RTW_HEADER_BCMR_AChrg_private_h_ */

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