123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 |
- #ifndef WDOG_IP_H
- #define WDOG_IP_H
- #ifdef __cplusplus
- extern "C"{
- #endif
- #include "Wdog_Ip_Types.h"
- #include "Wdog_Ip_DeviceRegisters.h"
- #define WDOG_IP_VENDOR_ID 43
- #define WDOG_IP_MODULE_ID 102
- #define WDOG_IP_AR_RELEASE_MAJOR_VERSION 4
- #define WDOG_IP_AR_RELEASE_MINOR_VERSION 4
- #define WDOG_IP_AR_RELEASE_REVISION_VERSION 0
- #define WDOG_IP_SW_MAJOR_VERSION 1
- #define WDOG_IP_SW_MINOR_VERSION 0
- #define WDOG_IP_SW_PATCH_VERSION 0
- #if (WDOG_IP_VENDOR_ID != WDOG_IP_TYPES_VENDOR_ID)
- #error "Wdog_Ip.h and Wdog_Ip_Types.h have different vendor ids"
- #endif
- #if ((WDOG_IP_AR_RELEASE_MAJOR_VERSION != WDOG_IP_TYPES_AR_RELEASE_MAJOR_VERSION) || \
- (WDOG_IP_AR_RELEASE_MINOR_VERSION != WDOG_IP_TYPES_AR_RELEASE_MINOR_VERSION) || \
- (WDOG_IP_AR_RELEASE_REVISION_VERSION != WDOG_IP_TYPES_AR_RELEASE_REVISION_VERSION))
- #error "AutoSar Version Numbers of Wdog_Ip.h and Wdog_Ip_Types.h are different"
- #endif
- #if ((WDOG_IP_SW_MAJOR_VERSION != WDOG_IP_TYPES_SW_MAJOR_VERSION) || \
- (WDOG_IP_SW_MINOR_VERSION != WDOG_IP_TYPES_SW_MINOR_VERSION) || \
- (WDOG_IP_SW_PATCH_VERSION != WDOG_IP_TYPES_SW_PATCH_VERSION))
- #error "Software Version Numbers of Wdog_Ip.h and Wdog_Ip_Types.h are different"
- #endif
- #if (WDOG_IP_VENDOR_ID != WDOG_IP_DEVICE_REGISTERS_VENDOR_ID)
- #error "Wdog_Ip.h and Wdog_Ip_DeviceRegisters.h have different vendor ids"
- #endif
- #if ((WDOG_IP_AR_RELEASE_MAJOR_VERSION != WDOG_IP_DEVICE_REGISTERS_AR_RELEASE_MAJOR_VERSION) || \
- (WDOG_IP_AR_RELEASE_MINOR_VERSION != WDOG_IP_DEVICE_REGISTERS_AR_RELEASE_MINOR_VERSION) || \
- (WDOG_IP_AR_RELEASE_REVISION_VERSION != WDOG_IP_DEVICE_REGISTERS_AR_RELEASE_REVISION_VERSION))
- #error "AutoSar Version Numbers of Wdog_Ip.h and Wdog_Ip_DeviceRegisters.h are different"
- #endif
- #if ((WDOG_IP_SW_MAJOR_VERSION != WDOG_IP_DEVICE_REGISTERS_SW_MAJOR_VERSION) || \
- (WDOG_IP_SW_MINOR_VERSION != WDOG_IP_DEVICE_REGISTERS_SW_MINOR_VERSION) || \
- (WDOG_IP_SW_PATCH_VERSION != WDOG_IP_DEVICE_REGISTERS_SW_PATCH_VERSION))
- #error "Software Version Numbers of Wdog_Ip.h and Wdog_Ip_DeviceRegisters.h are different"
- #endif
- #if (WDOG_IP_ENABLE == STD_ON)
- #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"
- Wdog_Ip_StatusType Wdog_Ip_Init(const uint8 Instance,
- const Wdog_Ip_ConfigType * const ConfigPtr);
- #if (WDOG_IP_DEINIT == STD_ON)
- Wdog_Ip_StatusType Wdog_Ip_DeInit(const uint8 Instance);
- #endif
- void Wdog_Ip_Service(const uint8 Instance);
- Wdog_Ip_StatusType Wdog_Ip_SetTimeout(const uint8 Instance,
- uint16 Timeout, uint16 WindowValue);
- #if (WDOG_IP_ENABLE_TEST_MODE == STD_ON)
- Wdog_Ip_StatusType Wdog_Ip_SetTestMode(const uint8 Instance,
- Wdog_Ip_TestModeType TestMode);
- Wdog_Ip_TestModeType Wdog_Ip_GetTestMode(const uint8 Instance);
- #endif
- Wdog_Ip_StatusType Wdog_Ip_Config(const uint8 Instance,
- const Wdog_Ip_ConfigType * const ConfigPtr);
- Wdog_Ip_StatusType Wdog_Ip_StartTimer(const uint8 Instance);
- Wdog_Ip_StatusType Wdog_Ip_StopTimer(const uint8 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"
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|