basebandadaptationplugins/basebandchanneladaptorforc32/c32bca2/inc/C32Bca.h
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     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 
    92 			Target for synchronous notifications from us */
    93 			Target for synchronous notifications from us */
    93 			MC32User& iUser;
    94 			MC32User& iUser;
    94 			/**
    95 			/**
    95 			Serial port we service for the iUser */
    96 			Serial port we service for the iUser */
    96 			RComm& iPort;
    97 			RComm& iPort;
       
    98 	
       
    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 	*/