1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.2.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>WM_SetPowerSaveMode</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">WM_SetPowerSaveMode <img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></H1> 15<h2>Syntax</h2> 16<dl> 17 <dd><PRE><CODE>#include <nitro/wm.h> 18 19<A href="WMErrCode.html">WMErrCode</A> WM_SetPowerSaveMode( <A href="WMCallbackFunc.html">WMCallbackFunc</A> callback , BOOL powerSave ); 20</CODE></PRE></dd> 21</dl> 22 23<h2>Arguments</h2> 24<table border="1" width="100%"> 25 <tbody> 26 <TR> 27 <TD width="200"><EM><STRONG><FONT face="Courier New">callback</FONT></STRONG></EM></TD> 28 <TD width="800">Designates the callback function to call when the asynchronous process completes. This callback is called from within the interrupt handler.</TD> 29 </TR> 30 <TR> 31 <TD width="200"><EM><STRONG><FONT face="Courier New">powerSave</FONT></STRONG></EM></TD> 32 <TD width="800">Specify TRUE if using the power saving mode or FALSE if using the full-time standby mode. Specify FALSE when performing frequent data sending and receiving in infrastructure mode is necessary. Specifying TRUE for power saving mode; this slows down communication but improves the life of the battery.</TD> 33 </TR> 34 </tbody> 35</table> 36 37<h2>Return Values</h2> 38<p>Returns the results of the <CODE><A href="WMErrCode.html">WMErrCode</A></CODE> enumerated type process.</p> 39 40<H2>Description</H2> 41<P>Changes the power saving mode during infrastructure mode. This function is only executable when the WM is in the <code><A href="wm_state_diagram.html">DCF_CHILD</A></code> state. If the return value is <CODE>WM_ERRCODE_OPERATING</CODE>, a callback is generated after the parameter setting process is complete.</P> 42 43<h2>See Also</h2> 44<p><CODE><A href="WM_StartConnectEx.html">WM_StartConnectEx</A></CODE></p> 45 46<H2>Revision History</H2> 47<P> 482005/07/27 Initial version. 49</P> 50<hr><p>CONFIDENTIAL</p></body> 51</html> 52