diff -r 578be2adaf3e -r 307f4279f433 Adaptation/GUID-7E3BBB18-3113-4312-AD91-897DE87C58BF.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Adaptation/GUID-7E3BBB18-3113-4312-AD91-897DE87C58BF.dita Fri Oct 15 14:32:18 2010 +0100 @@ -0,0 +1,32 @@ + + + + + +SDIO +PSU Implementation TutorialHow to implement the platform-specific class for the Power Supply +Unit of an SDIO-based hardware component. +

The Power Supply Unit (PSU) functionality is provided by the DSDIOPsu class. +To enable power control in the SDIO Controller, you must implement the PsuInfo() function +in the derived class of the DSDIOPsu class.

+

The iNotLockedTimeOut variable +is used by the "card not locked" functionality and the value is tied to the +reference board inactivity time-out. The iInactivityTimeOut variable +is used to set a time-out value for the sleep mode of the SDIO cards.

+

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; + } +

+
\ No newline at end of file