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>MPDSSetupPortConfig</title>
8</head>
9
10<body>
11<h1>MPDSSetupPortConfig</h1>
12
13<h2>C Specification</h2>
14<p>
15<dl>
16  <dd><pre><code>#include &lt;revolution/mp.h&gt;</code><br><code>#include &lt;revolution/mpds.h&gt;</code></pre>
17  </dd>
18  <dd><pre><code>s32 MPDSSetupPortConfig ( const <a href="MPDSContext.html">MPDSContext</a>* <i><b>context</b></i>, <a href="../mp/MPConfig.html">MPConfig</a>* <i><b>config</b></i> );</code></pre>
19  </dd>
20</dl>
21</p>
22
23<h2>Arguments</h2>
24<p>
25<table border="1">
26  <tr>
27<td valign="top" width="120" bgcolor="#ffffe8"><code><strong><em>context</em></strong></code></td>
28<td width="520">Pointer to an initialized <a href="MPDSContext.html"><code>MPDSContext</code></a> structure.</td>
29  </tr>
30  <tr>
31<td valign="top" width="120" bgcolor="#ffffe8"><code><strong><em>config</em></strong></code></td>
32<td width="520">Pointer to the <a href="../mp/MPConfig.html"><code>MPConfig</code></a> structure that performs the port settings.</td>
33  </tr>
34</table>
35</p>
36
37<h2>Return Values</h2>
38
39<P>Returns the processing result. Returns a negative number if processing fails.</P>
40
41<h2>Description</h2>
42
43<p>
44This function performs the DataSharing port settings for the <a href="../mp/MPConfig.html"><code>MPConfig</code></a> structure.<BR><code><strong><em>config</em></strong></code> must be configured with this function before the <CODE><a href="../mp/MPStartup.html">MPStartup</a>()</CODE> function is called.<br>In addition, <code><strong><em>context</em></strong></code> must be initialized ahead of time with the <code><a href="MPDSInit.html">MPDSInit</a>()</code></a> function.
45</p>
46
47<h2>See Also</h2>
48<p>
49<code><a href="../mp/MPError.html">MPError</a></code>, <code><a href="./MPDSInit.html">MPDSInit()</a></code>, <code><a href="../mp/MPConfig.html">MPConfig</a></code>
50</p>
51
52<h2>Revision History</h2>
53
54<p>
552007/11/28 Initial version.
56</p>
57
58<hr><p>CONFIDENTIAL</p></body>
59</html>