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_SetMPParentSize</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">WM_SetMPParentSize <img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></H1>
15<h2>Syntax</h2>
16<dl>
17  <dd><PRE><CODE>#include &lt;nitro/wm.h&gt;
18
19<A href="WMErrCode.html">WMErrCode</A> WM_SetMPParentSize(
20        <A href="WMCallbackFunc.html">WMCallbackFunc</A>  callback ,
21        u16             parentSize
22);
23</CODE></PRE></dd>
24</dl>
25
26<h2>Arguments</h2>
27<table border="1" width="100%">
28  <tbody>
29    <TR>
30      <TD width="200"><EM><STRONG><FONT face="Courier New">callback</FONT></STRONG></EM></TD>
31      <TD width="800">Designates the callback function to call when the asynchronous process completes. This callback is called from within the interrupt handler.</TD>
32    </TR>
33    <TR>
34      <TD width="200"><EM><STRONG><FONT face="Courier New">parentSize</FONT></STRONG></EM></TD>
35      <TD width="800">Specifies the parent send capacity. This value is rounded up to a multiple of 2.</TD>
36    </TR>
37   </tbody>
38</table>
39
40<h2>Return Values</h2>
41<p>Returns the results of the <CODE><A href="WMErrCode.html">WMErrCode</A></CODE> enumerated type process.</p>
42
43<H2>Description</H2>
44<P>Sets the parent send capacity. The send capacity must be a multiple of 2, so if an odd number is designated, it is rounded up so that it is even. This only affects the parent. Be sure to use this function after referring to the &quot;Wireless Communication Library Description&quot; for thorough understanding.</P>
45<P>The parent device's sending capacity is initialized by the <A href="WM_StartParent.html"><CODE>WM_StartParent</CODE></A> function. This cannot be reset to a value larger than the initial value. In addition, the setting value is overwritten using the value specified by the parent every time an MP sequence is performed on the child.</P>
46<P>This wrapper function calls the <A href="WM_SetMPParameter.html"><CODE>WM_SetMPParameter</CODE></A> function internally.</P>
47
48<h2>See Also</h2>
49<P><code><A href="WM_SetMPParameter.html">WM_SetMPParameter</A>, <A href="WM_StartMP.html">WM_StartMP</A>, <A href="WM_SetMPDataToPort.html">WM_SetMPDataToPort</A></code></P>
50
51<H2>Revision History</H2>
52<P>
532005/12/08 Clearly stated that the send capacity must be an even number.<BR>2005/11/24 Initial version.
54</P>
55<hr><p>CONFIDENTIAL</p></body>
56</html>
57