]> rtime.felk.cvut.cz Git - arc.git/blob - system/WdgM/WdgM_cfg.h
Initial commit.
[arc.git] / system / WdgM / WdgM_cfg.h
1 /* -------------------------------- Arctic Core ------------------------------
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com
3  *
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>
5  *
6  * This source code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 as published by the
8  * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  * for more details.
14  * -------------------------------- Arctic Core ------------------------------*/
15
16
17
18
19
20
21
22
23 \r
24 #ifndef WDGM_CFG_H_\r
25 #define WDGM_CFG_H_\r
26 \r
27 #include "Std_Types.h"\r
28 #include "WdgM_Lcfg.h"\r
29 \r
30 typedef enum\r
31 {\r
32   WDBG_ALIVE_OK,\r
33   WDBG_ALIVE_FAILED,\r
34   WDBG_ALIVE_EXPIRED,\r
35   WDBG_ALIVE_STOPPED,\r
36   WDBG_ALIVE_DEACTIVATED,\r
37 }WdgM_SupervisedStatusType;\r
38 \r
39 typedef enum\r
40 {\r
41   WDBG_SUPERVISION_DISABLED,\r
42   WDBG_SUPERVISION_ENABLED\r
43 }WdgM_ActivationStatusType;\r
44 \r
45 typedef int16_t WdgM_SupervisionCounterType ;\r
46 \r
47 typedef struct\r
48 {\r
49   WdgM_SupervisionCounterType AliveCounter;\r
50   WdgM_SupervisionCounterType SupervisionCycle;\r
51   WdgM_SupervisedStatusType SupervisionStatus;\r
52   WdgM_SupervisionCounterType NbrOfFailedRefCycles;\r
53   WdgM_ActivationStatusType ActivationStatus;\r
54 }Wdgm_SupervisionType;\r
55 \r
56 typedef struct\r
57 {\r
58   const WdgM_SupervisedEntityIdType WdgM_SupervisedEntityID;\r
59   const WdgM_ActivationStatusType WdgM_ActivationStatus;\r
60   const WdgM_SupervisionCounterType WdgM_ExpectedAliveIndications;\r
61   const WdgM_SupervisionCounterType WdgM_SupervisionReferenceCycle;\r
62   const WdgM_SupervisionCounterType WdgM_FailedSupervisionReferenceCycleTolerance;\r
63   const WdgM_SupervisionCounterType WdgM_MinMargin;\r
64   const WdgM_SupervisionCounterType WdgM_MaxMargin;\r
65 }WdgM_SupervisedEntityType;\r
66 \r
67 typedef struct\r
68 {\r
69   uint16 WdgM_SupervisionCycle;\r
70   uint16 WdgM_NumberOfSupervisedEntities;\r
71   uint16 WdgM_ExpiredSupervisionCycleTolerance;\r
72   const WdgM_SupervisedEntityType *WdgM_SupervisedEntityPtr;\r
73   Wdgm_SupervisionType *Wdgm_SupervisionPtr;\r
74 }WdgM_ConfigType;\r
75 \r
76 extern const WdgM_ConfigType WdgMAliveSupervision;\r
77 \r
78 #endif /* WDGM_CFG_H_ */\r