/* 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.h ******************************************************************************* * Project/Product : AUTOSAR R21-11 * Title : End-to-End protect module * Author : Hirain ******************************************************************************* * Description : The header file of the End-to-End module. * ******************************************************************************* * Limitations : None * ******************************************************************************* * ******************************************************************************* * Revision History: * Reference to Core C File ******************************************************************************* * END_FILE_HDR*/ /***************************************************************************** * E2E QAC Suppression *****************************************************************************/ /*PRQA S 4640,4641 EOF*/ /* Function, macrodefinition is named with a fixed requirement and does not make changes */ /*PRQA S 3432 EOF*/ /* P2VAR and other macros in the Compiler conforms to AUTOSAR standard.There's no need to revise. */ #ifndef E2E_H #define E2E_H /******************************************************************************* * Includes *******************************************************************************/ #include "Std_Types.h" #include "Crc.h" #include "E2E_Version.h" /***************************************************************************** * E2E QAC Suppression *****************************************************************************/ /*PRQA S 4640,4641 EOF*/ /* Function, macrodefinition is named with a fixed requirement and does not make changes */ /*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 */ /*PRQA S 3432 EOF*/ /* P2VAR and other macros in the Compiler conforms to AUTOSAR standard.There's no need to revise. */ /******************************************************************************* * Macro *******************************************************************************/ /*SWS_E2E_00047*/ #define E2E_E_INPUTERR_NULL ((Std_ReturnType)0x13) #define E2E_E_INPUTERR_WRONG ((Std_ReturnType)0x17) #define E2E_E_INTERR ((Std_ReturnType)0x19) #define E2E_E_OK ((Std_ReturnType)0x00) #define E2E_E_WRONGSTATE ((Std_ReturnType)0x1A) /****************************************************************************** * Type define ******************************************************************************/ /*SWS_E2E_00347*/ typedef enum { E2E_P_OK = 0x00, E2E_P_REPEATED = 0x01, E2E_P_WRONGSEQUENCE = 0x02, E2E_P_ERROR = 0x03, E2E_P_NOTAVAILABLE = 0x04, E2E_P_NONEWDATA = 0x05 } E2E_PCheckStatusType; /*QAC 1414 need TypeRequest\TypeResponse\ResultOk\ResultError*/ extern Std_MessageTypeType TypeRequest; extern Std_MessageTypeType TypeResponse; extern Std_MessageResultType ResultOk; extern Std_MessageResultType ResultError; #define E2E_START_SEC_CODE #include "E2E_MemMap.h" /****************************************************************************** * API Declare ******************************************************************************/ extern FUNC(void, E2E_CODE) E2E_GetVersionInfo ( P2VAR(Std_VersionInfoType, AUTOMATIC, E2E_APPL_DATA) VersionInfo ); #define E2E_STOP_SEC_CODE #include "E2E_MemMap.h" #endif/* E2E_H */