1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3<head> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<title>MB_StartParentFromIdle</title> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</head> 10<body> 11<h1 align="left">MB_StartParentFromIdle <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> 12<h2>Syntax</h2> 13<dl> 14 <dd> 15<CODE>#include <nitro/mb.h></CODE><BR> 16 <BR> 17 <CODE>int MB_StartParentFromIdle(int channel);</CODE><br> 18 <br> 19 </dd> 20</dl> 21<h2>Arguments</h2> 22<p> 23<TABLE border="1" width="100%"> 24 <TBODY> 25 <TR> 26 <TD width="13%"><EM><STRONG>channel</STRONG></EM></TD> 27 <TD width="87%">The channel on which the parent communicates.</TD> 28 </TR> 29 </TBODY> 30</TABLE> 31</p> 32<h2>Return Values</h2> 33<p>Returns MB_SUCCESS if the start process completes successfully.</p> 34<H2>Description</H2> 35<P>This function starts a parent operation on the specified channel. Parent processing is run automatically and internally, and ends when the <CODE><A href="../common/MB_EndToIdle.html">MB_EndToIdle()</A></CODE> function is called.<BR>When the initialization is complete, the argument <SPAN class="argument">status</SPAN> is returned with the value of <code>MB_COMM_PSTATE_INIT_COMPLETE</code> as a callback of the <CODE><A href="./MB_CommSetParentStateCallback.html">MB_CommSetParentStateCallback</A></CODE> function. <BR> 36<h2>Internal Operation</h2> 37<p> 38<font color="#800000">This function must be called with the wireless library in the <a href="../../wm/wm/wm_state_diagram.html">IDLE state</a>. Also note that a corresponding call to the <CODE><A href="../common/MB_EndToIdle.html">MB_EndToIdle</A></CODE> function is required to shut down the library.</font><br> <br>Use the <a href="../parent/MB_StartParent.html"><code>MB_StartParent</code></a> function to run processes with the wireless library in the <a href="../../wm/wm/wm_state_diagram.html">pre-initialization state</a>.</p> 39<h2>See Also</h2> 40<p><code><a href="../common/MB_Init.html">MB_Init</a><BR> <a href="../common/MB_EndToIdle.html">MB_EndToIdle</a><BR> <a href="../common/MB_End.html">MB_End</a><BR> <a href="../parent/MB_StartParent.html">MB_StartParent</a><BR> <a href="MB_CommSetParentStateCallback.html">MB_CommSetParentStateCallback</a></code></P> 41<H2>Revision History</H2> 42<P> 432004/10/24 Initial version. 44</P> 45<hr><p>CONFIDENTIAL</p></body> 46</html> 47