Initial contribution of the Adaptation Documentation.
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License
"Eclipse Public License v1.0" which accompanies this distribution,
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
Nokia Corporation - initial contribution.
Contributors:
-->
<!DOCTYPE concept
PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="GUID-7E3BBB18-3113-4312-AD91-897DE87C58BF" xml:lang="en"><title>SDIO
PSU Implementation Tutorial</title><shortdesc>How to implement the platform-specific class for the Power Supply
Unit of an SDIO-based hardware component.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
<p>The Power Supply Unit (PSU) functionality is provided by the <xref href="GUID-9BF2FEAC-F6B8-3071-A4AB-976E33354F1D.dita"><apiname>DSDIOPsu</apiname></xref> class.
To enable power control in the SDIO Controller, you must implement the <codeph>PsuInfo()</codeph> function
in the derived class of the <xref href="GUID-9BF2FEAC-F6B8-3071-A4AB-976E33354F1D.dita"><apiname>DSDIOPsu</apiname></xref> class. </p>
<p>The <codeph>iNotLockedTimeOut</codeph> variable
is used by the "card not locked" functionality and the value is tied to the
reference board inactivity time-out. The <codeph>iInactivityTimeOut</codeph> variable
is used to set a time-out value for the sleep mode of the SDIO cards. </p>
<example><p><codeblock xml:space="preserve">void DMySdioPsu::PsuInfo(TPBusPsuInfo& anInfo)
{
...
// Only for SDIO
anInfo.iNotLockedTimeOut = 5; // Power down after 5 seconds of non-use (no clients registered)
anInfo.iInactivityTimeOut = 1; // Enter Sleep mode within 1 Second of inactivity (clients registered)
...
return;
}
</codeblock></p></example>
</conbody></concept>