]> rtime.felk.cvut.cz Git - arc.git/blob - include/MemIf_Types.h
Added example of CAN communication for the TMS570LS31x HDK
[arc.git] / include / MemIf_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 \r
18 \r
19 \r
20 \r
21 \r
22 \r
23 #ifndef MEMIF_TYPES_H_\r
24 #define MEMIF_TYPES_H_\r
25 \r
26 typedef enum {\r
27 \r
28         //      The underlying abstraction module or device driver has\r
29         //      not been initialized (yet).\r
30         MEMIF_UNINIT,\r
31         // The underlying abstraction module or device driver is\r
32         // currently idle.\r
33         MEMIF_IDLE,\r
34         \r
35         // The underlying abstraction module or device driver is\r
36         // currently busy.\r
37         MEMIF_BUSY,\r
38         \r
39         //      The underlying abstraction module is busy with internal\r
40         // management operations. The underlying device driver\r
41         // can be busy or idle.\r
42         MEMIF_BUSY_INTERNAL              \r
43 } MemIf_StatusType;\r
44 \r
45 typedef enum {\r
46         //The job has been finished successfully.\r
47         MEMIF_JOB_OK,\r
48         // The job has not been finished successfully.\r
49         MEMIF_JOB_FAILED,\r
50         //      The job has not yet been finished.\r
51         MEMIF_JOB_PENDING,\r
52         //      The job has been canceled.\r
53         MEMIF_JOB_CANCELLED,\r
54         //      The requested block is inconsistent, it may contain\r
55         //      corrupted data.        \r
56         MEMIF_BLOCK_INCONSISTENT,\r
57         // The requested block has been marked as invalid,\r
58         // the requested operation can not be performed.\r
59         MEMIF_BLOCK_INVALID\r
60         \r
61 } MemIf_JobResultType; \r
62 \r
63 \r
64 typedef enum {\r
65         //    The underlying memory abstraction modules and\r
66         //    drivers are working in slow mode.\r
67         MEMIF_MODE_SLOW,\r
68         // The underlying memory abstraction modules and\r
69         // drivers are working in fast mode.\r
70     MEMIF_MODE_FAST\r
71 } MemIf_ModeType;\r
72 \r
73 // Definition of broadcast device ID\r
74 #define MEMIF_BROADCAST_ID      0xff\r
75 \r
76 #endif /*MEMIF_TYPES_H_*/\r