Update contrib.
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * e32test\personality\example\ifcldd.h
16 * Test code for example RTOS personality.
23 #if !defined(__IFCLDD_H__)
26 #ifndef __KERNEL_MODE__
30 _LIT(KRtosIfcLddName,"RtosIfc");
47 enum TType {ESem=8, ERcv=9, ETm=10};
54 class RRtosIfc : public RBusLogicalChannel
59 ERequestWaitInitialTests,
66 ECancelWaitInitialTests=1,
79 #ifndef __KERNEL_MODE__
81 { return DoCreate(KRtosIfcLddName(),TVersion(0,1,1),KNullUnit,NULL,NULL); }
83 { DoControl(EControlInit); }
84 inline void WaitInitialTests(TRequestStatus& aStatus)
85 { DoRequest(ERequestWaitInitialTests, aStatus); }
86 inline void Receive(TRequestStatus& aStatus, SRxData& aData)
87 { DoRequest(ERequestReceive, aStatus, &aData); }
88 inline void Report(TRequestStatus& aStatus, SReport& aData)
89 { DoRequest(ERequestReport, aStatus, &aData); }
90 inline TInt SendData(const TDesC8& aData)
91 { return DoControl(EControlSend, (TAny*)&aData); }
92 inline void FlushData()
93 { DoControl(EControlFlush); }
95 { DoControl(EControlFinish); }
96 inline void Cancel(TUint aMask)