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
29 #define EA_MODULE_ID MODULE_ID_EA
\r
30 #define EA_VENDOR_ID 1
\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
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
43 void Ea_MainFunction(void); /** @req EA096 */
\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