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 7.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>MB_EndToIdle</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">MB_EndToIdle <IMG src="../../image/NTR.gif" width="24" height="12" border="0" align=middle><IMG src="../../image/TWL.gif" width="24" height="12" border="0" align=middle></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/mb.h></CODE><BR> <BR> <CODE>void MB_EndToIdle(void);</CODE><br> <br> 20 </dd> 21</dl> 22<h2>Arguments</h2> 23<p> 24None. 25</p> 26 27<h2>Return Values</h2> 28<p>None.</p> 29 30<H2>Description</H2> 31<P>Ends MB library.<BR> If the <CODE><A href="../parent/MB_StartParentFromIdle.html">MB_StartParentFromIdle</A></CODE> function has configured this device to run as the parent device, this function automatically ends that processing.<BR><BR> The DMA channels and memory assigned with the <CODE><A href="MB_Init.html">MB_Init</A></CODE> function are freed and become available to the user again.<BR>When the termination process is complete, the argument status is returned for the value passed by <code>MB_COMM_PSTATE_END</code> as a callback of the <code><A href="../parent/MB_CommSetParentStateCallback.html">MB_CommSetParentStateCallback</A></code> function. <BR> <font color="#800000">This function must be called in combination with a call to the <CODE><A href="../parent/MB_StartParentFromIdle.html">MB_StartParentFromIdle</A></CODE> function.</font></p> 32<BR> 33<h2>Internal Operation</h2> 34<p><font color="#800000">If wireless features are operating, this function calls the <CODE><a href="../../wm/wm/WM_Reset.html">WM_Reset</a></CODE> function internally to stop wireless communications.<br>When the completion callback is called, the wireless library enters the <a href="../../wm/wm/wm_state_diagram.html"><code>IDLE</code> state</a>.<BR></font></p> 35<h2>See Also</h2> 36<p><CODE><A href="MB_Init.html">MB_Init</A><BR> <A href="../parent/MB_StartParentFromIdle.html">MB_StartParentFromIdle</A> <BR></CODE></P> 37<H2>Revision History</H2> 38<P> 392004/10/24 Initial version. 40</P> 41<hr><p>CONFIDENTIAL</p></body> 42</html> 43