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

#ifndef RTE_BASE_SWC_H
#define RTE_BASE_SWC_H

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

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

#include "Rte.h"
#include "Rte_Intl.h"
#include "Rte_Base_SWC_Type.h"

#include "Rte_DataHandleType.h"

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

#if defined(RTE_RUNNABLEAPI_RE_Base_SWC)
   /* Do nothing for this and all elif clauses below (rte_sws_2751) */
#else
   /* None of above defined so define value including all APIs (rte_sws_2751) */
   #define RTE_PRV_ALL_API
#endif

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

#ifndef RTE_CORE
#define RTE_E_EcuM_ShutdownTarget_E_NOT_OK ((Std_ReturnType)1)
#endif /* RTE_CORE */

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

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

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

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

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

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


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

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

/* API Mapping Macros */
#ifndef RTE_CORE

#define EcuM_START_SEC_CODE
#include "EcuM_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(Std_ReturnType, EcuM_CODE) EcuM_SelectShutdownTarget(VAR(EcuM_ShutdownTargetType, AUTOMATIC) shutdownTarget,
                                                          VAR(EcuM_ShutdownModeType, AUTOMATIC) shutdownMode);

#define EcuM_STOP_SEC_CODE
#include "EcuM_MemMap.h" /*lint !e537 permit multiple inclusion */
#define RTE_START_SEC_CODE
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(Std_ReturnType, RTE_CODE) Rte_Switch_Base_SWC_PP_BswMArbitration_BswM_MRP_SwcModeRequest_MDGP_MSI_ShutDown(VAR(uint8, AUTOMATIC) data);
#define RTE_STOP_SEC_CODE
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
#define RTE_START_SEC_CONST_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
extern CONST(Rte_SelfType_EcuM, RTE_CONST) Rte_Self_CPT_EcuM;
#define RTE_STOP_SEC_CONST_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
#define RTE_START_SEC_VAR_CLEARED_32
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
extern VAR(Rte_ImplicitBufsType, RTE_DATA) Rte_ImplicitBufs;
#define RTE_STOP_SEC_VAR_CLEARED_32
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Base_SWC)
/* Inline function call optimization; Rte_Call_RPort_shutdownTarget_SelectShutdownTarget to EcuM_SelectShutdownTarget */
#define Rte_Call_RPort_shutdownTarget_SelectShutdownTarget( shutdownTarget, shutdownMode ) EcuM_SelectShutdownTarget(shutdownTarget, shutdownMode)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Base_SWC)
/* Inline read optimization; Rte_IRead_RE_Base_SWC_RPort_TestRequested_uint8_Impl to implicit access macro */
#define Rte_IRead_RE_Base_SWC_RPort_TestRequested_uint8_Impl()  ( (CONST(uint8, RTE_DATA)) Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.sbuf19.value )
#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Base_SWC)
#define Rte_Switch_PP_BswMArbitration_BswM_MRP_SwcModeRequest_MDGP_MSI_ShutDown( data ) (Rte_Switch_Base_SWC_PP_BswMArbitration_BswM_MRP_SwcModeRequest_MDGP_MSI_ShutDown(data))
#endif

#endif /* RTE_CORE */

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

#define Base_SWC_START_SEC_CODE
#include "Base_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(void, Base_SWC_CODE) RE_Base_SWC(void);
#define Base_SWC_STOP_SEC_CODE
#include "Base_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */

/* Initial values for data element prototypes */

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

#endif /* !RTE_BASE_SWC_H */
