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
21 #if PDUR_ZERO_COST_OPERATION == STD_OFF
\r
23 BufReq_ReturnType PduR_CanTpProvideRxBuffer(PduIdType CanTpRxPduId, PduLengthType TpSduLength, PduInfoType** PduInfoPtr) {
\r
24 return PduR_ARC_ProvideRxBuffer(CanTpRxPduId, TpSduLength, PduInfoPtr, 0x03);
\r
28 void PduR_CanTpRxIndication(PduIdType CanTpRxPduId, NotifResultType Result) {
\r
29 PduInfoType PduInfo = {
\r
30 .SduDataPtr = &Result
\r
32 PduR_ARC_RxIndication(CanTpRxPduId, &PduInfo, 0x04);
\r
36 BufReq_ReturnType PduR_CanTpProvideTxBuffer(PduIdType CanTpTxPduId, PduInfoType** PduInfoPtr, uint16 Length) {
\r
37 return PduR_ARC_ProvideTxBuffer(CanTpTxPduId, PduInfoPtr, Length, 0x03);
\r
41 void PduR_CanTpTxConfirmation(PduIdType CanTpTxPduId, NotifResultType Result) {
\r
42 PduR_ARC_TxConfirmation(CanTpTxPduId, Result, 0x0f);
\r