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