usbmgmt/usbmgr/device/classdrivers/ncm/classimplementation/ncmpktdrv/pktdrv/inc/ncmdatainterface.inl
equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef NCMDATAINTERFACE_INL |
|
24 #define NCMDATAINTERFACE_INL |
|
25 |
|
26 /** |
|
27 * Indicate whether DataInterface is started or not, called by Engine. |
|
28 */ |
|
29 inline TBool CNcmDataInterface::IsStarted() const |
|
30 { |
|
31 return iStarted; |
|
32 } |
|
33 |
|
34 /** |
|
35 * Return current alternate setting. |
|
36 */ |
|
37 inline TInt CNcmDataInterface::AltSetting() const |
|
38 { |
|
39 return iAltSetting; |
|
40 } |
|
41 |
|
42 /** |
|
43 * Notify the Engine that unrecoverable data error, like no memory, etc. |
|
44 */ |
|
45 inline void CNcmDataInterface::DataError(TInt aError) const |
|
46 { |
|
47 iEngine.DataError(aError); |
|
48 } |
|
49 |
|
50 /** |
|
51 * Resume sending, used when KStopSending returned by last send. |
|
52 */ |
|
53 inline void CNcmDataInterface::ResumeSending() const |
|
54 { |
|
55 iEngine.ResumeSending(); |
|
56 } |
|
57 |
|
58 /** |
|
59 * Process(upwards simply) received NCM Datagram (ethernet frame). |
|
60 */ |
|
61 void CNcmDataInterface::ProcessDatagram(RMBufPacket& aPacket) const |
|
62 { |
|
63 iEngine.ProcessReceivedDatagram(aPacket); |
|
64 } |
|
65 |
|
66 |
|
67 #endif //NCMDATAINTERFACE_INL |
|