123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208 |
- #ifndef WDG_IPW_H
- #define WDG_IPW_H
- #ifdef __cplusplus
- extern "C"{
- #endif
- #include "Wdg_Ipw_Types.h"
- #include "StandardTypes.h"
- #if(WDOG_IP_USED == STD_ON)
- #include "Wdog_Ip.h"
- #endif
- #if(EWM_IP_USED == STD_ON)
- #include "Ewm_Ip.h"
- #endif
- #define WDG_IPW_VENDOR_ID 43
- #define WDG_IPW_MODULE_ID 102
- #define WDG_IPW_AR_RELEASE_MAJOR_VERSION 4
- #define WDG_IPW_AR_RELEASE_MINOR_VERSION 4
- #define WDG_IPW_AR_RELEASE_REVISION_VERSION 0
- #define WDG_IPW_SW_MAJOR_VERSION 1
- #define WDG_IPW_SW_MINOR_VERSION 0
- #define WDG_IPW_SW_PATCH_VERSION 0
- #if (WDG_IPW_VENDOR_ID != WDG_IPW_TYPES_VENDOR_ID)
- #error "Wdg_Ipw.h and Wdg_Ipw_Types.h have different vendor ids"
- #endif
- #if ((WDG_IPW_AR_RELEASE_MAJOR_VERSION != WDG_IPW_TYPES_AR_RELEASE_MAJOR_VERSION) || \
- (WDG_IPW_AR_RELEASE_MINOR_VERSION != WDG_IPW_TYPES_AR_RELEASE_MINOR_VERSION) || \
- (WDG_IPW_AR_RELEASE_REVISION_VERSION != WDG_IPW_TYPES_AR_RELEASE_REVISION_VERSION))
- #error "AutoSar Version Numbers of Wdg_Ipw.h and Wdg_Ipw_Types.h are different"
- #endif
- #if ((WDG_IPW_SW_MAJOR_VERSION != WDG_IPW_TYPES_SW_MAJOR_VERSION) || \
- (WDG_IPW_SW_MINOR_VERSION != WDG_IPW_TYPES_SW_MINOR_VERSION) || \
- (WDG_IPW_SW_PATCH_VERSION != WDG_IPW_TYPES_SW_PATCH_VERSION))
- #error "Software Version Numbers of Wdg_Ipw.h and Wdg_Ipw_Types.h are different"
- #endif
- #if(WDOG_IP_USED == STD_ON)
-
- #if (WDG_IPW_VENDOR_ID != WDOG_IP_VENDOR_ID)
- #error "Wdg_Ipw.h and Wdog_Ip.h have different vendor ids"
- #endif
-
- #if ((WDG_IPW_AR_RELEASE_MAJOR_VERSION != WDOG_IP_AR_RELEASE_MAJOR_VERSION) || \
- (WDG_IPW_AR_RELEASE_MINOR_VERSION != WDOG_IP_AR_RELEASE_MINOR_VERSION) || \
- (WDG_IPW_AR_RELEASE_REVISION_VERSION != WDOG_IP_AR_RELEASE_REVISION_VERSION))
- #error "AutoSar Version Numbers of Wdg_Ipw.h and Wdog_Ip.h are different"
- #endif
-
- #if ((WDG_IPW_SW_MAJOR_VERSION != WDOG_IP_SW_MAJOR_VERSION) || \
- (WDG_IPW_SW_MINOR_VERSION != WDOG_IP_SW_MINOR_VERSION) || \
- (WDG_IPW_SW_PATCH_VERSION != WDOG_IP_SW_PATCH_VERSION))
- #error "Software Version Numbers of Wdg_Ipw.h and Wdog_Ip.h are different"
- #endif
- #endif
- #if(EWM_IP_USED == STD_ON)
-
- #if (WDG_IPW_VENDOR_ID != EWM_IP_VENDOR_ID)
- #error "Wdg_Ipw.h and Ewm_Ip.h have different vendor ids"
- #endif
-
- #if ((WDG_IPW_AR_RELEASE_MAJOR_VERSION != EWM_IP_AR_RELEASE_MAJOR_VERSION) || \
- (WDG_IPW_AR_RELEASE_MINOR_VERSION != EWM_IP_AR_RELEASE_MINOR_VERSION) || \
- (WDG_IPW_AR_RELEASE_REVISION_VERSION != EWM_IP_AR_RELEASE_REVISION_VERSION))
- #error "AutoSar Version Numbers of Wdg_Ipw.h and Ewm_Ip.h are different"
- #endif
-
- #if ((WDG_IPW_SW_MAJOR_VERSION != EWM_IP_SW_MAJOR_VERSION) || \
- (WDG_IPW_SW_MINOR_VERSION != EWM_IP_SW_MINOR_VERSION) || \
- (WDG_IPW_SW_PATCH_VERSION != EWM_IP_SW_PATCH_VERSION))
- #error "Software Version Numbers of Wdg_Ipw.h and Ewm_Ip.h are different"
- #endif
- #endif
- #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
-
- #if ((WDG_IPW_AR_RELEASE_MAJOR_VERSION != STD_AR_RELEASE_MAJOR_VERSION) || \
- (WDG_IPW_AR_RELEASE_MINOR_VERSION != STD_AR_RELEASE_MINOR_VERSION))
- #error "AutoSar Version Numbers of Wdg_Ipw.h and StandardTypes.h are different"
- #endif
- #endif
- #ifdef WDG_ROM
- #if (WDG_ROM == 1U)
- #define WDG_START_SEC_CODE
- #endif
- #else
- #if (WDG_RAM == 0U)
- #define WDG_START_SEC_RAMCODE
- #endif
- #endif
- #include "Wdg_MemMap.h"
- Std_ReturnType Wdg_Ipw_Init(Wdg_Ipw_InstanceType Wdg_Instance, const Wdg_Ipw_ConfigType * const pIpwConfig);
- Std_ReturnType Wdg_Ipw_SetMode(Wdg_Ipw_InstanceType Wdg_Instance, const Wdg_Ipw_ConfigType * const pIpwConfig);
- Std_ReturnType Wdg_Ipw_StartTimer(Wdg_Ipw_InstanceType Wdg_Instance);
- #if (WDG_IPW_DEINIT == STD_ON)
- Std_ReturnType Wdg_Ipw_StopTimer(Wdg_Ipw_InstanceType Wdg_Instance);
- #endif
- void Wdg_Ipw_Service(Wdg_Ipw_InstanceType Wdg_Instance);
- #ifdef WDG_ROM
- #if (WDG_ROM == 1U)
- #define WDG_STOP_SEC_CODE
- #endif
- #else
- #if (WDG_RAM == 0U)
- #define WDG_STOP_SEC_RAMCODE
- #endif
- #endif
- #include "Wdg_MemMap.h"
- #ifdef __cplusplus
- }
- #endif
- #endif
|