]> rtime.felk.cvut.cz Git - arc.git/blob - include/NvM_Types.h
EcuM: More SchM,Gpt stuff
[arc.git] / include / NvM_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 /** @req NVM550 */\r
24 \r
25 \r
26 #ifndef NVM_TYPES_H_\r
27 #define NVM_TYPES_H_\r
28 \r
29 #include "Std_Types.h"\r
30 #if defined(CFG_NVM_USE_SERVICE_COMPONENT)\r
31 #include "Rte_NvM.h"\r
32 #endif\r
33 \r
34 #if !defined(_DEFINED_TYPEDEF_FOR_NvM_RequestResultType_)\r
35 typedef uint8 NvM_RequestResultType;    /** @req NVM470 */\r
36 #define NVM_REQ_OK                                      0x00\r
37 #define NVM_REQ_NOT_OK                          0x01\r
38 #define NVM_REQ_PENDING                         0x02\r
39 #define NVM_REQ_INTEGRITY_FAILED        0x03\r
40 #define NVM_REQ_BLOCK_SKIPPED           0x04\r
41 #define NVM_REQ_NV_INVALIDATED          0x05\r
42 #define NVM_REQ_CANCELLED                       0x06\r
43 #endif\r
44 \r
45 /** @req 3.1.5/NVM471 */\r
46 /* 0 and 1 is reserved, sequential order */\r
47 #if !defined(_DEFINED_TYPEDEF_FOR_NvM_BlockIdType_)\r
48 typedef uint16 NvM_BlockIdType;\r
49 #endif\r
50 \r
51 #define NVM_MULTI_BLOCK_REQUEST_ID                      0\r
52 #define NVM_REDUNDANT_BLOCK_FOR_CONFIG_ID       1\r
53 \r
54 \r
55 #endif /*NVM_TYPES_H_*/\r