/*
 * File: achrg_parameters.c
 *
 * 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
 */

#include "rtwtypes.h"
#include "BCMR_AChrg_types.h"

/* Exported data definition */
#define ASW1_OEM_START_SEC_DEFAULT_CALIB_UNSPECIFIED
#include "Asw1_OEM_MemMap.h"

/* Definition for custom storage class: Const */
const volatile uint8_T BCMR_AChgParaCalcHigh_C = 8U;
const volatile uint8_T BCMR_AChgParaCalcLow_C = 4U;
const volatile real32_T BCMR_AChrgWkUpCAl_C = 0.0F;
const volatile real32_T BCMR_ChgCurrVld_C = -2.0F;
const volatile real32_T BCMR_TiChgFullHold_C = 60.0F;
const volatile real32_T BCMR_TiREMTiMEHoldLck_C = 125.0F;
const volatile real32_T BCMR_TiREMTiMEHold_C = 30.0F;
const volatile uint8_T BCMR_cntAChrgTrickle_C = 1U;
const volatile boolean_T BCMR_flgABPackShield_C = 0;
const volatile uint8_T BCMR_flgAChrgDebug_C = 0U;
const volatile boolean_T BCMR_flgChrgStopActive_C = 0U;
const volatile boolean_T BCMR_flgCurrReq_C = 0;
const volatile boolean_T BCMR_flgIviDischgOrd_C = 0U;
const volatile boolean_T BCMR_flgPreHeatShieldCmd_C = 0;
const volatile real32_T BCMR_iAChrgDiffCurr_C = 10.0F;
const volatile real32_T BCMR_iAChrgHvIsoInit_C = 7777.0F;
const volatile real32_T BCMR_iAChrgHvIsoThres_C = 250.0F;
const volatile real32_T BCMR_iAChrgOBCPwrDvt_C = 2.0F;
const volatile real32_T BCMR_iAChrgOBCPwrLv3_C = 10.0F;
const volatile real32_T BCMR_iAChrgOvrCurr_C = 100.0F;
const volatile real32_T BCMR_iAChrgStopCurrLim_C = -2.0F;
const volatile real32_T BCMR_iAChrgThmOFFLv1_C = 20.0F;
const volatile real32_T BCMR_iAChrgThmOFFLv2_C = 10.0F;
const volatile real32_T BCMR_iAChrgThmONLv1_C = 15.0F;
const volatile real32_T BCMR_iAChrgThmONLv2_C = 5.0F;
const volatile real32_T BCMR_iAChrgTrickleStepClr_C = 0.0F;
const volatile real32_T BCMR_iAChrgTrickleStepSet_C = 15.3F;
const volatile real32_T BCMR_iAChrgTrickleStepStb_C = 15.3F;
const volatile real32_T BCMR_iCurrLder_A[272] = { 0.0F, 7.65F, 7.65F, 10.71F,
  15.3F, 15.3F, 76.5F, 30.6F, 45.9F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F,
  50.49F, 50.49F, 0.0F, 0.0F, 7.65F, 7.65F, 10.71F, 15.3F, 15.3F, 76.5F, 30.6F,
  45.9F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F, 0.0F, 0.0F,
  7.65F, 7.65F, 10.71F, 15.3F, 15.3F, 76.5F, 30.6F, 45.9F, 50.49F, 50.49F,
  50.49F, 50.49F, 50.49F, 50.49F, 50.49F, 0.0F, 0.0F, 7.65F, 7.65F, 10.71F,
  15.3F, 15.3F, 76.5F, 30.6F, 45.9F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F,
  50.49F, 50.49F, 0.0F, 0.0F, 7.65F, 7.65F, 10.71F, 15.3F, 15.3F, 76.5F, 30.6F,
  45.9F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F, 0.0F, 0.0F,
  7.65F, 7.65F, 10.71F, 15.3F, 15.3F, 76.5F, 30.6F, 45.9F, 50.49F, 50.49F,
  50.49F, 50.49F, 50.49F, 50.49F, 50.49F, 0.0F, 0.0F, 7.65F, 7.65F, 10.71F,
  15.3F, 15.3F, 76.5F, 30.6F, 45.9F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F,
  50.49F, 50.49F, 0.0F, 0.0F, 7.65F, 7.65F, 10.71F, 15.3F, 15.3F, 76.5F, 30.6F,
  45.9F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F, 0.0F, 0.0F,
  7.65F, 7.65F, 10.71F, 15.3F, 15.3F, 76.5F, 30.6F, 45.9F, 50.49F, 50.49F,
  50.49F, 50.49F, 50.49F, 50.49F, 50.49F, 0.0F, 0.0F, 7.65F, 7.65F, 10.71F,
  15.3F, 15.3F, 76.5F, 30.6F, 45.9F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F,
  50.49F, 50.49F, 0.0F, 0.0F, 7.65F, 7.65F, 10.71F, 15.3F, 15.3F, 76.5F, 30.6F,
  45.9F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F, 50.49F, 0.0F, 0.0F,
  7.65F, 7.65F, 7.65F, 15.3F, 15.3F, 76.5F, 30.6F, 45.9F, 50.49F, 50.49F, 50.49F,
  50.49F, 50.49F, 50.49F, 50.49F, 0.0F, 0.0F, 1.53F, 1.53F, 1.53F, 3.06F, 15.3F,
  22.95F, 30.6F, 45.9F, 45.9F, 45.9F, 45.9F, 45.9F, 45.9F, 45.9F, 45.9F, 0.0F,
  0.0F, 1.53F, 1.53F, 1.53F, 3.06F, 7.65F, 22.95F, 30.6F, 30.6F, 30.6F, 30.6F,
  30.6F, 30.6F, 30.6F, 30.6F, 30.6F, 0.0F, 0.0F, 1.53F, 1.53F, 1.53F, 3.06F,
  3.06F, 15.3F, 18.36F, 19.89F, 22.95F, 22.95F, 22.95F, 22.95F, 22.95F, 22.95F,
  7.65F, 0.0F, 0.0F, 1.53F, 1.53F, 1.53F, 3.06F, 3.06F, 7.65F, 7.65F, 7.65F,
  7.65F, 7.65F, 7.65F, 7.65F, 7.65F, 7.65F, 7.65F, 0.0F } ;

const volatile real32_T BCMR_iCurrReq_C = -6.0F;
const volatile real32_T BCMR_kAffixCurrCoe_C = 0.8F;
const volatile real32_T BCMR_numFltNumMax_C = 15.0F;
const volatile real32_T BCMR_pHoldtempPwrReq_C = 0.0F;
const volatile real32_T BCMR_pPreHeatPwrReq_C = 3500.0F;
const volatile real32_T BCMR_rSOCFul_C = 99.0F;
const volatile real32_T BCMR_rSOCRealMax_C = 97.0F;
const volatile uint8_T BCMR_stCp6VPWM_C = 4U;
const volatile uint8_T BCMR_stCp9VPWM_C = 2U;
const volatile real32_T BCMR_tAChrgPmtTempDwnLmt_C = -20.0F;
const volatile real32_T BCMR_tAChrgPmtTempUpLmt_C = 53.0F;
const volatile real32_T BCMR_tCellTempDec_C = 0.1F;
const volatile real32_T BCMR_tHoldTempDwnLmtCellmax_C = 30.0F;
const volatile real32_T BCMR_tHoldTempDwnLmt_C = 20.0F;
const volatile real32_T BCMR_tHoldTempUpLmtCellmax_C = 35.0F;
const volatile real32_T BCMR_tHoldTempUpLmt_C = 25.0F;
const volatile real32_T BCMR_tLowPreThmTemp_C = -39.0F;
const volatile real32_T BCMR_tPreCoolStart_C = 58.0F;
const volatile real32_T BCMR_tPreCoolStop_C = 50.0F;
const volatile real32_T BCMR_tPreHeatStart_C = -20.0F;
const volatile real32_T BCMR_tPreHeatStop_C = -18.0F;
const volatile real32_T BCMR_tTempAvg2Max = 30.0F;
const volatile real32_T BCMR_tTempLder_A[17] = { -20.1F, -20.0F, -15.0F, -10.0F,
  -5.0F, 0.0F, 5.0F, 10.0F, 15.0F, 20.0F, 25.0F, 30.0F, 35.0F, 40.0F, 45.0F,
  50.0F, 53.1F } ;

const volatile real32_T BCMR_tTempMin2Avg = 10.0F;
const volatile real32_T BCMR_tiAChrgRunT_C = 100.0F;
const volatile real32_T BCMR_tiBase_C = 0.1F;
const volatile real32_T BCMR_tiCalToEndObc3_C = 65.0F;
const volatile real32_T BCMR_tiCalToEndObc4_C = 43.0F;
const volatile real32_T BCMR_tiCalToEndObc5_C = 24.0F;
const volatile real32_T BCMR_tiChgDetDebs_C = 0.3F;
const volatile real32_T BCMR_tiChgHealDebs_C = 0.3F;
const volatile real32_T BCMR_tiChgWaitTimeOut_C = 120.0F;
const volatile real32_T BCMR_tiChrgFulAbnrmCnt_C = 100.0F;
const volatile uint8_T BCMR_tiChrgFulCnt_C = 10U;
const volatile real32_T BCMR_tiChrgWaitTime_C = 30.0F;
const volatile real32_T BCMR_tiCodeDisplay_C = 1.0F;
const volatile real32_T BCMR_tiDeb30s_C = 120.0F;
const volatile uint16_T BCMR_tiDebs_C = 15000U;
const volatile real32_T BCMR_tiDetDebs_C = 2.0F;
const volatile real32_T BCMR_tiDischgWaitObcReadyTimeOut_C = 600.0F;
const volatile real32_T BCMR_tiFltNumHold_C = 20.0F;
const volatile uint8_T BCMR_tiFullBase_C = 100U;
const volatile real32_T BCMR_tiHealDebs_C = 1.0F;
const volatile real32_T BCMR_tiHvIsoBase_C = 0.1F;
const volatile real32_T BCMR_tiHvIsoDebs_C = 2.0F;
const volatile real32_T BCMR_tiInlWaitTimeOut_C = 2.0F;
const volatile real32_T BCMR_tiPTCDetDebs_C = 60.0F;
const volatile real32_T BCMR_tiPreChgThemalTimeOut_C = 20.0F;
const volatile real32_T BCMR_tiPreThemalTimeOut_C = 6.0F;
const volatile uint16_T BCMR_tiPreThmDebs_C = 3000U;
const volatile real32_T BCMR_tiPreThmDlyTime_C = 2.0F;
const volatile real32_T BCMR_tiPreWaitTimeOut_C = 3.0F;
const volatile real32_T BCMR_tiRemTimeMaxObc3_C = 2000.0F;
const volatile real32_T BCMR_tiRemTimeMaxObc4_C = 1500.0F;
const volatile real32_T BCMR_tiRemTimeMaxObc5_C = 900.0F;
const volatile int16_T BCMR_tiRemTimeStart_C = 200;
const volatile real32_T BCMR_tiTaskTime_C = 0.1F;
const volatile uint16_T BCMR_tiTboxPreChrStop_C = 60000U;
const volatile real32_T BCMR_tiTempHoldDebs_C = 2.0F;
const volatile real32_T BCMR_tiThmCtrlBase_C = 0.1F;
const volatile real32_T BCMR_tiThmCtrlDebs_C = 10.0F;
const volatile uint16_T BCMR_tiTrkDebs_C = 8000U;
const volatile real32_T BCMR_tiVoltHoldBase_C = 0.1F;
const volatile real32_T BCMR_tiVoltHoldDebs_C = 10.0F;
const volatile real32_T BCMR_uAChrgDiffVolt_C = 20.0F;
const volatile real32_T BCMR_uAChrgOvrVolt_C = 416.0F;
const volatile real32_T BCMR_uCellVoltLder_A[16] = { 3.2F, 3.6F, 3.61F, 3.64F,
  3.7F, 3.74F, 3.78F, 3.83F, 3.9F, 3.98F, 4.09F, 4.1F, 4.11F, 4.18F, 4.25F,
  4.26F } ;

const volatile real32_T BCMR_uCellVoltMaxCalOn_C = 4.22F;
const volatile real32_T BCMR_uCellVoltMaxDec_C = -0.003F;
const volatile real32_T BCMR_uCellVoltMax_C = 4.24F;
const volatile real32_T BCMR_uCellVoltmax_A[5] = { 4.22F, 4.23F, 4.24F, 4.25F,
  4.26F } ;

const volatile real32_T BCMR_uPreHeatVoltReqObcDiff_C = 5.0F;
const volatile real32_T BCMR_vAChrgTimNrmVelLmt_C = 1.0F;
const volatile real32_T BCMR_vBmsMaxVoltReq_C = 421.0F;
const volatile real32_T BCMR_vBmsVoltReq_C = 411.0F;
const volatile real32_T BCMR_vChgFullCellVolt_C = 4.26F;
const volatile real32_T BCMR_vChgFullMaxCellVolt_C = 4.46F;
const volatile real32_T BCMR_whBattCpty_C = 53000.0F;
const volatile real32_T BCMR_whRem_A[5] = { 1833.0F, 1473.0F, 1021.0F, 610.0F,
  0.0F } ;

#define ASW1_OEM_STOP_SEC_DEFAULT_CALIB_UNSPECIFIED
#include "Asw1_OEM_MemMap.h"

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