]> rtime.felk.cvut.cz Git - arc.git/blob - include/CanNm_ConfigTypes.h
Fixed spelling errors to match with tool output.
[arc.git] / include / CanNm_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 CANNM_CONFIGTYPES_H_\r
18 #define CANNM_CONFIGTYPES_H_\r
19 \r
20 typedef enum {\r
21         CANNM_PDU_BYTE_0 = 0x00,\r
22         CANNM_PDU_BYTE_1 = 0x01,\r
23         CANNM_PDU_OFF = 0xFF\r
24 } CanNm_PduBytePositionType;\r
25 \r
26 /** @req CANNM202  @req CANNM203 */\r
27 typedef struct {\r
28         const boolean                                   Active;\r
29         const NetworkHandleType                 NmNetworkHandle;\r
30         const uint8                                             NodeId;\r
31         const uint32                                    MainFunctionPeriod;\r
32         const uint32                                    TimeoutTime;\r
33         const uint32                                    RepeatMessageTime;      /**< @req CANNM148.1 */\r
34         const uint32                                    WaitBusSleepTime;       /**< @req CANNM148.2 */\r
35         const uint32                                    MessageCycleTime;       /**< @req CANNM148.3 */\r
36         const uint32                                    MessageCycleOffsetTime;\r
37         const PduIdType                                 CanIfPduId;\r
38         const uint8                                             PduLength;              /**< @req CANNM076 */\r
39         const CanNm_PduBytePositionType NidPosition;            /**< @req CANNM074 */\r
40         const CanNm_PduBytePositionType CbvPosition;            /**< @req CANNM075 */\r
41 } CanNm_ChannelType;\r
42 \r
43 typedef struct {\r
44         const CanNm_ChannelType*                        Channels;\r
45 } CanNm_ConfigType;\r
46 \r
47 #endif /* CANNM_CONFIGTYPES_H_ */\r