First public contribution.
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\device\t_fir2.h
18 //#include <es_sock.h>
29 #define PDD_NAME _L("difiba")
30 #define LDD_NAME _L("efir")
40 class CActiveConsole : public CActive
41 //-----------------------------------
45 CActiveConsole(CConsoleBase* aConsole);
46 static CActiveConsole* NewLC(CConsoleBase* aConsole);
53 void RequestCharacter();
56 // Defined as pure virtual by CActive;
57 // implementation provided by this class.
60 // Service completed request.
61 // Defined as pure virtual by CActive;
62 // implementation provided by this class,
65 void ProcessKeyPressL(TChar aChar);
68 void GetDmaReaderRegs();
69 void GetDmaWriterRegs();
70 void GetReadBufInfo();
71 void GetWriteBufInfo();
79 // Data members defined by this class
80 CConsoleBase* iConsole; // A console for reading from
91 class CActiveRW : public CActive
92 //-----------------------------------------------------------
96 CActiveRW(CConsoleBase* aConsole,RDevFir* aPort);
97 static CActiveRW* NewL(CConsoleBase* aConsole,RDevFir* aPort);
102 void Start(TBool StartWriting);
110 CConsoleBase* iConsole;