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

#include "rtwtypes.h"
#include "BSER_CellBalcCtl_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 boolean_T BSER_BalCirFltDiagEna_C = 1;
const volatile uint8_T BSER_BalEnSumThrd1_C = 5U;
const volatile uint8_T BSER_BalEnSumThrd2_C = 4U;
const volatile uint8_T BSER_BalEnSumThrd3_C = 3U;
const volatile boolean_T BSER_BalFuncEna_C = 1;
const volatile boolean_T BSER_bBalCirStNorm_C[8] = { 1, 1, 1, 1, 1, 1, 1, 1 } ;

const volatile boolean_T BSER_bBalDrvInteEnaSw_C = 1;
const volatile boolean_T BSER_bBalFrON_C = 0;
const volatile boolean_T BSER_bCellBalConEna_C = 0;
const volatile boolean_T BSER_bCellBalEnaSw_C = 0;
const volatile uint8_T BSER_bCellBalEnaVal_C[96] = { 0U, 0U, 0U, 0U, 0U, 0U, 0U,
  0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U,
  0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U,
  0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U,
  0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U,
  0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U } ;

const volatile boolean_T BSER_bCellBalPWMEna_C = 0;
const volatile boolean_T BSER_bVCUFltEnaSw_C = 0;
const volatile boolean_T BSER_bWkBalEnaSw_C = 0;
const volatile real32_T BSER_cntBalInteCompHld_C = 100.0F;
const volatile real32_T BSER_cntBalStartDur_C = 600.0F;/* time duration during balancing */
const volatile real32_T BSER_cntBalStartThres_C = 600.0F;/* start to Balance Control */
const volatile real32_T BSER_cntBalStopDur_C = 10.0F;/* time duration during balance-waiting */
const volatile uint8_T BSER_cntModuleNum_C = 8U;/* the module num */
const volatile real32_T BSER_cofPcbTempFlt_C = 0.1F;
const volatile real32_T BSER_iBalInteClrCurr_C = 5.0F;
const volatile real32_T BSER_sBalTimeMax_C = 180000.0F;/* the max allowed balancing time(5h) */
const volatile real32_T BSER_tCMUAFETempHiHys_C = 25.0F;
const volatile real32_T BSER_tCMUAFETempHi_C = 105.0F;
const volatile real32_T BSER_tCMUAFETempMaxHys_C = 20.0F;
const volatile real32_T BSER_tCMUAFETempMax_C = 100.0F;
const volatile real32_T BSER_tCMUPCBTempHiHys_C = 25.0F;
const volatile real32_T BSER_tCMUPCBTempHi_C = 105.0F;
const volatile real32_T BSER_tCMUPCBTempMaxHys_C = 20.0F;
const volatile real32_T BSER_tCMUPCBTempMax_C = 100.0F;/* the max allowed CMU PCB temperature during balancing */
const volatile real32_T BSER_tCellTempDvtLmt_C = 10.0F;/* the allowed cell temperature deviation during balancing */
const volatile real32_T BSER_tCellTempMaxLmt_C = 52.0F;/* the max allowed cell temperature during balancing */
const volatile real32_T BSER_tCellTempMinLmt_C = -30.0F;/* the min allowed cell temperature during balancing */
const volatile real32_T BSER_tCmcAFETempHiLim_C = 150.0F;
const volatile real32_T BSER_tCmcAFETempLowLim_C = -40.0F;
const volatile real32_T BSER_tCmcBordTempHiLim_C = 150.0F;
const volatile real32_T BSER_tCmcBordTempHys_C = 5.0F;
const volatile real32_T BSER_tCmcBordTempLowLim_C = -40.0F;
const volatile real32_T BSER_tCmcBordTempThrd1_C = 85.0F;
const volatile real32_T BSER_tCmcBordTempThrd2_C = 95.0F;
const volatile real32_T BSER_tPcbTempInitVal_C = 0.0F;
const volatile real32_T BSER_tPcbTemp_CUR[191] = { 150.0F, 149.0F, 148.0F,
  147.0F, 146.0F, 145.0F, 144.0F, 143.0F, 142.0F, 141.0F, 140.0F, 139.0F, 138.0F,
  137.0F, 136.0F, 135.0F, 134.0F, 133.0F, 132.0F, 131.0F, 130.0F, 129.0F, 128.0F,
  127.0F, 126.0F, 125.0F, 124.0F, 123.0F, 122.0F, 121.0F, 120.0F, 119.0F, 118.0F,
  117.0F, 116.0F, 115.0F, 114.0F, 113.0F, 112.0F, 111.0F, 110.0F, 109.0F, 108.0F,
  107.0F, 106.0F, 105.0F, 104.0F, 103.0F, 102.0F, 101.0F, 100.0F, 99.0F, 98.0F,
  97.0F, 96.0F, 95.0F, 94.0F, 93.0F, 92.0F, 91.0F, 90.0F, 89.0F, 88.0F, 87.0F,
  86.0F, 85.0F, 84.0F, 83.0F, 82.0F, 81.0F, 80.0F, 79.0F, 78.0F, 77.0F, 76.0F,
  75.0F, 74.0F, 73.0F, 72.0F, 71.0F, 70.0F, 69.0F, 68.0F, 67.0F, 66.0F, 65.0F,
  64.0F, 63.0F, 62.0F, 61.0F, 60.0F, 59.0F, 58.0F, 57.0F, 56.0F, 55.0F, 54.0F,
  53.0F, 52.0F, 51.0F, 50.0F, 49.0F, 48.0F, 47.0F, 46.0F, 45.0F, 44.0F, 43.0F,
  42.0F, 41.0F, 40.0F, 39.0F, 38.0F, 37.0F, 36.0F, 35.0F, 34.0F, 33.0F, 32.0F,
  31.0F, 30.0F, 29.0F, 28.0F, 27.0F, 26.0F, 25.0F, 24.0F, 23.0F, 22.0F, 21.0F,
  20.0F, 19.0F, 18.0F, 17.0F, 16.0F, 15.0F, 14.0F, 13.0F, 12.0F, 11.0F, 10.0F,
  9.0F, 8.0F, 7.0F, 6.0F, 5.0F, 4.0F, 3.0F, 2.0F, 1.0F, 0.0F, -1.0F, -2.0F,
  -3.0F, -4.0F, -5.0F, -6.0F, -7.0F, -8.0F, -9.0F, -10.0F, -11.0F, -12.0F,
  -13.0F, -14.0F, -15.0F, -16.0F, -17.0F, -18.0F, -19.0F, -20.0F, -21.0F, -22.0F,
  -23.0F, -24.0F, -25.0F, -26.0F, -27.0F, -28.0F, -29.0F, -30.0F, -31.0F, -32.0F,
  -33.0F, -34.0F, -35.0F, -36.0F, -37.0F, -38.0F, -39.0F, -40.0F } ;

const volatile real32_T BSER_tPcbTemp_CUR_X[191] = { 0.59436F, 0.60775F,
  0.62152F, 0.63559F, 0.64998F, 0.66469F, 0.67979F, 0.69526F, 0.71106F, 0.72723F,
  0.74378F, 0.76074F, 0.7781F, 0.79581F, 0.81397F, 0.8325F, 0.85148F, 0.87087F,
  0.89073F, 0.91099F, 0.93172F, 0.95289F, 0.97456F, 0.99667F, 1.01924F, 1.0423F,
  1.066F, 1.09018F, 1.11485F, 1.14004F, 1.16573F, 1.19178F, 1.21834F, 1.24543F,
  1.27305F, 1.30117F, 1.33001F, 1.35935F, 1.38921F, 1.41965F, 1.45058F, 1.48207F,
  1.51408F, 1.54663F, 1.57972F, 1.61334F, 1.64747F, 1.68211F, 1.71729F, 1.75295F,
  1.78915F, 1.82596F, 1.86328F, 1.90107F, 1.93933F, 1.97803F, 2.01704F, 2.05647F,
  2.09632F, 2.13656F, 2.17718F, 2.21833F, 2.25981F, 2.30163F, 2.34376F, 2.38617F,
  2.42886F, 2.47179F, 2.51492F, 2.55827F, 2.60178F, 2.64544F, 2.68923F, 2.7331F,
  2.77705F, 2.82103F, 2.86515F, 2.90924F, 2.95329F, 2.99724F, 3.04111F, 3.08473F,
  3.12819F, 3.17147F, 3.21453F, 3.25735F, 3.29999F, 3.34232F, 3.38433F, 3.42598F,
  3.46725F, 3.50811F, 3.54854F, 3.58852F, 3.62803F, 3.66703F, 3.70553F, 3.74348F,
  3.78088F, 3.81771F, 3.85395F, 3.88963F, 3.92469F, 3.95912F, 3.9929F, 4.02602F,
  4.05845F, 4.09022F, 4.12131F, 4.15172F, 4.18145F, 4.21051F, 4.23888F, 4.26655F,
  4.29353F, 4.31981F, 4.34541F, 4.37032F, 4.39454F, 4.41809F, 4.44096F, 4.46317F,
  4.48471F, 4.5056F, 4.52585F, 4.54545F, 4.56444F, 4.5828F, 4.60056F, 4.61772F,
  4.6343F, 4.6503F, 4.66575F, 4.68064F, 4.695F, 4.70883F, 4.72215F, 4.73496F,
  4.74729F, 4.75914F, 4.77053F, 4.78147F, 4.79197F, 4.80205F, 4.81172F, 4.82098F,
  4.82987F, 4.83837F, 4.84652F, 4.85431F, 4.86177F, 4.86889F, 4.87569F, 4.88219F,
  4.88839F, 4.89432F, 4.89997F, 4.90537F, 4.91051F, 4.9154F, 4.92007F, 4.9245F,
  4.92872F, 4.93273F, 4.93654F, 4.94016F, 4.9436F, 4.94687F, 4.94996F, 4.9529F,
  4.95569F, 4.95833F, 4.96083F, 4.9632F, 4.96544F, 4.96756F, 4.96956F, 4.97145F,
  4.97324F, 4.97492F, 4.97651F, 4.97801F, 4.97943F, 4.98076F, 4.98202F, 4.9832F,
  4.98431F, 4.98536F, 4.98635F, 4.98727F, 4.98814F } ;

const volatile real32_T BSER_tiBalInteChgTimeGap_C = 72000.0F;/* the max allowed BalDrvInte balancing time(2h) */
const volatile real32_T BSER_tiCMUAFETempHi_C = 5000.0F;
const volatile real32_T BSER_tiCMUPCBTempHi_C = 5000.0F;
const volatile real32_T BSER_tiCellBalCtlCalTask_C = 100.0F;
const volatile real32_T BSER_tiCellBalcBase_C = 0.1F;/* Debounce for temperature */
const volatile real32_T BSER_tiTONVInteTi = 1.0F;/* Debounce for voltage */
const volatile real32_T BSER_tiTONVTempTi = 1.0F;/* Debounce for temperature */
const volatile real32_T BSER_tiTONVVoltTi = 1.0F;/* Debounce for voltage */
const volatile real32_T BSER_uBalStartCellVoltLmtDn_C = 3500.0F;/* the min allowed cell volt during balancing */
const volatile real32_T BSER_uBalStartCellVoltLmtUp_C = 4260.0F;/* the max allowed cell volt during balancing */
const volatile real32_T BSER_uCellVoltDvtBalOff_C = 8.0F;/* the cell voltage gap to stop balancing */
const volatile real32_T BSER_uCellVoltDvtBalOn_C = 15.0F;/* the cell voltage gap to enable balancing */
const volatile real32_T BSER_uPcbTempInitVal_C = 0.0F;
const volatile real32_T BSER_uTempUnitCovt_C = 0.001F;

#define ASW1_OEM_STOP_SEC_DEFAULT_CALIB_UNSPECIFIED
#include "Asw1_OEM_MemMap.h"

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