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>MPSetIndicationConfig</title> 8</head> 9 10<body> 11<h1>MPSetIndicationConfig</h1> 12 13<h2>Syntax</h2> 14<p> 15<dl> 16 <dd><pre><code>#include <revolution/mp.h></code></pre> 17 </dd> 18 <dd><pre><code>typedef void (*MPIndicationCallback)( s32 type, MPIndicationInfo *info );</code></pre></dd> 19 <dd><pre><code>static inline void MPSetIndicationConfig ( <a href="./MPConfig.html">MPConfig</a>* <i><b>config</b></i>, MPIndicationCallback <i><b>callback</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>callback</em></strong></code></td> 33<td width="520">Callback for indication notification</td> 34 </tr> 35</table> 36</p> 37 38<h2>Return Values</h2> 39 40<P>None.</P> 41 42<h2>Description</h2> 43 44<p> 45Sets the indication notification callback for <code>MPConfig</code>. This inline function assigns values to particular member variables in <code>MPConfig</code>.<br>Settings made with this function must be made before calling <code>MPStartup</code> function. 46</p> 47 48<p> 49The following items are defined as notifications of indication. 50</p> 51<TABLE border="1"> 52 <TBODY> 53 <tr> 54<th><strong>type</strong></th> 55<th><strong>Description</strong></th> 56 </tr> 57 <TR> 58<td valign="top" width="120" bgcolor="#ffffe8"><strong><code>MP_INDICATION_CB_TYPE_FATAL_ERROR</code></strong></td> 59<TD width="520">A fatal error occurred.</TD> 60 </TR> 61 <TR> 62<td valign="top" bgcolor="#ffffe8"><strong><code>MP_INDICATION_CB_TYPE_PSEUDO_VBLANK</code></strong></td> 63<TD>A pseudo V-Blank synchronization cycle of approximately 60 Hz, automatically performed by connected child devices. This is controlled by a cycle unrelated to the Wii console's V-Blank cycle. To receive this notification, <code>MP_MODE_ENABLE_PSEUDO_VBLANK_INDICATION</code> must be specified for <A href="./MPConfig.html"><code>MPConfig</code></A>'s member variable, <code><STRONG><EM>mode</EM></STRONG></code>.</TD> 64 </TR> 65 </TBODY> 66</TABLE> 67<p> 68Detection of fatal errors and acquisition of error types can be managed by calling the <code>MPGetFatalError</code> function when the MP function has returned <code>MP_RESULT_FATAL_ERROR</code>. For this reason, it is not always necessary to set a callback for indication notification. 69</p> 70<p> 71Using the <code>MP_INDICATION_CB_TYPE_PSEUDO_VBLANK</code> notification makes it possible to configure the send data immediately before MP communications for each frame in frame-synchronized communication mode. This allows for low-latency communications. 72</p> 73 74<h2>See Also</h2> 75<p> 76<code><a href="./MPStartup.html">MPStartup()</a></code>, <code><a href="./MPSetPortConfig.html">MPSetPortConfig()</a></code>, <code><a href="./MPConfig.html">MPConfig</a></code> 77</p> 78 79<h2>Revision History</h2> 80 81<p> 822008/06/03 Added the pseudo V-Blank notification.<br>2006/09/04 Added descriptions.<br>2006/06/29 Initial version. 83</p> 84 85<hr><p>CONFIDENTIAL</p></body> 86</html> 87