//***************************************************************************** // (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 CddSwi_Router.h /// /// \brief Configuration of Cdd Switch router /// /// \author ZHAO, Kai ALDE-RT/EES6 //----------------------------------------------------------------------------- #ifndef CDD_SWI_ROUTER_2021_03_01_H_ #define CDD_SWI_ROUTER_2021_03_01_H_ #include #include //----------------------------------------------------------------------------- // Defines //----------------------------------------------------------------------------- typedef enum { eDrvVnd7140, eDrvVn7140, eDrvTle94x1, eDrvBts7200 } tCddSwi_DrvTyp; typedef struct { tCddSwi_DrvTyp DrvTyp; uint8 ucDrvIdx; uint8 ucOutIdx; } tCddSwi_Router; // HQGIF #if ((CDD_SWI_CFG_TYPE && CFG_SWI_BTS7200) != 0) #define CDDSWI_RouteList \ { \ /* DrvTyp DrvIdx, ucOutIdx */ \ {eDrvBts7200, 0u, 0u}, /* 0 Hss CH1*/ \ {eDrvBts7200, 0u, 1u}, /* 1 Hss CH2*/ \ {eDrvBts7200, 1u, 0u}, /* 2 Hss CH3*/ \ } #endif //============================================================================= // Prototypes //============================================================================= void CddSwi_Rou_Init(void); void CddSwi_Rou_Cycle10ms(void); void CddSwi_Rou_SetTgt(const uint32 ulChnIdx, const uint16 unTgtVal); tisSwitchStatus CddSwi_Rou_GetState(const uint32 ulChnIdx); //uint16 CddSwi_Rou_GetSwitchState(const uint32 ulChnIdx); //tErrState CddSwi_Rou_GetErrorState(const uint32 ulChnIdx); //uint16 CddSwi_Rou_GetCurrent(const uint32 ulChnIdx); void CddSwi_Rou_DeInit(void); //dummy functions #endif // CDD_SWI_ROUTER_2021_03_01_H_