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_End</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">WM_End <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_End( <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>Stops all wireless-related features and exits the WM library. This function is executable only when the WM is in the <code>IDLE</code> state. If the return value for the API is <code>WM_ERRCODE_OPERATING</code>, a callback is generated after the termination process is complete. In such cases, WM library returns to the state it was in prior to initialization when the callback is generated. The work buffer used by the library is also released. To use the WM again, restart from <code><A href="WM_Initialize.html">WM_Initialize</A></code>. Note that this function consolidates the functionalities of <A href="WM_PowerOff.html">WM_PowerOff</A>, <A href="WM_Disable.html">WM_Disable</A>, and <A href="WM_Finish.html">WM_Finish</A>. Use these functions separately for low-level control of the termination process. 38</P> 39 40<h2>See Also</h2> 41<p><code><A href="WM_Initialize.html">WM_Initialize</A>, <a href="WM_Init.html"><code>WM_Init</code></a>, <A href="WM_SetIndCallback.html">WM_SetIndCallback</A>, <A href="WM_Reset.html">WM_Reset</A></code>, <a href="WM_PowerOff.html"><code>WM_PowerOff</code></a>, <a href="WM_Disable.html"><code>WM_Disable</code></a>, <a href="WM_Finish.html"><code>WM_Finish</code></a></p> 42 43<H2>Revision History</H2> 44<P> 452005/06/08 Added statement about callback being called from the interrupt handler.<br>2004/10/22 Changed type of return value.<br>2004/10/21 Changed description of state during callback generation.<br>2004/09/11 Added description about feature division function group.<br>2004/07/29 Added to Description.<br>2004/07/23 Initial version. 46</P> 47<hr><p>CONFIDENTIAL</p></body> 48</html> 49