/*
 * File: BSPR_BattVoltDiag_parameters.c
 *
 * Code generated for Simulink model 'BSPR_BattVoltDiag'.
 *
 * Model version                  : 1.662
 * Simulink Coder version         : 8.13 (R2017b) 24-Jul-2017
 * C/C++ source code generated on : Fri Oct  9 11:29:17 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 "BSPR_BattVoltDiag_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 BSPR_cntHvBattDiag_CW = 15U;/* Codeword for battery high voltage diagnosis */
const volatile uint8_T BSPR_flgVoltDChrgCsdr_CW = 0U;/* Codeword for DC charge voltage used for model voltage calculated */
const volatile real32_T BSPR_tiBattVoltDiagThres_C = 20.0F;/* Time debounce for plausible diagnosis of battery voltage upstream the main contactor */
const volatile real32_T BSPR_tiBattVoltHiDiagThres_C = 2.0F;/* Time debounce for plausible diagnosis of battery voltage upstream the main contactor */
const volatile real32_T BSPR_tiBattVoltLoDiagThres_C = 2.0F;/* Time debounce for plausible diagnosis of battery voltage upstream the main contactor */
const volatile real32_T BSPR_tiDChrgVoltDiagThres_C = 3.0F;/* Time debounce for plausible diagnosis of DC charge  voltage down stream the DC charge contactor */
const volatile real32_T BSPR_tiPackVoltDiagThres_C = 3.0F;/* Time debounce for plausible diagnosis of battery voltage downstream the main contactor */
const volatile real32_T BSPR_uBattVoltDiagThres_C = 10.0F;/* Voltage threshold for plausible diagnosis of battery voltage upstream the main contactor */
const volatile real32_T BSPR_uBattVoltHiDiagThres_C = 413.76F;/* Voltage threshold for plausible diagnosis of battery voltage upstream the main contactor */
const volatile real32_T BSPR_uBattVoltHystDiagThres_C = 3.0F;/* Voltage threshold for plausible diagnosis of battery voltage upstream the main contactor */
const volatile real32_T BSPR_uBattVoltLoDiag_CUR[8] = { 192.0F, 192.0F, 230.4F,
  230.4F, 230.4F, 230.4F, 259.2F, 259.2F } ;  /* Curve for cell voltage out of range high warn and alarm diagnosis */

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

const volatile real32_T BSPR_uDChrgVoltDiagThres_C = 30.0F;/* Voltage threshold for plausible diagnosis of DC charge  voltage down stream the DC charge contactor */
const volatile real32_T BSPR_uPackVoltDiagThres_C = 30.0F;/* Voltage threshold for plausible diagnosis of battery voltage downstream the main contactor */

#define ASW1_OEM_STOP_SEC_DEFAULT_CALIB_UNSPECIFIED
#include "Asw1_OEM_MemMap.h"

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