//***************************************************************************** // (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 FctR.c /// /// \brief Defines the Function Router (FctR). /// /// \descr The Function Router is responsible for /// /// Map input signals (which have CAN signal structure) to (an internal representation of) light functions /// Resolve priorities for light functions /// Compute target values and speed for logical lamps /// Fail / Safe reactions for light functions /// Transmit state information for LEDs /// //----------------------------------------------------------------------------- //============================================================================= // includes //============================================================================= #include "FctR.h" #include "FctR_Tgt.h" #include "FctR_Act.h" //============================================================================= // Start declaration or definitions of functions //============================================================================= #ifndef UNIT_TEST #define ctaaFctR_START_SEC_CODE #include "ctaaFctR_MemMap.h" #endif // -------------- Start funcrion declarations or definitions. // TODO: move to Rte_ctaaFctR.c and respect FUNC(void,ctaaFctR_CODE) void ctaaFctR_riFctRInit(void) { FctR_Init(); } // TODO: move to Rte_ctaaFctR.c and respect FUNC(void,ctaaFctR_CODE) void ctaaFctR_rdFctRDeInit(void) { FctR_DeInit(); } // TODO: move to Rte_ctaaFctR.c and respect FUNC(void,ctaaFctR_CODE) void ctaaFctR_rpFctR10ms(void) { FctR_Cycle10ms(); } //----------------------------------------------------------------------------- /// \brief FctR_Init /// /// \descr Initialize FctR module /// /// \param - /// /// \return void //----------------------------------------------------------------------------- void FctR_Init(void) { FctR_TgtInit(); FctR_ActInit(); } //----------------------------------------------------------------------------- /// \brief FctR_DeInit /// /// \descr Deinitialize FctR module /// /// \param - /// /// \return void //----------------------------------------------------------------------------- void FctR_DeInit(void) { // TODO: To be defined } // PRQA S 5334 1 // Ignore QAC warning: STST3 = 0 is less than threshold 1 for Number of statements in function (STST3) //----------------------------------------------------------------------------- /// \brief FctR_Cycle10ms /// /// \descr Cyclic function of FctR, to be called every 10 ms /// /// \param - /// /// \return void //----------------------------------------------------------------------------- void FctR_Cycle10ms(void) { FctR_TgtLgt(); FctR_ActCycle0(); } // -------------- Stop funcrion declarations or definitions. #ifndef UNIT_TEST #define ctaaFctR_STOP_SEC_CODE #include "ctaaFctR_MemMap.h" #endif //============================================================================= // End declaration or definitions of functions //============================================================================= // EOF