]> rtime.felk.cvut.cz Git - arc.git/blob - examples/switch_node/config/Com_PbCfg.c
Initial commit.
[arc.git] / examples / switch_node / config / Com_PbCfg.c
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 /*
24 * Module vendor:  Autocore
25 * Module version: 1.0.0
26 * Specification: Autosar v3.0.1, Final
27 *
28 */
29
30 \r
31 #include "Com_PbCfg.h"\r
32 #include "stdlib.h"\r
33 \r
34 \r
35 /*\r
36  * Group signal definitions\r
37  */\r
38 ComGroupSignal_type ComGroupSignal[] = {\r
39         {\r
40                 .ComEcoreEOL = 1\r
41         }\r
42 };\r
43 \r
44 \r
45 /*\r
46  * Signal definitions\r
47  */\r
48 ComSignal_type ComSignal[] = {\r
49         {\r
50                 .ComHandleId = SetLedLevelTx,\r
51                 .ComFirstTimeoutFactor = 0,\r
52                 .ComNotification = NULL,\r
53                 .ComTimeoutFactor = 0,\r
54                 .ComTimeoutNotification = NULL,\r
55                 .ComTransferProperty = TRIGGERED,\r
56 \r
57 \r
58                 .ComSignalInitValue = 0,\r
59                 .ComBitPosition = 0,\r
60                 .ComBitSize = 16,\r
61                 .ComSignalEndianess = BIG_ENDIAN,\r
62                 .ComSignalType = UINT16,
63                 .ComEcoreIsSignalGroup = 0,\r
64 \r
65         },\r
66         {\r
67                 .ComEcoreEOL = 1\r
68         }\r
69 };\r
70 \r
71 \r
72 /*\r
73  * I-PDU group definitions\r
74  */\r
75 ComIPduGroup_type ComIPduGroup[] = {\r
76         {\r
77                 .ComIPduGroupHandleId = TxGroup\r
78         },\r
79 \r
80         {\r
81                 .ComEcoreEOL  = 1\r
82         }\r
83 };\r
84 \r
85 \r
86 /*\r
87  * I-PDU definitions\r
88  */\r
89 ComIPdu_type ComIPdu[] = {\r
90 \r
91         {\r
92                 .ComIPduRxHandleId = LedCommandTx,\r
93                 .ComIPduCallout = NULL,\r
94                 .ComIPduSignalProcessing =  IMMEDIATE,\r
95                 .ComIPduSize =  2,\r
96                 .ComIPduDirection = SEND,\r
97                 .ComIPduGroupRef = TxGroup,\r
98 \r
99                 .ComTxIPdu = {\r
100                         .ComTxIPduMinimumDelayFactor = 0,\r
101                         .ComTxIPduUnusedAreasDefault = 0,\r
102                         .ComTxModeTrue = {\r
103                                 .ComTxModeMode = DIRECT,\r
104                                 .ComTxModeNumberOfRepetitions = 0,\r
105                                 .ComTxModeRepetitionPeriodFactor = 0,\r
106                                 .ComTxModeTimeOffsetFactor = 0,\r
107                                 .ComTxModeTimePeriodFactor = 0,\r
108                         },\r
109                 },\r
110 \r
111                 .ComIPduSignalRef = {\r
112 \r
113                         &ComSignal[ SetLedLevelTx ],\r
114 \r
115                         NULL,\r
116                 },\r
117         },\r
118         {\r
119                 .ComEcoreEOL = 1\r
120         }\r
121 };\r
122 \r
123 const Com_ConfigType ComConfiguration = {\r
124         .ComConfigurationId = 1,\r
125         .ComIPdu = ComIPdu,\r
126         .ComIPduGroup = ComIPduGroup,\r
127         .ComSignal = ComSignal,\r
128         .ComGroupSignal = ComGroupSignal\r
129 };\r
130 \r
131 \r