/* BEGIN_FILE_HDR ******************************************************************************** * File Name : Dem_Cfg.c ******************************************************************************** * Project/Product : AUTOSAR BSW PROJECT * Title : Dem module configuration File * Author : Hirain ******************************************************************************** * Description : Dem module configuration File * ******************************************************************************** * Limitations : None * ******************************************************************************** * * END_FILE_HDR*/ /******************************************************************************* * Include files *******************************************************************************/ #include "Dem_Lcfg.h" #include "Rte_Dem.h" /******************************************************************************* * Dem Container:DemGeneral *******************************************************************************/ #define DEM_START_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" /*DemOperationCycle*/ CONST(Dem_OperationCycleInfoType, DEM_CONST) Dem_OperationCycleTable[DEM_NUM_OF_OPCYCLE] = { {Dem_OpCycle_DemOperationCycle, 0xFF} }; /*DemEnableCondition*/ CONST(Dem_EnableConditionType, DEM_CONST) Dem_EnConditionTable[DEM_NUM_OF_EN_CONDITION] = { {0, FALSE} }; /*DemEnableConditionGroup*/ CONST(uint8, DEM_CONST) Dem_EnableConditionRef_Array_0[1] = {0}; CONST(Dem_EnableConditionGroupType, DEM_CONST) Dem_EnConditionGroupTable[DEM_NUM_OF_EN_GROUP] = { {1, Dem_EnableConditionRef_Array_0} }; /*DemEventMemorySet*/ CONST(Dem_EventMemorySetType,DEM_CONST) Dem_EventMemorySetTable[DEM_NUM_OF_EVENTMEMORYSET] = { { (uint8)0, DEM_DTC_TRANSLATION_ISO15031_6, (uint8)0xFF, (uint8)0xFF, (uint8)0xFF, (uint8)0xFF, NULL_PTR, 0xFF } }; /*DemPrimaryMemory*/ CONST(Dem_PrimaryMemoryType, DEM_CONST) Dem_PrimaryMemoryParameter[DEM_NUM_OF_PRIMARYMEM] = { { (uint8)0x9, DEM_DISPLACEMENT_NONE, DEM_TRIGGER_ON_TEST_FAILED, 1, DEM_PROCESS_OCCCTR_TF, DEM_FF_RECNUM_CONFIGURED } }; STATIC VAR(Dem_DTCDataEntryType, DEM_VAR) PrimaryDataEntry_0_0; STATIC VAR(Dem_DTCDataInfoType, DEM_CONST) Dem_PrimaryDataEntry0[1] = { {&PrimaryDataEntry_0_0, (uint16)0xFFFF} }; CONSTP2VAR(Dem_DTCDataInfoType, AUTOMATIC, DEM_CONST) Dem_PrimaryMemoryTable[DEM_NUM_OF_EVENTMEMORYSET] = { Dem_PrimaryDataEntry0 }; /*DemClient*/ CONST(Dem_ClientType, DEM_CONST) Dem_ClientTable[DEM_NUM_OF_CLIENT]= { {0,DEM_CLIENT_USES_FULL_FUNCTIONALITY,TRUE,0xFF,NULL_PTR} }; #define DEM_STOP_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" #define DEM_START_SEC_CONFIG_DATA_8 #include "Dem_MemMap.h" /*DemFreezeFrameRecNumClass*/ CONST(uint8, DEM_CONST) Dem_FFRecClassRef_Array_0[1] = {0}; #define DEM_STOP_SEC_CONFIG_DATA_8 #include "Dem_MemMap.h" #define DEM_START_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" CONST(Dem_FreezeFrameRecNumClassType, DEM_CONST) Dem_FFRecNumClassTable[DEM_NUM_OF_FFRECNUM] = { {1, Dem_FFRecClassRef_Array_0} }; #define DEM_STOP_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" #define DEM_START_SEC_CONFIG_DATA_8 #include "Dem_MemMap.h" /*DemFreezeFrameRecordClass*/ CONST(uint8, DEM_CONST) Dem_DidClassRef_Array_0[1] = {0}; #define DEM_STOP_SEC_CONFIG_DATA_8 #include "Dem_MemMap.h" #define DEM_START_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" CONST(Dem_FreezeFrameRecordClassType, DEM_CONST) Dem_FFRecClassTable[DEM_NUM_OF_FFRECCLASS] = { {0x1, DEM_TRIGGER_ON_TEST_FAILED, DEM_UPDATE_RECORD_YES, 1, Dem_DidClassRef_Array_0} }; #define DEM_STOP_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" #define DEM_START_SEC_CONFIG_DATA_8 #include "Dem_MemMap.h" /*DemDidClass*/ CONST(uint8, DEM_CONST) Dem_FFDataElementClassRef_Array_0[1] = {1}; #define DEM_STOP_SEC_CONFIG_DATA_8 #include "Dem_MemMap.h" #define DEM_START_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" CONST(Dem_DidClassType, DEM_CONST) Dem_DidClassTable[DEM_NUM_OF_DID] = { {1, Dem_FFDataElementClassRef_Array_0, 0x0} }; #define DEM_STOP_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" #define DEM_START_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" /*DemDataElementClass*/ CONST(Dem_InternalDataElementClassType, DEM_CONST) Dem_IntDataElement_0 = { 1, DEM_OCCCTR }; CONST(Dem_ExternalCSDataElementClassType, DEM_CONST) Dem_CSDataElement_0 = { 1, Dem_Rte_DataElement_Voltage_ReadDataElement, TRUE }; CONST(Dem_DataElementClassType, DEM_CONST) Dem_DataElementClassTable[DEM_NUM_OF_DATA] = { { &Dem_IntDataElement_0, NULL_PTR }, { NULL_PTR, &Dem_CSDataElement_0 } }; #define DEM_STOP_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" #define DEM_START_SEC_CONFIG_DATA_8 #include "Dem_MemMap.h" /*DemExtendedDataClass*/ CONST(uint8, DEM_CONST) Dem_ExtDataRecClassRef_Array_0[1] = {0}; #define DEM_STOP_SEC_CONFIG_DATA_8 #include "Dem_MemMap.h" #define DEM_START_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" CONST(Dem_ExtendedDataClassType, DEM_CONST) Dem_ExtDataClassTable[DEM_NUM_OF_EXTDATACLASS] = { {1, Dem_ExtDataRecClassRef_Array_0} }; #define DEM_STOP_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" #define DEM_START_SEC_CONFIG_DATA_8 #include "Dem_MemMap.h" /*DemExtendedDataRecordClass*/ CONST(uint8, DEM_CONST) Dem_ExtDataElementClassRef_Array_0[1] = {0}; #define DEM_STOP_SEC_CONFIG_DATA_8 #include "Dem_MemMap.h" #define DEM_START_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" CONST(Dem_ExtendedDataRecordClassType, DEM_CONST) Dem_ExtDataRecClassTable[DEM_NUM_OF_EXTDATAREC] = { { 1, Dem_ExtDataElementClassRef_Array_0, 0x1, DEM_TRIGGER_ON_TEST_FAILED, DEM_UPDATE_RECORD_YES } }; #define DEM_STOP_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" #define DEM_START_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" /******************************************************************************* * Dem Container:DemConfigSet *******************************************************************************/ #define DEM_STOP_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" #define DEM_START_SEC_CONFIG_DATA_8 #include "Dem_MemMap.h" /*DemDTCAttributes*/ CONST(uint8, DEM_CONST) Dem_ExtDataClassRef_0 = 0; CONST(uint8, DEM_CONST) Dem_FFRecNumClassRef_0 = 0; #define DEM_STOP_SEC_CONFIG_DATA_8 #include "Dem_MemMap.h" #define DEM_START_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" CONST(Dem_DTCAttributesType, DEM_CONST) Dem_DTCAttributesTable[DEM_NUM_OF_DTCATB] = { { 40, 0, 1, DEM_EVENT_SIGNIFICANCE_FAULT, &Dem_ExtDataClassRef_0, &Dem_FFRecNumClassRef_0, 0, (uint16)0x001F } }; #define DEM_STOP_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" #define DEM_START_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h" #define DEM_STOP_SEC_CONFIG_DATA_UNSPECIFIED #include "Dem_MemMap.h"