]> rtime.felk.cvut.cz Git - arc.git/blob - include/PduR_LinIf.h
Merged in from diagnostic-dev
[arc.git] / include / PduR_LinIf.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 PDUR_LINIF_H_\r
24 #define PDUR_LINIF_H_\r
25 \r
26 #include "PduR.h"\r
27 \r
28 #if (PDUR_ZERO_COST_OPERATION == STD_OFF)\r
29 \r
30         void PduR_LinIfRxIndication(PduIdType LinRxPduId,const uint8* LinSduPtr);\r
31         void PduR_LinIfTxConfirmation(PduIdType LinTxPduId);\r
32         void PduR_LinIfTriggerTransmit(PduIdType LinTxPduId,uint8* LinSduPtr);\r
33 \r
34 #else // Zero cost operation active\r
35 \r
36         #if (PDUR_LINIF_SUPPORT == STD_ON)\r
37 \r
38                 #define PduR_LinIfRxIndication Com_RxIndication\r
39                 #define PduR_LinIfTxConfirmation Com_TxConfirmation\r
40                 #define PduR_LinIfTriggerTransmit Com_TriggerTransmit\r
41 \r
42         #else\r
43 \r
44                 #define PduR_LinIfRxIndication(...)\r
45                 #define PduR_LinIfTxConfirmation(...)\r
46                 #define PduR_LinIfTriggerTransmit(...)\r
47 \r
48         #endif\r
49 \r
50 #endif // Zero cost operation active\r
51 \r
52 #endif /*PDUR_LINIF_H_*/\r