/** @file     Rte_Wdg_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_WDG_SWC_H
#define RTE_WDG_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_Wdg_SWC_Type.h"

#include "Rte_DataHandleType.h"

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

#if defined(RTE_RUNNABLEAPI_RE_Wdg_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_WdgM_AliveSupervision_E_NOT_OK ((Std_ReturnType)1)
#endif /* RTE_CORE */

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

/* BEGIN: SWC types (core visible) */
struct Rte_CDS_Wdg_SWC {
   /* Data handles */
   P2VAR(Rte_DE_uint8, AUTOMATIC, RTE_DATA) RE_Wdg_SWC_RPort_TestRequested_uint8_Impl;
};
typedef struct Rte_CDS_Wdg_SWC Rte_CDS_Wdg_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_Wdg_SWC, RTE_CONST) Rte_Inst_Wdg_SWC;
#define RTE_STOP_SEC_CONST_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */


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

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

/* API Mapping Macros */
#ifndef RTE_CORE

#define RTE_START_SEC_CODE
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
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 */
#define RTE_START_SEC_CONST_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
extern CONST(Rte_SelfType_WdgM, RTE_CONST) Rte_Self_CPT_WdgM;
#define RTE_STOP_SEC_CONST_UNSPECIFIED
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
#define WdgM_START_SEC_CODE
#include "WdgM_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(Std_ReturnType, WdgM_CODE) WdgM_CheckpointReached(VAR(WdgM_SupervisedEntityIdType, AUTOMATIC) Rte_PDAV0,
                                                       VAR(WdgM_CheckpointIdType, AUTOMATIC) CheckpointID);

#define WdgM_STOP_SEC_CODE
#include "WdgM_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 */
#define RTE_START_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
extern VAR(uint8, RTE_DATA) Rte_ModeCurrent_8;
#define RTE_STOP_SEC_VAR_CLEARED_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 */
extern VAR(uint8, RTE_DATA) Rte_ModeCurrent_9;
#define RTE_STOP_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Wdg_SWC)
/* Inline function call optimization; Rte_Call_RPort_Alive_WdgMSE_ASWTask_CheckpointReached to WdgM_CheckpointReached */
#define Rte_Call_RPort_Alive_WdgMSE_ASWTask_CheckpointReached( CheckpointID ) WdgM_CheckpointReached(((VAR(WdgM_SupervisedEntityIdType, AUTOMATIC))0), CheckpointID)

#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Wdg_SWC)
/* Inline read optimization; Rte_IRead_RE_Wdg_SWC_RPort_TestRequested_uint8_Impl to implicit access macro */
#define Rte_IRead_RE_Wdg_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_Wdg_SWC)
/* Inline read optimization; Rte_Mode_RPort_globalMode_currentMode to direct read */
#define Rte_Mode_RPort_globalMode_currentMode()  ( Rte_ModeCurrent_8 )
#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Wdg_SWC)
/* Inline read optimization; Rte_Mode_RPort_mode_WdgMSE_ASWTask_currentMode to direct read */
#define Rte_Mode_RPort_mode_WdgMSE_ASWTask_currentMode()  ( Rte_ModeCurrent_9 )
#endif
#if defined(RTE_PRV_ALL_API) || defined(RTE_RUNNABLEAPI_RE_Wdg_SWC)
#define Rte_Write_PPort_WDG_TestResult_WDG_TestResult( data ) (Rte_Write_Wdg_SWC_PPort_WDG_TestResult_WDG_TestResult(data))
#endif

#endif /* RTE_CORE */

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

#define Wdg_SWC_START_SEC_CODE
#include "Wdg_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(void, Wdg_SWC_CODE) RE_Wdg_SWC(void);
#define Wdg_SWC_STOP_SEC_CODE
#include "Wdg_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */

/* Initial values for data element prototypes */

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

#endif /* !RTE_WDG_SWC_H */
