toolsandutils/wintunnel/src_beech/d_cdrv.cpp
branchRCL_3
changeset 1 d4b442d23379
parent 0 83f4b4db085c
child 2 99082257a271
equal deleted inserted replaced
0:83f4b4db085c 1:d4b442d23379
     1 // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1995-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 the License "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".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
   228 	comm->WaitForEvent();
   228 	comm->WaitForEvent();
   229 	return 0;
   229 	return 0;
   230 	}
   230 	}
   231 
   231 
   232 //VOID WINAPI ReadComplete(DWORD anErr,DWORD numBytes,LPOVERLAPPED anOverLapped)
   232 //VOID WINAPI ReadComplete(DWORD anErr,DWORD numBytes,LPOVERLAPPED anOverLapped)
   233 //
   233 ////
   234 // Windows read completion routine
   234 //// Windows read completion routine
   235 //
   235 ////
   236 //	{
   236 //	{
   237 //
   237 //
   238 //	if (numBytes>KReadBufSize)
   238 //	if (numBytes>KReadBufSize)
   239 //		Panic(EBadIOLen); 
   239 //		Panic(EBadIOLen); 
   240 //	if (anErr==ERROR_HANDLE_EOF)
   240 //	if (anErr==ERROR_HANDLE_EOF)
   626 #define IE_BYTESIZE         (-11)   // Illegal Byte Size
   626 #define IE_BYTESIZE         (-11)   // Illegal Byte Size
   627 #define IE_BAUDRATE         (-12)   // Unsupported BaudRate
   627 #define IE_BAUDRATE         (-12)   // Unsupported BaudRate
   628 */
   628 */
   629 
   629 
   630 //void DCommWins::DoReceive(TInt aByteCount)
   630 //void DCommWins::DoReceive(TInt aByteCount)
   631 //
   631 ////
   632 // Called from read completion routine 
   632 //// Called from read completion routine 
   633 //
   633 ////
   634 //	{
   634 //	{
   635 //	if(aByteCount==0)
   635 //	if(aByteCount==0)
   636 //		{
   636 //		{
   637 //		DWORD err=0,res;
   637 //		DWORD err=0,res;
   638 //		COMSTAT s;
   638 //		COMSTAT s;
   658 //		{
   658 //		{
   659 //		iStopping=EFalse;
   659 //		iStopping=EFalse;
   660 //		return;
   660 //		return;
   661 //		}
   661 //		}
   662 //
   662 //
   663 //	if (!ReadFileEx(iCommPort,iInBuf,KReadBufSize,&iReadOverLapped,ReadComplete))
   663 ////	if (!ReadFileEx(iCommPort,iInBuf,KReadBufSize,&iReadOverLapped,ReadComplete))
   664 //		{
   664 ////		{
   665 //		TInt r=GetLastError();
   665 ////		TInt r=GetLastError();
   666 //		Panic(EWindowsUnexpectedError);
   666 ////		Panic(EWindowsUnexpectedError);
   667 //		}
   667 ////		}
   668 //	}
   668 //	}
   669 
   669 
   670 void DCommWins::RunCommThread(TDriverCommand aCommand)
   670 void DCommWins::RunCommThread(TDriverCommand aCommand)
   671 //
   671 //
   672 // Wake up the comms thread
   672 // Wake up the comms thread