mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
292 lines
15 KiB
HTML
292 lines
15 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<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.13"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>USB Host Shield 2.0: Wii.h File Reference</title>
|
|
<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>
|
|
<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"/>
|
|
</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
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.13 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- 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> |
|
|
<a href="#define-members">Macros</a> |
|
|
<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 "<a class="el" href="_b_t_d_8h_source.html">BTD.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="controller_enums_8h_source.html">controllerEnums.h</a>"</code><br />
|
|
</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" id="node2" href="_b_t_d_8h.html" title="BTD.h" alt="" coords="5,80,67,107"/>
|
|
<area shape="rect" id="node6" href="controller_enums_8h.html" title="controllerEnums.h" alt="" coords="91,80,231,107"/>
|
|
<area shape="rect" id="node3" href="_usb_8h.html" title="Usb.h" alt="" coords="20,304,79,331"/>
|
|
<area shape="rect" id="node4" href="usbhid_8h.html" title="usbhid.h" alt="" coords="36,155,113,181"/>
|
|
<area shape="rect" id="node5" href="hidusagestr_8h.html" title="hidusagestr.h" alt="" coords="87,229,196,256"/>
|
|
</map>
|
|
</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" id="node2" href="_wii_8cpp.html" title="Wii.cpp" alt="" coords="5,80,76,107"/>
|
|
</map>
|
|
</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  </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"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
|
|
Macros</h2></td></tr>
|
|
<tr class="memitem:a34631633d4557244dc8eda52e8505acd"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_wii_8h.html#a34631633d4557244dc8eda52e8505acd">WII_FLAG_MOTION_PLUS_CONNECTED</a>   (1 << 0)</td></tr>
|
|
<tr class="separator:a34631633d4557244dc8eda52e8505acd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae0ff99c8862a05df8877329982e1ef61"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_wii_8h.html#ae0ff99c8862a05df8877329982e1ef61">WII_FLAG_NUNCHUCK_CONNECTED</a>   (1 << 1)</td></tr>
|
|
<tr class="separator:ae0ff99c8862a05df8877329982e1ef61"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a927532cef823ea48fac1b90fb200f229"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_wii_8h.html#a927532cef823ea48fac1b90fb200f229">WII_FLAG_CALIBRATE_BALANCE_BOARD</a>   (1 << 2)</td></tr>
|
|
<tr class="separator:a927532cef823ea48fac1b90fb200f229"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac551aee34d131e9407d9e0ede81e9cbe"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_wii_8h.html#ac551aee34d131e9407d9e0ede81e9cbe">wii_check_flag</a>(flag)   (wii_event_flag & (flag))</td></tr>
|
|
<tr class="separator:ac551aee34d131e9407d9e0ede81e9cbe"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae72da8cfcaaad9b910ff14e08b72f60d"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_wii_8h.html#ae72da8cfcaaad9b910ff14e08b72f60d">wii_set_flag</a>(flag)   (wii_event_flag |= (flag))</td></tr>
|
|
<tr class="separator:ae72da8cfcaaad9b910ff14e08b72f60d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac88349598e4482a310450e34af9b7ce3"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_wii_8h.html#ac88349598e4482a310450e34af9b7ce3">wii_clear_flag</a>(flag)   (wii_event_flag &= ~(flag))</td></tr>
|
|
<tr class="separator:ac88349598e4482a310450e34af9b7ce3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
|
|
Enumerations</h2></td></tr>
|
|
<tr class="memitem:ad79e49e27b025d6ac9d695c4816f84d4"><td class="memItemLeft" align="right" valign="top">enum  </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
|
|
}</td></tr>
|
|
<tr class="separator:ad79e49e27b025d6ac9d695c4816f84d4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1f2e8277faa24c51a9c99f3fbac8d80b"><td class="memItemLeft" align="right" valign="top">enum  </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"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Macro Definition Documentation</h2>
|
|
<a id="a34631633d4557244dc8eda52e8505acd"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a34631633d4557244dc8eda52e8505acd">◆ </a></span>WII_FLAG_MOTION_PLUS_CONNECTED</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define WII_FLAG_MOTION_PLUS_CONNECTED   (1 << 0)</td>
|
|
</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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae0ff99c8862a05df8877329982e1ef61"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae0ff99c8862a05df8877329982e1ef61">◆ </a></span>WII_FLAG_NUNCHUCK_CONNECTED</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define WII_FLAG_NUNCHUCK_CONNECTED   (1 << 1)</td>
|
|
</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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a927532cef823ea48fac1b90fb200f229"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a927532cef823ea48fac1b90fb200f229">◆ </a></span>WII_FLAG_CALIBRATE_BALANCE_BOARD</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define WII_FLAG_CALIBRATE_BALANCE_BOARD   (1 << 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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac551aee34d131e9407d9e0ede81e9cbe"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac551aee34d131e9407d9e0ede81e9cbe">◆ </a></span>wii_check_flag</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define wii_check_flag</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">flag</td><td>)</td>
|
|
<td>   (wii_event_flag & (flag))</td>
|
|
</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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae72da8cfcaaad9b910ff14e08b72f60d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae72da8cfcaaad9b910ff14e08b72f60d">◆ </a></span>wii_set_flag</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define wii_set_flag</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">flag</td><td>)</td>
|
|
<td>   (wii_event_flag |= (flag))</td>
|
|
</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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac88349598e4482a310450e34af9b7ce3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac88349598e4482a310450e34af9b7ce3">◆ </a></span>wii_clear_flag</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define wii_clear_flag</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">flag</td><td>)</td>
|
|
<td>   (wii_event_flag &= ~(flag))</td>
|
|
</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>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Enumeration Type Documentation</h2>
|
|
<a id="ad79e49e27b025d6ac9d695c4816f84d4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad79e49e27b025d6ac9d695c4816f84d4">◆ </a></span>HatEnum</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">enum <a class="el" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4">HatEnum</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Enum used to read the joystick on the Nunchuck. </p>
|
|
<table class="fieldtable">
|
|
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ad79e49e27b025d6ac9d695c4816f84d4aed1a7a35bf1b9c1003fbe3dd4a61a06d"></a>HatX </td><td class="fielddoc"><p>Read the x-axis on the Nunchuck joystick. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="ad79e49e27b025d6ac9d695c4816f84d4ae2ac743b5ba1752933e09f1dac48d97b"></a>HatY </td><td class="fielddoc"><p>Read the y-axis on the Nunchuck joystick. </p>
|
|
</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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1f2e8277faa24c51a9c99f3fbac8d80b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1f2e8277faa24c51a9c99f3fbac8d80b">◆ </a></span>BalanceBoardEnum</h2>
|
|
|
|
<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 </td><td class="fielddoc"></td></tr>
|
|
<tr><td class="fieldname"><a id="a1f2e8277faa24c51a9c99f3fbac8d80bab2a25b9fb1bdac62760c8cb2fb047437"></a>BotRight </td><td class="fielddoc"></td></tr>
|
|
<tr><td class="fieldname"><a id="a1f2e8277faa24c51a9c99f3fbac8d80ba61f66ddc6702462a94d3e231f02b9017"></a>TopLeft </td><td class="fielddoc"></td></tr>
|
|
<tr><td class="fieldname"><a id="a1f2e8277faa24c51a9c99f3fbac8d80ba591404ff43c722c0641186be037b181d"></a>BotLeft </td><td class="fielddoc"></td></tr>
|
|
</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>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.13
|
|
</small></address>
|
|
</body>
|
|
</html>
|