//***************************************************************************** // (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.c /// /// \brief Specific code for Cdd Switch /// /// \author ZHAO, Kai ALDE-RT/EES6 //----------------------------------------------------------------------------- //============================================================================= // Includes //============================================================================= #include #include #include <../Cfg/CddSwi_Cfg.h> #include <../Cfg/CddSwi_Router.h> //============================================================================= // Defines and Typedef //============================================================================= //============================================================================= // Static variable declarations //============================================================================= //============================================================================= // Function prototypes //============================================================================= //============================================================================= // Macros //============================================================================= //----------------------------------------------------------------------------- // Start declaration or definitions of functions //----------------------------------------------------------------------------- #define ctadCddSwi_START_SEC_CODE #include <../Cfg/CddSwi_MemMap.h> //============================================================================= // Function definitions //============================================================================= //----------------------------------------------------------------------------- /// \brief CddSwi_Init /// /// \descr intialisation /// /// \param void /// /// \return void //----------------------------------------------------------------------------- void CddSwi_Init(void) { CddSwi_Rou_Init(); } //----------------------------------------------------------------------------- /// \brief CddSwi_Cycle10ms /// /// \descr cyclic behaviour /// /// \param void /// /// \return void //----------------------------------------------------------------------------- void CddSwi_Cycle10ms(void) { CddSwi_Rou_Cycle10ms(); } //----------------------------------------------------------------------------- /// \brief CddSwi_SetTgt /// /// \descr set target value on HSS channel /// /// \param ulChnIdx /// \param unTagVal /// /// \return void //----------------------------------------------------------------------------- void CddSwi_SetTgt(const uint32 ulChnIdx, const uint16 unTgtVal) { // evaluate the target value and set the output CddSwi_Rou_SetTgt(ulChnIdx, unTgtVal); } //----------------------------------------------------------------------------- /// \brief CddSwi_GetState /// /// \descr return switch state on HSS channel /// /// \param ulChnIdx /// /// \return tisSwitchStatus //----------------------------------------------------------------------------- tisSwitchStatus CddSwi_GetState(const uint32 ulChnIdx) { tisSwitchStatus tSwitchStatus; tSwitchStatus = CddSwi_Rou_GetState(ulChnIdx); return tSwitchStatus; } //----------------------------------------------------------------------------- /// \brief CddSwi_DeInit /// /// \descr intialisation /// /// \param void /// /// \return void //----------------------------------------------------------------------------- void CddSwi_DeInit(void) { CddSwi_Rou_DeInit(); } #define ctadCddSwi_STOP_SEC_CODE #include <../Cfg/CddSwi_MemMap.h> //----------------------------------------------------------------------------- // End declaration or definitions of functions //-----------------------------------------------------------------------------