//***************************************************************************** // (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.h /// /// \brief API for CddSwi /// /// \author ZHAO, Kai ALDE-RT/EES6 //----------------------------------------------------------------------------- #ifndef CDD_SWI_2021_03_01_H_ #define CDD_SWI_2021_03_01_H_ //============================================================================= // Includes //============================================================================= #include #include //============================================================================= // Defines and Typedef //============================================================================= #define CDDSWI_TGTVAL_32768 32768u typedef struct { tieError eOpenLoad; // 0: SNA, 1: No error, 2: Error_Yes, 3: Error_No tieError eShortGND; // 0: SNA, 1: No error, 2: Error_Yes, 3: Error_No tieError eShortVBAT; // 0: SNA, 1: No error, 2: Error_Yes, 3: Error_No }tErrState; //----------------------------------------------------------------------------- // Start declaration or definitions of functions //----------------------------------------------------------------------------- #define ctadCddSwi_START_SEC_CODE #include <../Cfg/CddSwi_MemMap.h> //============================================================================= // Prototypes //============================================================================= void riCddSwiInit(void); void rpCddSwi10ms(void); FUNC(void, ctadCddSwi_CODE) rdCddSwiDeInit(void); void CddSwi_Init(void); void CddSwi_Cycle10ms(void); void CddSwi_DeInit(void); void CddSwi_SetTgt(const uint32 ulChnIdx, const uint16 unTgtVal); // 0 - 32768: 0% - 100% tisSwitchStatus CddSwi_GetState(const uint32 ulChnIdx); boolean CddSwi_GetCodMDataStatus(void); #define ctadCddSwi_STOP_SEC_CODE #include <../Cfg/CddSwi_MemMap.h> //----------------------------------------------------------------------------- // End declaration or definitions of functions //----------------------------------------------------------------------------- #endif // CDD_SWI_2021_03_01_H_