//***************************************************************************** // (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 CddSbc.h /// /// \brief API for CddSbc /// /// \author ZHAO, Kai ALDE-RT/EES6 //----------------------------------------------------------------------------- #ifndef CDD_SBC_2021_03_08_H_ #define CDD_SBC_2021_03_08_H_ #include #include #include <../Cfg/CddSbc_Cfg.h> #include <../Cfg/CddSbc_Router.h> //#if (CDD_SBC_CFG_STORE_RESETREASON == STD_ON) //#include //#endif //============================================================================= // macros //============================================================================= #ifndef UNIT_TEST extern uint16* ECC_RET_RAM_VAR; #endif //----------------------------------------------------------------------------- // Start declaration or definitions of functions //----------------------------------------------------------------------------- #define ctadCddSbc_START_SEC_CODE #include <../Cfg/CddSbc_MemMap.h> //============================================================================= // Exported functions //============================================================================= #if (CDD_SBC_CFG_INIT_OPERATION == STD_ON) void riCddSbcInit(void); void CddSbc_Init(void); void CddSbc_DeInit(void); #endif #if (CDD_SBC_CFG_SLEEPMODE == STD_ON) void CddSbc_SetSleepMode(void); #endif #if (CDD_SBC_CFG_CAN_OPERATION == STD_ON) void CddSbc_SetCanMode(uint8 ucCanChannel, uint8 ucCanMode); uint8 CddSbc_GetCanMode(uint8 ucCanChannel); uint8 CddSbc_GetCanUV(void); #endif #if (CDD_SBC_CFG_CYCLIC_OPERATION == STD_ON) //void CddSbc_Cycle20ms(void); #if (CDD_SBC_CFG_WK_INPUT == STD_ON) boolean CddSbc_GetWakeUpStatus(void); #endif //CDD_SBC_CFG_WK_INPUT == STD_ON #endif //CDD_SBC_CFG_CYCLIC_OPERATION == STD_ON #if (CDD_SBC_CFG_WATCHDOG == STD_ON) void CddSbc_SetWdgWindowModeAnd10ms(void); void CddSbc_SetWdgWindowModeAnd200ms(void); void CddSbc_SetWdgTimeoutModeAnd200ms(void); #endif #if (CDD_SBC_CFG_STORE_RESETREASON == STD_ON) tieResetReason CddSbc_GetResetReason(void); #endif #define ctadCddSbc_STOP_SEC_CODE #include <../Cfg/CddSbc_MemMap.h> //----------------------------------------------------------------------------- // End declaration or definitions of functions //----------------------------------------------------------------------------- #endif // CDD_SBC_2021_03_08_H_