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>HIO2 Demo simple.exe/simple.elf</title> 9</head> 10 11<body> 12 13<h1>simple.exe/simple.elf</h1> 14 15<h2>Overview</h2> 16<P>This demo performs communications between a stand-alone Wii console USB (COM) port and a standalone PC. USB (COM) ports are used for bidirectional communications.</P> 17 18<blockquote> 19<p>Wii sends data to the PC</p> 20 <blockquote> 21<p>Sends Wii calendar data during send-possible status.</p> 22 </blockquote> 23<p>PC sends data to the Wii.</p> 24 <blockquote> 25<p>Sends PC calendar data during send-possible status.</p> 26 </blockquote> 27</blockquote> 28<p><strong>Note:</strong>The <I>simple</I> demo does not use <CODE>Hio2If</CODE>.</p> 29 30<h2>File Structure</h2> 31<p> 32<table> 33<tr> 34<td>Wii</td> 35<td>:</td> 36<td><CODE>src/simple.c, include/simple.h, multi.h</CODE></td> 37</tr> 38<tr> 39<td>PC</td> 40<td>:</td> 41<td><CODE>vc++/simplel/*, vc++/HioIf/src/Hio2DllIf.cpp, vc++/HioIf/src/Hio2DllIf.h</CODE></td> 42</tr> 43</table> 44</p> 45 46<h2>Using the Demo</h2> 47<p> 48<table> 49<tr> 50<td>Wii</td> 51<td><br></td> 52<td><br></td> 53</tr> 54<tr> 55<td align="right">-</td> 56<td>A Button</td> 57<td>Switches communication methods (Wii -> PC or PC -> Wii).</td> 58</tr> 59<tr> 60<td align="right">-</td> 61<td>START Button</td> 62<td>End</td> 63</tr> 64<tr> 65<td>PC</td> 66<td><br></td> 67<td><br></td> 68</tr> 69<tr> 70<td align="right">-</td> 71<td>ESC key</td> 72<td>End</td> 73</tr> 74</table> 75</p> 76<h2>Comments</h2> 77<p>In <CODE>hio2demo/src/simple.c</CODE>, there are two methods for detecting mail from the PC.</p> 78<blockquote> 79<p>default</p> 80 <blockquote> 81<p>Makes detection using a callback function (EXI interrupt).</p> 82 </blockquote> 83<p>Specify <CODE>-DPOLLING</CODE> during build.</p> 84 <blockquote> 85<p>Makes detection using the <CODE>HIO2ReadStatus</CODE> function.</p> 86 </blockquote> 87</blockquote> 88 89<H2>See Also</H2> 90<P class="reference"> 91<A href="../list.html">Host I/O(HIO2) API</A> 92</P> 93 94<H2>Revision History</H2> 95<P> 962006/03/01 Initial version.<br> 97</P> 98 99<hr><p>CONFIDENTIAL</p></body> 100</html>