1<html>
2
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
6
7<title>MPSetPortConfig</title>
8</head>
9
10<body>
11<h1>MPSetPortConfig</h1>
12
13<h2>C Specification</h2>
14<p>
15<dl>
16  <dd><pre><code>#include &lt;revolution/mp.h&gt;</code></pre>
17  </dd>
18  <dd><pre><code>typedef void (*MPPortCallback)( s32 type, MPPortCallbackInfo *info );</code></pre></dd>
19  <dd><pre><code>static inline void MPSetPortConfig ( <a href="./MPConfig.html">MPConfig</a>* <i><b>config</b></i>, u32 <i><b>port</b></i>, MPPortCallback <i><b>callback</b></i>, u32 <i><b>priority</b></i> );</code></pre>
20  </dd>
21</dl>
22</p>
23
24<h2>Arguments</h2>
25<p>
26<table border="1">
27  <tr>
28<td valign="top" width="120" bgcolor="#ffffe8"><code><strong><em>config</em></strong></code></td>
29<td width="520">MP communications settings</td>
30  </tr>
31  <tr>
32<td valign="top" width="120" bgcolor="#ffffe8"><code><strong><em>port</em></strong></code></td>
33<td width="520">The port number to set the callback for</td>
34  </tr>
35  <tr>
36<td valign="top" width="120" bgcolor="#ffffe8"><code><strong><em>callback</em></strong></code></td>
37<td width="520">The port's receive callback</td>
38  </tr>
39  <tr>
40<td valign="top" width="120" bgcolor="#ffffe8"><code><strong><em>priority</em></strong></code></td>
41<td width="520">The port's send priority</td>
42  </tr>
43</table>
44</p>
45
46<h2>Return Values</h2>
47
48<P>None.</P>
49
50<h2>Description</h2>
51
52<p>This function makes the port settings for <code>MPConfig</code>.<BR>These settings need to be configured with this function before the <code>MPStartup</code> function is called.</p>
53<p>The <CODE>port</CODE> number can be set to numbers 5 through 8 for raw communications and numbers 12 through 15 for sequential communications by the application.</p>
54<p><font color="red">For sequential communications, the properties are only guaranteed for connections of up to eight children. </font>Connections of more than eight children are not guaranteed to have the sequential communications' advantage that successfully sent data always reaches its target.</p>
55
56<h2>See Also</h2>
57<p>
58<code><a href="./MPStartup.html">MPStartup()</a></code>, <code><a href="./MPSetIndicationConfig.html">MPSetIndicationConfig()</a></code>, <code><a href="./MPConfig.html">MPConfig</a></code>
59</p>
60
61<h2>Revision History</h2>
62
63<p>
642007/10/03  Changed the explanation about sequential communications.<br>2007/01/29 Added description about sequential communication.<br>2006/06/29 Initial version.
65</p>
66
67<hr><p>CONFIDENTIAL</p></body>
68</html>