Update contrib.
1 // Copyright (c) 1995-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 // e32\drivers\pbus\pccard\epoc\pccd_vcc.cpp
20 DPlatPcCardVcc::DPlatPcCardVcc(TInt aPsuNum, TInt aMediaChangeNum)
24 : DPcCardVcc(aPsuNum,aMediaChangeNum)
27 DPlatPcCardVcc::~DPlatPcCardVcc()
33 void DPlatPcCardVcc::PsuInfo(TPBusPsuInfo &anInfo)
35 // Return machine info relating to the Pc Card Vcc supply
39 ThePccdCntrlInterface->VccInfo(iPsuNum,anInfo);
42 void DPlatPcCardVcc::DoSetState(TPBusPsuState aState)
44 // Turn on/off the PSU.
51 ThePccdCntrlInterface->VccOff(iPsuNum);
52 __KTRACE_OPT(KPBUS2,Kern::Printf("PlatPsu-Off"));
55 ThePccdCntrlInterface->VccOnFull(iPsuNum,iVoltageSetting);
56 __KTRACE_OPT(KPBUS2,Kern::Printf("PlatPsu-On"));
59 ThePccdCntrlInterface->VccOnCurrentLimit(iPsuNum,iVoltageSetting);
60 __KTRACE_OPT(KPBUS2,Kern::Printf("PlatPsu-OnL"));
65 void DPlatPcCardVcc::DoCheckVoltage()
67 // Check the voltage level of the PSU is as expected. Returns either KErrNone, KErrGeneral
68 // to indicate the pass/fail state or KErrNotReady if the voltage check isn't complete.
73 if (iVoltCheckMethod==EPsuChkComparator)
74 err=ThePccdCntrlInterface->VccVoltCheck(iPsuNum);
75 ReceiveVoltageCheckResult(err);