sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32test\power\d_lddpowerseqtest.inl sl@0: // sl@0: // sl@0: sl@0: #ifndef __KERNEL_MODE__ sl@0: inline TInt RLddTest1::Open() sl@0: { return DoCreate(KLddName,TVersion(0,1,1),KNullUnit,NULL,NULL); } sl@0: inline void RLddTest1::Test_power1down(TRequestStatus &aStatus, TUint &time) sl@0: { DoRequest(EPOWERDOWN_POWER1, aStatus, (TAny *)&time); } sl@0: inline void RLddTest1::Test_power2down(TRequestStatus &aStatus, TUint &time) sl@0: { DoRequest(EPOWERDOWN_POWER2, aStatus, (TAny *)&time); } sl@0: inline void RLddTest1::Test_power1up(TRequestStatus &aStatus, TUint &time) sl@0: { DoRequest(EPOWERUP_POWER1, aStatus, (TAny *)&time); } sl@0: inline void RLddTest1::Test_power2up(TRequestStatus &aStatus, TUint &time) sl@0: { DoRequest(EPOWERUP_POWER2, aStatus, (TAny *)&time); } sl@0: inline TInt RLddTest1::Test_setSleepTime(TUint time) sl@0: { return DoControl(ESET_SLEEPTIME, (TAny *)time); } sl@0: inline TInt RLddTest1::Unload() sl@0: { return User::FreeLogicalDevice(KLddName); } sl@0: #endif