/*
 * File: BSER_BattPrfDiagParameter.c
 *
 * Code generated for Simulink model 'BSER_BattPrfDiag'.
 *
 * Model version                  : 1.1382
 * Simulink Coder version         : 8.11 (R2016b) 25-Aug-2016
 * C/C++ source code generated on : Sat Dec 05 12:55:48 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_BattPrfDiag_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 BSER_cntBattOCMinDiag_C = 0U;/* Counter threshold for discharge over current NPL diagnosis */
const volatile uint8_T BSER_cntBattPrfDiag_CW = 45U;/* Code word for battery performance daignosis */
const volatile uint8_T BSER_cntChrgOCNpl_C = 6U;/* Counter threshold for charge over current NPL diagnosis */
const volatile uint8_T BSER_cntDisChOCNpl_C = 6U;/* Counter threshold for discharge over current NPL diagnosis */
const volatile real32_T BSER_cntPwrConvertConst_C = 1000.0F;
const volatile real32_T BSER_iChrgCurrErr_C = 30.0F;/* Calibrate current threshold for discharge current has exceed the constant operating limit */
const volatile real32_T BSER_iChrgCurrOk_C = 10.0F;/* Calibrate current threshold for discharge current has exceed the constant operating limit */
const volatile real32_T BSER_iDisChCurrErr_C = 30.0F;/* Calibrate current threshold for charge current has exceed the constant operating limit */
const volatile real32_T BSER_iDisChCurrOk_C = 10.0F;/* Calibrate current threshold for charge current has exceed the constant operating limit */
const volatile real32_T BSER_iLonChrgCurrErr_C = 3000.0F;/* Calibrate current threshold for discharge current has exceed the continuous operating limit */
const volatile real32_T BSER_iLonChrgCurrOk_C = 7500.0F;/* Calibrate healing current threshold for discharge current has exceed the continuous operating limit */
const volatile real32_T BSER_iLonDisChCurrErr_C = 4000.0F;/* Calibrate current threshold for charge current has exceed the continuous operating limit */
const volatile real32_T BSER_iLonDisChCurrOk_C = 10000.0F;/* Calibrate healing current threshold for charge current has exceed the continuous operating limit */
const volatile real32_T BSER_iShrtChrgCurrErr_C = 300.0F;/* Calibrate current threshold for discharge current has exceed the peak operating limit */
const volatile real32_T BSER_iShrtChrgCurrOk_C = 750.0F;/* Calibrate healing current threshold for discharge current has exceed the peak operating limit */
const volatile real32_T BSER_iShrtDisChCurrErr_C = 400.0F;/* Calibrate current threshold for charge current has exceed the peak operating limit */
const volatile real32_T BSER_iShrtDisChCurrOk_C = 1000.0F;/* Calibrate healing current threshold for charge current has exceed the peak operating limit */
const volatile real32_T BSER_iSumLonChrgCurrReq_C = 75000.0F;/* Label for sum charge current value used for OC fault healing during continuous period time */
const volatile real32_T BSER_iSumLonDisChCurrReq_C = 75000.0F;/* Label for sum discharge current value used for OC fault healing during continuous period time */
const volatile real32_T BSER_iSumShrtChrgCurrReq_C = 25000.0F;/* Label for sum charge current value used for OC fault healing during peak period time */
const volatile real32_T BSER_iSumShrtDisChCurrReq_C = 25000.0F;/* Label for sum discharge current value used for OC fault healing during peak period time */
const volatile real32_T BSER_rLonChrgCurrHeal_C = 0.6F;/* Calibrate ratio for charing over current fault healing during continuous period time */
const volatile real32_T BSER_rLonChrgCurrHi_C = 1.2F;/* Calibrate ratio for charing over current fault detect check during continuous period time */
const volatile real32_T BSER_rLonDisChCurrHeal_C = 0.6F;/* Calibrate ratio for discharing over current fault healing during continuous period time */
const volatile real32_T BSER_rLonDisChCurrHi_C = 1.2F;/* Calibrate ratio for discharing over current fault detect check during continuous period time */
const volatile real32_T BSER_rShrtChrgCurrHeal_C = 0.6F;/* Calibrate ratio for charing over current fault healing during peak period time */
const volatile real32_T BSER_rShrtChrgCurrHi_C = 1.2F;/* Calibrate ratio for charing over current fault detect check during peak period time */
const volatile real32_T BSER_rShrtDisChCurrHeal_C = 0.6F;/* Calibrate ratio for discharing over current fault healing during peak period time */
const volatile real32_T BSER_rShrtDisChCurrHi_C = 1.2F;/* Calibrate ratio for discharing over current fault detect check during peak period time */
const volatile real32_T BSER_tiChrgCurrErr_C = 5.0F;/* Time debounce for discharge current has exceed the constant operating limit */
const volatile real32_T BSER_tiChrgCurrOk_C = 10.0F;/* Healing time debounce for discharge current has exceed the constant operating limit */
const volatile uint8_T BSER_tiCurrConstPer_C = 60U;/* Calibrate continuous period time used for over current check */
const volatile uint8_T BSER_tiCurrPeakPer_C = 10U;/* Calibrate peak period time used for over current check */
const volatile real32_T BSER_tiDisChCurrErr_C = 10.0F;/* Time debounce for charge current has exceed the constant operating limit */
const volatile real32_T BSER_tiDisChCurrOk_C = 20.0F;/* Healing time debounce for charge current has exceed the constant operating limit */
const volatile real32_T BSER_uBattVoltConst_C = 1.0F;

#define ASW1_OEM_STOP_SEC_DEFAULT_CALIB_UNSPECIFIED
#include "Asw1_OEM_MemMap.h"

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