|
1 /* |
|
2 * Copyright (c) 2002-2009 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: Defines CardPktDrv class |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 9 % |
|
20 */ |
|
21 |
|
22 #ifndef __CARDDRV_H__ |
|
23 #define __CARDDRV_H__ |
|
24 |
|
25 #include <e32base.h> |
|
26 #include <e32cmn.h> |
|
27 |
|
28 #include "802dot11.h" |
|
29 #include "RWlanLogicalChannel.h" |
|
30 #include "EtherCardApi.h" |
|
31 #include <es_mbuf.h> |
|
32 |
|
33 const TUint KWlanpktDrvMajorVersionNumber = 0; |
|
34 const TUint KWlanpktDrvMinorVersionNumber = 0; |
|
35 const TUint KWlanpktDrvBuildVersionNumber = 0; |
|
36 |
|
37 const TInt KConfigBufferSize = 12; |
|
38 |
|
39 class CSender; |
|
40 class CReceiver; |
|
41 class CLANLinkCommon; |
|
42 |
|
43 |
|
44 /** |
|
45 * CPcCardPktDrv |
|
46 * |
|
47 */ |
|
48 class CPcCardPktDrv : public CBase |
|
49 { |
|
50 public: |
|
51 |
|
52 friend class CSender; |
|
53 |
|
54 friend class CReceiver; |
|
55 |
|
56 /** |
|
57 * NewL |
|
58 * @param aParent |
|
59 * @return |
|
60 */ |
|
61 static CPcCardPktDrv* NewL( CLANLinkCommon* aParent ); |
|
62 |
|
63 /** |
|
64 * constructor |
|
65 */ |
|
66 CPcCardPktDrv(); |
|
67 |
|
68 /** |
|
69 * destructor |
|
70 */ |
|
71 virtual ~CPcCardPktDrv(); |
|
72 |
|
73 /** |
|
74 * ConstructL |
|
75 * @param aParent |
|
76 */ |
|
77 void ConstructL( CLANLinkCommon* aParent ); |
|
78 |
|
79 /** |
|
80 * StartInterface |
|
81 * @return |
|
82 */ |
|
83 TInt StartInterface(); |
|
84 |
|
85 /** |
|
86 * StopInterface |
|
87 * @return |
|
88 */ |
|
89 TInt StopInterface(); |
|
90 |
|
91 /** |
|
92 * ResetInterface |
|
93 * @return |
|
94 */ |
|
95 TInt ResetInterface(); |
|
96 |
|
97 /** |
|
98 * GetInterfaceAddress |
|
99 * @return |
|
100 */ |
|
101 TUint8* GetInterfaceAddress(); |
|
102 |
|
103 /** |
|
104 * Send |
|
105 * @param aPkt |
|
106 * @return |
|
107 */ |
|
108 TInt Send( RMBufChain& aPkt ); |
|
109 |
|
110 /** |
|
111 * StartL |
|
112 */ |
|
113 void StartL(); |
|
114 |
|
115 /** |
|
116 * Stop |
|
117 */ |
|
118 void Stop(); |
|
119 |
|
120 /** |
|
121 * CardOpen |
|
122 * @return |
|
123 */ |
|
124 TBool CardOpen() {return iCardOpen;}; |
|
125 |
|
126 private: |
|
127 |
|
128 /** */ |
|
129 CLANLinkCommon* iParent; |
|
130 |
|
131 /** */ |
|
132 TBool iCardOpen; |
|
133 |
|
134 /** */ |
|
135 TBuf8<KConfigBufferSize> iConfig; |
|
136 /** */ |
|
137 CSender* iSender; |
|
138 /** */ |
|
139 CReceiver* iReceiver; |
|
140 /** */ |
|
141 RPcmNetCardIf iCard; |
|
142 |
|
143 /** */ |
|
144 RFrameXferBlockProtocolStack* iFrameXferBlock; |
|
145 |
|
146 }; |
|
147 |
|
148 #endif // __CARDDRV_H__ |