/*
 * File: CFM_Cal.c
 *
 * Code generated for Simulink model 'CFM'.
 *
 * Company                        : AIWAYS
 * Author                         : zhangzy
 * Model version                  : 'M111C110'
 * Simulink Coder version         : 8.13 (R2017b) 24-Jul-2017
 * C/C++ source code generated on : Wed Jul 14 16:29:42 2021
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: Infineon->TriCore
 * Code generation objectives:
 *    1. MISRA C:2012 guidelines
 *    2. Safety precaution
 * Validation result: Not run
 */

#include "rtwtypes.h"
#include "CFM_types.h"

/* Exported data definition */

/*UAESCalUint16*/
#define ASW1_OEM_START_SEC_DEFAULT_CALIB_16
#include "Asw1_OEM_MemMap.h"

/* Definition for custom storage class: UAESCalibrationUint16 */
const volatile uint16_T CcCFM_AFEAdcRelatedErrDeb_ms = 5000U;/* AFEAdc转换相关故障debounce时间 */
const volatile uint16_T CcCFM_AFECellTempUpdErrDeb_ms = 5000U;/* AFE温度数据更新故障debounce时间 */
const volatile uint16_T CcCFM_AFECellVoltLineOpenDeb_ms = 5000U;/* AFE电压断线故障debounce时间 */
const volatile uint16_T CcCFM_AFECellVoltUpdErrDeb_ms = 5000U;/* AFE电压数据更新故障debounce时间 */
const volatile uint16_T CcCFM_AFEComLostDeb_ms = 8500U;/* AFE通讯故障debounce时间 */
const volatile uint16_T CcCFM_AFEDiagModeExitErrDeb_ms = 5000U;/* AFE诊断模式退出故障debounce时间 */
const volatile uint16_T CcCFM_AFEGpioLineOpenDeb_ms = 5000U;/* AFEGpio断线故障debounce时间 */
const volatile uint16_T CcCFM_AFEOtherErrDeb_ms = 5000U;/* AFE其他故障debounce时间 */
const volatile uint16_T CcCFM_AFESampleErrDeb_ms = 5000U;/* AFE采样失效故障debounce时间 */

#define ASW1_OEM_STOP_SEC_DEFAULT_CALIB_16
#include "Asw1_OEM_MemMap.h"

/*UAESCalUint8*/
#define ASW1_OEM_START_SEC_DEFAULT_CALIB_8
#include "Asw1_OEM_MemMap.h"

/* Definition for custom storage class: UAESCalibrationUint8 */
const volatile boolean_T CaCFM_AFEAdcRelatedErrOvr_flg[8] = { 0, 0, 0, 0, 0, 0,
  0, 0 } ;                             /* GaCFM_AFEAdcRelatedErr_flg对应的OverWrite值 */

const volatile boolean_T CaCFM_AFECellTempUpdErrOvr_flg[8] = { 0, 0, 0, 0, 0, 0,
  0, 0 } ;                             /* GaCFM_AFECellTempUpdErr_flg对应的OverWrite值 */

const volatile boolean_T CaCFM_AFECellVoltLineOpenOvr_flg[8] = { 0, 0, 0, 0, 0,
  0, 0, 0 } ;                          /* GaCFM_AFECellVoltLineOpen_flg对应的OverWrite值 */

const volatile boolean_T CaCFM_AFECellVoltUpdErrOvr_flg[8] = { 0, 0, 0, 0, 0, 0,
  0, 0 } ;                             /* GaCFM_AFECellVoltUpdErr_flg对应的OverWrite值 */

const volatile boolean_T CaCFM_AFEComLostOvr_flg = 0;/* GaCFM_AFEComLost_flg对应的OverWrite值 */
const volatile boolean_T CaCFM_AFEDiagModeExitErrOvr_flg[8] = { 0, 0, 0, 0, 0, 0,
  0, 0 } ;                             /* GaCFM_AFEDiagModeExitErr_flg对应的OverWrite值 */

const volatile boolean_T CaCFM_AFEGpioLineOpenOvr_flg[8] = { 0, 0, 0, 0, 0, 0, 0,
  0 } ;                                /* GaCFM_AFEGpioLineOpen_flg对应的OverWrite值 */

const volatile boolean_T CaCFM_AFEOtherErrOvr_flg[8] = { 0, 0, 0, 0, 0, 0, 0, 0
} ;                                    /* GaCFM_AFEOtherErr_flg对应的OverWrite值 */

const volatile boolean_T CaCFM_AFESampleErrOvr_flg[8] = { 0, 0, 0, 0, 0, 0, 0, 0
} ;                                    /* GaCFM_AFESampleErr_flg对应的OverWrite值 */

const volatile uint8_T CaCFM_BusBarCell_enum[112] = { 1U, 1U, 1U, 1U, 0U, 1U, 1U,
  1U, 1U, 0U, 1U, 1U, 1U, 1U, 1U, 1U, 1U, 1U, 0U, 1U, 1U, 1U, 1U, 0U, 1U, 1U, 1U,
  1U, 1U, 1U, 1U, 1U, 0U, 1U, 1U, 1U, 1U, 0U, 1U, 1U, 1U, 1U, 1U, 1U, 1U, 1U, 0U,
  1U, 1U, 1U, 1U, 0U, 1U, 1U, 1U, 1U, 1U, 1U, 1U, 1U, 0U, 1U, 1U, 1U, 1U, 0U, 1U,
  1U, 1U, 1U, 1U, 1U, 1U, 1U, 0U, 1U, 1U, 1U, 1U, 0U, 1U, 1U, 1U, 1U, 1U, 1U, 1U,
  1U, 0U, 1U, 1U, 1U, 1U, 0U, 1U, 1U, 1U, 1U, 1U, 1U, 1U, 1U, 0U, 1U, 1U, 1U, 1U,
  0U, 1U, 1U, 1U, 1U } ;  /* Cell与铜牌标定量：
                                          0：未使用，1：Cell，2：铜牌 */

const volatile uint8_T CaCFM_NTCTemp_enum[48] = { 1U, 1U, 1U, 0U, 0U, 0U, 1U, 1U,
  1U, 0U, 0U, 0U, 1U, 1U, 1U, 0U, 0U, 0U, 1U, 1U, 1U, 0U, 0U, 0U, 1U, 1U, 1U, 0U,
  0U, 0U, 1U, 1U, 1U, 0U, 0U, 0U, 1U, 1U, 1U, 0U, 0U, 0U, 1U, 1U, 1U, 0U, 0U, 0U
} ;                                    /* 温度标定量：
                                          0：未使用，1：模组温度，2：铜牌温度 */

const volatile boolean_T CbCFM_AFEAdcRelatedErrOvrSwt_flg = 0;/* GaCFM_AFEAdcRelatedErr_flg对应变量的Switch开关0:使用计算值；1:使用标定值 */
const volatile boolean_T CbCFM_AFECellTempUpdErrOvrSwt_flg = 0;/* GaCFM_AFECellTempUpdErr_flg对应变量的Switch开关0:使用计算值；1:使用标定值 */
const volatile boolean_T CbCFM_AFECellVoltLineOpenOvrSwt_flg = 0;/* GaCFM_AFECellVoltLineOpen_flg对应变量的Switch开关0:使用计算值；1:使用标定值 */
const volatile boolean_T CbCFM_AFECellVoltUpdErrOvrSwt_flg = 0;/* GaCFM_AFECellVoltUpdErr_flg对应变量的Switch开关0:使用计算值；1:使用标定值 */
const volatile boolean_T CbCFM_AFEComLostOvrSwt_flg = 0;/* GaCFM_AFEComLost_flg对应变量的Switch开关0:使用计算值；1:使用标定值 */
const volatile boolean_T CbCFM_AFEDiagModeExitErrOvrSwt_flg = 0;/* GaCFM_AFEDiagModeExitErr_flg对应变量的Switch开关0:使用计算值；1:使用标定值 */
const volatile boolean_T CbCFM_AFEGpioLineOpenOvrSwt_flg = 0;/* GaCFM_AFEGpioLineOpen_flg对应变量的Switch开关0:使用计算值；1:使用标定值 */
const volatile boolean_T CbCFM_AFEOtherErrOvrSwt_flg = 0;/* GaCFM_AFEOtherErr_flg对应变量的Switch开关0:使用计算值；1:使用标定值 */
const volatile boolean_T CbCFM_AFESampleErrOvrSwt_flg = 0;/* GaCFM_AFESampleErr_flg对应变量的Switch开关0:使用计算值；1:使用标定值 */

#define ASW1_OEM_STOP_SEC_DEFAULT_CALIB_8
#include "Asw1_OEM_MemMap.h"

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