USB_Host_Shield_2.0/_wii_8h.html

298 lines
16 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2013-01-30 22:00:18 +01:00
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>USB Host Shield 2.0: Wii.h File Reference</title>
2013-01-30 22:00:18 +01:00
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
2013-01-30 22:00:18 +01:00
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="imageStyle.css" rel="stylesheet" type="text/css"/>
2013-01-30 22:00:18 +01:00
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">USB Host Shield 2.0
2013-01-30 22:00:18 +01:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
2013-01-30 22:00:18 +01:00
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
2013-01-30 22:00:18 +01:00
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
2013-01-30 22:00:18 +01:00
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
2013-01-30 22:00:18 +01:00
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
2013-01-30 22:00:18 +01:00
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a> </div>
<div class="headertitle">
<div class="title">Wii.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="_b_t_d_8h_source.html">BTD.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="controller_enums_8h_source.html">controllerEnums.h</a>&quot;</code><br />
2013-01-30 22:00:18 +01:00
</div><div class="textblock"><div class="dynheader">
Include dependency graph for Wii.h:</div>
<div class="dyncontent">
<div class="center"><img src="_wii_8h__incl.png" border="0" usemap="#_wii_8h" alt=""/></div>
<map name="_wii_8h" id="_wii_8h">
<area shape="rect" title=" " alt="" coords="71,5,126,32"/>
<area shape="rect" href="_b_t_d_8h.html" title=" " alt="" coords="5,80,67,107"/>
<area shape="rect" href="controller_enums_8h.html" title=" " alt="" coords="91,80,231,107"/>
<area shape="rect" href="_usb_8h.html" title=" " alt="" coords="20,304,79,331"/>
<area shape="rect" href="usbhid_8h.html" title=" " alt="" coords="36,155,113,181"/>
<area shape="rect" href="hidusagestr_8h.html" title=" " alt="" coords="87,229,196,256"/>
</map>
2013-01-30 22:00:18 +01:00
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="_wii_8h__dep__incl.png" border="0" usemap="#_wii_8hdep" alt=""/></div>
<map name="_wii_8hdep" id="_wii_8hdep">
<area shape="rect" title=" " alt="" coords="13,5,68,32"/>
<area shape="rect" href="_wii_8cpp.html" title=" " alt="" coords="5,80,76,107"/>
</map>
2013-01-30 22:00:18 +01:00
</div>
</div>
<p><a href="_wii_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_i_i.html">WII</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
2016-04-19 18:16:46 +02:00
<tr class="memitem:a34631633d4557244dc8eda52e8505acd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_wii_8h.html#a34631633d4557244dc8eda52e8505acd">WII_FLAG_MOTION_PLUS_CONNECTED</a>&#160;&#160;&#160;(1 &lt;&lt; 0)</td></tr>
2013-01-30 22:00:18 +01:00
<tr class="separator:a34631633d4557244dc8eda52e8505acd"><td class="memSeparator" colspan="2">&#160;</td></tr>
2016-04-19 18:16:46 +02:00
<tr class="memitem:ae0ff99c8862a05df8877329982e1ef61"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_wii_8h.html#ae0ff99c8862a05df8877329982e1ef61">WII_FLAG_NUNCHUCK_CONNECTED</a>&#160;&#160;&#160;(1 &lt;&lt; 1)</td></tr>
2013-01-30 22:00:18 +01:00
<tr class="separator:ae0ff99c8862a05df8877329982e1ef61"><td class="memSeparator" colspan="2">&#160;</td></tr>
2016-04-19 18:16:46 +02:00
<tr class="memitem:a927532cef823ea48fac1b90fb200f229"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_wii_8h.html#a927532cef823ea48fac1b90fb200f229">WII_FLAG_CALIBRATE_BALANCE_BOARD</a>&#160;&#160;&#160;(1 &lt;&lt; 2)</td></tr>
<tr class="separator:a927532cef823ea48fac1b90fb200f229"><td class="memSeparator" colspan="2">&#160;</td></tr>
2014-01-10 18:20:37 +01:00
<tr class="memitem:ac551aee34d131e9407d9e0ede81e9cbe"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_wii_8h.html#ac551aee34d131e9407d9e0ede81e9cbe">wii_check_flag</a>(flag)&#160;&#160;&#160;(wii_event_flag &amp; (flag))</td></tr>
<tr class="separator:ac551aee34d131e9407d9e0ede81e9cbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae72da8cfcaaad9b910ff14e08b72f60d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_wii_8h.html#ae72da8cfcaaad9b910ff14e08b72f60d">wii_set_flag</a>(flag)&#160;&#160;&#160;(wii_event_flag |= (flag))</td></tr>
<tr class="separator:ae72da8cfcaaad9b910ff14e08b72f60d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac88349598e4482a310450e34af9b7ce3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_wii_8h.html#ac88349598e4482a310450e34af9b7ce3">wii_clear_flag</a>(flag)&#160;&#160;&#160;(wii_event_flag &amp;= ~(flag))</td></tr>
<tr class="separator:ac88349598e4482a310450e34af9b7ce3"><td class="memSeparator" colspan="2">&#160;</td></tr>
2013-01-30 22:00:18 +01:00
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
2014-01-10 18:20:37 +01:00
<tr class="memitem:ad79e49e27b025d6ac9d695c4816f84d4"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4">HatEnum</a> { <a class="el" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4aed1a7a35bf1b9c1003fbe3dd4a61a06d">HatX</a> = 0,
<a class="el" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4ae2ac743b5ba1752933e09f1dac48d97b">HatY</a> = 1
2013-01-30 22:00:18 +01:00
}</td></tr>
2014-01-10 18:20:37 +01:00
<tr class="separator:ad79e49e27b025d6ac9d695c4816f84d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
2016-04-19 18:16:46 +02:00
<tr class="memitem:a1f2e8277faa24c51a9c99f3fbac8d80b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80b">BalanceBoardEnum</a> { <a class="el" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80ba7e42a96f07eab63a8c9fa8a0526f34f4">TopRight</a> = 0,
<a class="el" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80bab2a25b9fb1bdac62760c8cb2fb047437">BotRight</a> = 1,
<a class="el" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80ba61f66ddc6702462a94d3e231f02b9017">TopLeft</a> = 2,
<a class="el" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80ba591404ff43c722c0641186be037b181d">BotLeft</a> = 3
}</td></tr>
<tr class="separator:a1f2e8277faa24c51a9c99f3fbac8d80b"><td class="memSeparator" colspan="2">&#160;</td></tr>
2013-01-30 22:00:18 +01:00
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a34631633d4557244dc8eda52e8505acd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34631633d4557244dc8eda52e8505acd">&#9670;&nbsp;</a></span>WII_FLAG_MOTION_PLUS_CONNECTED</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2016-04-19 18:16:46 +02:00
<td class="memname">#define WII_FLAG_MOTION_PLUS_CONNECTED&#160;&#160;&#160;(1 &lt;&lt; 0)</td>
2013-01-30 22:00:18 +01:00
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_wii_8h_source.html#l00027">27</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
2013-02-05 20:02:12 +01:00
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="ae0ff99c8862a05df8877329982e1ef61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0ff99c8862a05df8877329982e1ef61">&#9670;&nbsp;</a></span>WII_FLAG_NUNCHUCK_CONNECTED</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2016-04-19 18:16:46 +02:00
<td class="memname">#define WII_FLAG_NUNCHUCK_CONNECTED&#160;&#160;&#160;(1 &lt;&lt; 1)</td>
2013-01-30 22:00:18 +01:00
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_wii_8h_source.html#l00028">28</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
2013-02-05 20:02:12 +01:00
2016-04-19 18:16:46 +02:00
</div>
</div>
<a id="a927532cef823ea48fac1b90fb200f229"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a927532cef823ea48fac1b90fb200f229">&#9670;&nbsp;</a></span>WII_FLAG_CALIBRATE_BALANCE_BOARD</h2>
2016-04-19 18:16:46 +02:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define WII_FLAG_CALIBRATE_BALANCE_BOARD&#160;&#160;&#160;(1 &lt;&lt; 2)</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_wii_8h_source.html#l00029">29</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
2016-04-19 18:16:46 +02:00
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="ac551aee34d131e9407d9e0ede81e9cbe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac551aee34d131e9407d9e0ede81e9cbe">&#9670;&nbsp;</a></span>wii_check_flag</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2014-01-10 18:20:37 +01:00
<td class="memname">#define wii_check_flag</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">flag</td><td>)</td>
<td>&#160;&#160;&#160;(wii_event_flag &amp; (flag))</td>
2013-01-30 22:00:18 +01:00
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_wii_8h_source.html#l00031">31</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
2013-02-05 20:02:12 +01:00
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="ae72da8cfcaaad9b910ff14e08b72f60d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae72da8cfcaaad9b910ff14e08b72f60d">&#9670;&nbsp;</a></span>wii_set_flag</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2014-01-10 18:20:37 +01:00
<td class="memname">#define wii_set_flag</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">flag</td><td>)</td>
<td>&#160;&#160;&#160;(wii_event_flag |= (flag))</td>
2013-01-30 22:00:18 +01:00
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_wii_8h_source.html#l00032">32</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
2013-02-05 20:02:12 +01:00
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="ac88349598e4482a310450e34af9b7ce3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac88349598e4482a310450e34af9b7ce3">&#9670;&nbsp;</a></span>wii_clear_flag</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2014-01-10 18:20:37 +01:00
<td class="memname">#define wii_clear_flag</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">flag</td><td>)</td>
<td>&#160;&#160;&#160;(wii_event_flag &amp;= ~(flag))</td>
2013-01-30 22:00:18 +01:00
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_wii_8h_source.html#l00033">33</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
2013-02-05 20:02:12 +01:00
2013-01-30 22:00:18 +01:00
</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ad79e49e27b025d6ac9d695c4816f84d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad79e49e27b025d6ac9d695c4816f84d4">&#9670;&nbsp;</a></span>HatEnum</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2014-01-10 18:20:37 +01:00
<td class="memname">enum <a class="el" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4">HatEnum</a></td>
2013-01-30 22:00:18 +01:00
</tr>
</table>
</div><div class="memdoc">
2013-02-05 20:02:12 +01:00
<p>Enum used to read the joystick on the Nunchuck. </p>
2013-01-30 22:00:18 +01:00
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ad79e49e27b025d6ac9d695c4816f84d4aed1a7a35bf1b9c1003fbe3dd4a61a06d"></a>HatX&#160;</td><td class="fielddoc"><p>Read the x-axis on the Nunchuck joystick. </p>
2013-01-30 22:00:18 +01:00
</td></tr>
<tr><td class="fieldname"><a id="ad79e49e27b025d6ac9d695c4816f84d4ae2ac743b5ba1752933e09f1dac48d97b"></a>HatY&#160;</td><td class="fielddoc"><p>Read the y-axis on the Nunchuck joystick. </p>
2013-01-30 22:00:18 +01:00
</td></tr>
</table>
<p class="definition">Definition at line <a class="el" href="_wii_8h_source.html#l00036">36</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
2016-04-19 18:16:46 +02:00
</div>
</div>
<a id="a1f2e8277faa24c51a9c99f3fbac8d80b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f2e8277faa24c51a9c99f3fbac8d80b">&#9670;&nbsp;</a></span>BalanceBoardEnum</h2>
2016-04-19 18:16:46 +02:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80b">BalanceBoardEnum</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Enum used to read the weight on Wii Balance Board. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a1f2e8277faa24c51a9c99f3fbac8d80ba7e42a96f07eab63a8c9fa8a0526f34f4"></a>TopRight&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a1f2e8277faa24c51a9c99f3fbac8d80bab2a25b9fb1bdac62760c8cb2fb047437"></a>BotRight&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a1f2e8277faa24c51a9c99f3fbac8d80ba61f66ddc6702462a94d3e231f02b9017"></a>TopLeft&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a1f2e8277faa24c51a9c99f3fbac8d80ba591404ff43c722c0641186be037b181d"></a>BotLeft&#160;</td><td class="fielddoc"></td></tr>
2016-04-19 18:16:46 +02:00
</table>
<p class="definition">Definition at line <a class="el" href="_wii_8h_source.html#l00044">44</a> of file <a class="el" href="_wii_8h_source.html">Wii.h</a>.</p>
2013-02-05 20:02:12 +01:00
2013-01-30 22:00:18 +01:00
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
2013-01-30 22:00:18 +01:00
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
2013-01-30 22:00:18 +01:00
</small></address>
</body>
</html>