/*
 * File: BSPR_CellVoltDiag_parameters.c
 *
 * Code generated for Simulink model 'BSPR_CellVoltDiag'.
 *
 * Model version                  : 1.1099
 * Simulink Coder version         : 8.13 (R2017b) 24-Jul-2017
 * C/C++ source code generated on : Wed Jul 21 14:36:19 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 "BSPR_CellVoltDiag_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 real32_T BSPR_CellNplDetVoltThres_C = 3.5F;
const volatile boolean_T BSPR_bCellVoltAlrmDiag_C = 0;
const volatile uint8_T BSPR_cntCellAvlNum_C = 12U;/* Available cell number used for reference value calculated in current battery package */
const volatile uint8_T BSPR_cntCellVltRngEnvtCsdr_CW = 0U;/* Codeword for environment condidered for enable condition calculate of cell voltage plausible diagnosis */
const volatile uint8_T BSPR_cntCellVoltNplDiag_CW = 255U;/* Codeword for cell voltage plausible diagnosis switch */
const volatile uint8_T BSPR_cntCellVoltRngDiag_CW = 255U;/* Codeword for cell voltage out of range diagnosis switch */
const volatile uint8_T BSPR_cntModuAvlNum_C = 1U;/* Available module number used for reference value calculated in current battery package */
const volatile uint16_T BSPR_cntUCellNplErrThres_C = 100U;/* Event debounce for cell voltage plausible detect */
const volatile uint16_T BSPR_cntUCellNplOkThres_C = 100U;/* Event debounce for cell voltage plausible heal */
const volatile uint8_T BSPR_cntVoltCellMeanSwt_CW = 0U;/* Codeword for reference value switch used for voltage plausible diagnosis */
const volatile real32_T BSPR_cofCurrFltCellRng_C = 0.2F;/* Coefficient threshold of current filter for enable condition calculate of cell voltage plausible diagnosis */
const volatile real32_T BSPR_iCellVoltRngCurrHi_C = 150.0F;/* Maximum threshold of current for enable condition calculate of cell voltage plausible diagnosis */
const volatile real32_T BSPR_iCellVoltRngCurrLo_C = -150.0F;/* Minimum threshold of current for enable condition calculate of cell voltage plausible diagnosis */
const volatile real32_T BSPR_iCurrHopFltDiff_C = 100.0F;/* Threshold for battery current fluctuate check */
const volatile real32_T BSPR_tBattTempCellVoltRngHi_C = 55.0F;/* Maximum threshold of battery temperature for enable condition calculate of cell voltage plausible diagnosis */
const volatile real32_T BSPR_tBattTempCellVoltRngLo_C = -30.0F;/* Minimum threshold of battery temperature for enable condition calculate of cell voltage plausible diagnosis */
const volatile real32_T BSPR_tEnvTCellVoltRngHi_C = 55.0F;/* Maximum threshold of environment temperature for enable condition calculate of cell voltage plausible diagnosis */
const volatile real32_T BSPR_tEnvTCellVoltRnglo_C = -30.0F;/* Minimum threshold of environment temperature for enable condition calculate of cell voltage plausible diagnosis */
const volatile real32_T BSPR_tiCellVoltAlrm_C = 13000.0F;/* Time debounce for cell voltage alarm diagnosis */
const volatile real32_T BSPR_tiCellVoltDiagTask_C = 20.0F;
const volatile real32_T BSPR_tiCellVoltFault_C = 3000.0F;/* Time debounce for cell voltage fault diagnosis */
const volatile real32_T BSPR_tiCellVoltFusf_C = 3000.0F;/* Time debounce for cell voltage function safety diagnosis */
const volatile real32_T BSPR_tiCellVoltWarn_C = 10000.0F;/* Time debounce for cell voltage warn diagnosis */
const volatile real32_T BSPR_tiUCellNplErrThres_C = 5000.0F;
const volatile real32_T BSPR_tiUCellNplOkThres_C = 5000.0F;
const volatile real32_T BSPR_uCellVoltNplDiag_CUR[5] = { 0.3F, 0.3F, 0.3F, 0.3F,
  0.3F } ;                             /* Curve for cell voltage consistence diagnosis */

const volatile real32_T BSPR_uCellVoltNplDiag_CUR_X[5] = { 80.0F, 85.0F, 90.0F,
  95.0F, 100.0F } ;                    /* X-axis: curve for cell voltage consistence diagnosis */

const volatile real32_T BSPR_uCellVoltRngHiFault_CUR[40] = { 4.31F, 4.31F, 4.31F,
  4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F,
  4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F,
  4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F, 4.31F,
  4.31F, 4.31F, 4.31F, 4.31F } ;  /* Curve for cell voltage out of range high fault diagnosis */

const volatile real32_T BSPR_uCellVoltRngHiFusf_CUR[40] = { 4.32F, 4.32F, 4.32F,
  4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F,
  4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F,
  4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F, 4.32F,
  4.32F, 4.32F, 4.32F, 4.32F } ;  /* Curve for cell voltage out of range high function safety diagnosis */

const volatile real32_T BSPR_uCellVoltRngHiWarnAlrm_CUR[40] = { 4.3F, 4.3F, 4.3F,
  4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F,
  4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F,
  4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F, 4.3F } ;  /* Curve for cell voltage out of range high warn and alarm diagnosis */

const volatile real32_T BSPR_uCellVoltRngLoFault_CUR[40] = { 2.0F, 2.0F, 2.0F,
  2.0F, 2.0F, 2.0F, 2.0F, 2.0F, 2.0F, 2.0F, 2.4F, 2.4F, 2.4F, 2.4F, 2.4F, 2.4F,
  2.4F, 2.4F, 2.4F, 2.4F, 2.4F, 2.4F, 2.4F, 2.4F, 2.4F, 2.4F, 2.4F, 2.4F, 2.4F,
  2.4F, 2.7F, 2.7F, 2.7F, 2.7F, 2.7F, 2.7F, 2.7F, 2.7F, 2.7F, 2.7F } ;  /* Curve for cell voltage out of range low fault diagnosis */

const volatile real32_T BSPR_uCellVoltRngLoFusf_CUR[40] = { 1.8F, 1.8F, 1.8F,
  1.8F, 1.8F, 1.8F, 1.8F, 1.8F, 1.8F, 1.8F, 2.2F, 2.2F, 2.2F, 2.2F, 2.2F, 2.2F,
  2.2F, 2.2F, 2.2F, 2.2F, 2.2F, 2.2F, 2.2F, 2.2F, 2.2F, 2.2F, 2.2F, 2.2F, 2.2F,
  2.2F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F } ;  /* Curve for cell voltage out of range low function safety diagnosis */

const volatile real32_T BSPR_uCellVoltRngLoWarnAlrm_CUR[40] = { 2.1F, 2.1F, 2.1F,
  2.1F, 2.1F, 2.1F, 2.1F, 2.1F, 2.1F, 2.1F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F,
  2.5F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F, 2.5F,
  2.5F, 2.8F, 2.8F, 2.8F, 2.8F, 2.8F, 2.8F, 2.8F, 2.8F, 2.8F, 2.8F } ;  /* Curve for cell voltage out of range low warn and alarm diagnosis */

const volatile real32_T BSPR_uCellVoltRng_CUR_X[5] = { 80.0F, 85.0F, 90.0F,
  95.0F, 100.0F } ;                    /* X-axis:Curve for cell voltage out of range diagnosis */

const volatile real32_T BSPR_uCellVoltRng_CUR_Y[8] = { -30.0F, -20.0F, -19.9F,
  -10.0F, -9.9F, 0.0F, 0.1F, 45.0F } ;  /* Y-axis:Curve for cell voltage out of range diagnosis */

#define ASW1_OEM_STOP_SEC_DEFAULT_CALIB_UNSPECIFIED
#include "Asw1_OEM_MemMap.h"

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