//***************************************************************************** // (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 CddStp_RoutCfg.h /// /// \brief Routing configuration of CddStp module /// /// \author J. Kling, ALDE-RT/EES6 //----------------------------------------------------------------------------- #ifndef CDD_STP_ROUT_CFG_H_ #define CDD_Stp_ROUT_CFG_H_ // compare e.g. to "CddNcv78702_RoutCfg.h" #ifndef UNIT_TEST // i.e.: NOT Unit-Test #include // N.b.: 'variable' 'EftData' is some kind of pointer: 'EftData = ADDR(.EFT_DATA);' // 'set' in e.g. .\Hongqi_H5\Src\Src_ThirdParty\Src_HQGIF\Src_KPIT-HQGIF\ApplicationStack\Build_App\Linker\Integration_Linker.ld #include //----------------------------------------------------------------------------- // Access to EFT data //----------------------------------------------------------------------------- // API access #define CDDSTP_EftDataValid() CddEft_DataValid() // check validity of EFT-Data // configuration #define CDDSTP_ECUVARCFG_ucDrvType(Device) EFT_ECUVARCFG_STP[Device].ucType // 'EFT_ECUVARCFG_STP' '==' 'EftData.Eft_EcuVarCfg.Val.Stp' // defined in file '.\Hongqi_H5\Src\Src_AL\Cdd\CddEft\Api\CddEft.h' // 'variable' 'EftData' is some kind of pointer: 'EftData = ADDR(.EFT_DATA);' // 'defined' in e.g. .\Hongqi_H5\Src\Src_ThirdParty\Src_HQGIF\Src_KPIT-HQGIF\ApplicationStack\Build_App\Linker\Integration_Linker.ld //----------------------------------------------------------------------------- // Access to IoHwAbUser //----------------------------------------------------------------------------- #define CDDStp_SetLedChannelPwm(Channel,Duty) IoHwAbUser_SetLedChannelPwm(Channel, Duty); #else // i.e.: Unit-Test!! // tbd #include #include // tCddStp_Eft_EcuVarCfg extern tCddStp_Eft_EcuVarCfg Test_Eft_EcuVarCfg_Used[2]; // = CDDTPS92520_Eft_EcuVarCfg_Default; const uint8 *Test_Eft_EcuVarCfg_ucDrvType(uint8 dvcIdx); boolean Test_EftDataValid(void); // API access #define CDDSTP_EftDataValid() Test_EftDataValid() // configuration (...'CDDTPS92520_ECUVARCFG_ucDrvType') #define CDDSTP_ECUVARCFG_ucDrvType(dvcIdx) *Test_Eft_EcuVarCfg_ucDrvType(dvcIdx) // Access to IoHwAbUser // tbd #define CDDTPS92520_SetLedChannelPwm(Channel,Duty) Test_SetLedPwm(Channel, Duty) #endif // UNIT_TEST #endif // CDD_STP_ROUT_CFG_H_ // EOF