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