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_MpParentRecvHook</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">WBT_MpParentRecvHook&nbsp;<img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;nitro/wbt.h&gt;</CODE><BR> <BR> <CODE>void WBT_MpParentRecvHook(const void *recv_buf, int recv_size, int aid);</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>recv_buf</CODE></TD>
28<TD width="87%">Parent's receive buffer, used for WBT by functions such as <a href="../../wm/wm/WM_SetMPDataToPort.html"><CODE>WM_SetMPDataToPort</CODE></a> during MP communications.</TD>
29    </TR>
30    <TR>
31<TD width="13%"><CODE>recv_size</CODE></TD>
32<TD width="87%">Size of <code>recv_buf</code>.</TD>
33    </TR>
34    <TR>
35<TD width="13%"><CODE>aid</CODE></TD>
36<TD width="87%">AID of the target device that received <code>recv_buf</code>.</TD>
37    </TR>
38  </TBODY>
39</TABLE>
40</p>
41
42<h2>Return Values</h2>
43<p>None.</p>
44
45<H2>Description</H2>
46<P>Report data the WBT library parent device received by MP communication from the WBT library. Data based on the WBT library protocol is extracted from the receive buffer. Various commands are executed by repeating this function during MP communication.<br> <B>Note:</B> This function merely processes data based on the WBT protocol.<br> Call this function inside the MP data receive callback that is specified by functions such as <A href="../../wm/wm/WM_SetPortCallback.html"><code>WM_SetPortCallback</code></A>.)<br> <br>
47
48A completion callback generates in this call when any command is executed. Also, the <code><A href="../wbt_command_type_const.html">WBT_CMD_SYSTEM_CALLBACK</A></code> callback may occur in this call when any command is received from the communication destination. <br>
49<h2>See Also</h2>
50<p></P>
51<H2>Revision History</H2>
52<P>
532005/03/14 Corrected link destination error.<br /> 2005/02/18 Added cautionary notes about the relationship with the WM library.<br /> 2004/09/31 Initial version
54</P>
55<hr><p>CONFIDENTIAL</p></body>
56</html>
57