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_Disable</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">WM_Disable <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_Disable( <A href="WMCallbackFunc.html">WMCallbackFunc</A> callback ); 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 </tbody> 31</table> 32 33<h2>Return Values</h2> 34<p>Returns the results of the <CODE><A href="WMErrCode.html">WMErrCode</A></CODE> enumerated type process.</p> 35 36<H2>Description</H2> 37<P> 38Disables the wireless hardware. If the return value is <CODE>WM_ERRCODE_OPERATING</CODE>, the specified callback will be called after the wireless disable process completes. This function can only be called when the WM is in the <A href="wm_state_diagram.html"><CODE>STOP</CODE> </A>state. After WM is disabled, the WM will move to the <A href="wm_state_diagram.html"><CODE>READY</CODE></A> state. Use the <A href="WM_Finish.html"><CODE>WM_Finish</CODE></A> function after this to stop the wireless library. 39</P> 40 41<h2>See Also</h2> 42<p><A href="WM_Init.html"><code>WM_Init</code></A>, <A href="WM_Enable.html"><code>WM_Enable</code></A>, <A href="WM_PowerOn.html"><code>WM_PowerOn</code></A>, <A href="WM_PowerOff.html"><code>WM_PowerOff</code></A>, <A href="WM_Finish.html"><code>WM_Finish</code></A>, <A href="WM_Initialize.html"><code>WM_Initialize</code></A>, <A href="WM_End.html"><code>WM_End</code></A></p> 43 44<H2>Revision History</H2> 45<P> 462005/06/08 Added statement about callbacks being called from the interrupt handler.<br>2004/10/22 Changed return value type.<br>2004/09/11 Initial version. 47</P> 48<hr><p>CONFIDENTIAL</p></body> 49</html> 50