PC Review


Reply
Thread Tools Rate Thread

COM_PowerUp & COM_PowerDown APIs

 
 
Ramesh.R
Guest
Posts: n/a
 
      20th Dec 2007
Hi ,

I am developing the Power Management APIs in my SDIO-UART
serial driver for Windows Mobiles in WinCE 5.0 platform builder.

Here is my code for PowerDown case:


BOOL
COM_PowerDown(
HANDLE pHead /*@parm Handle to device. */
)
{
PHW_INDEP_INFO pHWIHead = (PHW_INDEP_INFO)pHead;

DbgPrint(" COM_PowerDown \r\n");

if ( pHWIHead ) {
PHWOBJ pHWObj = (PHWOBJ)pHWIHead->pHWObj;
return(pHWObj->pFuncTbl->HWPowerOff(pHWIHead->pHWHead));
} else {
return(1);
}

}

And the " HWPowerOff() " is mapped into " SerPowerOff()"

static
BOOL
SerPowerOff(
PVOID pHead // @parm PVOID returned by SerInit.
)
{
PSER_INFO pHWHead = (PSER_INFO)pHead;

DbgPrint(" + SerPowerOff \r\n");
// First, power down the UART
SL_PowerOff( pHWHead );

// And then disable our IR and 9 Pin interface
#ifdef WAKEUPONTHISDEVICE
if (pHWHead->LastDx != D3) // If we are wakeup sources do not
turn it off.
SerSetOutputMode( pHWHead, FALSE, FALSE );
#else
SerSetOutputMode( pHWHead, FALSE, FALSE );
#endif
DbgPrint(" - SerPowerOff \r\n");
return (TRUE);
}

Here I called the API " SL_PowerOff() "

in such case, i don't know what to write for this API...

VOID SL_PowerOff(PVOID pHead )
{
// --- Need to write
}


When we testing with these APIs( by putting debug messages), the
COM_PowerUp & COM_PowerDown APIs itself is not called by the OS/
Kernel. Am I need to register these APIs with any interface APIs?

If any one of you have ideas on power management APIs, please help on
this issue.

Here the problem is while sleep-mode and soft-reset , and the SDIO
card is also
inserted in SD-Slot condition, the driver is not getting loaded.

If you give any hint/document/link/code-snippet, I will be thankful.

I gone through the Microsoft Documentation.
It did not helped me.

Regards,
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using VB4 APIs in VB.NET ? =?Utf-8?B?QW1qYWQ=?= Microsoft VB .NET 1 25th Oct 2005 09:54 PM
Help on APIs =?Utf-8?B?SWFu?= Microsoft Access VBA Modules 2 5th Aug 2005 05:15 PM
What APIs are out there? Grod Microsoft Outlook VBA Programming 4 22nd Jun 2004 01:37 PM
New APIs news.microsoft.com Microsoft Dot NET Framework 14 3rd Nov 2003 09:08 PM
New APIs news.microsoft.com Microsoft Dot NET 15 3rd Nov 2003 09:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:20 PM.