]> rtime.felk.cvut.cz Git - arc.git/blob - include/Ea.h
a78cf0abe4a36dec87af59784154486293969533
[arc.git] / include / Ea.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 EA_H_\r
24 #define EA_H_\r
25 \r
26 #include "Ea_Cfg.h"\r
27 \r
28 \r
29 #define EA_MODULE_ID                    MODULE_ID_EA\r
30 #define EA_VENDOR_ID                    1\r
31 \r
32 #define EA_SW_MAJOR_VERSION     1\r
33 #define EA_SW_MINOR_VERSION     0\r
34 #define EA_SW_PATCH_VERSION     0\r
35 #define EA_AR_MAJOR_VERSION     3\r
36 #define EA_AR_MINOR_VERSION     0\r
37 #define EA_AR_PATCH_VERSION     1\r
38 \r
39 #if ( EA_VERSION_INFO_API == STD_ON )\r
40 #define Ea_GetVersionInfo(_vi) STD_GET_VERSION_INFO(_vi, EA)    /** @req EA092 */\r
41 #endif /* EA_VERSION_INFO_API */\r
42 \r
43 void Ea_MainFunction(void);     /** @req EA096 */\r
44 \r
45 void Ea_Init(void);     /** @req EA084 */\r
46 void Ea_SetMode(MemIf_ModeType Mode);   /** @req EA085 */\r
47 Std_ReturnType Ea_Read(uint16 BlockNumber, uint16 BlockOffset, uint8* DataBufferPtr, uint16 Length); /** @req EA086 */\r
48 Std_ReturnType Ea_Write(uint16 BlockNumber, uint8* DataBufferPtr); /** @req EA087 */\r
49 void Ea_Cancel(void);   /** @req EA088 */\r
50 MemIf_StatusType Ea_GetStatus(void);    /** @req EA089 */\r
51 MemIf_JobResultType Ea_GetJobResult(void);      /** @req EA090 */\r
52 Std_ReturnType Ea_InvalidateBlock(uint16 BlockNumber);  /** @req EA091 */\r
53 Std_ReturnType Ea_EraseImmediateBlock(uint16 BlockNumber);      /** @req EA093 */\r
54 \r
55 \r
56 \r
57 #endif /*EA_H_*/\r