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 http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<title>MPDSConfig</title> 9</head> 10 11<body> 12 13<h1>MPDSConfig</h1> 14 15<h2>Definition</h2> 16<dl><dd> 17<pre><code> 18#include <revolution/mpds.h> 19 20typedef struct MPDSConfig 21{ 22 u32 dataLength; 23 24 u32 port; 25 u32 priority; 26 27 BOOL isParent; 28 u32 aidBits; 29 BOOL isDoubleMode; 30 31 BOOL isAutoStart; 32 <a href="../mp/MPPortCallback.html">MPPortCallback</a> mpdsCallback; 33 34} MPDSConfig; 35</code></pre> 36</dd></dl> 37 38<H2>Description</H2> 39<p> 40The MPDSConfig structure is used to store the DataSharing configuration information. 41</p> 42<TABLE border="1"> 43 <TBODY> 44 <tr> 45<th><strong>Member</strong></th> 46<th><strong>Description</strong></th> 47 </tr> 48 <TR> 49<td valign="top" width="120" bgcolor="#ffffe8"><em><strong>dataLength</strong></em></td> 50 <TD width="520">Specifies the data size per unit sharing data in DataSharing.</TD> 51 </TR> 52 <TR> 53<td valign="top" width="120" bgcolor="#ffffe8"><em><strong>port</strong></em></td> 54 <TD width="520">Specifies the MP communications port number used in DataSharing. <BR> The port specified must be between 12 and 15 because sequential communications must be used.</TD> 55 </TR> 56 <TR> 57<td valign="top" width="120" bgcolor="#ffffe8"><em><strong>priority</strong></em></td> 58 <TD width="520">Specifies the MP communications packet send priority level when sending in DataSharing. <BR> Choose one of four levels, from MP_PRIORITY_URGENT to MP_PRIORITY_LOW.</TD> 59 </TR> 60 <TR> 61 <td valign="top" width="120" bgcolor="#ffffe8"><em><strong>isParent</strong></em></td> 62 <TD width="520">Always specified as <CODE>TRUE</CODE>.</TD> 63 </TR> 64 <TR> 65<td valign="top" width="120" bgcolor="#ffffe8"><em><strong>aidBits</strong></em></td> 66 <TD width="520">Enumerates the AID where DataSharing is performed. The lowest bit indicates AID 0, the Wii itself, with the next bit, in order, representing the AID 1 child DS, then the AID 2 child DS, etc.</TD> 67 </TR> 68 <TR> 69 <td valign="top" width="120" bgcolor="#ffffe8"><em><strong>isDoubleMode</strong></em></td> 70 <TD width="520">Specify as <CODE>TRUE</CODE> to enable double mode. For further details, see the NITRO-SDK reference.</TD> 71 </TR> 72 <TR> 73 <td valign="top" width="120" bgcolor="#ffffe8"><em><strong>isAutoStart</strong></em></td> 74 <TD width="520">Always specified as <CODE>TRUE</CODE>.</TD> 75 </TR> 76 <TR> 77 <td valign="top" width="120" bgcolor="#ffffe8"><em><strong>mpdsCallback</strong></em></td> 78 <TD width="520">Specifies a pointer to the callback function that receives notifications for child device connections and disconnections. Specify NULL if there is no need to configure this. 79<br> </TD> 80 </TR> 81 82 </TBODY> 83</TABLE> 84 85<h2>See Also</h2> 86<p> 87<code><a href="./MPDSInit.html">MPDSInit()</a></code> 88</p> 89 90<H2>Revision History</H2> 91<p> 922007/11/28 Initial version. 93</p> 94 95<hr><p>CONFIDENTIAL</p></body> 96</html> 97