/* 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 : Dcm.h ******************************************************************************** * Project/Product : AUTOSAR R21-11 * Title : Dcm.h * Author : Hirain ******************************************************************************** * Description: Dcm.h * ******************************************************************************** * Limitations: None * ******************************************************************************** * ******************************************************************************** * Revision History: * Reference to Core C File ******************************************************************************** * END_FILE_HDR*/ #ifndef DCM_H #define DCM_H /******************************************************************************* * Include files *******************************************************************************/ #include "Dcm_Types.h" #include "Dcm_Version.h" /******************************************************************************* * Macros and Typedef *******************************************************************************/ /*Service ID*/ #define DCM_SID_INIT (uint8)0x01 #define DCM_SID_GETVERSIONINFO (uint8)0x24 #define DCM_SID_DEMTRIGGERONDTCSTATUC (uint8)0x2B #define DCM_SID_GETVIN (uint8)0x07 #define DCM_SID_BNDMWRITEBLOCKFINISH (uint8)0x7a #define DCM_SID_SETDEAUTHENTICATEDROLE (uint8)0x79 #define DCM_SID_GETSECURITYLEVEL (uint8)0x0d #define DCM_SID_GETSESCTRLTYPE (uint8)0x06 #define DCM_SID_RESETTODEFAULTSESSION (uint8)0x2a #define DCM_SID_TRIGGERONEVENT (uint8)0x2D #define DCM_SID_SETACTIVEDIAGNOSTIC (uint8)0x56 #define DCM_SID_STARTOFRECEPTION (uint8)0x46 #define DCM_SID_COPYRXDATA (uint8)0x44 #define DCM_SID_TPRXINDICATION (uint8)0x45 #define DCM_SID_COPYTXDATA (uint8)0x43 #define DCM_SID_TPTXCONFIRMATION (uint8)0x48 #define DCM_SID_TXCONFIRMATION (uint8)0x40 #define DCM_SID_COMMNOCOMMODEENTERED (uint8)0x21 #define DCM_SID_COMMSILENTCOMMODEENTERED (uint8)0x22 #define DCM_SID_COMMFULLCOMMODEENTERED (uint8)0x23 #define DCM_SID_CSMASYNCJOBFINISHED (uint8)0x30 #define DCM_SID_KEYMASYNCCERTIFICATEVERIFYFINISHED (uint8)0x31 #define DCM_SID_MAINFUNCTION (uint8)0x25 /*SWS_Dcm_00044*//*SWS_Dcm_00040 Development Errors*/ #define DCM_E_INVALID_VALUE (uint8)0x02 #define DCM_E_INTERFACE_RETURN_VALUE (uint8)0x02 #define DCM_E_UNINIT (uint8)0x05 #define DCM_E_PARAM (uint8)0x06 #define DCM_E_PARAM_POINTER (uint8)0x07 #define DCM_E_INIT_FAILED (uint8)0x08 #define DCM_E_SET_PROG_CONDITIONS_FAIL (uint8)0x09 /*SWS_Dcm_01416 Runtime Errors*/ #define DCM_E_INTERFACE_TIMEOUT (uint8)0x01 #define DCM_E_INTERFACE_BUFFER_OVERFLOW (uint8)0x03 /******************************************************************************* * Global parameter *******************************************************************************/ /******************************************************************************* * Global Function Prototype *******************************************************************************/ #define DCM_START_SEC_CODE #include "Dcm_MemMap.h" /*SWS_Dcm_00037*/ extern FUNC(void, DCM_CODE) Dcm_Init ( P2CONST(Dcm_ConfigType, AUTOMATIC, DCM_APPL_DATA) ConfigPtr ); #if(STD_ON == DCM_VERSION_INFO_API) /*SWS_Dcm_00065*/ extern FUNC(void, DCM_CODE) Dcm_GetVersionInfo ( P2VAR(Std_VersionInfoType, AUTOMATIC, DCM_APPL_DATA) versionInfo ); #endif /*SWS_Dcm_00950*/ extern FUNC(Std_ReturnType, DCM_CODE) Dcm_GetVin ( P2VAR(uint8, AUTOMATIC, DCM_APPL_DATA) Data ); #if(STD_ON == DCM_UDS_29_ENABLED) /*SWS_Dcm_91069*/ extern FUNC(Std_ReturnType, DCM_CODE) Dcm_SetDeauthenticatedRole ( uint16 connectionId, Dcm_AuthenticationRoleType deauthenticatedRole ); #endif /*SWS_Dcm_00338*/ extern FUNC(Std_ReturnType, DCM_CODE) Dcm_GetSecurityLevel ( P2VAR(Dcm_SecLevelType, AUTOMATIC, DCM_APPL_DATA) SecLevel ); /*SWS_Dcm_00339*/ extern FUNC(Std_ReturnType, DCM_CODE) Dcm_GetSesCtrlType ( P2VAR(Dcm_SesCtrlType, AUTOMATIC, DCM_APPL_DATA) SesCtrlType ); /*SWS_Dcm_00520*/ extern FUNC(Std_ReturnType, DCM_CODE) Dcm_ResetToDefaultSession ( void ); /*SWS_Dcm_01068*/ extern FUNC(Std_ReturnType, DCM_CODE) Dcm_SetActiveDiagnostic ( boolean active ); /*SWS_Dcm_00053*/ extern FUNC(void, DCM_CODE) Dcm_MainFunction ( void ); extern FUNC(Std_ReturnType, DCM_CODE) Dcm_ExternalSubServiceCheck ( P2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, DCM_VAR) pErrorCode ); #define DCM_STOP_SEC_CODE #include "Dcm_MemMap.h" #endif/*DCM_H*/