/** @file     Rte_Diag_SWC.h
  *
  * @brief    Application header file
  *
  * @note     AUTOMATICALLY GENERATED FILE! DO NOT EDIT!
  *
  * @note     Generated by ETAS RTA-RTE
  * @note     Version 6.5.0 
  *
  * @date     Thu Mar  7 11:39:19 2019
  */

#ifndef RTE_DIAG_SWC_H
#define RTE_DIAG_SWC_H

#ifndef RTE_CORE
#ifdef RTE_APPLICATION_HEADER_FILE
#error Multiple application header files included.
#endif /* RTE_APPLICATION_HEADER_FILE */
#define RTE_APPLICATION_HEADER_FILE
#endif /* RTE_CORE */

/*******************************************************
 ***
 *** Includes
 ***
 *******************************************************/

#include "Rte.h"
#include "Rte_Intl.h"
#include "Rte_Diag_SWC_Type.h"

#include "Rte_DataHandleType.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#if defined(RTE_RUNNABLEAPI_RE_CBStatusComp_DemComponent_MCAL_Status)
   /* Do nothing for this and all elif clauses below (rte_sws_2751) */
#elif defined(RTE_RUNNABLEAPI_RE_CBStatusComp_DemComponent_MCU_Status)
#elif defined(RTE_RUNNABLEAPI_RE_CBStatusComp_DemComponent_MPDU_CommStatus)
#elif defined(RTE_RUNNABLEAPI_RE_CBStatusComp_DemComponent_SEN_1_CommStatus)
#elif defined(RTE_RUNNABLEAPI_RE_CBStatusComp_DemComponent_SEN_CommStatus)
#elif defined(RTE_RUNNABLEAPI_RE_FiM_Swc)
#elif defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
#elif defined(RTE_RUNNABLEAPI_Runnable_Dcm_Swc)
#elif defined(RTE_RUNNABLEAPI_Swc_DSP_SEC_LEV_L1_CK)
#elif defined(RTE_RUNNABLEAPI_Swc_DSP_SEC_LEV_L1_GS)
#elif defined(RTE_RUNNABLEAPI_Swc_DSP_SEC_LEV_L2_CK)
#elif defined(RTE_RUNNABLEAPI_Swc_DSP_SEC_LEV_L2_GS)
#elif defined(RTE_RUNNABLEAPI_Swc_DSP_SEC_LEV_L3_CK)
#elif defined(RTE_RUNNABLEAPI_Swc_DSP_SEC_LEV_L3_GS)
#elif defined(RTE_RUNNABLEAPI_Swc_DSP_SEC_LEV_L4_CK)
#elif defined(RTE_RUNNABLEAPI_Swc_DSP_SEC_LEV_L4_GS)
#elif defined(RTE_RUNNABLEAPI_Swc_RoutineServices_DcmDspRoutine_CheckProgCond_Result)
#elif defined(RTE_RUNNABLEAPI_Swc_RoutineServices_DcmDspRoutine_CheckProgCond_Start)
#elif defined(RTE_RUNNABLEAPI_Swc_RoutineServices_DcmDspRoutine_CheckProgCond_Stop)
#elif defined(RTE_RUNNABLEAPI_Swc_RoutineServices_DcmDspRoutine_Test_Result)
#elif defined(RTE_RUNNABLEAPI_Swc_RoutineServices_DcmDspRoutine_Test_Start)
#elif defined(RTE_RUNNABLEAPI_Swc_RoutineServices_DcmDspRoutine_Test_Stop)
#else
   /* None of above defined so define value including all APIs (rte_sws_2751) */
   #define RTE_PRV_ALL_API
#endif

/*******************************************************
 ***
 *** Constants
 ***
 *******************************************************/

#ifndef RTE_CORE
#define RTE_E_DCMServices_E_NOT_OK ((Std_ReturnType)1)
#define RTE_E_DCMServices_E_OK ((Std_ReturnType)0)
#define RTE_E_DTCSuppression_E_NOT_OK ((Std_ReturnType)1)
#define RTE_E_DTCSuppression_E_OK ((Std_ReturnType)0)
#define RTE_E_DiagnosticInfo_DEM_E_NO_DTC_AVAILABLE ((Std_ReturnType)2)
#define RTE_E_DiagnosticInfo_DEM_E_NO_FDC_AVAILABLE ((Std_ReturnType)3)
#define RTE_E_DiagnosticInfo_E_NOT_OK ((Std_ReturnType)1)
#define RTE_E_DiagnosticInfo_E_OK ((Std_ReturnType)0)
#define RTE_E_DiagnosticMonitor_E_NOT_OK ((Std_ReturnType)1)
#define RTE_E_DiagnosticMonitor_E_OK ((Std_ReturnType)0)
#define RTE_E_FunctionInhibition_E_NOT_OK ((Std_ReturnType)1)
#define RTE_E_FunctionInhibition_E_OK ((Std_ReturnType)0)
#define RTE_E_OperationCycle_E_NOT_OK ((Std_ReturnType)1)
#define RTE_E_OperationCycle_E_OK ((Std_ReturnType)0)
#define RTE_E_RoutineServices_DcmDspRoutine_CheckPgmPreCond_DCM_E_FORCE_RCRRP ((Std_ReturnType)12)
#define RTE_E_RoutineServices_DcmDspRoutine_CheckPgmPreCond_DCM_E_PENDING ((Std_ReturnType)10)
#define RTE_E_RoutineServices_DcmDspRoutine_CheckPgmPreCond_E_NOT_OK ((Std_ReturnType)1)
#define RTE_E_RoutineServices_DcmDspRoutine_CheckPgmPreCond_E_OK ((Std_ReturnType)0)
#define RTE_E_RoutineServices_DcmDspRoutine_Test_DCM_E_FORCE_RCRRP ((Std_ReturnType)12)
#define RTE_E_RoutineServices_DcmDspRoutine_Test_DCM_E_PENDING ((Std_ReturnType)10)
#define RTE_E_RoutineServices_DcmDspRoutine_Test_E_NOT_OK ((Std_ReturnType)1)
#define RTE_E_RoutineServices_DcmDspRoutine_Test_E_OK ((Std_ReturnType)0)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L1_DCM_E_COMPARE_KEY_FAILED ((Std_ReturnType)11)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L1_DCM_E_PENDING ((Std_ReturnType)10)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L1_E_NOT_OK ((Std_ReturnType)1)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L1_E_OK ((Std_ReturnType)0)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L2_DCM_E_COMPARE_KEY_FAILED ((Std_ReturnType)11)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L2_DCM_E_PENDING ((Std_ReturnType)10)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L2_E_NOT_OK ((Std_ReturnType)1)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L2_E_OK ((Std_ReturnType)0)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L3_DCM_E_COMPARE_KEY_FAILED ((Std_ReturnType)11)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L3_DCM_E_PENDING ((Std_ReturnType)10)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L3_E_NOT_OK ((Std_ReturnType)1)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L3_E_OK ((Std_ReturnType)0)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L4_DCM_E_COMPARE_KEY_FAILED ((Std_ReturnType)11)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L4_DCM_E_PENDING ((Std_ReturnType)10)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L4_E_NOT_OK ((Std_ReturnType)1)
#define RTE_E_SecurityAccess_DSP_SEC_LEV_L4_E_OK ((Std_ReturnType)0)
#endif /* RTE_CORE */

/*******************************************************
 ***
 *** Public Types
 ***
 *******************************************************/

/* BEGIN: SWC types (core visible) */
struct Rte_CDS_Diag_SWC {
   /* Data handles */
   P2VAR(Rte_DE_uint8, AUTOMATIC, RTE_DATA) Runnable_Dcm_Swc_RPort_TST_Diag_TestNumber_uint8_Impl;
};
typedef struct Rte_CDS_Diag_SWC Rte_CDS_Diag_SWC;
/* END: SWC types (core visible) */

/*******************************************************
 ***
 *** Private Types
 ***
 *******************************************************/

/* BEGIN: SWC types (private) */
/* END: SWC types (private) */

/*******************************************************
 ***
 *** Instance Declarations
 ***
 *******************************************************/

#define RTE_START_SEC_CONST_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
extern CONST(struct Rte_CDS_Diag_SWC, RTE_CONST) Rte_Inst_Diag_SWC;
#define RTE_STOP_SEC_CONST_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */


#ifndef RTE_CORE
typedef CONSTP2CONST(struct Rte_CDS_Diag_SWC, AUTOMATIC, RTE_CONST) Rte_Instance;
#endif /* RTE_CORE */

/*******************************************************
 ***
 *** API Mapping macros
 ***
 *******************************************************/

/* API Mapping Macros */
#ifndef RTE_CORE

#define Dcm_START_SEC_CODE
#include "Dcm_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(Std_ReturnType, Dcm_CODE) Dcm_GetActiveProtocol(CONSTP2VAR(Dcm_ProtocolType, AUTOMATIC, RTE_APPL_DATA) ActiveProtocol);

FUNC(Std_ReturnType, Dcm_CODE) Dcm_GetSecurityLevel(CONSTP2VAR(Dcm_SecLevelType, AUTOMATIC, RTE_APPL_DATA) SecLevel);

FUNC(Std_ReturnType, Dcm_CODE) Dcm_GetSesCtrlType(CONSTP2VAR(Dcm_SesCtrlType, AUTOMATIC, RTE_APPL_DATA) SesCtrlType);

FUNC(Std_ReturnType, Dcm_CODE) Dcm_ResetToDefaultSession(void);

#define Dcm_STOP_SEC_CODE
#include "Dcm_MemMap.h" /*lint !e537 permit multiple inclusion */
#define Dem_START_SEC_CODE
#include "Dem_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(Std_ReturnType, Dem_CODE) Dem_ClearPrestoredFreezeFrame(VAR(Dem_EventIdType, AUTOMATIC) Rte_PDAV0);

FUNC(Std_ReturnType, Dem_CODE) Dem_GetDTCOfEvent(VAR(Dem_EventIdType, AUTOMATIC) Rte_PDAV0,
                                                 VAR(Dem_DTCFormatType, AUTOMATIC) DTCFormat,
                                                 CONSTP2VAR(uint32, AUTOMATIC, RTE_APPL_DATA) DTCOfEvent);

FUNC(Std_ReturnType, Dem_CODE) Dem_GetEventFailed(VAR(Dem_EventIdType, AUTOMATIC) Rte_PDAV0,
                                                  CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) EventFailed);

FUNC(Std_ReturnType, Dem_CODE) Dem_GetEventStatus(VAR(Dem_EventIdType, AUTOMATIC) Rte_PDAV0,
                                                  CONSTP2VAR(Dem_UdsStatusByteType, AUTOMATIC, RTE_APPL_DATA) EventStatusByte);

FUNC(Std_ReturnType, Dem_CODE) Dem_GetEventTested(VAR(Dem_EventIdType, AUTOMATIC) Rte_PDAV0,
                                                  CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) EventTested);

FUNC(Std_ReturnType, Dem_CODE) Dem_GetFaultDetectionCounter(VAR(Dem_EventIdType, AUTOMATIC) Rte_PDAV0,
                                                            CONSTP2VAR(sint8, AUTOMATIC, RTE_APPL_DATA) FaultDetectionCounter);

FUNC(Std_ReturnType, Dem_CODE) Dem_PrestoreFreezeFrame(VAR(Dem_EventIdType, AUTOMATIC) Rte_PDAV0);

FUNC(Std_ReturnType, Dem_CODE) Dem_ResetEventStatus(VAR(Dem_EventIdType, AUTOMATIC) Rte_PDAV0);

FUNC(Std_ReturnType, Dem_CODE) Dem_SetDTCSuppression(VAR(uint32, AUTOMATIC) DTC,
                                                     VAR(Dem_DTCFormatType, AUTOMATIC) DTCFormat,
                                                     VAR(boolean, AUTOMATIC) SuppressionStatus);

FUNC(Std_ReturnType, Dem_CODE) Dem_SetEventStatus(VAR(Dem_EventIdType, AUTOMATIC) Rte_PDAV0,
                                                  VAR(Dem_EventStatusType, AUTOMATIC) EventStatus);

FUNC(Std_ReturnType, Dem_CODE) Dem_SetOperationCycleState(VAR(uint8, AUTOMATIC) Rte_PDAV0,
                                                          VAR(Dem_OperationCycleStateType, AUTOMATIC) CycleState);

#define Dem_STOP_SEC_CODE
#include "Dem_MemMap.h" /*lint !e537 permit multiple inclusion */
#define FiM_START_SEC_CODE
#include "FiM_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(Std_ReturnType, FiM_CODE) FiM_GetFunctionPermission(VAR(FiM_FunctionIdType, AUTOMATIC) Rte_PDAV0,
                                                         CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) Permission);

#define FiM_STOP_SEC_CODE
#include "FiM_MemMap.h" /*lint !e537 permit multiple inclusion */
#define RTE_START_SEC_CODE
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(Std_ReturnType, RTE_CODE) Rte_Read_Diag_SWC_RPort_DataServices_DspData_SYS_SUP_ID_F18A_Data(CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Switch_Diag_SWC_PPort_Mdg2_MDGP_Mdg2(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Diag_SWC_PPort_DataServices_DspData_ASW_VER_F189_Data(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Diag_SWC_PPort_DataServices_DspData_MANU_DATE_F18B_Data(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Diag_SWC_PPort_DataServices_DspData_SYS_SUP_ID_F18A_Data(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Diag_SWC_PPort_TST_FimPermisison_TST_FimPermission(VAR(uint8, AUTOMATIC) data);
FUNC(uint8, RTE_CODE) Rte_Mode_Diag_SWC_RPort_DcmDiagnosticSessionControl_MDGP_DcmDiagnosticSessionControl(void);
#define RTE_STOP_SEC_CODE
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
#define RTE_START_SEC_CONST_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
extern CONST(Rte_SelfType_Dcm, RTE_CONST) Rte_Self_CPT_Dcm;
extern CONST(Rte_SelfType_Dem, RTE_CONST) Rte_Self_CPT_Dem;
extern CONST(Rte_SelfType_FiM, RTE_CONST) Rte_Self_CPT_FiM;
#define RTE_STOP_SEC_CONST_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
#define RTE_START_SEC_VAR_CLEARED_32
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
extern VAR(Rte_ImplicitBufsType, RTE_DATA) Rte_ImplicitBufs;
#define RTE_STOP_SEC_VAR_CLEARED_32
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_ControlDTCSuppression_SetDTCSuppression to Dem_SetDTCSuppression */
#define Rte_Call_RPort_ControlDTCSuppression_SetDTCSuppression( DTC, DTCFormat, SuppressionStatus ) Dem_SetDTCSuppression(DTC, DTCFormat, SuppressionStatus)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_Runnable_Dcm_Swc)
/* Inline function call optimization; Rte_Call_RPort_DCMServices_GetActiveProtocol to Dcm_GetActiveProtocol */
#define Rte_Call_RPort_DCMServices_GetActiveProtocol( ActiveProtocol ) Dcm_GetActiveProtocol(ActiveProtocol)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_Runnable_Dcm_Swc)
/* Inline function call optimization; Rte_Call_RPort_DCMServices_GetSecurityLevel to Dcm_GetSecurityLevel */
#define Rte_Call_RPort_DCMServices_GetSecurityLevel( SecLevel ) Dcm_GetSecurityLevel(SecLevel)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_Runnable_Dcm_Swc)
/* Inline function call optimization; Rte_Call_RPort_DCMServices_GetSesCtrlType to Dcm_GetSesCtrlType */
#define Rte_Call_RPort_DCMServices_GetSesCtrlType( SesCtrlType ) Dcm_GetSesCtrlType(SesCtrlType)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_Runnable_Dcm_Swc)
/* Inline function call optimization; Rte_Call_RPort_DCMServices_ResetToDefaultSession to Dcm_ResetToDefaultSession */
#define Rte_Call_RPort_DCMServices_ResetToDefaultSession() Dcm_ResetToDefaultSession()

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_Event_Event_LostComm_MPDU_ClearPrestoredFreezeFrame to Dem_ClearPrestoredFreezeFrame */
#define Rte_Call_RPort_Event_Event_LostComm_MPDU_ClearPrestoredFreezeFrame() Dem_ClearPrestoredFreezeFrame(((VAR(Dem_EventIdType, AUTOMATIC))2))

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_Event_Event_LostComm_MPDU_PrestoreFreezeFrame to Dem_PrestoreFreezeFrame */
#define Rte_Call_RPort_Event_Event_LostComm_MPDU_PrestoreFreezeFrame() Dem_PrestoreFreezeFrame(((VAR(Dem_EventIdType, AUTOMATIC))2))

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_Event_Event_LostComm_MPDU_ResetEventStatus to Dem_ResetEventStatus */
#define Rte_Call_RPort_Event_Event_LostComm_MPDU_ResetEventStatus() Dem_ResetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))2))

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_Event_Event_LostComm_MPDU_SetEventStatus to Dem_SetEventStatus */
#define Rte_Call_RPort_Event_Event_LostComm_MPDU_SetEventStatus( EventStatus ) Dem_SetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))2), EventStatus)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_Event_Event_LostComm_SEN_1_ClearPrestoredFreezeFrame to Dem_ClearPrestoredFreezeFrame */
#define Rte_Call_RPort_Event_Event_LostComm_SEN_1_ClearPrestoredFreezeFrame() Dem_ClearPrestoredFreezeFrame(((VAR(Dem_EventIdType, AUTOMATIC))4))

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_Event_Event_LostComm_SEN_1_PrestoreFreezeFrame to Dem_PrestoreFreezeFrame */
#define Rte_Call_RPort_Event_Event_LostComm_SEN_1_PrestoreFreezeFrame() Dem_PrestoreFreezeFrame(((VAR(Dem_EventIdType, AUTOMATIC))4))

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_Event_Event_LostComm_SEN_1_ResetEventStatus to Dem_ResetEventStatus */
#define Rte_Call_RPort_Event_Event_LostComm_SEN_1_ResetEventStatus() Dem_ResetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))4))

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_Event_Event_LostComm_SEN_1_SetEventStatus to Dem_SetEventStatus */
#define Rte_Call_RPort_Event_Event_LostComm_SEN_1_SetEventStatus( EventStatus ) Dem_SetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))4), EventStatus)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_Event_Event_LostComm_SEN_ClearPrestoredFreezeFrame to Dem_ClearPrestoredFreezeFrame */
#define Rte_Call_RPort_Event_Event_LostComm_SEN_ClearPrestoredFreezeFrame() Dem_ClearPrestoredFreezeFrame(((VAR(Dem_EventIdType, AUTOMATIC))3))

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_Event_Event_LostComm_SEN_PrestoreFreezeFrame to Dem_PrestoreFreezeFrame */
#define Rte_Call_RPort_Event_Event_LostComm_SEN_PrestoreFreezeFrame() Dem_PrestoreFreezeFrame(((VAR(Dem_EventIdType, AUTOMATIC))3))

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_Event_Event_LostComm_SEN_ResetEventStatus to Dem_ResetEventStatus */
#define Rte_Call_RPort_Event_Event_LostComm_SEN_ResetEventStatus() Dem_ResetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))3))

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_Event_Event_LostComm_SEN_SetEventStatus to Dem_SetEventStatus */
#define Rte_Call_RPort_Event_Event_LostComm_SEN_SetEventStatus( EventStatus ) Dem_SetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))3), EventStatus)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_EvtInfo_Event_LostComm_MPDU_GetDTCOfEvent to Dem_GetDTCOfEvent */
#define Rte_Call_RPort_EvtInfo_Event_LostComm_MPDU_GetDTCOfEvent( DTCFormat, DTCOfEvent ) Dem_GetDTCOfEvent(((VAR(Dem_EventIdType, AUTOMATIC))2), DTCFormat, DTCOfEvent)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_EvtInfo_Event_LostComm_MPDU_GetEventFailed to Dem_GetEventFailed */
#define Rte_Call_RPort_EvtInfo_Event_LostComm_MPDU_GetEventFailed( EventFailed ) Dem_GetEventFailed(((VAR(Dem_EventIdType, AUTOMATIC))2), EventFailed)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_EvtInfo_Event_LostComm_MPDU_GetEventStatus to Dem_GetEventStatus */
#define Rte_Call_RPort_EvtInfo_Event_LostComm_MPDU_GetEventStatus( EventStatusByte ) Dem_GetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))2), EventStatusByte)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_EvtInfo_Event_LostComm_MPDU_GetEventTested to Dem_GetEventTested */
#define Rte_Call_RPort_EvtInfo_Event_LostComm_MPDU_GetEventTested( EventTested ) Dem_GetEventTested(((VAR(Dem_EventIdType, AUTOMATIC))2), EventTested)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_EvtInfo_Event_LostComm_MPDU_GetFaultDetectionCounter to Dem_GetFaultDetectionCounter */
#define Rte_Call_RPort_EvtInfo_Event_LostComm_MPDU_GetFaultDetectionCounter( FaultDetectionCounter ) Dem_GetFaultDetectionCounter(((VAR(Dem_EventIdType, AUTOMATIC))2), FaultDetectionCounter)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_1_GetDTCOfEvent to Dem_GetDTCOfEvent */
#define Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_1_GetDTCOfEvent( DTCFormat, DTCOfEvent ) Dem_GetDTCOfEvent(((VAR(Dem_EventIdType, AUTOMATIC))4), DTCFormat, DTCOfEvent)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_1_GetEventFailed to Dem_GetEventFailed */
#define Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_1_GetEventFailed( EventFailed ) Dem_GetEventFailed(((VAR(Dem_EventIdType, AUTOMATIC))4), EventFailed)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_1_GetEventStatus to Dem_GetEventStatus */
#define Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_1_GetEventStatus( EventStatusByte ) Dem_GetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))4), EventStatusByte)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_1_GetEventTested to Dem_GetEventTested */
#define Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_1_GetEventTested( EventTested ) Dem_GetEventTested(((VAR(Dem_EventIdType, AUTOMATIC))4), EventTested)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_1_GetFaultDetectionCounter to Dem_GetFaultDetectionCounter */
#define Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_1_GetFaultDetectionCounter( FaultDetectionCounter ) Dem_GetFaultDetectionCounter(((VAR(Dem_EventIdType, AUTOMATIC))4), FaultDetectionCounter)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_GetDTCOfEvent to Dem_GetDTCOfEvent */
#define Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_GetDTCOfEvent( DTCFormat, DTCOfEvent ) Dem_GetDTCOfEvent(((VAR(Dem_EventIdType, AUTOMATIC))3), DTCFormat, DTCOfEvent)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_GetEventFailed to Dem_GetEventFailed */
#define Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_GetEventFailed( EventFailed ) Dem_GetEventFailed(((VAR(Dem_EventIdType, AUTOMATIC))3), EventFailed)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_GetEventStatus to Dem_GetEventStatus */
#define Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_GetEventStatus( EventStatusByte ) Dem_GetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))3), EventStatusByte)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_GetEventTested to Dem_GetEventTested */
#define Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_GetEventTested( EventTested ) Dem_GetEventTested(((VAR(Dem_EventIdType, AUTOMATIC))3), EventTested)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_GetFaultDetectionCounter to Dem_GetFaultDetectionCounter */
#define Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_GetFaultDetectionCounter( FaultDetectionCounter ) Dem_GetFaultDetectionCounter(((VAR(Dem_EventIdType, AUTOMATIC))3), FaultDetectionCounter)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_FiM_Swc)
/* Inline function call optimization; Rte_Call_RPort_FiMFID_0_GetFunctionPermission to FiM_GetFunctionPermission */
#define Rte_Call_RPort_FiMFID_0_GetFunctionPermission( Permission ) FiM_GetFunctionPermission(((VAR(FiM_FunctionIdType, AUTOMATIC))1), Permission)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_OpCycle_DEM_OPCYC_WARMUP_SetOperationCycleState to Dem_SetOperationCycleState */
#define Rte_Call_RPort_OpCycle_DEM_OPCYC_WARMUP_SetOperationCycleState( CycleState ) Dem_SetOperationCycleState(((VAR(uint8, AUTOMATIC))3), CycleState)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_OpCycle_DEM_OPCY_IGNITION_SetOperationCycleState to Dem_SetOperationCycleState */
#define Rte_Call_RPort_OpCycle_DEM_OPCY_IGNITION_SetOperationCycleState( CycleState ) Dem_SetOperationCycleState(((VAR(uint8, AUTOMATIC))2), CycleState)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_OpCycle_DEM_OPCY_OBD_DCY_SetOperationCycleState to Dem_SetOperationCycleState */
#define Rte_Call_RPort_OpCycle_DEM_OPCY_OBD_DCY_SetOperationCycleState( CycleState ) Dem_SetOperationCycleState(((VAR(uint8, AUTOMATIC))1), CycleState)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Swc_Dem_Periodic)
/* Inline function call optimization; Rte_Call_RPort_OpCycle_DemOperationCycle_0_SetOperationCycleState to Dem_SetOperationCycleState */
#define Rte_Call_RPort_OpCycle_DemOperationCycle_0_SetOperationCycleState( CycleState ) Dem_SetOperationCycleState(((VAR(uint8, AUTOMATIC))0), CycleState)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_Runnable_Dcm_Swc)
/* Inline read optimization; Rte_IRead_Runnable_Dcm_Swc_RPort_TST_Diag_TestNumber_uint8_Impl to implicit access macro */
#define Rte_IRead_Runnable_Dcm_Swc_RPort_TST_Diag_TestNumber_uint8_Impl()  ( (CONST(uint8, RTE_DATA)) Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.sbuf20.value )
#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_Runnable_Dcm_Swc)
#define Rte_Mode_RPort_DcmDiagnosticSessionControl_MDGP_DcmDiagnosticSessionControl() (Rte_Mode_Diag_SWC_RPort_DcmDiagnosticSessionControl_MDGP_DcmDiagnosticSessionControl())
#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_Runnable_Dcm_Swc)
#define Rte_Read_RPort_DataServices_DspData_SYS_SUP_ID_F18A_Data( data ) (Rte_Read_Diag_SWC_RPort_DataServices_DspData_SYS_SUP_ID_F18A_Data(data))
#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_Runnable_Dcm_Swc)
#define Rte_Switch_PPort_Mdg2_MDGP_Mdg2( data ) (Rte_Switch_Diag_SWC_PPort_Mdg2_MDGP_Mdg2(data))
#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_Runnable_Dcm_Swc)
#define Rte_Write_PPort_DataServices_DspData_ASW_VER_F189_Data( data ) (Rte_Write_Diag_SWC_PPort_DataServices_DspData_ASW_VER_F189_Data(data))
#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_Runnable_Dcm_Swc)
#define Rte_Write_PPort_DataServices_DspData_MANU_DATE_F18B_Data( data ) (Rte_Write_Diag_SWC_PPort_DataServices_DspData_MANU_DATE_F18B_Data(data))
#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_Runnable_Dcm_Swc)
#define Rte_Write_PPort_DataServices_DspData_SYS_SUP_ID_F18A_Data( data ) (Rte_Write_Diag_SWC_PPort_DataServices_DspData_SYS_SUP_ID_F18A_Data(data))
#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_Runnable_Dcm_Swc)
#define Rte_Write_PPort_TST_FimPermisison_TST_FimPermission( data ) (Rte_Write_Diag_SWC_PPort_TST_FimPermisison_TST_FimPermission(data))
#endif

#endif /* RTE_CORE */

/*******************************************************
 ***
 *** RE Prototypes
 ***
 *******************************************************/

#define Diag_SWC_START_SEC_CODE
#include "Diag_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(void, Diag_SWC_CODE) CBStatusComp_DemComponent_MCAL_Status_Cbk(VAR(boolean, AUTOMATIC) ComponentFailedStatus);
FUNC(void, Diag_SWC_CODE) CBStatusComp_DemComponent_MCU_Status_Cbk(VAR(boolean, AUTOMATIC) ComponentFailedStatus);
FUNC(void, Diag_SWC_CODE) CBStatusComp_DemComponent_MPDU_CommStatus_Cbk(VAR(boolean, AUTOMATIC) ComponentFailedStatus);
FUNC(void, Diag_SWC_CODE) CBStatusComp_DemComponent_SEN_1_CommStatus_Cbk(VAR(boolean, AUTOMATIC) ComponentFailedStatus);
FUNC(void, Diag_SWC_CODE) CBStatusComp_DemComponent_SEN_CommStatus_Cbk(VAR(boolean, AUTOMATIC) ComponentFailedStatus);
FUNC(void, Diag_SWC_CODE) RE_Swc_Dem_Periodic(void);
FUNC(void, Diag_SWC_CODE) RunnableEntity_dcm(void);
FUNC(Std_ReturnType, Diag_SWC_CODE) Swc_DSP_SEC_LEV_L1_CK_func(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) Key,
                                                               VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                               CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, Diag_SWC_CODE) Swc_DSP_SEC_LEV_L1_GS_func(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                               CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) Seed,
                                                               CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, Diag_SWC_CODE) Swc_DSP_SEC_LEV_L2_CK_func(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) Key,
                                                               VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                               CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, Diag_SWC_CODE) Swc_DSP_SEC_LEV_L2_GS_func(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                               CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) Seed,
                                                               CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, Diag_SWC_CODE) Swc_DSP_SEC_LEV_L3_CK_func(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) Key,
                                                               VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                               CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, Diag_SWC_CODE) Swc_DSP_SEC_LEV_L3_GS_func(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                               CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) Seed,
                                                               CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, Diag_SWC_CODE) Swc_DSP_SEC_LEV_L4_CK_func(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) Key,
                                                               VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                               CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, Diag_SWC_CODE) Swc_DSP_SEC_LEV_L4_GS_func(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                               CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) Seed,
                                                               CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, Diag_SWC_CODE) Swc_RoutineServices_DcmDspRoutine_CheckProgCond_Result_func(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                                CONSTP2VAR(Dcm_RequestDataOut_DcmDspRoutine_CheckPgmPreCond_DcmDspRequestRoutineResultsOutSignal_0Type, AUTOMATIC, RTE_APPL_DATA) DataOut_DcmDspRequestRoutineResultsOutSignal_0,
                                                                                                CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, Diag_SWC_CODE) Swc_RoutineServices_DcmDspRoutine_CheckProgCond_Start_func(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                               CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, Diag_SWC_CODE) Swc_RoutineServices_DcmDspRoutine_CheckProgCond_Stop_func(VAR(Dcm_StopDataIn_DcmDspRoutine_CheckPgmPreCond_DcmDspStopRoutineInSignal_0Type, AUTOMATIC) DataIn_DcmDspStopRoutineInSignal_0,
                                                                                              VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                              CONSTP2VAR(Dcm_StopDataOut_DcmDspRoutine_CheckPgmPreCond_DcmDspStopRoutineOutSignal_0Type, AUTOMATIC, RTE_APPL_DATA) DataOut_DcmDspStopRoutineOutSignal_0,
                                                                                              CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, Diag_SWC_CODE) Swc_RoutineServices_DcmDspRoutine_Test_Result_func(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                       CONSTP2VAR(Dcm_RequestDataOut_DcmDspRoutine_Test_DcmDspRequestRoutineResultsOutSignal_0Type, AUTOMATIC, RTE_APPL_DATA) DataOut_DcmDspRequestRoutineResultsOutSignal_0,
                                                                                       CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, Diag_SWC_CODE) Swc_RoutineServices_DcmDspRoutine_Test_Start_func(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                      CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, Diag_SWC_CODE) Swc_RoutineServices_DcmDspRoutine_Test_Stop_func(VAR(Dcm_StopDataIn_DcmDspRoutine_Test_DcmDspStopRoutineInSignal_0Type, AUTOMATIC) DataIn_DcmDspStopRoutineInSignal_0,
                                                                                     VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                     CONSTP2VAR(Dcm_StopDataOut_DcmDspRoutine_Test_DcmDspStopRoutineOutSignal_0Type, AUTOMATIC, RTE_APPL_DATA) DataOut_DcmDspStopRoutineOutSignal_0,
                                                                                     CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
#define Diag_SWC_STOP_SEC_CODE
#include "Diag_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */

/* Initial values for data element prototypes */

#ifdef __cplusplus
} /* extern C */
#endif /* __cplusplus */

#endif /* !RTE_DIAG_SWC_H */
