]> rtime.felk.cvut.cz Git - arc.git/blob - communication/Com/Com_Arc_Types.h
Com development error detection is now configurable.
[arc.git] / communication / Com / Com_Arc_Types.h
1 /* -------------------------------- Arctic Core ------------------------------\r
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
3  *\r
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
5  *\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
9  *\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
13  * for more details.\r
14  * -------------------------------- Arctic Core ------------------------------*/\r
15 \r
16 \r
17 #ifndef COM_ARC_TYPES_H_\r
18 #define COM_ARC_TYPES_H_\r
19 \r
20 #include "Std_Types.h"\r
21 #include "Com_Types.h"\r
22 \r
23 \r
24 typedef struct {\r
25         uint32 ComFilterArcN;\r
26         uint32 ComFilterArcNewValue;\r
27         uint32 ComFilterArcOldValue;\r
28 } Com_Arc_Filter_type;\r
29 \r
30 typedef struct {\r
31 \r
32         uint32 Com_Arc_DeadlineCounter;\r
33         uint32 ComTimeoutFactor;\r
34         void *ComIPduDataPtr;\r
35 \r
36         uint16 ComIPduHandleId;\r
37         uint8 ComSignalUpdated;\r
38 \r
39         /* For signal groups */\r
40         void *Com_Arc_ShadowBuffer;\r
41 \r
42 } Com_Arc_Signal_type;\r
43 \r
44 \r
45 typedef struct {\r
46         void *Com_Arc_ShadowBuffer;\r
47         uint8 ComSignalUpdated;\r
48         uint8 Com_Arc_EOL;\r
49 } Com_Arc_GroupSignal_type;\r
50 \r
51 typedef struct {\r
52         uint8  ComTxIPduNumberOfRepetitionsLeft;\r
53         uint32 ComTxModeRepetitionPeriodTimer;\r
54         uint32 ComTxIPduMinimumDelayTimer;\r
55         uint32 ComTxModeTimePeriodTimer;\r
56 } Com_Arc_TxIPduTimer_type;\r
57 \r
58 typedef struct {\r
59 \r
60         Com_Arc_TxIPduTimer_type Com_Arc_TxIPduTimers;\r
61         void *ComIPduDataPtr;\r
62         uint8 Com_Arc_IpduStarted;\r
63 } Com_Arc_IPdu_type;\r
64 \r
65 typedef struct {\r
66         Com_Arc_IPdu_type *ComIPdu; // Only used in PduIdCheck()\r
67         Com_Arc_Signal_type *ComSignal;\r
68         Com_Arc_GroupSignal_type *ComGroupSignal;\r
69 } Com_Arc_Config_type;\r
70 \r
71 #endif\r