1 /* -------------------------------- Arctic Core ------------------------------
\r
2 * Arctic Core - the open source AUTOSAR platform http://arccore.com
\r
4 * Copyright (C) 2009 ArcCore AB <contact@arccore.com>
\r
6 * This source code is free software; you can redistribute it and/or modify it
\r
7 * under the terms of the GNU General Public License version 2 as published by the
\r
8 * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
\r
10 * This program is distributed in the hope that it will be useful, but
\r
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
\r
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
\r
14 * -------------------------------- Arctic Core ------------------------------*/
\r
16 #ifndef WDGM_CONFIGTYPES_H_
\r
17 #define WDGM_CONFIGTYPES_H_
\r
26 WDGM_ALIVE_DEACTIVATED
\r
27 }WdgM_AliveSupervisionStatusType;
\r
34 WDGM_SUPERVISION_DISABLED,
\r
35 WDGM_SUPERVISION_ENABLED
\r
36 }WdgM_ActivationStatusType;
\r
38 typedef int16_t WdgM_SupervisionCounterType ;
\r
39 typedef uint16_t WdgM_TriggerCounterType ;
\r
43 WdgM_SupervisionCounterType AliveCounter;
\r
44 WdgM_SupervisionCounterType SupervisionCycle;
\r
45 WdgM_AliveSupervisionStatusType SupervisionStatus;
\r
46 WdgM_SupervisionCounterType NbrOfFailedRefCycles;
\r
47 }WdgM_AliveEntityStateType;
\r
51 /** @req WDGM093 **/
\r
52 const boolean WdgM_DeactivationAccessEnabled;
\r
53 const WdgM_SupervisedEntityIdType WdgM_SupervisedEntityID;
\r
54 }WdgM_SupervisedEntityType;
\r
56 /** @req WDGM046 **/
\r
57 /** @req WDGM090 **/
\r
58 /** @req WDGM091 **/
\r
59 /** @req WDGM095 **/
\r
60 /** @req WDGM096 **/
\r
63 const boolean WdgM_ActivationActivated;
\r
64 const WdgM_SupervisedEntityIdType WdgM_AliveSupervisionConfigID;
\r
65 const WdgM_SupervisionCounterType WdgM_ExpectedAliveIndications;
\r
66 const WdgM_SupervisionCounterType WdgM_SupervisionReferenceCycle;
\r
67 const WdgM_SupervisionCounterType WdgM_FailedSupervisionReferenceCycleTolerance;
\r
68 const WdgM_SupervisionCounterType WdgM_MinMargin;
\r
69 const WdgM_SupervisionCounterType WdgM_MaxMargin;
\r
70 const WdgM_SupervisedEntityType *WdgM_SupervisedEntityRef;
\r
71 }WdgM_AliveSupervisionType;
\r
75 const char_t *WdgM_WatchdogName;
\r
76 const WdgIf_DeviceType *WdgM_DeviceRef;
\r
79 /** @req WDGM002 **/
\r
80 /** @req WDGM003 **/
\r
83 const uint16 WdgM_NumberOfSupervisedEntities;
\r
84 const uint16 WdgM_NumberOfWatchdogs;
\r
85 const WdgM_SupervisedEntityType *WdgM_SupervisedEntityPtr;
\r
86 const WdgM_WatchdogType *WdgM_Watchdog;
\r
89 /** @req WDGM116 **/
\r
92 const uint16 WdgM_TriggerReferenceCycle;
\r
93 const WdgIf_ModeType WdgM_WatchdogMode;
\r
94 const WdgM_WatchdogType *WdgM_WatchdogRef;
\r
99 const float32 WdgM_SupervisionCycle;
\r
100 const float32 WdgM_TriggerCycle;
\r
101 }WdgM_ActivationSchMType;
\r
103 #if (WDGM_GPT_USED == STD_ON)
\r
106 const uint32 WdgM_GptCycle;
\r
107 const Gpt_ChannelType WdgM_GptChannelRef;
\r
108 }WdgM_ActivationGPTType;
\r
113 const boolean WdgM_IsGPTActivated;
\r
114 const WdgM_ActivationSchMType WdgM_ActivationSchM;
\r
115 #if (WDGM_GPT_USED == STD_ON)
\r
116 const WdgM_ActivationGPTType WdgM_ActivationGPT;
\r
118 }WdgM_ActivationType;
\r
122 const WdgM_SupervisionCounterType WdgM_ExpiredSupervisionCycleTol;
\r
123 const WdgM_ModeType WdgM_ModeId;
\r
124 const WdgM_ActivationType WdgM_Activation;
\r
125 const WdgM_AliveSupervisionType *WdgM_AliveSupervisionPtr;
\r
126 const WdgM_TriggerType WdgM_Trigger[WDGM_NBR_OF_WATCHDOGS];
\r
127 }WdgM_ModeConfigType;
\r
131 const WdgM_ModeType WdgM_InitialMode;
\r
132 WdgM_AliveEntityStateType *WdgM_AliveEntityStatePtr;
\r
133 const WdgM_ModeConfigType WdgM_Mode[];
\r
134 }WdgM_ConfigSetType;
\r
136 /** @req WDGM118 **/
\r
139 const WdgM_GeneralType *WdgM_General;
\r
140 const WdgM_ConfigSetType *WdgM_ConfigSet;
\r
142 #endif /* WDGM_CONFIGTYPES_H_ */
\r