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 standalone Revolution console USB (COM) port and a standalone PC. The USB (COM) ports are used for bidirectional communications.</P> 17 18<blockquote> 19<p>The Revolution sends data to the PC</p> 20 <blockquote> 21<p>Sends Revolution calendar data during send okay status.</p> 22 </blockquote> 23<p>The PC sends data to the Revolution</p> 24 <blockquote> 25<p>Sends PC calendar data during send okay status.</p> 26 </blockquote> 27</blockquote> 28<p><strong>Note:</strong>simple does not use Hio2If.</p> 29 30<h2>File Structure</h2> 31<p> 32<table> 33<tr> 34<td>Revolution</td> 35<td>:</td> 36<td>src/simple.c, include/simple.h, multi.h</td> 37</tr> 38<tr> 39<td>PC</td> 40<td>:</td> 41<td>vc++/simplel/*, vc++/HioIf/src/Hio2DllIf.cpp, vc++/HioIf/src/Hio2DllIf.h</td> 42</tr> 43</table> 44</p> 45<h2>Operation Method</h2> 46<p> 47<table> 48<tr> 49<td>Revolution</td> 50<td><br></td> 51<td><br></td> 52</tr> 53<tr> 54<td align="right">-</td> 55<td>A Button</td> 56<td>Switches communication methods (Revolution -> PC or PC -> Revolution)</td> 57</tr> 58<tr> 59<td align="right">-</td> 60<td>PAUSE button</td> 61<td>Press to quit.</td> 62</tr> 63<tr> 64<td>PC</td> 65<td><br></td> 66<td><br></td> 67</tr> 68<tr> 69<td align="right">-</td> 70<td>ESC key</td> 71<td>Press to quit.</td> 72</tr> 73</table> 74</p> 75<h2>Comments</h2> 76<p>hio2demo/src/simple.c has two methods that can be used to detect mail from the PC.</p> 77<blockquote> 78<p>default</p> 79 <blockquote> 80<p>Detects the method using a callback function (EXI interrupt).</p> 81 </blockquote> 82<p>Specify -DPOLLING during build</p> 83 <blockquote> 84<p>Detects the method using HIO2ReadStatus.</p> 85 </blockquote> 86</blockquote> 87<H2>See Also</H2> 88<P><CODE><A href="../list.html">HIO2 API</A></CODE></P> 89<H2>Revision History</H2> 90<P>03/01/2006 Initial version.</P> 91</BODY> 92</html>