equal
deleted
inserted
replaced
1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-2009 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> |
32 |
33 |
33 /** This namespace includes the BCA component names.*/ |
34 /** This namespace includes the BCA component names.*/ |
34 namespace BasebandChannelAdaptation |
35 namespace BasebandChannelAdaptation |
35 { |
36 { |
36 |
37 |
39 const TUint16 KC32BcaMajorVersionNumber = 2; |
40 const TUint16 KC32BcaMajorVersionNumber = 2; |
40 const TUint16 KC32BcaMinorVersionNumber = 1; |
41 const TUint16 KC32BcaMinorVersionNumber = 1; |
41 |
42 |
42 _LIT(KChannelIdNotOverridden, ""); |
43 _LIT(KChannelIdNotOverridden, ""); |
43 |
44 |
44 |
45 _LIT8(KC32BcaLogFolder, "C32Bca"); |
|
46 _LIT8(KC32BcaLogFile, "C32Bca.txt"); |
|
47 |
45 |
48 |
46 |
49 |
47 |
50 |
48 /** |
51 /** |
49 User of C32 RComm - specific functionality. |
52 User of C32 RComm - specific functionality. |
91 MC32User& iUser; |
94 MC32User& iUser; |
92 /** |
95 /** |
93 Serial port we service for the iUser */ |
96 Serial port we service for the iUser */ |
94 RComm& iPort; |
97 RComm& iPort; |
95 |
98 |
96 |
99 /** CommsDebug logger */ |
|
100 __FLOG_DECLARATION_MEMBER; |
97 }; |
101 }; |
98 |
102 |
99 /** |
103 /** |
100 Async reader for the serial port. */ |
104 Async reader for the serial port. */ |
101 NONSHARABLE_CLASS(CCommReader): public CCommBase |
105 NONSHARABLE_CLASS(CCommReader): public CCommBase |
186 // MC32User virtuals |
190 // MC32User virtuals |
187 virtual void CommReadComplete(TInt aErr); |
191 virtual void CommReadComplete(TInt aErr); |
188 virtual void CommWriteComplete(TInt aErr); |
192 virtual void CommWriteComplete(TInt aErr); |
189 virtual void CommLinkDown(TInt aErr); |
193 virtual void CommLinkDown(TInt aErr); |
190 |
194 |
|
195 #ifdef __FLOG_ACTIVE |
|
196 void LogCommConfig(TCommConfig& c); |
|
197 #endif // __FLOG_ACTIVE |
|
198 |
191 private: |
199 private: |
192 void CloseCommPort(); |
200 void CloseCommPort(); |
193 |
201 |
194 void ReadCommPortFromCommDbL(TDes& aPortName); |
202 void ReadCommPortFromCommDbL(TDes& aPortName); |
195 void ReadCsyNameFromCommDbL(TDes& aCsyName); |
203 void ReadCsyNameFromCommDbL(TDes& aCsyName); |
232 TInt iErrorOnNextRead; |
240 TInt iErrorOnNextRead; |
233 |
241 |
234 /** Should the next write be errored with this error code? */ |
242 /** Should the next write be errored with this error code? */ |
235 TInt iErrorOnNextWrite; |
243 TInt iErrorOnNextWrite; |
236 |
244 |
|
245 /** Comms Debug Utility logger. */ |
|
246 __FLOG_DECLARATION_MEMBER; |
237 }; |
247 }; |
238 /** |
248 /** |
239 * C32BCA Panic. |
249 * C32BCA Panic. |
240 * @internalComponent. |
250 * @internalComponent. |
241 */ |
251 */ |