//***************************************************************************** // (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 MES-LYG //----------------------------------------------------------------------------- #ifndef CDD_SWI_2022_09_25_H_ #define CDD_SWI_2022_09_25_H_ //============================================================================= // Includes //============================================================================= #include #include //============================================================================= // Defines and Typedef //============================================================================= #define CDDSWI_TGTVAL_32768 32768u typedef unsigned char tieDataStatus; 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 //============================================================================= // Prototypes //============================================================================= void Rte_riCddSwiInit(void); void Rte_rpCddSwi10ms(void); void RterdCddSwiDeInit(void); void CddSwi_SetSleep_mode(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% void CddSwi_SetSpiOut(void); tisSwitchStatus CddSwi_GetState(const uint32 ulChnIdx); boolean CddSwi_GetCodMDataStatus(void); void CddSwi_SetSleep_Wakeup(uint8 ucDormancyRouse); boolean CddSwi_GetSleepStat(void); void CddSwi_New_request(uint8 ulChnIdx, uint8 ucNew_request); #define ctadCddSwi_STOP_SEC_CODE #include //----------------------------------------------------------------------------- // End declaration or definitions of functions //----------------------------------------------------------------------------- #endif // CDD_SWI_2022_09_25_H_