/**************************************************************************************************/ /** * @file : Dem.h * @brief : AUTOSAR Dem header file. It is a stub file. Integrators shall replace this file. * - Platform: Z20K14xM * - Autosar Version: 4.6.0 * @version : 1.2.0 * @author : Zhixin Semiconductor * @note : None * * @copyright : Copyright (c) 2021-2023 Zhixin Semiconductor Ltd. All rights reserved. **************************************************************************************************/ #ifndef DEM_H #define DEM_H /** @addtogroup Dem_Module * @{ */ /** @addtogroup Dem * @brief AUTOSAR Dem header file. It is a stub file. * @{ */ #ifdef __cplusplus extern "C" { #endif #include "Dem_Cfg.h" #include "Std_Types.h" #include "Rte_Dem_Type.h" /** @defgroup Public_MacroDefinition * @{ */ /* Published information */ #define DEM_VENDOR_ID 0x00B3U #define DEM_MODULE_ID 54U #define DEM_AR_RELEASE_MAJOR_VERSION 4U #define DEM_AR_RELEASE_MINOR_VERSION 6U #define DEM_AR_RELEASE_REVISION_VERSION 0U #define DEM_SW_MAJOR_VERSION 1U #define DEM_SW_MINOR_VERSION 2U #define DEM_SW_PATCH_VERSION 0U /* Check if current file and Dem_Cfg.h are the same vendor */ #if (DEM_VENDOR_ID != DEM_CFG_H_VENDOR_ID) #error "Vendor ID of Dem.h and Dem_Cfg.h are different" #endif /* Check if current file and Dem_Cfg.h are the same Autosar version */ #if ((DEM_AR_RELEASE_MAJOR_VERSION != DEM_CFG_H_AR_RELEASE_MAJOR_VERSION) || \ (DEM_AR_RELEASE_MINOR_VERSION != DEM_CFG_H_AR_RELEASE_MINOR_VERSION) || \ (DEM_AR_RELEASE_REVISION_VERSION != DEM_CFG_H_AR_RELEASE_REVISION_VERSION)) #error "AutoSar Version of Dem.h and Dem_Cfg.h are different" #endif /* Check if current file and Dem_Cfg.h are the same software version */ #if ((DEM_SW_MAJOR_VERSION != DEM_CFG_H_SW_MAJOR_VERSION) || \ (DEM_SW_MINOR_VERSION != DEM_CFG_H_SW_MINOR_VERSION) || \ (DEM_SW_PATCH_VERSION != DEM_CFG_H_SW_PATCH_VERSION)) #error "Software Version of Dem.h and Dem_Cfg.h are different" #endif #ifdef MCAL_INTER_MODULE_ASR_CHECK_ENABLE /* Check if current file and Std_Types header file are of the same Autosar version */ #if ((DEM_AR_RELEASE_MAJOR_VERSION != STD_AR_RELEASE_MAJOR_VERSION) || \ (DEM_AR_RELEASE_MINOR_VERSION != STD_AR_RELEASE_MINOR_VERSION)) #error "AutoSar Version Numbers of Dem.h and Std_Types.h are different" #endif /* Check if current file and Rte_Dem_Type header file are of the same Autosar version */ #if ((DEM_AR_RELEASE_MAJOR_VERSION != RTE_DEM_TYPE_H_AR_RELEASE_MAJOR_VERSION) || \ (DEM_AR_RELEASE_MINOR_VERSION != RTE_DEM_TYPE_H_AR_RELEASE_MINOR_VERSION)) #error "AutoSar Version Numbers of Dem.h and Rte_Dem_Type.h are different" #endif #endif /* MCAL_INTER_MODULE_ASR_CHECK_ENABLE */ /** @} end of Public_MacroDefinition */ /** @defgroup Public_TypeDefinition * @{ */ /** @} end of group Public_TypeDefinition */ /** @defgroup Global_VariableDeclaration * @{ */ /** @} end of group Global_VariableDeclaration */ /** @defgroup Public_FunctionDeclaration * @{ */ /** * @brief Service to report development errors. * @details This is a function stub only, always returns success. * * @param[in] EventId: ID of the event * @param[in] EventStatus: status of the event * @return Std_ReturnType: This function is always successful * */ Std_ReturnType Dem_SetEventStatus(Dem_EventIdType EventId, Dem_EventStatusType EventStatus); /** @} end of group Public_FunctionDeclaration */ #ifdef __cplusplus } #endif /** @} end of group Dem */ /** @} end of group Dem_Module */ #endif /* DEM_H */