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>WBT_InitParent</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">WBT_InitParent <img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/wbt.h></CODE><BR> <BR> <CODE>void WBT_InitParent(int send_packet_size, int recv_packet_size, <A href="../wbt_callback_type.html">WBTCallback</A> callback);</CODE><br> <br> 20 </dd> 21</dl> 22<h2>Arguments</h2> 23<p> 24<TABLE border="1" width="100%"> 25 <TBODY> 26 <TR> 27<TD width="13%"><CODE>send_packet_size</CODE></TD> 28<TD width="87%">Parent device packet size for MP communication that can be used for WBT. This value must be larger than <a href="../wbt_packet_size_min_const.html"><CODE>WBT_PACKET_SIZE_MIN</CODE></a>.</TD> 29 </TR> 30 <TR> 31<TD width="13%"><CODE>recv_packet_size</CODE></TD> 32<TD width="87%">Child device packet size for MP communication that can be used for WBT. This value must be larger than <a href="../wbt_packet_size_min_const.html"><CODE>WBT_PACKET_SIZE_MIN</CODE></a>.</TD> 33 </TR> 34 <TR> 35<TD width="13%"><CODE>callback</CODE></TD> 36<TD width="87%"><A href="../wbt_callback_type.html"><CODE>WBTCallback</CODE></A>-type function that notifies an event generated separately from any particular command. In this function, the callback is notified as a <A href="../wbt_command_type_const.html"><CODE>WBT_CMD_SYSTEM_CALLBACK</CODE></A> command. This callback is called from inside the <a href="../parent/WBT_MpParentRecvHook.html"><code>WBT_MpParentRecvHook</code></a> function. 37 </TD> 38 </TR> 39 </TBODY> 40</TABLE> 41</p> 42 43<h2>Return Values</h2> 44<p>None.</p> 45 46<H2>Description</H2> 47<P>Initializes the WBT library as a parent. This function can be used only by a wireless parent.<br> There are no special conditions, such as wireless library status, related to calling this function. 48</p> 49<h2>See Also</h2> 50<p> 51<A href="WBT_InitChild.html"><CODE>WBT_InitChild</CODE></A><BR> <A href="WBT_End.html"><CODE>WBT_End</CODE></A><BR> <a href="../parent/WBT_MpParentRecvHook.html"><CODE>WBT_MpParentRecvHook</CODE></a><BR> <A href="../wbt_callback_type.html"><CODE>WBTCallback</CODE></A> 52</P> 53<H2>Revision History</H2> 54<P> 552005/06/01 Added text indicating that the callback is called from the <CODE>WBT_MpParentRecvHook</CODE> function<br> 2004/09/21 Initial version<BR> 56</P> 57<hr><p>CONFIDENTIAL</p></body> 58</html>