/** @file     Rte.c
  *
  * @brief    RTE data structures
  *
  * @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
  */

/* RTE_HEADER_START */

#define RTE_CORE

#ifdef RTE_PREINCLUDE
#include RTE_PREINCLUDE
#endif
/* Box: RTE: OS Headers begin */
#include "Rte_Const.h"
#include "Os.h"
#if defined(RTE_REQUIRES_IOC)
#include "Ioc.h"
#endif /* defined(RTE_REQUIRES_IOC) */
/* Box: RTE: OS Headers end */
/* Box: RTE headers begin */
#include <Rte.h>
#include <Rte_Intl.h>
#include <Rte_Main.h>
#include "Rte_Type.h"
#include "Rte_Cfg.h"
#include "Rte_Cbk.h"
#if defined(RTE_REQUIRES_COM)
#include <Com.h>
#endif /* defined(RTE_REQUIRES_COM) */
#if defined(RTE_REQUIRES_NVM)
#include <NvM.h>
#endif /* defined(RTE_REQUIRES_NVM) */
#include "Rte_Base_SWC.h"
#include "Rte_BswM.h"
#include "Rte_ComM.h"
#include "Rte_Com_SWC.h"
#include "Rte_Dcm.h"
#include "Rte_Dem.h"
#include "Rte_Det.h"
#include "Rte_Diag_SWC.h"
#include "Rte_E2E_SWC_Rx.h"
#include "Rte_E2E_SWC_Tx.h"
#include "Rte_EcuM.h"
#include "Rte_FiM.h"
#include "Rte_Memory_SWC.h"
#include "Rte_NvM.h"
#include "Rte_WdgM.h"
#include "Rte_Wdg_SWC.h"
#include "SchM_AUTOSAR_Fee.h"
#include "SchM_BswM.h"
#include "SchM_Can.h"
#include "SchM_CanIf.h"
#include "SchM_CanNm.h"
#include "SchM_CanSM.h"
#include "SchM_CanTp.h"
#include "SchM_Com.h"
#include "SchM_ComM.h"
#include "SchM_Dcm.h"
#include "SchM_Dem.h"
#include "SchM_EcuM.h"
#include "SchM_FiM.h"
#include "SchM_MemIf.h"
#include "SchM_NvM.h"
#include "SchM_PduR.h"
#include "SchM_WdgM.h"
#include "SchM_Xcp.h"
/* Box: RTE headers end */
/* RTE_HEADER_END */


/* ----- Function prototypes ----- */

/* EXTERN_FN_PROTOTYPES_START */


/* EXTERN_FN_PROTOTYPES_END */

/* RTE_FN_PROTOTYPES_START */

#define RTE_START_SEC_CODE
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
/* Global functions */
FUNC(void, RTE_CODE) Rte_MSACbk_SW_8(void);
FUNC(void, RTE_CODE) Rte_MSACbk_SW_9(void);
FUNC(void, RTE_CODE) SchM_IModeInit(void);
/* Instance: /AUTOSAR_BswM/BswImplementations/BSWIMPL_BswM (BSWImpl10_BSWIMPL_BswM), Type: BswM */
FUNC(uint8, RTE_CODE) SchM_Mode_BswM_MDGR_BswM_MRP_BswM_MDG(void);
FUNC(Std_ReturnType, RTE_CODE) SchM_Switch_BswM_MDGP_AUTOSAR_BswM_ModeDeclarationGroups_MDG_ECUM_STATE(VAR(uint8, AUTOMATIC) data);
/* Instance: /AUTOSAR_Can/BswImplementations/BSWIMPL_Can (BSWImpl4_BSWIMPL_Can), Type: Can */
/* Instance: /AUTOSAR_CanIf/BswImplementations/CanIf (BSWImpl17_CanIf), Type: CanIf */
/* Instance: /AUTOSAR_CanNm/BswImplementations/CanNm (BSWImpl9_CanNm), Type: CanNm */
/* Instance: /AUTOSAR_CanSM/BswImplementations/CanSM (BSWImpl14_CanSM), Type: CanSM */
/* Instance: /AUTOSAR_CanTp/BswImplementations/CanTp (BSWImpl13_CanTp), Type: CanTp */
/* Instance: /AUTOSAR_Com/BswImplementations/Com (BSWImpl3_Com), Type: Com */
/* Instance: /AUTOSAR_ComM/BswImplementations/ComM (BSWImpl2_ComM), Type: ComM */
/* Instance: /AUTOSAR_Dcm/BswImplementations/Dcm (BSWImpl8_Dcm), Type: Dcm */
FUNC(Std_ReturnType, RTE_CODE) SchM_Switch_Dcm_DcmDiagnosticSessionControl(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) SchM_Switch_Dcm_DcmEcuReset(VAR(uint8, AUTOMATIC) data);
/* Instance: /AUTOSAR_Dem/BswImplementations/Dem (BSWImpl7_Dem), Type: Dem */
/* Instance: /AUTOSAR_EcuM/BswImplementations/EcuM (BSWImpl11_EcuM), Type: EcuM */
/* Instance: /AUTOSAR_Fee/BswImplementations/Fee (BSWImpl15_Fee), Type: AUTOSAR_Fee */
/* Instance: /AUTOSAR_FiM/BswImplementations/BSWIMPL_FiM (BSWImpl5_BSWIMPL_FiM), Type: FiM */
/* Instance: /AUTOSAR_MemIf/BswImplementations/MemIf (BSWImpl12_MemIf), Type: MemIf */
/* Instance: /AUTOSAR_NvM/BswImplementations/NvM (BSWImpl6_NvM), Type: NvM */
/* Instance: /AUTOSAR_PduR/BswImplementations/PduR (BSWImpl16_PduR), Type: PduR */
/* Instance: /AUTOSAR_WdgM/BswImplementations/WdgM (BSWImpl0_WdgM), Type: WdgM */
FUNC(uint8, RTE_CODE) SchM_Mode_WdgM_Current_WdgMSupervisionCycle(void);
FUNC(Std_ReturnType, RTE_CODE) SchM_Switch_WdgM_WdgMSupervisionCycle(VAR(uint8, AUTOMATIC) data);
/* Instance: /AUTOSAR_Xcp/BswImplementations/Xcp (BSWImpl1_Xcp), Type: Xcp */
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Base_SWC (CPT_Base_SWC), Type: Base_SWC */
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Base_SWC_RPort_shutdownTarget_SelectShutdownTarget(VAR(EcuM_ShutdownTargetType, AUTOMATIC) shutdownTarget,
                                                                                           VAR(EcuM_ShutdownModeType, AUTOMATIC) shutdownMode);
FUNC(Std_ReturnType, RTE_CODE) Rte_Switch_Base_SWC_PP_BswMArbitration_BswM_MRP_SwcModeRequest_MDGP_MSI_ShutDown(VAR(uint8, AUTOMATIC) data);
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_BswM (CPT_BswM), Type: BswM */
FUNC(uint8, RTE_CODE) Rte_Mode_BswM_RP_BswM_MRP_SwcModeRequest_MDGP_MSI_ShutDown(void);
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_ComM (CPT_ComM), Type: ComM */
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Com_SWC (CPT_Com_SWC), Type: Com_SWC */
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_BMS_SG_BatteryIdentifier_Tx_BMS_SG_BatteryIdentifier_Tx(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_BMS_SG_BatteryStatus_Tx_BMS_SG_BatteryStatus_Tx(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_BMS_SG_CapacityMeasure_Tx_BMS_SG_CapacityMeasure_Tx(VAR(uint16, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_BMS_SG_Counter_Tx_BMS_SG_Counter_Tx(VAR(uint32, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_BMS_SG_CurrentMeasure_Tx_BMS_SG_CurrentMeasure_Tx(VAR(uint16, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_BMS_SG_EngineCoolantTemp_Tx_BMS_SG_EngineCoolantTemp_Tx(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_BMS_SG_EngineFuelTemp_Tx_BMS_SG_EngineFuelTemp_Tx(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_BMS_SG_EngineSpeed_Tx_BMS_SG_EngineSpeed_Tx(VAR(uint32, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_BMS_SG_EngineTorque_Tx_BMS_SG_EngineTorque_Tx(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_BMS_SG_StateOfCharge_Tx_BMS_SG_StateOfCharge_Tx(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_BMS_SG_StateOfHealth_Tx_BMS_SG_StateOfHealth_Tx(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_BMS_SG_Status_Tx_BMS_SG_Status_Tx(VAR(uint16, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_BMS_SG_VehicleSpeed_Tx_BMS_SG_VehicleSpeed_Tx(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_BMS_SG_VoltageMeasure_Tx_BMS_SG_VoltageMeasure_Tx(VAR(uint16, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_CanNm_TestResult_CanNm_TestResult(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Com_SWC_PPort_TestRequested_uint8_Impl(VAR(uint8, AUTOMATIC) data);
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Dcm (CPT_Dcm), Type: Dcm */
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dcm_RoutineServices_DcmDspRoutine_CheckPgmPreCond_RequestResults(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, RTE_CODE) Rte_Call_Dcm_RoutineServices_DcmDspRoutine_CheckPgmPreCond_Start(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                                CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dcm_RoutineServices_DcmDspRoutine_CheckPgmPreCond_Stop(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, RTE_CODE) Rte_Call_Dcm_RoutineServices_DcmDspRoutine_Test_RequestResults(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, RTE_CODE) Rte_Call_Dcm_RoutineServices_DcmDspRoutine_Test_Start(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                     CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dcm_RoutineServices_DcmDspRoutine_Test_Stop(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);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L1_CompareKey(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) Key,
                                                                                     VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                     CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L1_GetSeed(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                  CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) Seed,
                                                                                  CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L2_CompareKey(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) Key,
                                                                                     VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                     CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L2_GetSeed(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                  CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) Seed,
                                                                                  CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L3_CompareKey(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) Key,
                                                                                     VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                     CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L3_GetSeed(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                  CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) Seed,
                                                                                  CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L4_CompareKey(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) Key,
                                                                                     VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                     CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L4_GetSeed(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                                  CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) Seed,
                                                                                  CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode);
FUNC(uint8, RTE_CODE) Rte_Mode_Dcm_Rp_Mdg2_MDGP_Mdg2(void);
FUNC(Std_ReturnType, RTE_CODE) Rte_Read_Dcm_R_DataServices_DspData_ASW_VER_F189_Data(CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Read_Dcm_R_DataServices_DspData_MANU_DATE_F18B_Data(CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Read_Dcm_R_DataServices_DspData_SYS_SUP_ID_F18A_Data(CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Switch_Dcm_Pp_DcmControlDTCSetting_MDGP_DcmControlDTCSetting(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Switch_Dcm_Pp_DcmDiagnosticSessionControl_MDGP_DcmDiagnosticSessionControl(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Switch_Dcm_Pp_DcmEcuReset_MDGP_DcmEcuReset(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Dcm_P_DataServices_DspData_ASW_VER_F189_Data(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Dcm_P_DataServices_DspData_MANU_DATE_F18B_Data(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Dcm_P_DataServices_DspData_SYS_SUP_ID_F18A_Data(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) data);
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Dem (CPT_Dem), Type: Dem */
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dem_CBStatusComp_DemComponent_MCAL_Status_ComponentStatusChanged(VAR(boolean, AUTOMATIC) ComponentFailedStatus);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dem_CBStatusComp_DemComponent_MCU_Status_ComponentStatusChanged(VAR(boolean, AUTOMATIC) ComponentFailedStatus);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dem_CBStatusComp_DemComponent_MPDU_CommStatus_ComponentStatusChanged(VAR(boolean, AUTOMATIC) ComponentFailedStatus);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dem_CBStatusComp_DemComponent_SEN_1_CommStatus_ComponentStatusChanged(VAR(boolean, AUTOMATIC) ComponentFailedStatus);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Dem_CBStatusComp_DemComponent_SEN_CommStatus_ComponentStatusChanged(VAR(boolean, AUTOMATIC) ComponentFailedStatus);
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Det (CPT_Det), Type: Det */
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Diag_SWC (CPT_Diag_SWC), Type: Diag_SWC */
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_ControlDTCSuppression_SetDTCSuppression(VAR(uint32, AUTOMATIC) DTC,
                                                                                               VAR(Dem_DTCFormatType, AUTOMATIC) DTCFormat,
                                                                                               VAR(boolean, AUTOMATIC) SuppressionStatus);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_DCMServices_GetActiveProtocol(CONSTP2VAR(Dcm_ProtocolType, AUTOMATIC, RTE_APPL_DATA) ActiveProtocol);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_DCMServices_GetSecurityLevel(CONSTP2VAR(Dcm_SecLevelType, AUTOMATIC, RTE_APPL_DATA) SecLevel);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_DCMServices_GetSesCtrlType(CONSTP2VAR(Dcm_SesCtrlType, AUTOMATIC, RTE_APPL_DATA) SesCtrlType);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_DCMServices_ResetToDefaultSession(void);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_MPDU_ClearPrestoredFreezeFrame(void);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_MPDU_PrestoreFreezeFrame(void);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_MPDU_ResetEventStatus(void);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_MPDU_SetEventStatus(VAR(Dem_EventStatusType, AUTOMATIC) EventStatus);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_1_ClearPrestoredFreezeFrame(void);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_1_PrestoreFreezeFrame(void);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_1_ResetEventStatus(void);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_1_SetEventStatus(VAR(Dem_EventStatusType, AUTOMATIC) EventStatus);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_ClearPrestoredFreezeFrame(void);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_PrestoreFreezeFrame(void);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_ResetEventStatus(void);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_SetEventStatus(VAR(Dem_EventStatusType, AUTOMATIC) EventStatus);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_MPDU_GetDTCOfEvent(VAR(Dem_DTCFormatType, AUTOMATIC) DTCFormat,
                                                                                                 CONSTP2VAR(uint32, AUTOMATIC, RTE_APPL_DATA) DTCOfEvent);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_MPDU_GetEventFailed(CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) EventFailed);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_MPDU_GetEventStatus(CONSTP2VAR(Dem_UdsStatusByteType, AUTOMATIC, RTE_APPL_DATA) EventStatusByte);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_MPDU_GetEventTested(CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) EventTested);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_MPDU_GetFaultDetectionCounter(CONSTP2VAR(sint8, AUTOMATIC, RTE_APPL_DATA) FaultDetectionCounter);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_1_GetDTCOfEvent(VAR(Dem_DTCFormatType, AUTOMATIC) DTCFormat,
                                                                                                  CONSTP2VAR(uint32, AUTOMATIC, RTE_APPL_DATA) DTCOfEvent);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_1_GetEventFailed(CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) EventFailed);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_1_GetEventStatus(CONSTP2VAR(Dem_UdsStatusByteType, AUTOMATIC, RTE_APPL_DATA) EventStatusByte);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_1_GetEventTested(CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) EventTested);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_1_GetFaultDetectionCounter(CONSTP2VAR(sint8, AUTOMATIC, RTE_APPL_DATA) FaultDetectionCounter);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_GetDTCOfEvent(VAR(Dem_DTCFormatType, AUTOMATIC) DTCFormat,
                                                                                                CONSTP2VAR(uint32, AUTOMATIC, RTE_APPL_DATA) DTCOfEvent);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_GetEventFailed(CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) EventFailed);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_GetEventStatus(CONSTP2VAR(Dem_UdsStatusByteType, AUTOMATIC, RTE_APPL_DATA) EventStatusByte);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_GetEventTested(CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) EventTested);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_GetFaultDetectionCounter(CONSTP2VAR(sint8, AUTOMATIC, RTE_APPL_DATA) FaultDetectionCounter);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_FiMFID_0_GetFunctionPermission(CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) Permission);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_OpCycle_DEM_OPCYC_WARMUP_SetOperationCycleState(VAR(Dem_OperationCycleStateType, AUTOMATIC) CycleState);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_OpCycle_DEM_OPCY_IGNITION_SetOperationCycleState(VAR(Dem_OperationCycleStateType, AUTOMATIC) CycleState);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_OpCycle_DEM_OPCY_OBD_DCY_SetOperationCycleState(VAR(Dem_OperationCycleStateType, AUTOMATIC) CycleState);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Diag_SWC_RPort_OpCycle_DemOperationCycle_0_SetOperationCycleState(VAR(Dem_OperationCycleStateType, AUTOMATIC) CycleState);
FUNC(uint8, RTE_CODE) Rte_Mode_Diag_SWC_RPort_DcmDiagnosticSessionControl_MDGP_DcmDiagnosticSessionControl(void);
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);
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_E2E_SWC_Rx (CPT_E2E_SWC_Rx), Type: E2E_SWC_Rx */
FUNC(Std_ReturnType, RTE_CODE) Rte_Read_E2E_SWC_Rx_RPort_E2E_Data_Alive_Cnt(CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Read_E2E_SWC_Rx_RPort_E2E_Data_CKS(CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Read_E2E_SWC_Rx_RPort_E2E_Data_Data(CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_E2E_SWC_Rx_PPort_E2E_TestResult_E2E_TestResult(VAR(uint8, AUTOMATIC) data);
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_E2E_SWC_Tx (CPT_E2E_SWC_Tx), Type: E2E_SWC_Tx */
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_E2E_SWC_Tx_PPort_E2E_Data_Alive_Cnt(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_E2E_SWC_Tx_PPort_E2E_Data_CKS(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_E2E_SWC_Tx_PPort_E2E_Data_Data(VAR(uint8, AUTOMATIC) data);
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_EcuM (CPT_EcuM), Type: EcuM */
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_FiM (CPT_FiM), Type: FiM */
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Memory_SWC (CPT_Memory_SWC), Type: Memory_SWC */
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_2_ReadBlock(VAR(NvM_Rb_VoidPtr, AUTOMATIC) DstPtr);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_2_SetRamBlockStatus(VAR(boolean, AUTOMATIC) BlockChanged);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_2_WriteBlock(VAR(NvM_Rb_ConstVoidPtr, AUTOMATIC) SrcPtr);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_3_ReadBlock(VAR(NvM_Rb_VoidPtr, AUTOMATIC) DstPtr);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_3_SetRamBlockStatus(VAR(boolean, AUTOMATIC) BlockChanged);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_3_WriteBlock(VAR(NvM_Rb_ConstVoidPtr, AUTOMATIC) SrcPtr);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_4_ReadBlock(VAR(NvM_Rb_VoidPtr, AUTOMATIC) DstPtr);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_4_SetRamBlockStatus(VAR(boolean, AUTOMATIC) BlockChanged);
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_4_WriteBlock(VAR(NvM_Rb_ConstVoidPtr, AUTOMATIC) SrcPtr);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Memory_SWC_PPort_Pim1_First_Pim1_First(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Memory_SWC_PPort_Pim1_Last_Pim1_Last(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Memory_SWC_PPort_Pim2_First_Pim2_First(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Memory_SWC_PPort_Pim2_Last_Pim2_Last(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Memory_SWC_PPort_Pim3_First_Pim3_First(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Memory_SWC_PPort_Pim3_Last_Pim3_Last(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Memory_SWC_PPort_TST_Diag_TestNumber_uint8_Impl(VAR(uint8, AUTOMATIC) data);
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_NvM (CPT_NvM), Type: NvM */
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_WdgM (CPT_WdgM), Type: WdgM */
FUNC(Std_ReturnType, RTE_CODE) Rte_SwitchAck_WdgM_globalMode_currentMode(void);
FUNC(Std_ReturnType, RTE_CODE) Rte_SwitchAck_WdgM_mode_WdgMSE_ASWTask_currentMode(void);
FUNC(Std_ReturnType, RTE_CODE) Rte_Switch_WdgM_globalMode_currentMode(VAR(uint8, AUTOMATIC) data);
FUNC(Std_ReturnType, RTE_CODE) Rte_Switch_WdgM_mode_WdgMSE_ASWTask_currentMode(VAR(uint8, AUTOMATIC) data);
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Wdg_SWC (CPT_Wdg_SWC), Type: Wdg_SWC */
FUNC(Std_ReturnType, RTE_CODE) Rte_Call_Wdg_SWC_RPort_Alive_WdgMSE_ASWTask_CheckpointReached(VAR(WdgM_CheckpointIdType, AUTOMATIC) CheckpointID);
FUNC(uint8, RTE_CODE) Rte_Mode_Wdg_SWC_RPort_globalMode_currentMode(void);
FUNC(uint8, RTE_CODE) Rte_Mode_Wdg_SWC_RPort_mode_WdgMSE_ASWTask_currentMode(void);
FUNC(Std_ReturnType, RTE_CODE) Rte_Write_Wdg_SWC_PPort_WDG_TestResult_WDG_TestResult(VAR(uint8, AUTOMATIC) data);
#define RTE_STOP_SEC_CODE
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

/* RTE_FN_PROTOTYPES_END */

/* ----- External variables ----- */

/* RTE_IMPORTS_START */

/* RTE_IMPORTS_END */

/* ----- Global variables ----- */

/* RTE_GLOBALS_START */

#define RTE_START_SEC_VAR_CLEARED_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(Rte_PimType_Memory_SWC_PIM_Swc_Type, RTE_APPL_DATA) Rte_CPim_Memory_SWC_PIM_SWC_01;
VAR(Rte_PimType_Memory_SWC_PIM_Swc_Type, RTE_APPL_DATA) Rte_CPim_Memory_SWC_PIM_SWC_02;
VAR(Rte_PimType_Memory_SWC_PIM_Swc_Type, RTE_APPL_DATA) Rte_CPim_Memory_SWC_PIM_SWC_03;
#define RTE_STOP_SEC_VAR_CLEARED_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_INIT_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(Std_ReturnType, RTE_DATA) Rte_FbVar_CPT_WdgM_globalMode_currentMode = RTE_E_NO_DATA;
VAR(Std_ReturnType, RTE_DATA) Rte_FbVar_CPT_WdgM_mode_WdgMSE_ASWTask_currentMode = RTE_E_NO_DATA;
#define RTE_STOP_SEC_VAR_INIT_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 */
VAR(Rte_ImplicitBufsType, RTE_DATA) Rte_ImplicitBufs;
#define RTE_STOP_SEC_VAR_CLEARED_32
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_INIT_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint8, RTE_DATA) Rte_ModeCurrent_0 = 4;
VAR(uint8, RTE_DATA) Rte_ModeCurrent_1 = 1;
VAR(uint8, RTE_DATA) Rte_ModeCurrent_2 = 1;
VAR(uint8, RTE_DATA) Rte_ModeCurrent_3 = 3;
#define RTE_STOP_SEC_VAR_INIT_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint8, RTE_DATA) Rte_ModeCurrent_4 = 0;
#define RTE_STOP_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_INIT_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint8, RTE_DATA) Rte_ModeCurrent_5 = 1;
VAR(uint8, RTE_DATA) Rte_ModeCurrent_6 = 1;
#define RTE_STOP_SEC_VAR_INIT_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint8, RTE_DATA) Rte_ModeCurrent_7 = 0;
VAR(uint8, RTE_DATA) Rte_ModeCurrent_8 = 0;
VAR(uint8, RTE_DATA) Rte_ModeCurrent_9 = 0;
#define RTE_STOP_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_INIT_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint8, RTE_DATA) Rte_ModeNext_5 = 2;
VAR(uint8, RTE_DATA) Rte_ModeSchMNext_0 = 6;
#define RTE_STOP_SEC_VAR_INIT_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint8, RTE_DATA) Rte_RECount_OsTask_ASW_divby100_0 = 0;
VAR(uint8, RTE_DATA) Rte_RECount_OsTask_ASW_divby10_0 = 0;
VAR(uint8, RTE_DATA) Rte_RECount_OsTask_ASW_divby200_0 = 0;
#define RTE_STOP_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_16
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint16, RTE_DATA) Rte_RECount_OsTask_BSW_divby1000_0 = 0;
#define RTE_STOP_SEC_VAR_CLEARED_16
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint8, RTE_DATA) Rte_RECount_OsTask_BSW_divby100_0 = 0;
VAR(uint8, RTE_DATA) Rte_RECount_OsTask_BSW_divby10_0 = 0;
VAR(uint8, RTE_DATA) Rte_RECount_OsTask_BSW_divby250_0 = 0;
#define RTE_STOP_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_16
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint16, RTE_DATA) Rte_RECount_OsTask_BSW_divby500_0 = 0;
#define RTE_STOP_SEC_VAR_CLEARED_16
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint8, RTE_DATA) Rte_Rx_000000;
VAR(uint8, RTE_DATA) Rte_Rx_000001;
#define RTE_STOP_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_16
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint16, RTE_DATA) Rte_Rx_000002;
#define RTE_STOP_SEC_VAR_CLEARED_16
#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 */
VAR(uint32, RTE_DATA) Rte_Rx_000003;
#define RTE_STOP_SEC_VAR_CLEARED_32
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_16
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint16, RTE_DATA) Rte_Rx_000004;
#define RTE_STOP_SEC_VAR_CLEARED_16
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint8, RTE_DATA) Rte_Rx_000005;
VAR(uint8, RTE_DATA) Rte_Rx_000006;
#define RTE_STOP_SEC_VAR_CLEARED_8
#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 */
VAR(uint32, RTE_DATA) Rte_Rx_000007;
#define RTE_STOP_SEC_VAR_CLEARED_32
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint8, RTE_DATA) Rte_Rx_000008;
VAR(uint8, RTE_DATA) Rte_Rx_000009;
VAR(uint8, RTE_DATA) Rte_Rx_000010;
#define RTE_STOP_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_16
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint16, RTE_DATA) Rte_Rx_000011;
#define RTE_STOP_SEC_VAR_CLEARED_16
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint8, RTE_DATA) Rte_Rx_000012;
#define RTE_STOP_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_16
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint16, RTE_DATA) Rte_Rx_000013;
#define RTE_STOP_SEC_VAR_CLEARED_16
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
VAR(uint8, RTE_DATA) Rte_Rx_000014;
VAR(uint8, RTE_DATA) Rte_Rx_000015;
VAR(uint8, RTE_DATA) Rte_Rx_000016;
VAR(uint8, RTE_DATA) Rte_Rx_000017;
VAR(uint8, RTE_DATA) Rte_Rx_000018;
VAR(uint8, RTE_DATA) Rte_Rx_000019;
VAR(Dcm_DataArrayTypeUint8_DspData_SYS_SUP_ID_F18AType, RTE_DATA) Rte_Rx_000020;
VAR(Dcm_DataArrayTypeUint8_DspData_ASW_VER_F189Type, RTE_DATA) Rte_Rx_000021;
VAR(Dcm_DataArrayTypeUint8_DspData_MANU_DATE_F18BType, RTE_DATA) Rte_Rx_000022;
VAR(Dcm_DataArrayTypeUint8_DspData_SYS_SUP_ID_F18AType, RTE_DATA) Rte_Rx_000023;
VAR(uint8, RTE_DATA) Rte_Rx_000024;
VAR(uint8, RTE_DATA) Rte_Rx_000025;
VAR(uint8, RTE_DATA) Rte_Rx_000026;
VAR(uint8, RTE_DATA) Rte_Rx_000027;
#define RTE_STOP_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_CONST_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
#if ( defined(RTE_WOWP_EVENTS) && ( RTE_WOWP_EVENTS > 0 ) )
CONST(Rte_TaskInfo, RTE_CONST) Rte_Tasks[4] = {
   { RTE_REF_FROM_TASK(OsTask_MS), RTE_NUM_TIMEOUT_ALARMS, 0 },
   { RTE_REF_FROM_TASK(OsTask_BSW), RTE_NUM_TIMEOUT_ALARMS, 0 },
   { RTE_REF_FROM_TASK(OsTask_ASW), RTE_NUM_TIMEOUT_ALARMS, 0 },
   { RTE_REF_FROM_TASK(OsTask_WdgM), RTE_NUM_TIMEOUT_ALARMS, 0 }
};
#endif /* ( defined(RTE_WOWP_EVENTS) && ( RTE_WOWP_EVENTS > 0 ) ) */
#define RTE_STOP_SEC_CONST_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
/* RTE_GLOBALS_END */


/* ----- Data structures ----- */

/* RTE_CDS_START */

/* Instance: /AUTOSAR_BswM/BswImplementations/BSWIMPL_BswM (BSWImpl10_BSWIMPL_BswM), Type: BswM */
/* Omitted for BSW */
/* Instance: /AUTOSAR_Can/BswImplementations/BSWIMPL_Can (BSWImpl4_BSWIMPL_Can), Type: Can */
/* Omitted for BSW */
/* Instance: /AUTOSAR_CanIf/BswImplementations/CanIf (BSWImpl17_CanIf), Type: CanIf */
/* Omitted for BSW */
/* Instance: /AUTOSAR_CanNm/BswImplementations/CanNm (BSWImpl9_CanNm), Type: CanNm */
/* Omitted for BSW */
/* Instance: /AUTOSAR_CanSM/BswImplementations/CanSM (BSWImpl14_CanSM), Type: CanSM */
/* Omitted for BSW */
/* Instance: /AUTOSAR_CanTp/BswImplementations/CanTp (BSWImpl13_CanTp), Type: CanTp */
/* Omitted for BSW */
/* Instance: /AUTOSAR_Com/BswImplementations/Com (BSWImpl3_Com), Type: Com */
/* Omitted for BSW */
/* Instance: /AUTOSAR_ComM/BswImplementations/ComM (BSWImpl2_ComM), Type: ComM */
/* Omitted for BSW */
/* Instance: /AUTOSAR_Dcm/BswImplementations/Dcm (BSWImpl8_Dcm), Type: Dcm */
/* Omitted for BSW */
/* Instance: /AUTOSAR_Dem/BswImplementations/Dem (BSWImpl7_Dem), Type: Dem */
/* Omitted for BSW */
/* Instance: /AUTOSAR_EcuM/BswImplementations/EcuM (BSWImpl11_EcuM), Type: EcuM */
/* Omitted for BSW */
/* Instance: /AUTOSAR_Fee/BswImplementations/Fee (BSWImpl15_Fee), Type: AUTOSAR_Fee */
/* Omitted for BSW */
/* Instance: /AUTOSAR_FiM/BswImplementations/BSWIMPL_FiM (BSWImpl5_BSWIMPL_FiM), Type: FiM */
/* Omitted for BSW */
/* Instance: /AUTOSAR_MemIf/BswImplementations/MemIf (BSWImpl12_MemIf), Type: MemIf */
/* Omitted for BSW */
/* Instance: /AUTOSAR_NvM/BswImplementations/NvM (BSWImpl6_NvM), Type: NvM */
/* Omitted for BSW */
/* Instance: /AUTOSAR_PduR/BswImplementations/PduR (BSWImpl16_PduR), Type: PduR */
/* Omitted for BSW */
/* Instance: /AUTOSAR_WdgM/BswImplementations/WdgM (BSWImpl0_WdgM), Type: WdgM */
/* Omitted for BSW */
/* Instance: /AUTOSAR_Xcp/BswImplementations/Xcp (BSWImpl1_Xcp), Type: Xcp */
/* Omitted for BSW */
#define RTE_START_SEC_CONST_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Base_SWC (CPT_Base_SWC), Type: Base_SWC */
CONST(struct Rte_CDS_Base_SWC, RTE_CONST) Rte_Inst_Base_SWC = {
   /* Data handles */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.sbuf19    /* RE_Base_SWC_RPort_TestRequested_uint8_Impl */
};
CONST(Rte_SelfType_Base_SWC, RTE_CONST) Rte_Self_CPT_Base_SWC = &Rte_Inst_Base_SWC;
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_BswM (CPT_BswM), Type: BswM */
CONST(struct Rte_CDS_BswM, RTE_CONST) Rte_Inst_BswM = {
   0U                                                /* Rte_Dummy */
};
CONST(Rte_SelfType_BswM, RTE_CONST) Rte_Self_CPT_BswM = &Rte_Inst_BswM;
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_ComM (CPT_ComM), Type: ComM */
CONST(struct Rte_CDS_ComM, RTE_CONST) Rte_Inst_ComM = {
   0U                                                /* Rte_Dummy */
};
CONST(Rte_SelfType_ComM, RTE_CONST) Rte_Self_CPT_ComM = &Rte_Inst_ComM;
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Com_SWC (CPT_Com_SWC), Type: Com_SWC */
CONST(struct Rte_CDS_Com_SWC, RTE_CONST) Rte_Inst_Com_SWC = {
   /* Data handles */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf4,    /* RE_Com_SWC_RPort_BMS_SG_BatteryIdentifier_Rx_BMS_SG_BatteryIdentifier_Rx */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf5,    /* RE_Com_SWC_RPort_BMS_SG_BatteryStatus_Rx_BMS_SG_BatteryStatus_Rx */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf15,   /* RE_Com_SWC_RPort_BMS_SG_CapacityMeasure_Rx_BMS_SG_CapacityMeasure_Rx */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf13,   /* RE_Com_SWC_RPort_BMS_SG_Counter_Rx_BMS_SG_Counter_Rx */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf10,   /* RE_Com_SWC_RPort_BMS_SG_CurrentMeasure_Rx_BMS_SG_CurrentMeasure_Rx */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf6,    /* RE_Com_SWC_RPort_BMS_SG_EngineCoolantTemp_Rx_BMS_SG_EngineCoolantTemp_Rx */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf12,   /* RE_Com_SWC_RPort_BMS_SG_EngineFuelTemp_Rx_BMS_SG_EngineFuelTemp_Rx */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf8,    /* RE_Com_SWC_RPort_BMS_SG_EngineSpeed_Rx_BMS_SG_EngineSpeed_Rx */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf3,    /* RE_Com_SWC_RPort_BMS_SG_EngineTorque_Rx_BMS_SG_EngineTorque_Rx */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf14,   /* RE_Com_SWC_RPort_BMS_SG_StateOfCharge_Rx_BMS_SG_StateOfCharge_Rx */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf7,    /* RE_Com_SWC_RPort_BMS_SG_StateOfHealth_Rx_BMS_SG_StateOfHealth_Rx */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf9,    /* RE_Com_SWC_RPort_BMS_SG_Status_Rx_BMS_SG_Status_Rx */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf17,   /* RE_Com_SWC_RPort_BMS_SG_VehicleSpeed_Rx_BMS_SG_VehicleSpeed_Rx */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf11,   /* RE_Com_SWC_RPort_BMS_SG_VoltageMeasure_Rx_BMS_SG_VoltageMeasure_Rx */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf16    /* RE_Com_SWC_RPort_TST_TestNumber_TST_TestNumber */
};
CONST(Rte_SelfType_Com_SWC, RTE_CONST) Rte_Self_CPT_Com_SWC = &Rte_Inst_Com_SWC;
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Dcm (CPT_Dcm), Type: Dcm */
CONST(struct Rte_CDS_Dcm, RTE_CONST) Rte_Inst_Dcm = {
   0U                                                /* Rte_Dummy */
};
CONST(Rte_SelfType_Dcm, RTE_CONST) Rte_Self_CPT_Dcm = &Rte_Inst_Dcm;
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Dem (CPT_Dem), Type: Dem */
CONST(struct Rte_CDS_Dem, RTE_CONST) Rte_Inst_Dem = {
   0U                                                /* Rte_Dummy */
};
CONST(Rte_SelfType_Dem, RTE_CONST) Rte_Self_CPT_Dem = &Rte_Inst_Dem;
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Det (CPT_Det), Type: Det */
CONST(struct Rte_CDS_Det, RTE_CONST) Rte_Inst_Det = {
   0U                                                /* Rte_Dummy */
};
CONST(Rte_SelfType_Det, RTE_CONST) Rte_Self_CPT_Det = &Rte_Inst_Det;
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Diag_SWC (CPT_Diag_SWC), Type: Diag_SWC */
CONST(struct Rte_CDS_Diag_SWC, RTE_CONST) Rte_Inst_Diag_SWC = {
   /* Data handles */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.sbuf20    /* Runnable_Dcm_Swc_RPort_TST_Diag_TestNumber_uint8_Impl */
};
CONST(Rte_SelfType_Diag_SWC, RTE_CONST) Rte_Self_CPT_Diag_SWC = &Rte_Inst_Diag_SWC;
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_E2E_SWC_Rx (CPT_E2E_SWC_Rx), Type: E2E_SWC_Rx */
CONST(struct Rte_CDS_E2E_SWC_Rx, RTE_CONST) Rte_Inst_E2E_SWC_Rx = {
   0U                                                /* Rte_Dummy */
};
CONST(Rte_SelfType_E2E_SWC_Rx, RTE_CONST) Rte_Self_CPT_E2E_SWC_Rx = &Rte_Inst_E2E_SWC_Rx;
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_E2E_SWC_Tx (CPT_E2E_SWC_Tx), Type: E2E_SWC_Tx */
CONST(struct Rte_CDS_E2E_SWC_Tx, RTE_CONST) Rte_Inst_E2E_SWC_Tx = {
   /* Data handles */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf18    /* RE_E2E_SWC_Tx_RPort_E2E_Protected_Data_E2E_Protected_Data */
};
CONST(Rte_SelfType_E2E_SWC_Tx, RTE_CONST) Rte_Self_CPT_E2E_SWC_Tx = &Rte_Inst_E2E_SWC_Tx;
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_EcuM (CPT_EcuM), Type: EcuM */
CONST(struct Rte_CDS_EcuM, RTE_CONST) Rte_Inst_EcuM = {
   0U                                                /* Rte_Dummy */
};
CONST(Rte_SelfType_EcuM, RTE_CONST) Rte_Self_CPT_EcuM = &Rte_Inst_EcuM;
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_FiM (CPT_FiM), Type: FiM */
CONST(struct Rte_CDS_FiM, RTE_CONST) Rte_Inst_FiM = {
   0U                                                /* Rte_Dummy */
};
CONST(Rte_SelfType_FiM, RTE_CONST) Rte_Self_CPT_FiM = &Rte_Inst_FiM;
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Memory_SWC (CPT_Memory_SWC), Type: Memory_SWC */
CONST(struct Rte_CDS_Memory_SWC, RTE_CONST) Rte_Inst_Memory_SWC = {
   /* Data handles */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf2,    /* RE_Memory_SWC_RPort_TST_DiagMeM_test_TST_DiagMeM_test */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf1,    /* RE_Memory_SWC_RPort_TST_PIM_FirstByte_TST_PIM_FirstByte */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf0,    /* RE_Memory_SWC_RPort_TST_PIM_LastByte_TST_PIM_LastByte */
   /* Per-Instance Memorys (sic) */
   &Rte_CPim_Memory_SWC_PIM_SWC_01,                  /* Pim_PIM_SWC_01 */
   &Rte_CPim_Memory_SWC_PIM_SWC_02,                  /* Pim_PIM_SWC_02 */
   &Rte_CPim_Memory_SWC_PIM_SWC_03                   /* Pim_PIM_SWC_03 */
};
CONST(Rte_SelfType_Memory_SWC, RTE_CONST) Rte_Self_CPT_Memory_SWC = &Rte_Inst_Memory_SWC;
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_NvM (CPT_NvM), Type: NvM */
CONST(struct Rte_CDS_NvM, RTE_CONST) Rte_Inst_NvM = {
   0U                                                /* Rte_Dummy */
};
CONST(Rte_SelfType_NvM, RTE_CONST) Rte_Self_CPT_NvM = &Rte_Inst_NvM;
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_WdgM (CPT_WdgM), Type: WdgM */
CONST(struct Rte_CDS_WdgM, RTE_CONST) Rte_Inst_WdgM = {
   /* Port Data Structure Arrays */
   {
      {
         &Rte_SwitchAck_WdgM_mode_WdgMSE_ASWTask_currentMode,  /* SwitchAck_currentMode */
         &Rte_Switch_WdgM_mode_WdgMSE_ASWTask_currentMode  /* Switch_currentMode */
      }                                              /* mode_WdgMSE_ASWTask = mode_WdgMSE_ASWTask[0] */
   }                                                 /* mode_WdgMSE_ASWTask */
};
CONST(Rte_SelfType_WdgM, RTE_CONST) Rte_Self_CPT_WdgM = &Rte_Inst_WdgM;
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Wdg_SWC (CPT_Wdg_SWC), Type: Wdg_SWC */
CONST(struct Rte_CDS_Wdg_SWC, RTE_CONST) Rte_Inst_Wdg_SWC = {
   /* Data handles */
   &Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.sbuf19    /* RE_Wdg_SWC_RPort_TestRequested_uint8_Impl */
};
CONST(Rte_SelfType_Wdg_SWC, RTE_CONST) Rte_Self_CPT_Wdg_SWC = &Rte_Inst_Wdg_SWC;
#define RTE_STOP_SEC_CONST_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

/* RTE_CDS_END */

/* ----- Function implementations ----- */

/* RTE_FUNCTIONS_START */

#define RTE_START_SEC_CODE
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
/* Instance: /AUTOSAR_BswM/BswImplementations/BSWIMPL_BswM (BSWImpl10_BSWIMPL_BswM), Type: BswM */
FUNC(uint8, RTE_CODE)
SchM_Mode_BswM_MDGR_BswM_MRP_BswM_MDG(void) /* 3 */
{
   VAR(uint8, AUTOMATIC) rtn;

   Rte_SuspendAllInterrupts();
   rtn = Rte_ModeCurrent_0;
   Rte_ResumeAllInterrupts();
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
SchM_Switch_BswM_MDGP_AUTOSAR_BswM_ModeDeclarationGroups_MDG_ECUM_STATE(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))SCHM_E_OK);
   /* SpecReq: Enter OS Exclusive Area begin */
   Rte_SuspendOSInterrupts();
   /* SpecReq: Enter OS Exclusive Area end */
   /* Box: SETUP[Async mode switch] begin */
   Rte_ModeCurrent_0 = 6;
   /* Box: SETUP[Async mode switch] end */
   /* SpecReq: Exit OS Exclusive Area begin */
   Rte_ResumeOSInterrupts();
   /* SpecReq: Exit OS Exclusive Area end */
   /* Box: SWITCH[Async mode switch] begin */
   if ( data == 2 )
   {
      /* SpecReq: Activate RE begin */
      /* SpecReq: direct call prologue begin */
      /* SpecReq: direct call prologue end */
      BswM_Cfg_DfrdBswNotification_BswM_MRP_BswM_MDG_ECUM_STATE_PREP_SHUTDOWN();
      /* SpecReq: direct call epilogue begin */
      /* SpecReq: direct call epilogue end */
      /* SpecReq: Activate RE end */
   }
   if ( data == 3 )
   {
      /* SpecReq: Activate RE begin */
      /* SpecReq: direct call prologue begin */
      /* SpecReq: direct call prologue end */
      BswM_Cfg_DfrdBswNotification_BswM_MRP_BswM_MDG_ECUM_STATE_RUN();
      /* SpecReq: direct call epilogue begin */
      /* SpecReq: direct call epilogue end */
      /* SpecReq: Activate RE end */
   }
   if ( data == 1 )
   {
      /* SpecReq: Activate RE begin */
      /* SpecReq: direct call prologue begin */
      /* SpecReq: direct call prologue end */
      BswM_Cfg_DfrdBswNotification_BswM_MRP_BswM_MDG_ECUM_STATE_APP_RUN();
      /* SpecReq: direct call epilogue begin */
      /* SpecReq: direct call epilogue end */
      /* SpecReq: Activate RE end */
   }
   if ( data == 0 )
   {
      /* SpecReq: Activate RE begin */
      /* SpecReq: direct call prologue begin */
      /* SpecReq: direct call prologue end */
      BswM_Cfg_DfrdBswNotification_BswM_MRP_BswM_MDG_ECUM_STATE_APP_POST_RUN();
      /* SpecReq: direct call epilogue begin */
      /* SpecReq: direct call epilogue end */
      /* SpecReq: Activate RE end */
   }
   if ( data == 5 )
   {
      /* SpecReq: Activate RE begin */
      /* SpecReq: direct call prologue begin */
      /* SpecReq: direct call prologue end */
      BswM_Cfg_DfrdBswNotification_BswM_MRP_BswM_MDG_ECUM_STATE_STARTUP_TWO();
      /* SpecReq: direct call epilogue begin */
      /* SpecReq: direct call epilogue end */
      /* SpecReq: Activate RE end */
   }
   if ( data == 4 )
   {
      /* SpecReq: Activate RE begin */
      /* SpecReq: direct call prologue begin */
      /* SpecReq: direct call prologue end */
      BswM_Cfg_DfrdBswNotification_BswM_MRP_BswM_MDG_ECUM_STATE_STARTUP_ONE();
      /* SpecReq: direct call epilogue begin */
      /* SpecReq: direct call epilogue end */
      /* SpecReq: Activate RE end */
   }
   /* Box: SWITCH[Async mode switch] end */
   /* Box: END[Async mode switch] begin */
   /* SpecReq: Enter OS Exclusive Area begin */
   Rte_SuspendOSInterrupts();
   /* SpecReq: Enter OS Exclusive Area end */
   Rte_ModeCurrent_0 = data;
   /* SpecReq: Exit OS Exclusive Area begin */
   Rte_ResumeOSInterrupts();
   /* SpecReq: Exit OS Exclusive Area end */
   /* Box: END[Async mode switch] end */
   /* SpecReq: MSA invoke begin */
   /* SpecReq: MSA invoke end */
   return rtn;
}

/* Instance: /AUTOSAR_Can/BswImplementations/BSWIMPL_Can (BSWImpl4_BSWIMPL_Can), Type: Can */
/* Instance: /AUTOSAR_CanIf/BswImplementations/CanIf (BSWImpl17_CanIf), Type: CanIf */
/* Instance: /AUTOSAR_CanNm/BswImplementations/CanNm (BSWImpl9_CanNm), Type: CanNm */
/* Instance: /AUTOSAR_CanSM/BswImplementations/CanSM (BSWImpl14_CanSM), Type: CanSM */
/* Instance: /AUTOSAR_CanTp/BswImplementations/CanTp (BSWImpl13_CanTp), Type: CanTp */
/* Direct API 'SchM_Enter_CanTp_EXCLUSIVE_AREA' for 'BSWImpl13_CanTp' optimized to an inline call. */
/* Function body elided - SW-C is delivered as source. */
/* Function definition SchM_Enter_CanTp_EXCLUSIVE_AREA omitted -- not used */

/* Direct API 'SchM_Exit_CanTp_EXCLUSIVE_AREA' for 'BSWImpl13_CanTp' optimized to an inline call. */
/* Function body elided - SW-C is delivered as source. */
/* Function definition SchM_Exit_CanTp_EXCLUSIVE_AREA omitted -- not used */

/* Instance: /AUTOSAR_Com/BswImplementations/Com (BSWImpl3_Com), Type: Com */
/* Instance: /AUTOSAR_ComM/BswImplementations/ComM (BSWImpl2_ComM), Type: ComM */
/* Instance: /AUTOSAR_Dcm/BswImplementations/Dcm (BSWImpl8_Dcm), Type: Dcm */
/* Direct API 'SchM_Switch_Dcm_DcmControlDTCSetting' for 'BSWImpl8_Dcm' optimized to a constant. */
/* Function body elided - SW-C is delivered as source. */
/* Function definition SchM_Switch_Dcm_DcmControlDTCSetting omitted -- not used */

FUNC(Std_ReturnType, RTE_CODE)
SchM_Switch_Dcm_DcmDiagnosticSessionControl(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))SCHM_E_OK);
   /* SpecReq: Enter OS Exclusive Area begin */
   Rte_SuspendOSInterrupts();
   /* SpecReq: Enter OS Exclusive Area end */
   Rte_ModeCurrent_2 = data;
   /* SpecReq: Exit OS Exclusive Area begin */
   Rte_ResumeOSInterrupts();
   /* SpecReq: Exit OS Exclusive Area end */
   /* SpecReq: MSA invoke begin */
   /* SpecReq: MSA invoke end */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
SchM_Switch_Dcm_DcmEcuReset(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))SCHM_E_OK);
   /* SpecReq: Enter OS Exclusive Area begin */
   Rte_SuspendOSInterrupts();
   /* SpecReq: Enter OS Exclusive Area end */
   Rte_ModeCurrent_3 = data;
   /* SpecReq: Exit OS Exclusive Area begin */
   Rte_ResumeOSInterrupts();
   /* SpecReq: Exit OS Exclusive Area end */
   /* SpecReq: MSA invoke begin */
   /* SpecReq: MSA invoke end */
   return rtn;
}

/* Instance: /AUTOSAR_Dem/BswImplementations/Dem (BSWImpl7_Dem), Type: Dem */
/* Instance: /AUTOSAR_EcuM/BswImplementations/EcuM (BSWImpl11_EcuM), Type: EcuM */
/* Instance: /AUTOSAR_Fee/BswImplementations/Fee (BSWImpl15_Fee), Type: AUTOSAR_Fee */
/* Instance: /AUTOSAR_FiM/BswImplementations/BSWIMPL_FiM (BSWImpl5_BSWIMPL_FiM), Type: FiM */
/* Instance: /AUTOSAR_MemIf/BswImplementations/MemIf (BSWImpl12_MemIf), Type: MemIf */
/* Instance: /AUTOSAR_NvM/BswImplementations/NvM (BSWImpl6_NvM), Type: NvM */
/* Instance: /AUTOSAR_PduR/BswImplementations/PduR (BSWImpl16_PduR), Type: PduR */
/* Instance: /AUTOSAR_WdgM/BswImplementations/WdgM (BSWImpl0_WdgM), Type: WdgM */
/* Direct API 'SchM_Mode_WdgM_Current_WdgMSupervisionCycle' for 'BSWImpl0_WdgM' optimized to direct data read. */
/* Function body emitted to support indirect API */
FUNC(uint8, RTE_CODE)
SchM_Mode_WdgM_Current_WdgMSupervisionCycle(void) /* 1 */
{
   VAR(uint8, AUTOMATIC) rtn;

   /* Optimizer: Removed resource lock */
   rtn = Rte_ModeCurrent_4;
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
SchM_Switch_WdgM_WdgMSupervisionCycle(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))SCHM_E_OK);
   /* SpecReq: Enter OS Exclusive Area begin */
   Rte_SuspendOSInterrupts();
   /* SpecReq: Enter OS Exclusive Area end */
   Rte_ModeCurrent_4 = data;
   /* SpecReq: Exit OS Exclusive Area begin */
   Rte_ResumeOSInterrupts();
   /* SpecReq: Exit OS Exclusive Area end */
   /* SpecReq: MSA invoke begin */
   /* SpecReq: MSA invoke end */
   return rtn;
}

/* Instance: /AUTOSAR_Xcp/BswImplementations/Xcp (BSWImpl1_Xcp), Type: Xcp */
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Base_SWC (CPT_Base_SWC), Type: Base_SWC */
/* Direct API 'Rte_Call_RPort_shutdownTarget_SelectShutdownTarget' for 'CPT_Base_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Base_SWC_RPort_shutdownTarget_SelectShutdownTarget(VAR(EcuM_ShutdownTargetType, AUTOMATIC) shutdownTarget,
                                                            VAR(EcuM_ShutdownModeType, AUTOMATIC) shutdownMode) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter shutdownTarget has direction IN */
   /* Parameter shutdownMode has direction IN */
   rtn = EcuM_SelectShutdownTarget(shutdownTarget, shutdownMode);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_IRead_RE_Base_SWC_RPort_TestRequested_uint8_Impl' for 'CPT_Base_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Base_SWC_RE_Base_SWC_RPort_TestRequested_uint8_Impl omitted -- not used */

FUNC(Std_ReturnType, RTE_CODE)
Rte_Switch_Base_SWC_PP_BswMArbitration_BswM_MRP_SwcModeRequest_MDGP_MSI_ShutDown(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Enter OS Exclusive Area begin */
   Rte_SuspendOSInterrupts();
   /* SpecReq: Enter OS Exclusive Area end */
   if ( 2 == Rte_ModeCurrent_5 )
   {
      rtn = RTE_E_LIMIT;
      /* SpecReq: Exit OS Exclusive Area begin */
      Rte_ResumeOSInterrupts();
      /* SpecReq: Exit OS Exclusive Area end */
   }
   else
   {
      Rte_ModeNext_5 = data;
      Rte_ModeCurrent_5 = 2;
      /* SpecReq: Exit OS Exclusive Area begin */
      Rte_ResumeOSInterrupts();
      /* SpecReq: Exit OS Exclusive Area end */
      /* SpecReq: Task activate begin */
      ActivateTask(OsTask_MS);
      /* SpecReq: Task activate end */
   }
   return rtn;
}

/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_BswM (CPT_BswM), Type: BswM */
/* Direct API 'Rte_Mode_RP_BswM_MRP_SwcModeRequest_MDGP_MSI_ShutDown' for 'CPT_BswM' optimized to direct data read. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(uint8, RTE_CODE)
Rte_Mode_BswM_RP_BswM_MRP_SwcModeRequest_MDGP_MSI_ShutDown(void) /* 1 */
{
   VAR(uint8, AUTOMATIC) rtn;

   /* Optimizer: Removed resource lock */
   rtn = Rte_ModeCurrent_5;
   return rtn;
}

/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_ComM (CPT_ComM), Type: ComM */
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Com_SWC (CPT_Com_SWC), Type: Com_SWC */
/* Direct API 'Rte_IRead_RE_Com_SWC_RPort_BMS_SG_BatteryIdentifier_Rx_BMS_SG_BatteryIdentifier_Rx' for 'CPT_Com_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Com_SWC_RE_Com_SWC_RPort_BMS_SG_BatteryIdentifier_Rx_BMS_SG_BatteryIdentifier_Rx omitted -- not used */

/* Direct API 'Rte_IRead_RE_Com_SWC_RPort_BMS_SG_BatteryStatus_Rx_BMS_SG_BatteryStatus_Rx' for 'CPT_Com_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Com_SWC_RE_Com_SWC_RPort_BMS_SG_BatteryStatus_Rx_BMS_SG_BatteryStatus_Rx omitted -- not used */

/* Direct API 'Rte_IRead_RE_Com_SWC_RPort_BMS_SG_CapacityMeasure_Rx_BMS_SG_CapacityMeasure_Rx' for 'CPT_Com_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Com_SWC_RE_Com_SWC_RPort_BMS_SG_CapacityMeasure_Rx_BMS_SG_CapacityMeasure_Rx omitted -- not used */

/* Direct API 'Rte_IRead_RE_Com_SWC_RPort_BMS_SG_Counter_Rx_BMS_SG_Counter_Rx' for 'CPT_Com_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Com_SWC_RE_Com_SWC_RPort_BMS_SG_Counter_Rx_BMS_SG_Counter_Rx omitted -- not used */

/* Direct API 'Rte_IRead_RE_Com_SWC_RPort_BMS_SG_CurrentMeasure_Rx_BMS_SG_CurrentMeasure_Rx' for 'CPT_Com_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Com_SWC_RE_Com_SWC_RPort_BMS_SG_CurrentMeasure_Rx_BMS_SG_CurrentMeasure_Rx omitted -- not used */

/* Direct API 'Rte_IRead_RE_Com_SWC_RPort_BMS_SG_EngineCoolantTemp_Rx_BMS_SG_EngineCoolantTemp_Rx' for 'CPT_Com_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Com_SWC_RE_Com_SWC_RPort_BMS_SG_EngineCoolantTemp_Rx_BMS_SG_EngineCoolantTemp_Rx omitted -- not used */

/* Direct API 'Rte_IRead_RE_Com_SWC_RPort_BMS_SG_EngineFuelTemp_Rx_BMS_SG_EngineFuelTemp_Rx' for 'CPT_Com_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Com_SWC_RE_Com_SWC_RPort_BMS_SG_EngineFuelTemp_Rx_BMS_SG_EngineFuelTemp_Rx omitted -- not used */

/* Direct API 'Rte_IRead_RE_Com_SWC_RPort_BMS_SG_EngineSpeed_Rx_BMS_SG_EngineSpeed_Rx' for 'CPT_Com_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Com_SWC_RE_Com_SWC_RPort_BMS_SG_EngineSpeed_Rx_BMS_SG_EngineSpeed_Rx omitted -- not used */

/* Direct API 'Rte_IRead_RE_Com_SWC_RPort_BMS_SG_EngineTorque_Rx_BMS_SG_EngineTorque_Rx' for 'CPT_Com_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Com_SWC_RE_Com_SWC_RPort_BMS_SG_EngineTorque_Rx_BMS_SG_EngineTorque_Rx omitted -- not used */

/* Direct API 'Rte_IRead_RE_Com_SWC_RPort_BMS_SG_StateOfCharge_Rx_BMS_SG_StateOfCharge_Rx' for 'CPT_Com_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Com_SWC_RE_Com_SWC_RPort_BMS_SG_StateOfCharge_Rx_BMS_SG_StateOfCharge_Rx omitted -- not used */

/* Direct API 'Rte_IRead_RE_Com_SWC_RPort_BMS_SG_StateOfHealth_Rx_BMS_SG_StateOfHealth_Rx' for 'CPT_Com_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Com_SWC_RE_Com_SWC_RPort_BMS_SG_StateOfHealth_Rx_BMS_SG_StateOfHealth_Rx omitted -- not used */

/* Direct API 'Rte_IRead_RE_Com_SWC_RPort_BMS_SG_Status_Rx_BMS_SG_Status_Rx' for 'CPT_Com_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Com_SWC_RE_Com_SWC_RPort_BMS_SG_Status_Rx_BMS_SG_Status_Rx omitted -- not used */

/* Direct API 'Rte_IRead_RE_Com_SWC_RPort_BMS_SG_VehicleSpeed_Rx_BMS_SG_VehicleSpeed_Rx' for 'CPT_Com_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Com_SWC_RE_Com_SWC_RPort_BMS_SG_VehicleSpeed_Rx_BMS_SG_VehicleSpeed_Rx omitted -- not used */

/* Direct API 'Rte_IRead_RE_Com_SWC_RPort_BMS_SG_VoltageMeasure_Rx_BMS_SG_VoltageMeasure_Rx' for 'CPT_Com_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Com_SWC_RE_Com_SWC_RPort_BMS_SG_VoltageMeasure_Rx_BMS_SG_VoltageMeasure_Rx omitted -- not used */

/* Direct API 'Rte_IRead_RE_Com_SWC_RPort_TST_TestNumber_TST_TestNumber' for 'CPT_Com_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Com_SWC_RE_Com_SWC_RPort_TST_TestNumber_TST_TestNumber omitted -- not used */

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_BMS_SG_BatteryIdentifier_Tx_BMS_SG_BatteryIdentifier_Tx(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is BMS_SG_BatteryIdentifier_Tx */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))0), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_BMS_SG_BatteryStatus_Tx_BMS_SG_BatteryStatus_Tx(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is BMS_SG_BatteryStatus_Tx */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))1), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_BMS_SG_CapacityMeasure_Tx_BMS_SG_CapacityMeasure_Tx(VAR(uint16, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is BMS_SG_CapacityMeasure_Tx */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))4), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_BMS_SG_Counter_Tx_BMS_SG_Counter_Tx(VAR(uint32, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is BMS_SG_Counter_Tx */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))13), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_BMS_SG_CurrentMeasure_Tx_BMS_SG_CurrentMeasure_Tx(VAR(uint16, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is BMS_SG_CurrentMeasure_Tx */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))3), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_BMS_SG_EngineCoolantTemp_Tx_BMS_SG_EngineCoolantTemp_Tx(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is BMS_SG_EngineCoolantTemp_Tx */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))6), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_BMS_SG_EngineFuelTemp_Tx_BMS_SG_EngineFuelTemp_Tx(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is BMS_SG_EngineFuelTemp_Tx */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))7), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_BMS_SG_EngineSpeed_Tx_BMS_SG_EngineSpeed_Tx(VAR(uint32, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is BMS_SG_EngineSpeed_Tx */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))8), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_BMS_SG_EngineTorque_Tx_BMS_SG_EngineTorque_Tx(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is BMS_SG_EngineTorque_Tx */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))5), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_BMS_SG_StateOfCharge_Tx_BMS_SG_StateOfCharge_Tx(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is BMS_SG_StateOfCharge_Tx */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))10), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_BMS_SG_StateOfHealth_Tx_BMS_SG_StateOfHealth_Tx(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is BMS_SG_StateOfHealth_Tx */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))11), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_BMS_SG_Status_Tx_BMS_SG_Status_Tx(VAR(uint16, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is BMS_SG_Status_Tx */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))12), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_BMS_SG_VehicleSpeed_Tx_BMS_SG_VehicleSpeed_Tx(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is BMS_SG_VehicleSpeed_Tx */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))9), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_BMS_SG_VoltageMeasure_Tx_BMS_SG_VoltageMeasure_Tx(VAR(uint16, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is BMS_SG_VoltageMeasure_Tx */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))2), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_CanNm_TestResult_CanNm_TestResult(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is CanNm_TestResult */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))21), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

/* Direct API 'Rte_Write_PPort_TestRequested_uint8_Impl' for 'CPT_Com_SWC' optimized to direct write. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Com_SWC_PPort_TestRequested_uint8_Impl(VAR(uint8, AUTOMATIC) data) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* Box: Send uint8_Impl to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Base_SWC.RPort_TestRequested begin */
   /* SpecReq: Buffer write begin */
   /* Optimizer: Removed resource lock */
   Rte_Rx_000019 = data;
   /* SpecReq: Buffer write end */
   /* Box: Send uint8_Impl to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Base_SWC.RPort_TestRequested end */
   /* Box: Send uint8_Impl to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Wdg_SWC.RPort_TestRequested begin */
   /* SpecReq: Buffer write begin */
   /* Write to buffer suppressed: Destination buffer shared */
   /* SpecReq: Buffer write end */
   /* Box: Send uint8_Impl to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Wdg_SWC.RPort_TestRequested end */
   /* Send complete */
   return rtn;
}

/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Dcm (CPT_Dcm), Type: Dcm */
/* Direct API 'Rte_Call_RoutineServices_DcmDspRoutine_CheckPgmPreCond_RequestResults' for 'CPT_Dcm' optimized to an inline call. */
/* Function body emitted to support indirect API */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dcm_RoutineServices_DcmDspRoutine_CheckPgmPreCond_RequestResults(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) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter OpStatus has direction IN */
   /* Parameter DataOut_DcmDspRequestRoutineResultsOutSignal_0 has direction OUT */
   /* Parameter ErrorCode has direction OUT */
   rtn = Swc_RoutineServices_DcmDspRoutine_CheckProgCond_Result_func(OpStatus, DataOut_DcmDspRequestRoutineResultsOutSignal_0, ErrorCode);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RoutineServices_DcmDspRoutine_CheckPgmPreCond_Start' for 'CPT_Dcm' optimized to an inline call. */
/* Function body emitted to support indirect API */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dcm_RoutineServices_DcmDspRoutine_CheckPgmPreCond_Start(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                                 CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter OpStatus has direction IN */
   /* Parameter ErrorCode has direction OUT */
   rtn = Swc_RoutineServices_DcmDspRoutine_CheckProgCond_Start_func(OpStatus, ErrorCode);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RoutineServices_DcmDspRoutine_CheckPgmPreCond_Stop' for 'CPT_Dcm' optimized to an inline call. */
/* Function body emitted to support indirect API */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dcm_RoutineServices_DcmDspRoutine_CheckPgmPreCond_Stop(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) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter DataIn_DcmDspStopRoutineInSignal_0 has direction IN */
   /* Parameter OpStatus has direction IN */
   /* Parameter DataOut_DcmDspStopRoutineOutSignal_0 has direction OUT */
   /* Parameter ErrorCode has direction OUT */
   rtn = Swc_RoutineServices_DcmDspRoutine_CheckProgCond_Stop_func(DataIn_DcmDspStopRoutineInSignal_0, OpStatus, DataOut_DcmDspStopRoutineOutSignal_0, ErrorCode);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RoutineServices_DcmDspRoutine_Test_RequestResults' for 'CPT_Dcm' optimized to an inline call. */
/* Function body emitted to support indirect API */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dcm_RoutineServices_DcmDspRoutine_Test_RequestResults(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) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter OpStatus has direction IN */
   /* Parameter DataOut_DcmDspRequestRoutineResultsOutSignal_0 has direction OUT */
   /* Parameter ErrorCode has direction OUT */
   rtn = Swc_RoutineServices_DcmDspRoutine_Test_Result_func(OpStatus, DataOut_DcmDspRequestRoutineResultsOutSignal_0, ErrorCode);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RoutineServices_DcmDspRoutine_Test_Start' for 'CPT_Dcm' optimized to an inline call. */
/* Function body emitted to support indirect API */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dcm_RoutineServices_DcmDspRoutine_Test_Start(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                      CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter OpStatus has direction IN */
   /* Parameter ErrorCode has direction OUT */
   rtn = Swc_RoutineServices_DcmDspRoutine_Test_Start_func(OpStatus, ErrorCode);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RoutineServices_DcmDspRoutine_Test_Stop' for 'CPT_Dcm' optimized to an inline call. */
/* Function body emitted to support indirect API */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dcm_RoutineServices_DcmDspRoutine_Test_Stop(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) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter DataIn_DcmDspStopRoutineInSignal_0 has direction IN */
   /* Parameter OpStatus has direction IN */
   /* Parameter DataOut_DcmDspStopRoutineOutSignal_0 has direction OUT */
   /* Parameter ErrorCode has direction OUT */
   rtn = Swc_RoutineServices_DcmDspRoutine_Test_Stop_func(DataIn_DcmDspStopRoutineInSignal_0, OpStatus, DataOut_DcmDspStopRoutineOutSignal_0, ErrorCode);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_SecurityAccess_DSP_SEC_LEV_L1_CompareKey' for 'CPT_Dcm' optimized to an inline call. */
/* Function body emitted to support indirect API */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L1_CompareKey(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) Key,
                                                      VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                      CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter Key has direction IN */
   /* Parameter OpStatus has direction IN */
   /* Parameter ErrorCode has direction OUT */
   rtn = Swc_DSP_SEC_LEV_L1_CK_func(Key, OpStatus, ErrorCode);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_SecurityAccess_DSP_SEC_LEV_L1_GetSeed' for 'CPT_Dcm' optimized to an inline call. */
/* Function body emitted to support indirect API */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L1_GetSeed(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                   CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) Seed,
                                                   CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter OpStatus has direction IN */
   /* Parameter Seed has direction OUT */
   /* Parameter ErrorCode has direction OUT */
   rtn = Swc_DSP_SEC_LEV_L1_GS_func(OpStatus, Seed, ErrorCode);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_SecurityAccess_DSP_SEC_LEV_L2_CompareKey' for 'CPT_Dcm' optimized to an inline call. */
/* Function body emitted to support indirect API */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L2_CompareKey(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) Key,
                                                      VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                      CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter Key has direction IN */
   /* Parameter OpStatus has direction IN */
   /* Parameter ErrorCode has direction OUT */
   rtn = Swc_DSP_SEC_LEV_L2_CK_func(Key, OpStatus, ErrorCode);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_SecurityAccess_DSP_SEC_LEV_L2_GetSeed' for 'CPT_Dcm' optimized to an inline call. */
/* Function body emitted to support indirect API */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L2_GetSeed(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                   CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) Seed,
                                                   CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter OpStatus has direction IN */
   /* Parameter Seed has direction OUT */
   /* Parameter ErrorCode has direction OUT */
   rtn = Swc_DSP_SEC_LEV_L2_GS_func(OpStatus, Seed, ErrorCode);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_SecurityAccess_DSP_SEC_LEV_L3_CompareKey' for 'CPT_Dcm' optimized to an inline call. */
/* Function body emitted to support indirect API */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L3_CompareKey(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) Key,
                                                      VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                      CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter Key has direction IN */
   /* Parameter OpStatus has direction IN */
   /* Parameter ErrorCode has direction OUT */
   rtn = Swc_DSP_SEC_LEV_L3_CK_func(Key, OpStatus, ErrorCode);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_SecurityAccess_DSP_SEC_LEV_L3_GetSeed' for 'CPT_Dcm' optimized to an inline call. */
/* Function body emitted to support indirect API */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L3_GetSeed(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                   CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) Seed,
                                                   CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter OpStatus has direction IN */
   /* Parameter Seed has direction OUT */
   /* Parameter ErrorCode has direction OUT */
   rtn = Swc_DSP_SEC_LEV_L3_GS_func(OpStatus, Seed, ErrorCode);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_SecurityAccess_DSP_SEC_LEV_L4_CompareKey' for 'CPT_Dcm' optimized to an inline call. */
/* Function body emitted to support indirect API */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L4_CompareKey(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) Key,
                                                      VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                      CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter Key has direction IN */
   /* Parameter OpStatus has direction IN */
   /* Parameter ErrorCode has direction OUT */
   rtn = Swc_DSP_SEC_LEV_L4_CK_func(Key, OpStatus, ErrorCode);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_SecurityAccess_DSP_SEC_LEV_L4_GetSeed' for 'CPT_Dcm' optimized to an inline call. */
/* Function body emitted to support indirect API */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dcm_SecurityAccess_DSP_SEC_LEV_L4_GetSeed(VAR(Dcm_OpStatusType, AUTOMATIC) OpStatus,
                                                   CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) Seed,
                                                   CONSTP2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_APPL_DATA) ErrorCode) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter OpStatus has direction IN */
   /* Parameter Seed has direction OUT */
   /* Parameter ErrorCode has direction OUT */
   rtn = Swc_DSP_SEC_LEV_L4_GS_func(OpStatus, Seed, ErrorCode);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

FUNC(uint8, RTE_CODE)
Rte_Mode_Dcm_Rp_Mdg2_MDGP_Mdg2(void) /* 2 */
{
   VAR(uint8, AUTOMATIC) rtn;

   Rte_SuspendAllInterrupts();
   rtn = Rte_ModeCurrent_7;
   Rte_ResumeAllInterrupts();
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Read_Dcm_R_DataServices_DspData_ASW_VER_F189_Data(CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Buffer read begin */
   /* Optimizer: Removed resource lock for copy of global to parameter in highest pri task */
   Rte_memcpy(data, Rte_Rx_000021, sizeof(Dcm_DataArrayTypeUint8_DspData_ASW_VER_F189Type));
   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Buffer read end */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Read_Dcm_R_DataServices_DspData_MANU_DATE_F18B_Data(CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Buffer read begin */
   /* Optimizer: Removed resource lock for copy of global to parameter in highest pri task */
   Rte_memcpy(data, Rte_Rx_000022, sizeof(Dcm_DataArrayTypeUint8_DspData_MANU_DATE_F18BType));
   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Buffer read end */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Read_Dcm_R_DataServices_DspData_SYS_SUP_ID_F18A_Data(CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Buffer read begin */
   /* Optimizer: Removed resource lock for copy of global to parameter in highest pri task */
   Rte_memcpy(data, Rte_Rx_000023, sizeof(Dcm_DataArrayTypeUint8_DspData_SYS_SUP_ID_F18AType));
   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Buffer read end */
   return rtn;
}

/* Direct API 'Rte_Switch_Pp_DcmControlDTCSetting_MDGP_DcmControlDTCSetting' for 'CPT_Dcm' optimized to a constant. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Switch_Dcm_Pp_DcmControlDTCSetting_MDGP_DcmControlDTCSetting(VAR(uint8, AUTOMATIC) data) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Switch_Dcm_Pp_DcmDiagnosticSessionControl_MDGP_DcmDiagnosticSessionControl(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Enter OS Exclusive Area begin */
   Rte_SuspendOSInterrupts();
   /* SpecReq: Enter OS Exclusive Area end */
   Rte_ModeCurrent_2 = data;
   /* SpecReq: Exit OS Exclusive Area begin */
   Rte_ResumeOSInterrupts();
   /* SpecReq: Exit OS Exclusive Area end */
   /* SpecReq: MSA invoke begin */
   /* SpecReq: MSA invoke end */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Switch_Dcm_Pp_DcmEcuReset_MDGP_DcmEcuReset(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Enter OS Exclusive Area begin */
   Rte_SuspendOSInterrupts();
   /* SpecReq: Enter OS Exclusive Area end */
   Rte_ModeCurrent_3 = data;
   /* SpecReq: Exit OS Exclusive Area begin */
   Rte_ResumeOSInterrupts();
   /* SpecReq: Exit OS Exclusive Area end */
   /* SpecReq: MSA invoke begin */
   /* SpecReq: MSA invoke end */
   return rtn;
}

/* Direct API 'Rte_Write_P_DataServices_DspData_ASW_VER_F189_Data' for 'CPT_Dcm' optimized to a constant. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Dcm_P_DataServices_DspData_ASW_VER_F189_Data(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) data) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* Write suppressed because Sender-Receiver DataItem /AUTOSAR_Dcm/PortInterfaces/DataServices_DspData_ASW_VER_F189/Data in port /AUTOSAR_Dcm/SwComponentTypes/Dcm/P_DataServices_DspData_ASW_VER_F189 on Application Software Component Instance /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Dcm is unconnected */
   ((void)(*(data)));
   /* Send complete */
   return rtn;
}

/* Direct API 'Rte_Write_P_DataServices_DspData_MANU_DATE_F18B_Data' for 'CPT_Dcm' optimized to a constant. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Dcm_P_DataServices_DspData_MANU_DATE_F18B_Data(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) data) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* Write suppressed because Sender-Receiver DataItem /AUTOSAR_Dcm/PortInterfaces/DataServices_DspData_MANU_DATE_F18B/Data in port /AUTOSAR_Dcm/SwComponentTypes/Dcm/P_DataServices_DspData_MANU_DATE_F18B on Application Software Component Instance /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Dcm is unconnected */
   ((void)(*(data)));
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Dcm_P_DataServices_DspData_SYS_SUP_ID_F18A_Data(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* Box: Send Data to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Diag_SWC.RPort_DataServices_DspData_SYS_SUP_ID_F18A begin */
   /* SpecReq: Buffer write begin */
   /* Optimizer: Removed resource lock for copy of parameter to global in highest pri task */
   Rte_memcpy(Rte_Rx_000020, data, sizeof(Dcm_DataArrayTypeUint8_DspData_SYS_SUP_ID_F18AType));
   /* SpecReq: Buffer write end */
   /* Box: Send Data to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Diag_SWC.RPort_DataServices_DspData_SYS_SUP_ID_F18A end */
   /* Send complete */
   return rtn;
}

/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Dem (CPT_Dem), Type: Dem */
/* Direct API 'Rte_Call_CBStatusComp_DemComponent_MCAL_Status_ComponentStatusChanged' for 'CPT_Dem' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dem_CBStatusComp_DemComponent_MCAL_Status_ComponentStatusChanged(VAR(boolean, AUTOMATIC) ComponentFailedStatus) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter ComponentFailedStatus has direction IN */
   CBStatusComp_DemComponent_MCAL_Status_Cbk(ComponentFailedStatus);
   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_CBStatusComp_DemComponent_MCU_Status_ComponentStatusChanged' for 'CPT_Dem' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dem_CBStatusComp_DemComponent_MCU_Status_ComponentStatusChanged(VAR(boolean, AUTOMATIC) ComponentFailedStatus) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter ComponentFailedStatus has direction IN */
   CBStatusComp_DemComponent_MCU_Status_Cbk(ComponentFailedStatus);
   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_CBStatusComp_DemComponent_MPDU_CommStatus_ComponentStatusChanged' for 'CPT_Dem' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dem_CBStatusComp_DemComponent_MPDU_CommStatus_ComponentStatusChanged(VAR(boolean, AUTOMATIC) ComponentFailedStatus) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter ComponentFailedStatus has direction IN */
   CBStatusComp_DemComponent_MPDU_CommStatus_Cbk(ComponentFailedStatus);
   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_CBStatusComp_DemComponent_SEN_1_CommStatus_ComponentStatusChanged' for 'CPT_Dem' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dem_CBStatusComp_DemComponent_SEN_1_CommStatus_ComponentStatusChanged(VAR(boolean, AUTOMATIC) ComponentFailedStatus) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter ComponentFailedStatus has direction IN */
   CBStatusComp_DemComponent_SEN_1_CommStatus_Cbk(ComponentFailedStatus);
   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_CBStatusComp_DemComponent_SEN_CommStatus_ComponentStatusChanged' for 'CPT_Dem' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Dem_CBStatusComp_DemComponent_SEN_CommStatus_ComponentStatusChanged(VAR(boolean, AUTOMATIC) ComponentFailedStatus) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter ComponentFailedStatus has direction IN */
   CBStatusComp_DemComponent_SEN_CommStatus_Cbk(ComponentFailedStatus);
   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Det (CPT_Det), Type: Det */
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Diag_SWC (CPT_Diag_SWC), Type: Diag_SWC */
/* Direct API 'Rte_Call_RPort_ControlDTCSuppression_SetDTCSuppression' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_ControlDTCSuppression_SetDTCSuppression(VAR(uint32, AUTOMATIC) DTC,
                                                                VAR(Dem_DTCFormatType, AUTOMATIC) DTCFormat,
                                                                VAR(boolean, AUTOMATIC) SuppressionStatus) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter DTC has direction IN */
   /* Parameter DTCFormat has direction IN */
   /* Parameter SuppressionStatus has direction IN */
   rtn = Dem_SetDTCSuppression(DTC, DTCFormat, SuppressionStatus);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_DCMServices_GetActiveProtocol' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_DCMServices_GetActiveProtocol(CONSTP2VAR(Dcm_ProtocolType, AUTOMATIC, RTE_APPL_DATA) ActiveProtocol) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter ActiveProtocol has direction OUT */
   rtn = Dcm_GetActiveProtocol(ActiveProtocol);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_DCMServices_GetSecurityLevel' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_DCMServices_GetSecurityLevel(CONSTP2VAR(Dcm_SecLevelType, AUTOMATIC, RTE_APPL_DATA) SecLevel) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter SecLevel has direction OUT */
   rtn = Dcm_GetSecurityLevel(SecLevel);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_DCMServices_GetSesCtrlType' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_DCMServices_GetSesCtrlType(CONSTP2VAR(Dcm_SesCtrlType, AUTOMATIC, RTE_APPL_DATA) SesCtrlType) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter SesCtrlType has direction OUT */
   rtn = Dcm_GetSesCtrlType(SesCtrlType);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_DCMServices_ResetToDefaultSession' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_DCMServices_ResetToDefaultSession(void) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   rtn = Dcm_ResetToDefaultSession();
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_Event_Event_LostComm_MPDU_ClearPrestoredFreezeFrame' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_MPDU_ClearPrestoredFreezeFrame(void) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   rtn = Dem_ClearPrestoredFreezeFrame(((VAR(Dem_EventIdType, AUTOMATIC))2));
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_Event_Event_LostComm_MPDU_PrestoreFreezeFrame' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_MPDU_PrestoreFreezeFrame(void) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   rtn = Dem_PrestoreFreezeFrame(((VAR(Dem_EventIdType, AUTOMATIC))2));
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_Event_Event_LostComm_MPDU_ResetEventStatus' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_MPDU_ResetEventStatus(void) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   rtn = Dem_ResetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))2));
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_Event_Event_LostComm_MPDU_SetEventStatus' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_MPDU_SetEventStatus(VAR(Dem_EventStatusType, AUTOMATIC) EventStatus) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter EventStatus has direction IN */
   rtn = Dem_SetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))2), EventStatus);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_Event_Event_LostComm_SEN_1_ClearPrestoredFreezeFrame' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_1_ClearPrestoredFreezeFrame(void) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   rtn = Dem_ClearPrestoredFreezeFrame(((VAR(Dem_EventIdType, AUTOMATIC))4));
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_Event_Event_LostComm_SEN_1_PrestoreFreezeFrame' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_1_PrestoreFreezeFrame(void) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   rtn = Dem_PrestoreFreezeFrame(((VAR(Dem_EventIdType, AUTOMATIC))4));
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_Event_Event_LostComm_SEN_1_ResetEventStatus' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_1_ResetEventStatus(void) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   rtn = Dem_ResetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))4));
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_Event_Event_LostComm_SEN_1_SetEventStatus' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_1_SetEventStatus(VAR(Dem_EventStatusType, AUTOMATIC) EventStatus) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter EventStatus has direction IN */
   rtn = Dem_SetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))4), EventStatus);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_Event_Event_LostComm_SEN_ClearPrestoredFreezeFrame' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_ClearPrestoredFreezeFrame(void) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   rtn = Dem_ClearPrestoredFreezeFrame(((VAR(Dem_EventIdType, AUTOMATIC))3));
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_Event_Event_LostComm_SEN_PrestoreFreezeFrame' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_PrestoreFreezeFrame(void) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   rtn = Dem_PrestoreFreezeFrame(((VAR(Dem_EventIdType, AUTOMATIC))3));
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_Event_Event_LostComm_SEN_ResetEventStatus' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_ResetEventStatus(void) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   rtn = Dem_ResetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))3));
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_Event_Event_LostComm_SEN_SetEventStatus' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_Event_Event_LostComm_SEN_SetEventStatus(VAR(Dem_EventStatusType, AUTOMATIC) EventStatus) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter EventStatus has direction IN */
   rtn = Dem_SetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))3), EventStatus);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_EvtInfo_Event_LostComm_MPDU_GetDTCOfEvent' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_MPDU_GetDTCOfEvent(VAR(Dem_DTCFormatType, AUTOMATIC) DTCFormat,
                                                                  CONSTP2VAR(uint32, AUTOMATIC, RTE_APPL_DATA) DTCOfEvent) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter DTCFormat has direction IN */
   /* Parameter DTCOfEvent has direction OUT */
   rtn = Dem_GetDTCOfEvent(((VAR(Dem_EventIdType, AUTOMATIC))2), DTCFormat, DTCOfEvent);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_EvtInfo_Event_LostComm_MPDU_GetEventFailed' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_MPDU_GetEventFailed(CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) EventFailed) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter EventFailed has direction OUT */
   rtn = Dem_GetEventFailed(((VAR(Dem_EventIdType, AUTOMATIC))2), EventFailed);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_EvtInfo_Event_LostComm_MPDU_GetEventStatus' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_MPDU_GetEventStatus(CONSTP2VAR(Dem_UdsStatusByteType, AUTOMATIC, RTE_APPL_DATA) EventStatusByte) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter EventStatusByte has direction OUT */
   rtn = Dem_GetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))2), EventStatusByte);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_EvtInfo_Event_LostComm_MPDU_GetEventTested' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_MPDU_GetEventTested(CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) EventTested) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter EventTested has direction OUT */
   rtn = Dem_GetEventTested(((VAR(Dem_EventIdType, AUTOMATIC))2), EventTested);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_EvtInfo_Event_LostComm_MPDU_GetFaultDetectionCounter' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_MPDU_GetFaultDetectionCounter(CONSTP2VAR(sint8, AUTOMATIC, RTE_APPL_DATA) FaultDetectionCounter) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter FaultDetectionCounter has direction OUT */
   rtn = Dem_GetFaultDetectionCounter(((VAR(Dem_EventIdType, AUTOMATIC))2), FaultDetectionCounter);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_1_GetDTCOfEvent' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_1_GetDTCOfEvent(VAR(Dem_DTCFormatType, AUTOMATIC) DTCFormat,
                                                                   CONSTP2VAR(uint32, AUTOMATIC, RTE_APPL_DATA) DTCOfEvent) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter DTCFormat has direction IN */
   /* Parameter DTCOfEvent has direction OUT */
   rtn = Dem_GetDTCOfEvent(((VAR(Dem_EventIdType, AUTOMATIC))4), DTCFormat, DTCOfEvent);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_1_GetEventFailed' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_1_GetEventFailed(CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) EventFailed) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter EventFailed has direction OUT */
   rtn = Dem_GetEventFailed(((VAR(Dem_EventIdType, AUTOMATIC))4), EventFailed);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_1_GetEventStatus' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_1_GetEventStatus(CONSTP2VAR(Dem_UdsStatusByteType, AUTOMATIC, RTE_APPL_DATA) EventStatusByte) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter EventStatusByte has direction OUT */
   rtn = Dem_GetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))4), EventStatusByte);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_1_GetEventTested' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_1_GetEventTested(CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) EventTested) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter EventTested has direction OUT */
   rtn = Dem_GetEventTested(((VAR(Dem_EventIdType, AUTOMATIC))4), EventTested);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_1_GetFaultDetectionCounter' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_1_GetFaultDetectionCounter(CONSTP2VAR(sint8, AUTOMATIC, RTE_APPL_DATA) FaultDetectionCounter) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter FaultDetectionCounter has direction OUT */
   rtn = Dem_GetFaultDetectionCounter(((VAR(Dem_EventIdType, AUTOMATIC))4), FaultDetectionCounter);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_GetDTCOfEvent' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_GetDTCOfEvent(VAR(Dem_DTCFormatType, AUTOMATIC) DTCFormat,
                                                                 CONSTP2VAR(uint32, AUTOMATIC, RTE_APPL_DATA) DTCOfEvent) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter DTCFormat has direction IN */
   /* Parameter DTCOfEvent has direction OUT */
   rtn = Dem_GetDTCOfEvent(((VAR(Dem_EventIdType, AUTOMATIC))3), DTCFormat, DTCOfEvent);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_GetEventFailed' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_GetEventFailed(CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) EventFailed) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter EventFailed has direction OUT */
   rtn = Dem_GetEventFailed(((VAR(Dem_EventIdType, AUTOMATIC))3), EventFailed);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_GetEventStatus' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_GetEventStatus(CONSTP2VAR(Dem_UdsStatusByteType, AUTOMATIC, RTE_APPL_DATA) EventStatusByte) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter EventStatusByte has direction OUT */
   rtn = Dem_GetEventStatus(((VAR(Dem_EventIdType, AUTOMATIC))3), EventStatusByte);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_GetEventTested' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_GetEventTested(CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) EventTested) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter EventTested has direction OUT */
   rtn = Dem_GetEventTested(((VAR(Dem_EventIdType, AUTOMATIC))3), EventTested);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_EvtInfo_Event_LostComm_SEN_GetFaultDetectionCounter' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_EvtInfo_Event_LostComm_SEN_GetFaultDetectionCounter(CONSTP2VAR(sint8, AUTOMATIC, RTE_APPL_DATA) FaultDetectionCounter) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter FaultDetectionCounter has direction OUT */
   rtn = Dem_GetFaultDetectionCounter(((VAR(Dem_EventIdType, AUTOMATIC))3), FaultDetectionCounter);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_FiMFID_0_GetFunctionPermission' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_FiMFID_0_GetFunctionPermission(CONSTP2VAR(boolean, AUTOMATIC, RTE_APPL_DATA) Permission) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter Permission has direction OUT */
   rtn = FiM_GetFunctionPermission(((VAR(FiM_FunctionIdType, AUTOMATIC))1), Permission);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_OpCycle_DEM_OPCYC_WARMUP_SetOperationCycleState' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_OpCycle_DEM_OPCYC_WARMUP_SetOperationCycleState(VAR(Dem_OperationCycleStateType, AUTOMATIC) CycleState) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter CycleState has direction IN */
   rtn = Dem_SetOperationCycleState(((VAR(uint8, AUTOMATIC))3), CycleState);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_OpCycle_DEM_OPCY_IGNITION_SetOperationCycleState' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_OpCycle_DEM_OPCY_IGNITION_SetOperationCycleState(VAR(Dem_OperationCycleStateType, AUTOMATIC) CycleState) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter CycleState has direction IN */
   rtn = Dem_SetOperationCycleState(((VAR(uint8, AUTOMATIC))2), CycleState);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_OpCycle_DEM_OPCY_OBD_DCY_SetOperationCycleState' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_OpCycle_DEM_OPCY_OBD_DCY_SetOperationCycleState(VAR(Dem_OperationCycleStateType, AUTOMATIC) CycleState) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter CycleState has direction IN */
   rtn = Dem_SetOperationCycleState(((VAR(uint8, AUTOMATIC))1), CycleState);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_OpCycle_DemOperationCycle_0_SetOperationCycleState' for 'CPT_Diag_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Diag_SWC_RPort_OpCycle_DemOperationCycle_0_SetOperationCycleState(VAR(Dem_OperationCycleStateType, AUTOMATIC) CycleState) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter CycleState has direction IN */
   rtn = Dem_SetOperationCycleState(((VAR(uint8, AUTOMATIC))0), CycleState);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_IRead_Runnable_Dcm_Swc_RPort_TST_Diag_TestNumber_uint8_Impl' for 'CPT_Diag_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Diag_SWC_Runnable_Dcm_Swc_RPort_TST_Diag_TestNumber_uint8_Impl omitted -- not used */

FUNC(uint8, RTE_CODE)
Rte_Mode_Diag_SWC_RPort_DcmDiagnosticSessionControl_MDGP_DcmDiagnosticSessionControl(void) /* 2 */
{
   VAR(uint8, AUTOMATIC) rtn;

   Rte_SuspendAllInterrupts();
   rtn = Rte_ModeCurrent_2;
   Rte_ResumeAllInterrupts();
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Read_Diag_SWC_RPort_DataServices_DspData_SYS_SUP_ID_F18A_Data(CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Buffer read begin */
   Rte_GetResource();
   Rte_memcpy(data, Rte_Rx_000020, sizeof(Dcm_DataArrayTypeUint8_DspData_SYS_SUP_ID_F18AType));
   Rte_ReleaseResource();
   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Buffer read end */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Switch_Diag_SWC_PPort_Mdg2_MDGP_Mdg2(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Enter OS Exclusive Area begin */
   Rte_SuspendOSInterrupts();
   /* SpecReq: Enter OS Exclusive Area end */
   Rte_ModeCurrent_7 = data;
   /* SpecReq: Exit OS Exclusive Area begin */
   Rte_ResumeOSInterrupts();
   /* SpecReq: Exit OS Exclusive Area end */
   /* SpecReq: MSA invoke begin */
   /* SpecReq: MSA invoke end */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Diag_SWC_PPort_DataServices_DspData_ASW_VER_F189_Data(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* Box: Send Data to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Dcm.R_DataServices_DspData_ASW_VER_F189 begin */
   /* SpecReq: Buffer write begin */
   Rte_GetResource();
   Rte_memcpy(Rte_Rx_000021, data, sizeof(Dcm_DataArrayTypeUint8_DspData_ASW_VER_F189Type));
   Rte_ReleaseResource();
   /* SpecReq: Buffer write end */
   /* Box: Send Data to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Dcm.R_DataServices_DspData_ASW_VER_F189 end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Diag_SWC_PPort_DataServices_DspData_MANU_DATE_F18B_Data(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* Box: Send Data to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Dcm.R_DataServices_DspData_MANU_DATE_F18B begin */
   /* SpecReq: Buffer write begin */
   Rte_GetResource();
   Rte_memcpy(Rte_Rx_000022, data, sizeof(Dcm_DataArrayTypeUint8_DspData_MANU_DATE_F18BType));
   Rte_ReleaseResource();
   /* SpecReq: Buffer write end */
   /* Box: Send Data to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Dcm.R_DataServices_DspData_MANU_DATE_F18B end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Diag_SWC_PPort_DataServices_DspData_SYS_SUP_ID_F18A_Data(P2CONST(uint8, AUTOMATIC, RTE_APPL_DATA) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* Box: Send Data to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Dcm.R_DataServices_DspData_SYS_SUP_ID_F18A begin */
   /* SpecReq: Buffer write begin */
   Rte_GetResource();
   Rte_memcpy(Rte_Rx_000023, data, sizeof(Dcm_DataArrayTypeUint8_DspData_SYS_SUP_ID_F18AType));
   Rte_ReleaseResource();
   /* SpecReq: Buffer write end */
   /* Box: Send Data to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Dcm.R_DataServices_DspData_SYS_SUP_ID_F18A end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Diag_SWC_PPort_TST_FimPermisison_TST_FimPermission(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is TST_FimPermission */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))23), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_E2E_SWC_Rx (CPT_E2E_SWC_Rx), Type: E2E_SWC_Rx */
/* Direct API 'Rte_Read_RPort_E2E_Data_Alive_Cnt' for 'CPT_E2E_SWC_Rx' optimized to direct read. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Read_E2E_SWC_Rx_RPort_E2E_Data_Alive_Cnt(CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) data) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Buffer read begin */
   /* Optimizer: Removed resource lock */
   (*(data)) = Rte_Rx_000024;
   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Buffer read end */
   return rtn;
}

/* Direct API 'Rte_Read_RPort_E2E_Data_CKS' for 'CPT_E2E_SWC_Rx' optimized to direct read. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Read_E2E_SWC_Rx_RPort_E2E_Data_CKS(CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) data) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Buffer read begin */
   /* Optimizer: Removed resource lock */
   (*(data)) = Rte_Rx_000025;
   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Buffer read end */
   return rtn;
}

/* Direct API 'Rte_Read_RPort_E2E_Data_Data' for 'CPT_E2E_SWC_Rx' optimized to direct read. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Read_E2E_SWC_Rx_RPort_E2E_Data_Data(CONSTP2VAR(uint8, AUTOMATIC, RTE_APPL_DATA) data) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Buffer read begin */
   /* Optimizer: Removed resource lock */
   (*(data)) = Rte_Rx_000026;
   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Buffer read end */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_E2E_SWC_Rx_PPort_E2E_TestResult_E2E_TestResult(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is E2E_TestResult */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))22), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_E2E_SWC_Tx (CPT_E2E_SWC_Tx), Type: E2E_SWC_Tx */
/* Direct API 'Rte_IRead_RE_E2E_SWC_Tx_RPort_E2E_Protected_Data_E2E_Protected_Data' for 'CPT_E2E_SWC_Tx' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_E2E_SWC_Tx_RE_E2E_SWC_Tx_RPort_E2E_Protected_Data_E2E_Protected_Data omitted -- not used */

/* Direct API 'Rte_Write_PPort_E2E_Data_Alive_Cnt' for 'CPT_E2E_SWC_Tx' optimized to direct write. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_E2E_SWC_Tx_PPort_E2E_Data_Alive_Cnt(VAR(uint8, AUTOMATIC) data) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* Box: Send Alive_Cnt to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_E2E_SWC_Rx.RPort_E2E_Data begin */
   /* SpecReq: Buffer write begin */
   /* Optimizer: Removed resource lock */
   Rte_Rx_000024 = data;
   /* SpecReq: Buffer write end */
   /* Box: Send Alive_Cnt to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_E2E_SWC_Rx.RPort_E2E_Data end */
   /* Send complete */
   return rtn;
}

/* Direct API 'Rte_Write_PPort_E2E_Data_CKS' for 'CPT_E2E_SWC_Tx' optimized to direct write. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_E2E_SWC_Tx_PPort_E2E_Data_CKS(VAR(uint8, AUTOMATIC) data) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* Box: Send CKS to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_E2E_SWC_Rx.RPort_E2E_Data begin */
   /* SpecReq: Buffer write begin */
   /* Optimizer: Removed resource lock */
   Rte_Rx_000025 = data;
   /* SpecReq: Buffer write end */
   /* Box: Send CKS to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_E2E_SWC_Rx.RPort_E2E_Data end */
   /* Send complete */
   return rtn;
}

/* Direct API 'Rte_Write_PPort_E2E_Data_Data' for 'CPT_E2E_SWC_Tx' optimized to direct write. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_E2E_SWC_Tx_PPort_E2E_Data_Data(VAR(uint8, AUTOMATIC) data) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* Box: Send Data to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_E2E_SWC_Rx.RPort_E2E_Data begin */
   /* SpecReq: Buffer write begin */
   /* Optimizer: Removed resource lock */
   Rte_Rx_000026 = data;
   /* SpecReq: Buffer write end */
   /* Box: Send Data to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_E2E_SWC_Rx.RPort_E2E_Data end */
   /* Send complete */
   return rtn;
}

/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_EcuM (CPT_EcuM), Type: EcuM */
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_FiM (CPT_FiM), Type: FiM */
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Memory_SWC (CPT_Memory_SWC), Type: Memory_SWC */
/* Direct API 'Rte_Call_RPort_NvM_NativeBlock_2_ReadBlock' for 'CPT_Memory_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_2_ReadBlock(VAR(NvM_Rb_VoidPtr, AUTOMATIC) DstPtr) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter DstPtr has direction IN */
   rtn = NvM_ReadBlock(((VAR(NvM_BlockIdType, AUTOMATIC))11), DstPtr);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_NvM_NativeBlock_2_SetRamBlockStatus' for 'CPT_Memory_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_2_SetRamBlockStatus(VAR(boolean, AUTOMATIC) BlockChanged) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter BlockChanged has direction IN */
   rtn = NvM_SetRamBlockStatus(((VAR(NvM_BlockIdType, AUTOMATIC))11), BlockChanged);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_NvM_NativeBlock_2_WriteBlock' for 'CPT_Memory_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_2_WriteBlock(VAR(NvM_Rb_ConstVoidPtr, AUTOMATIC) SrcPtr) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter SrcPtr has direction IN */
   rtn = NvM_WriteBlock(((VAR(NvM_BlockIdType, AUTOMATIC))11), SrcPtr);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_NvM_NativeBlock_3_ReadBlock' for 'CPT_Memory_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_3_ReadBlock(VAR(NvM_Rb_VoidPtr, AUTOMATIC) DstPtr) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter DstPtr has direction IN */
   rtn = NvM_ReadBlock(((VAR(NvM_BlockIdType, AUTOMATIC))12), DstPtr);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_NvM_NativeBlock_3_SetRamBlockStatus' for 'CPT_Memory_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_3_SetRamBlockStatus(VAR(boolean, AUTOMATIC) BlockChanged) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter BlockChanged has direction IN */
   rtn = NvM_SetRamBlockStatus(((VAR(NvM_BlockIdType, AUTOMATIC))12), BlockChanged);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_NvM_NativeBlock_3_WriteBlock' for 'CPT_Memory_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_3_WriteBlock(VAR(NvM_Rb_ConstVoidPtr, AUTOMATIC) SrcPtr) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter SrcPtr has direction IN */
   rtn = NvM_WriteBlock(((VAR(NvM_BlockIdType, AUTOMATIC))12), SrcPtr);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_NvM_NativeBlock_4_ReadBlock' for 'CPT_Memory_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_4_ReadBlock(VAR(NvM_Rb_VoidPtr, AUTOMATIC) DstPtr) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter DstPtr has direction IN */
   rtn = NvM_ReadBlock(((VAR(NvM_BlockIdType, AUTOMATIC))13), DstPtr);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_NvM_NativeBlock_4_SetRamBlockStatus' for 'CPT_Memory_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_4_SetRamBlockStatus(VAR(boolean, AUTOMATIC) BlockChanged) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter BlockChanged has direction IN */
   rtn = NvM_SetRamBlockStatus(((VAR(NvM_BlockIdType, AUTOMATIC))13), BlockChanged);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_Call_RPort_NvM_NativeBlock_4_WriteBlock' for 'CPT_Memory_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Memory_SWC_RPort_NvM_NativeBlock_4_WriteBlock(VAR(NvM_Rb_ConstVoidPtr, AUTOMATIC) SrcPtr) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter SrcPtr has direction IN */
   rtn = NvM_WriteBlock(((VAR(NvM_BlockIdType, AUTOMATIC))13), SrcPtr);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_IRead_RE_Memory_SWC_RPort_TST_DiagMeM_test_TST_DiagMeM_test' for 'CPT_Memory_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Memory_SWC_RE_Memory_SWC_RPort_TST_DiagMeM_test_TST_DiagMeM_test omitted -- not used */

/* Direct API 'Rte_IRead_RE_Memory_SWC_RPort_TST_PIM_FirstByte_TST_PIM_FirstByte' for 'CPT_Memory_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Memory_SWC_RE_Memory_SWC_RPort_TST_PIM_FirstByte_TST_PIM_FirstByte omitted -- not used */

/* Direct API 'Rte_IRead_RE_Memory_SWC_RPort_TST_PIM_LastByte_TST_PIM_LastByte' for 'CPT_Memory_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Memory_SWC_RE_Memory_SWC_RPort_TST_PIM_LastByte_TST_PIM_LastByte omitted -- not used */

/* Direct API 'Rte_Pim_PIM_SWC_01' for 'CPT_Memory_SWC' optimized to direct PIM access. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_Pim_Memory_SWC_PIM_SWC_01 omitted -- not used */

/* Direct API 'Rte_Pim_PIM_SWC_02' for 'CPT_Memory_SWC' optimized to direct PIM access. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_Pim_Memory_SWC_PIM_SWC_02 omitted -- not used */

/* Direct API 'Rte_Pim_PIM_SWC_03' for 'CPT_Memory_SWC' optimized to direct PIM access. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_Pim_Memory_SWC_PIM_SWC_03 omitted -- not used */

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Memory_SWC_PPort_Pim1_First_Pim1_First(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is Pim1_First */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))14), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Memory_SWC_PPort_Pim1_Last_Pim1_Last(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is Pim1_Last */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))15), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Memory_SWC_PPort_Pim2_First_Pim2_First(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is Pim2_First */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))16), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Memory_SWC_PPort_Pim2_Last_Pim2_Last(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is Pim2_Last */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))17), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Memory_SWC_PPort_Pim3_First_Pim3_First(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is Pim3_First */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))18), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Memory_SWC_PPort_Pim3_Last_Pim3_Last(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is Pim3_Last */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))19), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

/* Direct API 'Rte_Write_PPort_TST_Diag_TestNumber_uint8_Impl' for 'CPT_Memory_SWC' optimized to direct write. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Memory_SWC_PPort_TST_Diag_TestNumber_uint8_Impl(VAR(uint8, AUTOMATIC) data) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* Box: Send uint8_Impl to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Diag_SWC.RPort_TST_Diag_TestNumber begin */
   /* SpecReq: Buffer write begin */
   /* Optimizer: Removed resource lock */
   Rte_Rx_000027 = data;
   /* SpecReq: Buffer write end */
   /* Box: Send uint8_Impl to /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Diag_SWC.RPort_TST_Diag_TestNumber end */
   /* Send complete */
   return rtn;
}

/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_NvM (CPT_NvM), Type: NvM */
/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_WdgM (CPT_WdgM), Type: WdgM */
FUNC(Std_ReturnType, RTE_CODE)
Rte_SwitchAck_WdgM_globalMode_currentMode(void) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Mode Feedback read begin */
   Rte_SuspendAllInterrupts();
   rtn = Rte_FbVar_CPT_WdgM_globalMode_currentMode;
   Rte_ResumeAllInterrupts();
   /* SpecReq: Mode Feedback read end */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_SwitchAck_WdgM_mode_WdgMSE_ASWTask_currentMode(void) /* 3 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Mode Feedback read begin */
   Rte_SuspendAllInterrupts();
   rtn = Rte_FbVar_CPT_WdgM_mode_WdgMSE_ASWTask_currentMode;
   Rte_ResumeAllInterrupts();
   /* SpecReq: Mode Feedback read end */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Switch_WdgM_globalMode_currentMode(VAR(uint8, AUTOMATIC) data) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Enter OS Exclusive Area begin */
   Rte_SuspendOSInterrupts();
   /* SpecReq: Enter OS Exclusive Area end */
   Rte_ModeCurrent_8 = data;
   /* SpecReq: Exit OS Exclusive Area begin */
   Rte_ResumeOSInterrupts();
   /* SpecReq: Exit OS Exclusive Area end */
   /* SpecReq: MSA invoke begin */
   Rte_MSACbk_SW_8();
   /* SpecReq: MSA invoke end */
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Switch_WdgM_mode_WdgMSE_ASWTask_currentMode(VAR(uint8, AUTOMATIC) data) /* 3 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_OK);
   /* SpecReq: Enter OS Exclusive Area begin */
   Rte_SuspendOSInterrupts();
   /* SpecReq: Enter OS Exclusive Area end */
   Rte_ModeCurrent_9 = data;
   /* SpecReq: Exit OS Exclusive Area begin */
   Rte_ResumeOSInterrupts();
   /* SpecReq: Exit OS Exclusive Area end */
   /* SpecReq: MSA invoke begin */
   Rte_MSACbk_SW_9();
   /* SpecReq: MSA invoke end */
   return rtn;
}

/* Instance: /BMS_FlatView/SwComponentTypes/BMS_FlatView/CPT_Wdg_SWC (CPT_Wdg_SWC), Type: Wdg_SWC */
/* Direct API 'Rte_Call_RPort_Alive_WdgMSE_ASWTask_CheckpointReached' for 'CPT_Wdg_SWC' optimized to an inline call. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(Std_ReturnType, RTE_CODE)
Rte_Call_Wdg_SWC_RPort_Alive_WdgMSE_ASWTask_CheckpointReached(VAR(WdgM_CheckpointIdType, AUTOMATIC) CheckpointID) /* 1 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn;

   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue begin */
   /* Parameter CheckpointID has direction IN */
   rtn = WdgM_CheckpointReached(((VAR(WdgM_SupervisedEntityIdType, AUTOMATIC))0), CheckpointID);
   /* SpecReq: Measurement point CS begin */
   /* SpecReq: Measurement point CS end */
   /* SpecReq: Activate RE via Queue end */
   return rtn;
}

/* Direct API 'Rte_IRead_RE_Wdg_SWC_RPort_TestRequested_uint8_Impl' for 'CPT_Wdg_SWC' optimized to implicit read. */
/* Function body elided - API implemented as macro. */
/* Function definition Rte_IRead_Wdg_SWC_RE_Wdg_SWC_RPort_TestRequested_uint8_Impl omitted -- not used */

/* Direct API 'Rte_Mode_RPort_globalMode_currentMode' for 'CPT_Wdg_SWC' optimized to direct data read. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(uint8, RTE_CODE)
Rte_Mode_Wdg_SWC_RPort_globalMode_currentMode(void) /* 1 */
{
   VAR(uint8, AUTOMATIC) rtn;

   /* Optimizer: Removed resource lock */
   rtn = Rte_ModeCurrent_8;
   return rtn;
}

/* Direct API 'Rte_Mode_RPort_mode_WdgMSE_ASWTask_currentMode' for 'CPT_Wdg_SWC' optimized to direct data read. */
/* Function body emitted - SW-C is delivered as object-code. */
FUNC(uint8, RTE_CODE)
Rte_Mode_Wdg_SWC_RPort_mode_WdgMSE_ASWTask_currentMode(void) /* 1 */
{
   VAR(uint8, AUTOMATIC) rtn;

   /* Optimizer: Removed resource lock */
   rtn = Rte_ModeCurrent_9;
   return rtn;
}

FUNC(Std_ReturnType, RTE_CODE)
Rte_Write_Wdg_SWC_PPort_WDG_TestResult_WDG_TestResult(VAR(uint8, AUTOMATIC) data) /* 2 */
{
   VAR(Std_ReturnType, AUTOMATIC) rtn = RTE_E_OK;

   /* SpecReq: Send signal begin */
   /* The signal is WDG_TestResult */
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != Com_SendSignal(((VAR(Com_SignalIdType, AUTOMATIC))20), &data) )
   {
      rtn = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_COM_STOPPED);
   }
   /* SpecReq: Send signal end */
   /* Send complete */
   return rtn;
}

#define RTE_STOP_SEC_CODE
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
/* ----- API functions ----- */

#define RTE_START_SEC_CODE
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(void, RTE_CODE)
Rte_COMCbk_BMS_SG_BatteryIdentifier_Rx(void)
{
   StatusType comstatus;
   uint8 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))0), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000000 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_BMS_SG_BatteryStatus_Rx(void)
{
   StatusType comstatus;
   uint8 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))1), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000001 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_BMS_SG_CapacityMeasure_Rx(void)
{
   StatusType comstatus;
   uint16 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))4), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000002 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_BMS_SG_Counter_Rx(void)
{
   StatusType comstatus;
   uint32 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))13), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000003 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_BMS_SG_CurrentMeasure_Rx(void)
{
   StatusType comstatus;
   uint16 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))3), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000004 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_BMS_SG_EngineCoolantTemp_Rx(void)
{
   StatusType comstatus;
   uint8 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))6), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000005 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_BMS_SG_EngineFuelTemp_Rx(void)
{
   StatusType comstatus;
   uint8 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))7), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000006 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_BMS_SG_EngineSpeed_Rx(void)
{
   StatusType comstatus;
   uint32 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))8), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000007 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_BMS_SG_EngineTorque_Rx(void)
{
   StatusType comstatus;
   uint8 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))5), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000008 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_BMS_SG_StateOfCharge_Rx(void)
{
   StatusType comstatus;
   uint8 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))10), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000009 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_BMS_SG_StateOfHealth_Rx(void)
{
   StatusType comstatus;
   uint8 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))11), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000010 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_BMS_SG_Status_Rx(void)
{
   StatusType comstatus;
   uint16 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))12), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000011 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_BMS_SG_VehicleSpeed_Rx(void)
{
   StatusType comstatus;
   uint8 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))9), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000012 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_BMS_SG_VoltageMeasure_Rx(void)
{
   StatusType comstatus;
   uint16 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))2), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000013 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_E2E_Protected_Data(void)
{
   StatusType comstatus;
   uint8 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))18), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000014 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_TST_DiagMeM_test(void)
{
   StatusType comstatus;
   uint8 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))15), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000015 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_TST_PIM_FirstByte(void)
{
   StatusType comstatus;
   uint8 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))16), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000016 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_TST_PIM_LastByte(void)
{
   StatusType comstatus;
   uint8 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))17), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000017 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_COMCbk_TST_TestNumber(void)
{
   StatusType comstatus;
   uint8 data;
   boolean read_ok = TRUE;

   /* Box: test begin */
#if !defined(RTE_OMIT_UNINIT_CHECK)
   if ( TRUE != Rte_Initialized )
   {
      return;
   }
#endif /* !defined(RTE_OMIT_UNINIT_CHECK) */
   /* Box: test end */
   /* Box: initialize begin */
   /* Box: initialize end */
   /* Box: receive begin */
   /* SpecReq: Receive signal begin */
   comstatus = Com_ReceiveSignal(((VAR(Com_SignalIdType, AUTOMATIC))14), &data);
   if ( ((VAR(StatusType, AUTOMATIC))E_OK) != comstatus )
   {
      read_ok = ((VAR(boolean, AUTOMATIC))FALSE);
   }
   /* SpecReq: Receive signal end */
   /* Box: receive end */
   /* Box: process begin */
   if ( TRUE == read_ok )
   {
      /* SpecReq: Buffer write begin */
      /* Optimizer: Removed resource lock */
      Rte_Rx_000018 = data;
      /* SpecReq: Buffer write end */
   }
   /* Box: process end */
}

FUNC(void, RTE_CODE)
Rte_MSACbk_SW_8(void) /* 2 */
{
   /* SpecReq: Mode Feedback write begin */
   Rte_FbVar_CPT_WdgM_globalMode_currentMode = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_TRANSMIT_ACK);
   /* SpecReq: Mode Feedback write end */
}
FUNC(void, RTE_CODE)
Rte_MSACbk_SW_9(void) /* 2 */
{
   /* SpecReq: Mode Feedback write begin */
   Rte_FbVar_CPT_WdgM_mode_WdgMSE_ASWTask_currentMode = ((VAR(Std_ReturnType, AUTOMATIC))RTE_E_TRANSMIT_ACK);
   /* SpecReq: Mode Feedback write end */
}
FUNC(void, RTE_CODE)
SchM_IModeInit(void) /* 1 */
{
   /* RE activation */
   {
      /* SpecReq: Activate RE begin */
      /* SpecReq: direct call prologue begin */
      /* SpecReq: direct call prologue end */
      BswM_Cfg_DfrdBswNotification_BswM_MRP_BswM_MDG_ECUM_STATE_STARTUP_ONE();
      /* SpecReq: direct call epilogue begin */
      /* SpecReq: direct call epilogue end */
      /* SpecReq: Activate RE end */
   }
}
#define RTE_STOP_SEC_CODE
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
/* RTE_FUNCTIONS_END */

