1 /* -------------------------------- Arctic Core ------------------------------
\r
2 * Arctic Core - the open source AUTOSAR platform http://arccore.com
\r
4 * Copyright (C) 2009 ArcCore AB <contact@arccore.com>
\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
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
14 * -------------------------------- Arctic Core ------------------------------*/
\r
26 #ifndef NVM_TYPES_H_
\r
27 #define NVM_TYPES_H_
\r
29 #include "Std_Types.h"
\r
30 #if defined(CFG_NVM_USE_SERVICE_COMPONENT)
\r
31 #include "Rte_NvM.h"
\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
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
51 #define NVM_MULTI_BLOCK_REQUEST_ID 0
\r
52 #define NVM_REDUNDANT_BLOCK_FOR_CONFIG_ID 1
\r
55 #endif /*NVM_TYPES_H_*/
\r