/********************************************************************************************************************** * COPYRIGHT * ------------------------------------------------------------------------------------------------------------------- * \verbatim * * This software is copyright protected and proprietary to Vector Informatik GmbH. * Vector Informatik GmbH grants to you only those rights as set out in the license conditions. * All other rights remain with Vector Informatik GmbH. * \endverbatim * ------------------------------------------------------------------------------------------------------------------- * LICENSE * ------------------------------------------------------------------------------------------------------------------- * Module: LdCom * Program: MSR_Vector_SLP4 * Customer: Marelli Automotive Components (Wuhu) Co., Ltd. * Expiry Date: Not restricted * Ordered Derivat.: TC377TP * License Scope : The usage is restricted to CBD2201205_D03 * * ------------------------------------------------------------------------------------------------------------------- * FILE DESCRIPTION * ------------------------------------------------------------------------------------------------------------------- * File: LdCom_Lcfg.c * Generation Time: 2023-10-23 09:18:11 * Project: CBD2200592_D00_demo - Version 1.0 * Delivery: CBD2201205_D03 * Tool Version: DaVinci Configurator Classic 5.26.35 SP2 * * *********************************************************************************************************************/ #define LDCOM_LCFG_SOURCE /********************************************************************************************************************** * LOCAL MISRA / PCLINT JUSTIFICATION *********************************************************************************************************************/ /********************************************************************************************************************** * INCLUDES *********************************************************************************************************************/ #include "LdCom.h" #include "LdCom_Lcfg.h" #include "Rte_Cbk.h" /********************************************************************************************************************** * LOCAL CONSTANT MACROS *********************************************************************************************************************/ /********************************************************************************************************************** * LOCAL FUNCTION MACROS *********************************************************************************************************************/ /********************************************************************************************************************** * LOCAL DATA TYPES AND STRUCTURES *********************************************************************************************************************/ /********************************************************************************************************************** * LOCAL DATA PROTOTYPES *********************************************************************************************************************/ /********************************************************************************************************************** CONFIGURATION CLASS: PRE_COMPILE SECTION: LOCAL DATA PROTOTYPES **********************************************************************************************************************/ /********************************************************************************************************************** CONFIGURATION CLASS: LINK SECTION: LOCAL DATA PROTOTYPES **********************************************************************************************************************/ /********************************************************************************************************************** * LOCAL DATA *********************************************************************************************************************/ /********************************************************************************************************************** CONFIGURATION CLASS: PRE_COMPILE SECTION: LOCAL DATA **********************************************************************************************************************/ /********************************************************************************************************************** CONFIGURATION CLASS: LINK SECTION: LOCAL DATA **********************************************************************************************************************/ /********************************************************************************************************************** * GLOBAL DATA *********************************************************************************************************************/ /********************************************************************************************************************** CONFIGURATION CLASS: PRE_COMPILE SECTION: GLOBAL DATA **********************************************************************************************************************/ /********************************************************************************************************************** LdCom_RxTxPduInfo **********************************************************************************************************************/ /** \var LdCom_RxTxPduInfo \brief Table containing mapping data from Input handles to PduR Tx handles/RTE callbacks. \details Element Description IfPdu TpRxIndicationFctPtrUsed TRUE, if the 0:1 relation has minimum 1 relation pointing to LdCom_TpRxIndicationFctPtr TpTxConfirmationFctPtrUsed TRUE, if the 0:1 relation has minimum 1 relation pointing to LdCom_TpTxConfirmationFctPtr PduRTxHandleId Handle ID used to call PduR_LdComTransmit() TpCopyTxDataFctPtrIdx the index of the 0:1 relation pointing to LdCom_TpCopyTxDataFctPtr TpRxIndicationFctPtrIdx the index of the 0:1 relation pointing to LdCom_TpRxIndicationFctPtr TpTxConfirmationFctPtrIdx the index of the 0:1 relation pointing to LdCom_TpTxConfirmationFctPtr */ #define LDCOM_START_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ CONST(LdCom_RxTxPduInfoType, LDCOM_CONST) LdCom_RxTxPduInfo[3] = { /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ /* Index IfPdu TpRxIndicationFctPtrUsed TpTxConfirmationFctPtrUsed PduRTxHandleId TpCopyTxDataFctPtrIdx TpRxIndicationFctPtrIdx TpTxConfirmationFctPtrIdx Referable Keys */ { /* 0 */ FALSE, TRUE, FALSE, 0u, LDCOM_NO_TPCOPYTXDATAFCTPTRIDXOFRXTXPDUINFO, 0u, LDCOM_NO_TPTXCONFIRMATIONFCTPTRIDXOFRXTXPDUINFO }, /* [/ActiveEcuC/LdCom/LdComConfig/LdComIPdu] */ { /* 1 */ FALSE, TRUE, FALSE, 0u, LDCOM_NO_TPCOPYTXDATAFCTPTRIDXOFRXTXPDUINFO, 1u, LDCOM_NO_TPTXCONFIRMATIONFCTPTRIDXOFRXTXPDUINFO }, /* [/ActiveEcuC/LdCom/LdComConfig/LdComIPdu_Save_Rx] */ { /* 2 */ FALSE, FALSE, TRUE, PduRConf_PduRSrcPdu_PduRSrcPdu_SoAd_Save_Tx, 0u, LDCOM_NO_TPRXINDICATIONFCTPTRIDXOFRXTXPDUINFO, 0u } /* [/ActiveEcuC/LdCom/LdComConfig/LdComIPdu_Save_Tx] */ }; #define LDCOM_STOP_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** LdCom_TpCopyRxDataFctPtr **********************************************************************************************************************/ /** \var LdCom_TpCopyRxDataFctPtr \brief Upper layer transport protocol CopyRxData function pointer according DefinitionRef: /MICROSAR/LdCom/LdComConfig/LdComIPdu/LdComRxCopyRxData */ #define LDCOM_START_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ CONST(LdCom_TpCopyRxDataFctPtrType, LDCOM_CONST) LdCom_TpCopyRxDataFctPtr[2] = { /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ /* Index TpCopyRxDataFctPtr Referable Keys */ /* 0 */ LdComCbk_RxCopyRxData , /* [/ActiveEcuC/LdCom/LdComConfig/LdComIPdu[0:LdComRxCopyRxData]] */ /* 1 */ LdComCbk_Save_RxCopyRxData /* [/ActiveEcuC/LdCom/LdComConfig/LdComIPdu_Save_Rx[0:LdComRxCopyRxData]] */ }; #define LDCOM_STOP_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** LdCom_TpCopyTxDataFctPtr **********************************************************************************************************************/ /** \var LdCom_TpCopyTxDataFctPtr \brief Upper layer transport protocol CopyTxData function pointer according DefinitionRef: /MICROSAR/LdCom/LdComConfig/LdComIPdu/LdComTxCopyTxData */ #define LDCOM_START_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ CONST(LdCom_TpCopyTxDataFctPtrType, LDCOM_CONST) LdCom_TpCopyTxDataFctPtr[1] = { /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ /* Index TpCopyTxDataFctPtr Referable Keys */ /* 0 */ LdComCbk_Save_TxCopyTxData /* [/ActiveEcuC/LdCom/LdComConfig/LdComIPdu_Save_Tx[0:LdComTxCopyTxData]] */ }; #define LDCOM_STOP_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** LdCom_TpRxIndicationFctPtr **********************************************************************************************************************/ /** \var LdCom_TpRxIndicationFctPtr \brief Upper layer transport protocol TpRxIndication function pointer according DefinitionRef: /MICROSAR/LdCom/LdComConfig/LdComIPdu/LdComTpRxIndication */ #define LDCOM_START_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ CONST(LdCom_TpRxIndicationFctPtrType, LDCOM_CONST) LdCom_TpRxIndicationFctPtr[2] = { /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ /* Index TpRxIndicationFctPtr Referable Keys */ /* 0 */ LdComCbk_TpRxIndication , /* [/ActiveEcuC/LdCom/LdComConfig/LdComIPdu[0:LdComTpRxIndication]] */ /* 1 */ LdComCbk_Save_TpRxIndication /* [/ActiveEcuC/LdCom/LdComConfig/LdComIPdu_Save_Rx[0:LdComTpRxIndication]] */ }; #define LDCOM_STOP_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** LdCom_TpStartOfReceptionFctPtr **********************************************************************************************************************/ /** \var LdCom_TpStartOfReceptionFctPtr \brief Upper layer transport protocol StartOfReception function pointer according DefinitionRef: /MICROSAR/LdCom/LdComConfig/LdComIPdu/LdComRxStartOfReception */ #define LDCOM_START_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ CONST(LdCom_TpStartOfReceptionFctPtrType, LDCOM_CONST) LdCom_TpStartOfReceptionFctPtr[2] = { /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ /* Index TpStartOfReceptionFctPtr Referable Keys */ /* 0 */ LdComCbk_RxStartOfReception , /* [/ActiveEcuC/LdCom/LdComConfig/LdComIPdu[0:LdComRxStartOfReception]] */ /* 1 */ LdComCbk_Save_RxStartOfReception /* [/ActiveEcuC/LdCom/LdComConfig/LdComIPdu_Save_Rx[0:LdComRxStartOfReception]] */ }; #define LDCOM_STOP_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** LdCom_TpTxConfirmationFctPtr **********************************************************************************************************************/ /** \var LdCom_TpTxConfirmationFctPtr \brief Upper layer transport protocol TpTxConfirmation function pointer according DefinitionRef: /MICROSAR/LdCom/LdComConfig/LdComIPdu/LdComTpTxConfirmation */ #define LDCOM_START_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ CONST(LdCom_TpTxConfirmationFctPtrType, LDCOM_CONST) LdCom_TpTxConfirmationFctPtr[1] = { /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ /* Index TpTxConfirmationFctPtr Referable Keys */ /* 0 */ LdComCbk_Save_TpTxConfirmation /* [/ActiveEcuC/LdCom/LdComConfig/LdComIPdu_Save_Tx[0:LdComTpTxConfirmation]] */ }; #define LDCOM_STOP_SEC_CONST_UNSPECIFIED /*lint -save -esym(961, 19.1) */ #include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** LdCom_Initialized **********************************************************************************************************************/ /** \var LdCom_Initialized \brief Initialization state of LdCom. TRUE, if initialized. */ #define LDCOM_START_SEC_VAR_ZERO_INIT_8BIT /*lint -save -esym(961, 19.1) */ #include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ VAR(LdCom_InitializedType, LDCOM_VAR_ZERO_INIT) LdCom_Initialized = FALSE; /* PRQA S 1514, 1533 */ /* MD_CSL_ObjectOnlyAccessedOnce */ #define LDCOM_STOP_SEC_VAR_ZERO_INIT_8BIT /*lint -save -esym(961, 19.1) */ #include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /*lint -restore */ /********************************************************************************************************************** CONFIGURATION CLASS: LINK SECTION: GLOBAL DATA **********************************************************************************************************************/ /********************************************************************************************************************** * LOCAL FUNCTION PROTOTYPES *********************************************************************************************************************/ /********************************************************************************************************************** * LOCAL FUNCTIONS *********************************************************************************************************************/ /********************************************************************************************************************** * GLOBAL FUNCTIONS *********************************************************************************************************************/ /********************************************************************************************************************** CONFIGURATION CLASS: PRE_COMPILE SECTION: GLOBAL FUNCTIONS **********************************************************************************************************************/ /********************************************************************************************************************** CONFIGURATION CLASS: LINK SECTION: GLOBAL FUNCTIONS **********************************************************************************************************************/ /********************************************************************************************************************** * END OF FILE: LdCom_Lcfg.c *********************************************************************************************************************/