]> rtime.felk.cvut.cz Git - arc.git/blob - include/NmStack_Types.h
regenerated configs for all mpc560x targets so they build again. Although bug for...
[arc.git] / include / NmStack_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 NMSTACK_TYPES_H_\r
18 #define NMSTACK_TYPES_H_\r
19 \r
20 /** Return type for NM functions. Derived from Std_ReturnType. */\r
21 typedef enum {\r
22         NM_E_OK,\r
23         NM_E_NOT_OK,\r
24         NM_E_NOT_EXECUTED\r
25 } Nm_ReturnType;\r
26 \r
27 /** Operational modes of the network management */\r
28 typedef enum {\r
29         NM_MODE_BUS_SLEEP,\r
30         NM_MODE_PREPARE_BUS_SLEEP,\r
31         NM_MODE_SYNCHRONIZE,\r
32         NM_MODE_NETWORK\r
33 } Nm_ModeType;\r
34 \r
35 /** States of the network management state machine */\r
36 typedef enum {\r
37         NM_STATE_UNINIT,\r
38         NM_STATE_BUS_SLEEP,\r
39         NM_STATE_PREPARE_BUS_SLEEP,\r
40         NM_STATE_READY_SLEEP,\r
41         NM_STATE_NORMAL_OPERATION,\r
42         NM_STATE_REPEAT_MESSAGE,\r
43         NM_STATE_SYNCHRONIZE\r
44 } Nm_StateType;\r
45 \r
46 /** BusNm Type */\r
47 typedef enum {\r
48         NM_BUSNM_CANNM  = 0,\r
49         NM_BUSNM_FRNM   = 1,\r
50         NM_BUSNM_LINNM  = 2,\r
51         NM_BUSNM_UNDEF  = 0xFF\r
52 } Nm_BusNmType;\r
53 \r
54 \r
55 #endif /* NMSTACK_TYPES_H_ */\r