//***************************************************************************** // (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 CddCPSQ5352_Cfg.h /// /// \brief Configuration of CddCPSQ5352 module /// /// \author OTT, Peter ALDE-RT/EES6 //----------------------------------------------------------------------------- #ifndef CDD_CPSQ5352_CFG_2021_01_21_H_ #define CDD_CPSQ5352_CFG_2021_01_21_H_ //----------------------------------------------------------------------------- // Basic Configuration //----------------------------------------------------------------------------- // number of CPSQ5352 devices #define CDDCPSQ5352_Cfg_NbOfDevices 6u // values needed for projects without calibration data #define CDDCPSQ5352_Eft_Calib_Default \ { \ { 0xFFFFFFFFu, { { 5813u, 0 }, /* Chn 1 */ \ { 5813u, 0 } } }, /* Chn 2 */ \ { 0xFFFFFFFFu, { { 5813u, 0 }, /* Chn 3 */ \ { 5813u, 0 } } }, /* Chn 4 */ \ { 0xFFFFFFFFu, { { 5813u, 0 }, /* Chn 5 */ \ { 5813u, 0 } } }, /* Chn 6 */ \ { 0xFFFFFFFFu, { { 5813u, 0 }, /* Chn 7 */ \ { 5813u, 0 } } }, /* Chn 8 */ \ { 0xFFFFFFFFu, { { 5813u, 0 }, /* Chn 9 */ \ { 5813u, 0 } } }, /* Chn 10 */ \ { 0xFFFFFFFFu, { { 5813u, 0 }, /* Chn 11 */ \ { 5813u, 0 } } } /* Chn 12 */ \ } #define CDDCPSQ5352_Eft_EcuVarCfg_Default \ { \ /* Driver Output Pmax Imax Imin */ \ { 1u, 255u, 255u, 255u, { { 1u, 32u, 1000u, 100u, 255u, 255u }, \ { 2u, 32u, 1000u, 100u, 255u, 255u } } }, \ { 1u, 255u, 255u, 255u, { { 3u, 32u, 1000u, 100u, 255u, 255u }, \ { 4u, 32u, 1000u, 100u, 255u, 255u } } }, \ { 1u, 255u, 255u, 255u, { { 5u, 32u, 1000u, 100u, 255u, 255u }, \ { 6u, 32u, 1000u, 100u, 255u, 255u } } }, \ { 1u, 255u, 255u, 255u, { { 3u, 32u, 1000u, 100u, 255u, 255u }, \ { 4u, 32u, 1000u, 100u, 255u, 255u } } }, \ { 1u, 255u, 255u, 255u, { { 5u, 32u, 1000u, 100u, 255u, 255u }, \ { 6u, 32u, 1000u, 100u, 255u, 255u } } }, \ { 1u, 255u, 255u, 255u, { { 7u, 32u, 1000u, 100u, 255u, 255u }, \ { 8u, 32u, 1000u, 100u, 255u, 255u } } } \ } //----------------------------------------------------------------------------- // Advanced Configuration //----------------------------------------------------------------------------- // PWM duty cycle thresholds #define CDDCPSQ5352_MinDutyVledOn 1638u // 5.0% of 32768, minimum PWM for VLED_ON measurement #define CDDCPSQ5352_MaxDutyVledOff 31130u // 95.0% of 32768, minimum PWM for VLED_OFF measurement #define CDDCPSQ5352_ContHiThresh 32735u // 99.9% of 32768, threshold to interpret PWM signal as continous high // open load diagnosis #define CDDCPSQ5352_OpenLoadDiff 2154u // [mV] voltage according to 8.5LSB (to switch between 8 and 9 LSBs) // short to GND diagnosis #define CDDCPSQ5352_ShortGndThresh 1647u // [mV] voltage according to 6.5LSB (to switch between 6 and 7 LSBs) // detection of low voltage LED chains #define CDDCPSQ5352_VoltSingleLed 4750u // [mV] voltage indicating chain with single LED #endif // CDD_CPSQ5352_CFG_2021_01_21_H_