//***************************************************************************** // (C) Automotive Lighting Reutlingen GmbH // Tuebinger Strasse 123, 72762 Reutlingen, Germany // // Automotive Lighting Reutlingen GmbH owns all the rights to this work. // This work shall not be copied, reproduced, used, modified, transferred // or its information shall not be disclosed without the prior written // authorization of Automotive Lighting Reutlingen GmbH. //***************************************************************************** //----------------------------------------------------------------------------- /// \file CddBts7200_Cfg.h /// /// \brief Configuration of CddBts7200 module /// /// \author ZHAO, Kai ALDE-RT/EES6 //----------------------------------------------------------------------------- #ifndef CDD_BTS7200_CFG_2021_03_01_H_ #define CDD_BTS7200_CFG_2021_03_01_H_ //============================================================================= // Defines and Typedef //============================================================================= #ifndef ERR_SNA #define ERR_SNA 0U #endif /*ERR_SNA*/ #ifndef ERR_NO #define ERR_NO 2U #endif /*ERR_NO*/ #ifndef ERR_YES #define ERR_YES 1U #endif /*ERR_YES*/ #ifndef ERR_DISABLED #define ERR_DISABLED 255U #endif /*ERR_DISABLED*/ #ifndef HSS_SNA #define HSS_SNA 0U #endif /*HSS_SNA*/ #ifndef HSS_SUPPORT #define HSS_SUPPORT 1U #endif /*HSS_SUPPORT*/ #ifndef HSS_NOSUPPORT #define HSS_NOSUPPORT 2U #endif /*HSS_NOSUPPORT*/ #ifndef HSS_NOEFT #define HSS_NOEFT 3U #endif /*HSS_NOEFT*/ // number of BTS7200 devices //#define CDDBTS7200_Cfg_NbOfDevices 2u #define CFG_CDD_BTS7200_CH1_SHORT2GND_THRESHOLD 1390u #define CFG_CDD_BTS7200_CH2_SHORT2GND_THRESHOLD 2740u #define CFG_CDD_BTS7200_CH3_SHORT2GND_THRESHOLD 3410u #define CFG_CDD_BTS7200_CH1_SHORT2VBAT_THRESHOLD 1250u #define CFG_CDD_BTS7200_CH2_SHORT2VBAT_THRESHOLD 1250u #define CFG_CDD_BTS7200_CH3_SHORT2VBAT_THRESHOLD 1250u #define CFG_CDD_BTS7200_CH1_OPENLOAD_THRESHOLD 24u #define CFG_CDD_BTS7200_CH2_OPENLOAD_THRESHOLD 24u #define CFG_CDD_BTS7200_CH3_OPENLOAD_THRESHOLD 24u #define CFG_CDD_BTS7200_DIAGNOSE_CYCLE_60ms 6u #define CFG_CDD_BTS7200_CURRENT_RSENES 820u // RSense =820Ohm #define CFG_CDD_BTS7200_CURRENT_FACTOR_HSS1_2 665u #define CFG_CDD_BTS7200_CURRENT_FACTOR_HSS3 1330u //#define CFG_CTRLHSS_HSS_CURRENT_CALC 811u // 811 = 665 * 1000 / 820 #endif // CDD_BTS7200_CFG_2021_03_01_H_