]> rtime.felk.cvut.cz Git - arc.git/blob - include/ComM_ConfigTypes.h
Merge with default branch
[arc.git] / include / ComM_ConfigTypes.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 COMM_CONFIGTYPES_H_\r
18 #define COMM_CONFIGTYPES_H_\r
19 \r
20 typedef enum {\r
21         COMM_BUS_TYPE_CAN,\r
22         COMM_BUS_TYPE_FR,\r
23         COMM_BUS_TYPE_INTERNAL,\r
24         COMM_BUS_TYPE_LIN,\r
25 } ComM_BusTypeType;\r
26 \r
27 typedef enum {\r
28         COMM_NM_VARIANT_NONE,\r
29         COMM_NM_VARIANT_LIGHT,\r
30         COMM_NM_VARIANT_PASSIVE,\r
31         COMM_NM_VARIANT_FULL,\r
32 } ComM_NmVariantType;\r
33 \r
34 typedef struct {\r
35         const ComM_BusTypeType                  BusType;\r
36         const NetworkHandleType                 BusSMNetworkHandle;\r
37         const NetworkHandleType                 NmChannelHandle;\r
38         const ComM_NmVariantType                NmVariant;\r
39         const uint32                                    MainFunctionPeriod;\r
40         const uint32                                    LightTimeout;\r
41         const uint8                                             Number;\r
42 } ComM_ChannelType;\r
43 \r
44 \r
45 typedef struct {\r
46         const ComM_ChannelType**                ChannelList;\r
47         const uint8                                             ChannelCount;\r
48 } ComM_UserType;\r
49 \r
50 typedef struct {\r
51         const ComM_ChannelType*                 Channels;\r
52         const ComM_UserType*                    Users;\r
53 } ComM_ConfigType;\r
54 \r
55 #endif /* COMM_CONFIGTYPES_H_ */\r