equal
deleted
inserted
replaced
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
27 #include <c32comm.h> |
27 #include <c32comm.h> |
28 #include <e32base.h> |
28 #include <e32base.h> |
29 #include <e32def.h> |
29 #include <e32def.h> |
30 #include <commsdattypesv1_1.h> |
30 #include <commsdattypesv1_1.h> |
31 using namespace CommsDat; |
31 using namespace CommsDat; |
32 #include <comms-infras/commsdebugutility.h> |
|
33 |
32 |
34 /** This namespace includes the BCA component names.*/ |
33 /** This namespace includes the BCA component names.*/ |
35 namespace BasebandChannelAdaptation |
34 namespace BasebandChannelAdaptation |
36 { |
35 { |
37 |
36 |
40 const TUint16 KC32BcaMajorVersionNumber = 2; |
39 const TUint16 KC32BcaMajorVersionNumber = 2; |
41 const TUint16 KC32BcaMinorVersionNumber = 1; |
40 const TUint16 KC32BcaMinorVersionNumber = 1; |
42 |
41 |
43 _LIT(KChannelIdNotOverridden, ""); |
42 _LIT(KChannelIdNotOverridden, ""); |
44 |
43 |
45 _LIT8(KC32BcaLogFolder, "C32Bca"); |
44 |
46 _LIT8(KC32BcaLogFile, "C32Bca.txt"); |
|
47 |
|
48 |
45 |
49 |
46 |
50 |
47 |
51 /** |
48 /** |
52 User of C32 RComm - specific functionality. |
49 User of C32 RComm - specific functionality. |
94 MC32User& iUser; |
91 MC32User& iUser; |
95 /** |
92 /** |
96 Serial port we service for the iUser */ |
93 Serial port we service for the iUser */ |
97 RComm& iPort; |
94 RComm& iPort; |
98 |
95 |
99 /** CommsDebug logger */ |
96 |
100 __FLOG_DECLARATION_MEMBER; |
|
101 }; |
97 }; |
102 |
98 |
103 /** |
99 /** |
104 Async reader for the serial port. */ |
100 Async reader for the serial port. */ |
105 NONSHARABLE_CLASS(CCommReader): public CCommBase |
101 NONSHARABLE_CLASS(CCommReader): public CCommBase |
190 // MC32User virtuals |
186 // MC32User virtuals |
191 virtual void CommReadComplete(TInt aErr); |
187 virtual void CommReadComplete(TInt aErr); |
192 virtual void CommWriteComplete(TInt aErr); |
188 virtual void CommWriteComplete(TInt aErr); |
193 virtual void CommLinkDown(TInt aErr); |
189 virtual void CommLinkDown(TInt aErr); |
194 |
190 |
195 #ifdef __FLOG_ACTIVE |
|
196 void LogCommConfig(TCommConfig& c); |
|
197 #endif // __FLOG_ACTIVE |
|
198 |
|
199 private: |
191 private: |
200 void CloseCommPort(); |
192 void CloseCommPort(); |
201 |
193 |
202 void ReadCommPortFromCommDbL(TDes& aPortName); |
194 void ReadCommPortFromCommDbL(TDes& aPortName); |
203 void ReadCsyNameFromCommDbL(TDes& aCsyName); |
195 void ReadCsyNameFromCommDbL(TDes& aCsyName); |
240 TInt iErrorOnNextRead; |
232 TInt iErrorOnNextRead; |
241 |
233 |
242 /** Should the next write be errored with this error code? */ |
234 /** Should the next write be errored with this error code? */ |
243 TInt iErrorOnNextWrite; |
235 TInt iErrorOnNextWrite; |
244 |
236 |
245 /** Comms Debug Utility logger. */ |
|
246 __FLOG_DECLARATION_MEMBER; |
|
247 }; |
237 }; |
248 /** |
238 /** |
249 * C32BCA Panic. |
239 * C32BCA Panic. |
250 * @internalComponent. |
240 * @internalComponent. |
251 */ |
241 */ |