]> rtime.felk.cvut.cz Git - arc.git/blob - include/EcuM_Cbk.h
396eeeea16ecac8899905037befb3554ae2580b1
[arc.git] / include / EcuM_Cbk.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  * Callback used by\r
18  *\r
19  *\r
20  */\r
21 \r
22 \r
23 #ifndef ECUM_CBK_H_\r
24 #define ECUM_CBK_H_\r
25 \r
26 \r
27 #include "EcuM.h"\r
28 \r
29 \r
30 //void EcuM_CB_NfyNvMJobEnd(uint8 ServiceId, NvM_RequestResultType JobResult);\r
31 \r
32 void EcuM_ValidateWakeupEvent(EcuM_WakeupSourceType sources);\r
33 \r
34 void EcuM_ErrorHook(Std_ReturnType reason);\r
35 \r
36 void EcuM_OnRTEStartup(void);\r
37 \r
38 void EcuM_OnEnterRun(void);\r
39 void EcuM_OnExitRun(void);\r
40 void EcuM_OnExitPostRun(void);\r
41 \r
42 void EcuM_OnPrepShutdown(void);\r
43 void EcuM_OnGoSleep(void);\r
44 void EcuM_OnGoOffOne(void);\r
45 void EcuM_OnGoOffTwo(void);\r
46 \r
47 void EcuM_EnableWakeupSources(EcuM_WakeupSourceType wakeupSource);\r
48 void Ecum_DisableWakeupSources(EcuM_WakeupSourceType wakeupSource);\r
49 \r
50 void EcuM_GenerateRamHash(void);\r
51 uint8 EcuM_CheckRamHash(void);\r
52 \r
53 void EcuM_AL_SwitchOff(void);\r
54 void Ecum_AL_DriverRestart(void);\r
55 \r
56 void EcuM_StartWakeupSources(EcuM_WakeupSourceType wakeupSource);\r
57 void EcuM_CheckValidation(EcuM_WakeupSourceType wakeupSource);\r
58 void EcuM_StopWakeupSources(EcuM_WakeupSourceType wakeupSource);\r
59 \r
60 EcuM_WakeupReactionType EcuM_OnWakeupReaction(EcuM_WakeupReactionType wact);\r
61 \r
62 void EcuM_CheckWakeup(EcuM_WakeupSourceType wakeupSource);\r
63 void EcuM_SleepActivity(void);\r
64 \r
65 #endif /*ECUM_CBK_H_*/\r