/********************************************************************************************************************** * 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: MemIf * 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: MemIf_Cfg.c * Generation Time: 2023-10-23 09:18:08 * Project: CBD2200592_D00_demo - Version 1.0 * Delivery: CBD2201205_D03 * Tool Version: DaVinci Configurator Classic 5.26.35 SP2 * * *********************************************************************************************************************/ #define MEMIF_CFG_SOURCE /********************************************************************************************************************** * INCLUDES *********************************************************************************************************************/ #include "Std_Types.h" #include "MemIf.h" /**** Include of MemHwA Modules ************************************************************************************/ #include "vFeeAcc.h" /********************************************************************************************************************** * VERSION CHECK *********************************************************************************************************************/ #if ( (MEMIF_CFG_MAJOR_VERSION != (6u)) \ || (MEMIF_CFG_MINOR_VERSION != (0u))) # error "Version numbers of MemIf_Cfg.c and MemIf_Cfg.h are inconsistent!" #endif #if ( (MEMIF_SW_MAJOR_VERSION != (4u)) \ || (MEMIF_SW_MINOR_VERSION != (0u))) # error "Version numbers of MemIf_Cfg.c and MemIf.h are inconsistent!" #endif /********************************************************************************************************************** * GLOBAL DATA *********************************************************************************************************************/ #ifndef MEMIF_LOCAL /* COV_MEMIF_COMPATIBILITY */ # define MEMIF_LOCAL static #endif #if !defined (MEMIF_LOCAL_INLINE) /* COV_MEMIF_COMPATIBILITY */ # define MEMIF_LOCAL_INLINE LOCAL_INLINE #endif #define MEMIF_START_SEC_CONST_8 #include "MemIf_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ CONST(uint8, MEMIF_CONST) MemIf_NumberOfDevices = MEMIF_NUMBER_OF_DEVICES; #define MEMIF_STOP_SEC_CONST_8 #include "MemIf_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /********************************************************************************************************************** * MemHwA Function Pointer Tables *********************************************************************************************************************/ #define MEMIF_START_SEC_CODE #include "MemIf_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /**-- MemHwA Write Wrapper Functions --**/ MEMIF_LOCAL_INLINE FUNC (Std_ReturnType, MEMIF_PRIVATE_CODE) MemIf_Fee_WriteWrapper(uint16 BlockNumber, MemIf_DataPtr_pu8 DataBufferPtr); MEMIF_LOCAL_INLINE FUNC (Std_ReturnType, MEMIF_PRIVATE_CODE) MemIf_Fee_WriteWrapper(uint16 BlockNumber, MemIf_DataPtr_pu8 DataBufferPtr) /* PRQA S 3673 */ /* MD_MEMIF_16.7 */ { return vFeeAcc_Write(BlockNumber, DataBufferPtr); /* SBSW_MEMIF_04 */ } #define MEMIF_STOP_SEC_CODE #include "MemIf_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ #define MEMIF_START_SEC_CONST_32 #include "MemIf_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /**-- MemHwA Function Pointers --**/ CONST(MemIf_MemHwAApi_Type, MEMIF_CONST) MemIf_MemHwaApis[MEMIF_NUMBER_OF_DEVICES] = { /* Fee */ { vFeeAcc_Read, MemIf_Fee_WriteWrapper, vFeeAcc_EraseImmediateBlock, vFeeAcc_InvalidateBlock, vFeeAcc_Cancel, vFeeAcc_GetStatus, vFeeAcc_GetJobResult, vFeeAcc_SetMode } }; #define MEMIF_STOP_SEC_CONST_32 #include "MemIf_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_MemMap */ /* Justification for module-specific MISRA deviations: MD_MEMIF_16.7: rule 16.7 Reason: Buffer pointer is not declared const in order to support EA/FEE write interfaces with const and non-const buffers. Risk: No risk. By using this wrapper functions without const pointers compiler warnings are solved. Prevention: Program flow has been verified by component tests and review. */ /********************************************************************************************************************** * END OF FILE: MemIf_Cfg.c *********************************************************************************************************************/