/* BEGIN_FILE_HDR ******************************************************************************* * NOTICE * This software is the property of HiRain Technologies. Any information * contained in this doc should not be reproduced, or used, or disclosed * without the written authorization from HiRain Technologies. ******************************************************************************* * File Name : E2E.c ******************************************************************************* * Project/Product : AUTOSAR R21-11 * Title : End-to-End protect module * Author : Hirain ******************************************************************************* * Description : The source file of the End-to-End module. * ******************************************************************************* * Limitations : None * ******************************************************************************* * ******************************************************************************* * Revision History: * * Version Date Initials CR# Descriptions * --------- ---------- ------------ ---------- --------------- * 04.00.00 11/08/2022 Wenbo.Cui N/A Original ******************************************************************************* * END_FILE_HDR*/ /****************************************************************************** * Includes ******************************************************************************/ #include "E2E.h" /******************************************************************************* * General QAC Suppression *******************************************************************************/ /*PRQA S 3214,0862,3614 EOF*/ /* According to the requirements of AUTOSAR Specification,when locating address segments in the files of each module,#include "E2E_MemMap.h" is required.Defined XXX_START_SEC_ will undefine in E2E_MemMap.h */ /*PRQA S 3432 EOF*/ /* P2VAR and other macros in the Compiler conforms to AUTOSAR standard.There's no need to revise. */ /***************************************************************************** * E2E QAC Suppression *****************************************************************************/ /*PRQA S 4640,4641 EOF*/ /* Function, macrodefinition is named with a fixed requirement and does not make changes */ #define E2E_START_SEC_CODE #include "E2E_MemMap.h" /****************************************************************************** * Public Funtions ******************************************************************************/ /*PRQA S 3211 ++*/ Std_MessageTypeType TypeRequest = STD_MESSAGETYPE_REQUEST; Std_MessageTypeType TypeResponse = STD_MESSAGETYPE_RESPONSE; Std_MessageResultType ResultOk = STD_MESSAGERESULT_OK; Std_MessageResultType ResultError = STD_MESSAGERESULT_ERROR; /*PRQA S 3211 --*/ /* BEGIN_FUNCTION_HDR ******************************************************************************** * Function Name: E2E_GetVersionInfo * * Description: Returns the version information of this module * * Inputs: None * * Outputs: VersionInfo Pointer to where to store the version information * * Limitations: None ******************************************************************************** END_FUNCTION_HDR*/ /*SWS_E2E_00032*/ FUNC(void, E2E_CODE) E2E_GetVersionInfo ( P2VAR(Std_VersionInfoType, AUTOMATIC, E2E_APPL_DATA) VersionInfo ) { if(NULL_PTR != VersionInfo) { /*SWS_E2E_00033*/ VersionInfo->vendorID = E2E_VENDOR_ID; VersionInfo->moduleID = E2E_MODULE_ID; VersionInfo->sw_major_version = (uint8)E2E_SW_MAJOR_VERSION; VersionInfo->sw_minor_version = (uint8)E2E_SW_MINOR_VERSION; VersionInfo->sw_patch_version = (uint8)E2E_SW_PATCH_VERSION; } return ; } #define E2E_STOP_SEC_CODE #include "E2E_MemMap.h"