//***************************************************************************** // (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_Router.h /// /// \brief Configuration of Cdd Switch router /// /// \author ZHAO, Kai ALDE-RT/EES6 //----------------------------------------------------------------------------- #ifndef CDD_BTS7200_ROUTER_2021_03_01_H_ #define CDD_BTS7200_ROUTER_2021_03_01_H_ // standard includes #include // module API (include path) #include #include //============================================================================= // Defines //============================================================================= typedef void(*pfIoHwAbUserSetTgt) (tiu32Voltage_mV unTgtVal); // pointer to the function which set the target value on HSS port typedef void(*pfIoHwAbUserGetDiagVal)(tiu32Voltage_mV* unDiagVal); // pointer to the function which set the target value on HSS port #define COD_HSS_DIAG_HSS1_OPENLOAD_THRESHOLD applicationCodingData.Fan1.HSS_DIAG.HSS1_OPEN_LOAD_THRESHOLD; #define COD_HSS_DIAG_HSS2_OPENLOAD_THRESHOLD applicationCodingData.Fan1.HSS_DIAG.HSS2_OPEN_LOAD_THRESHOLD; #define COD_HSS_DIAG_HSS3_OPENLOAD_THRESHOLD applicationCodingData.Fan1.HSS_DIAG.HSS3_OPEN_LOAD_THRESHOLD; #define COD_HSS_DIAG_HSS1_SHORT_TO_GND_THRESHOLD applicationCodingData.Fan1.HSS_DIAG.HSS1_SHORT_TO_GND_THRESHOLD; #define COD_HSS_DIAG_HSS2_SHORT_TO_GND_THRESHOLD applicationCodingData.Fan1.HSS_DIAG.HSS2_SHORT_TO_GND_THRESHOLD; #define COD_HSS_DIAG_HSS3_SHORT_TO_GND_THRESHOLD applicationCodingData.Fan1.HSS_DIAG.HSS3_SHORT_TO_GND_THRESHOLD; #define COD_HSS_DIAG_HSS1_SHORT_TO_UBAT_THRESHOLD applicationCodingData.Fan1.HSS_DIAG.HSS1_SHORT_TO_UBAT_THRESHOLD; #define COD_HSS_DIAG_HSS2_SHORT_TO_UBAT_THRESHOLD applicationCodingData.Fan1.HSS_DIAG.HSS2_SHORT_TO_UBAT_THRESHOLD; #define COD_HSS_DIAG_HSS3_SHORT_TO_UBAT_THRESHOLD applicationCodingData.Fan1.HSS_DIAG.HSS3_SHORT_TO_UBAT_THRESHOLD; //============================================================================= // Configuration //============================================================================= #ifndef UNIT_TEST #define CDDBTS7200_ECUVARCFG_aHSS_Type(Ch) EFT_ECUVARCFG_HSSTYPE[Ch].ucType #else tEft_EcuVarCfg_Hss Mt_Hss[4]; #define CDDBTS7200_ECUVARCFG_aHSS_Type(Ch) Mt_Hss[Ch].ucType #endif typedef struct { pfIoHwAbUserSetTgt IoHwAbUSerSetTgtFunc; } tCddSwiSetTgt_Router; typedef struct { pfIoHwAbUserGetDiagVal IoHwAbUSerGetDiagValFunc; } tCddSwiGetDiagVal_Router; #define DrvBts7200SetTgt_FuncRouteList \ { \ /* IoHwAbUSerFunc */ \ { IoHwAbUser_SetTgtHSS0 }, /* 0 Hss CH1*/ \ { IoHwAbUser_SetTgtHSS1 }, /* 1 Hss CH2*/ \ { IoHwAbUser_SetTgtHSS2 }, /* 2 Hss CH3*/ \ } #define DrvBts7200GetDiagVal_FuncRouteList \ { \ /* IoHwAbUSerFunc */ \ { IoHwAbUser_GetHss0Sense }, /* 0 Hss CH1*/ \ { IoHwAbUser_GetHss1Sense }, /* 1 Hss CH2*/ \ { IoHwAbUser_GetHss2Sense }, /* 2 Hss CH3*/ \ } #define DrvBts7200EnableHssSense IoHwAbUser_SenseEnableHss //============================================================================= // Prototypes //============================================================================= #endif // CDD_BTS7200_ROUTER_2021_03_01_H_