mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
170 lines
82 KiB
HTML
170 lines
82 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.14"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>USB Host Shield 2.0: Wii.h Source File</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.14 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</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&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>
|
|
<!-- 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 id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_69161428018e52ad84691a5947f27cc9.html">Github</a></li><li class="navelem"><a class="el" href="dir_ee762931928e29ae94e054d18c99dc9e.html">USB_Host_Shield_2_0</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">Wii.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="_wii_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/* Copyright (C) 2012 Kristian Lauszus, TKJ Electronics. All rights reserved.</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"></span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> This software may be distributed and modified under the terms of the GNU</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> General Public License version 2 (GPL2) as published by the Free Software</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> Foundation and appearing in the file GPL2.TXT included in the packaging of</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> this file. Please note that GPL2 Section 2[b] requires that all works based</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> on this software must also be made publicly available under the terms of</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> the GPL2 ("Copyleft").</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> Contact information</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> -------------------</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"></span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> Kristian Lauszus, TKJ Electronics</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> Web : http://www.tkjelectronics.com</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> e-mail : kristianl@tkjelectronics.com</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> IR camera support added by Allan Glover (adglover9.81@gmail.com) and Kristian Lauszus</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> */</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#ifndef _wii_h_</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#define _wii_h_</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="_b_t_d_8h.html">BTD.h</a>"</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="controller_enums_8h.html">controllerEnums.h</a>"</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">/* Wii event flags */</span></div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="_wii_8h.html#a34631633d4557244dc8eda52e8505acd"> 27</a></span> <span class="preprocessor">#define WII_FLAG_MOTION_PLUS_CONNECTED (1 << 0)</span></div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="_wii_8h.html#ae0ff99c8862a05df8877329982e1ef61"> 28</a></span> <span class="preprocessor">#define WII_FLAG_NUNCHUCK_CONNECTED (1 << 1)</span></div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="_wii_8h.html#a927532cef823ea48fac1b90fb200f229"> 29</a></span> <span class="preprocessor">#define WII_FLAG_CALIBRATE_BALANCE_BOARD (1 << 2)</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="_wii_8h.html#ac551aee34d131e9407d9e0ede81e9cbe"> 31</a></span> <span class="preprocessor">#define wii_check_flag(flag) (wii_event_flag & (flag))</span></div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="_wii_8h.html#ae72da8cfcaaad9b910ff14e08b72f60d"> 32</a></span> <span class="preprocessor">#define wii_set_flag(flag) (wii_event_flag |= (flag))</span></div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="_wii_8h.html#ac88349598e4482a310450e34af9b7ce3"> 33</a></span> <span class="preprocessor">#define wii_clear_flag(flag) (wii_event_flag &= ~(flag))</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4"> 36</a></span> <span class="keyword">enum</span> <a class="code" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4">HatEnum</a> {</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4aed1a7a35bf1b9c1003fbe3dd4a61a06d"> 38</a></span>  <a class="code" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4aed1a7a35bf1b9c1003fbe3dd4a61a06d">HatX</a> = 0,</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4ae2ac743b5ba1752933e09f1dac48d97b"> 40</a></span>  <a class="code" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4ae2ac743b5ba1752933e09f1dac48d97b">HatY</a> = 1,</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> };</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80b"> 44</a></span> <span class="keyword">enum</span> <a class="code" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80b">BalanceBoardEnum</a> {</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80ba7e42a96f07eab63a8c9fa8a0526f34f4"> 45</a></span>  <a class="code" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80ba7e42a96f07eab63a8c9fa8a0526f34f4">TopRight</a> = 0,</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80bab2a25b9fb1bdac62760c8cb2fb047437"> 46</a></span>  <a class="code" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80bab2a25b9fb1bdac62760c8cb2fb047437">BotRight</a> = 1,</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80ba61f66ddc6702462a94d3e231f02b9017"> 47</a></span>  <a class="code" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80ba61f66ddc6702462a94d3e231f02b9017">TopLeft</a> = 2,</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80ba591404ff43c722c0641186be037b181d"> 48</a></span>  <a class="code" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80ba591404ff43c722c0641186be037b181d">BotLeft</a> = 3,</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> };</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="class_w_i_i.html"> 56</a></span> <span class="keyword">class </span><a class="code" href="class_w_i_i.html">WII</a> : <span class="keyword">public</span> <a class="code" href="class_bluetooth_service.html">BluetoothService</a> {</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="class_w_i_i.html#a6597cb0e240a8ccb4ebdb236daef712e">WII</a>(<a class="code" href="class_b_t_d.html">BTD</a> *p, <span class="keywordtype">bool</span> <a class="code" href="class_w_i_i.html#a39c3101b26cc549d5258018b3d05c608">pair</a> = <span class="keyword">false</span>);</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#aabe4780f258dada1c0564a4ac7607370">disconnect</a>();</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordtype">bool</span> <a class="code" href="class_w_i_i.html#a7b183fe1809c1c595438e930b8f3f4de">getButtonPress</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b);</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordtype">bool</span> <a class="code" href="class_w_i_i.html#ac94e8b9ce6d3f914f0e3ee4fba82efa3">getButtonClick</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b);</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a39c3101b26cc549d5258018b3d05c608"> 89</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#a39c3101b26cc549d5258018b3d05c608">pair</a>(<span class="keywordtype">void</span>) {</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">if</span>(<a class="code" href="class_bluetooth_service.html#aa67faf901f78a55a202945a20f6d778a">pBtd</a>)</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="class_bluetooth_service.html#aa67faf901f78a55a202945a20f6d778a">pBtd</a>-><a class="code" href="class_b_t_d.html#a6b66a27c0fd359e3129f53451352b55c">pairWithWiimote</a>();</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  };</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  uint8_t <a class="code" href="class_w_i_i.html#a8e34abf62a9631ca3efba0150ca91b93">getAnalogHat</a>(<a class="code" href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4">HatEnum</a> a);</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  uint16_t <a class="code" href="class_w_i_i.html#a8e34abf62a9631ca3efba0150ca91b93">getAnalogHat</a>(<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093">AnalogHatEnum</a> a);</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a2df9544486403b369836a10bf8af6dfa"> 110</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_w_i_i.html#a2df9544486403b369836a10bf8af6dfa">getPitch</a>() {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">if</span>(<a class="code" href="class_w_i_i.html#a72bd4fad2e524276712a154b8cc2a16c">motionPlusConnected</a>)</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">return</span> compPitch;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordflow">return</span> <a class="code" href="class_w_i_i.html#a7646584a691279fbdb688e7f35f6a5b3">getWiimotePitch</a>();</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  };</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a9463c27f6e683634571928a29f13824f"> 120</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_w_i_i.html#a9463c27f6e683634571928a29f13824f">getRoll</a>() {</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">if</span>(<a class="code" href="class_w_i_i.html#a72bd4fad2e524276712a154b8cc2a16c">motionPlusConnected</a>)</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">return</span> compRoll;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">return</span> <a class="code" href="class_w_i_i.html#a2e1236eaee605bd5a6fa581c501cf406">getWiimoteRoll</a>();</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  };</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="class_w_i_i.html#ad8c2d7acc64b32272de0ec9c1675e1fa"> 132</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_w_i_i.html#ad8c2d7acc64b32272de0ec9c1675e1fa">getYaw</a>() {</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">return</span> <a class="code" href="class_w_i_i.html#ac3df2ac430112b4a6803d20105e88e67">gyroYaw</a>;</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  };</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#a6e97bfcfb134b63d7190ba1bc326e1d3">setAllOff</a>();</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#a2c5c32841b020b248f757cb793acb936">setRumbleOff</a>();</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#a0d9c869bd3677c4488a586c38558a137">setRumbleOn</a>();</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#a841396b533cccccb05db37d35f6fef9c">setRumbleToggle</a>();</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#ae7e07f929fba8f0ff061a1405baa2b58">setLedRaw</a>(uint8_t value);</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="class_w_i_i.html#ae3eb7942181a9c9e681e18bd5c8eaef4"> 152</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#ae3eb7942181a9c9e681e18bd5c8eaef4">setLedOff</a>() {</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <a class="code" href="class_w_i_i.html#ae7e07f929fba8f0ff061a1405baa2b58">setLedRaw</a>(0);</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  };</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#ae3eb7942181a9c9e681e18bd5c8eaef4">setLedOff</a>(<a class="code" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> a);</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#a38507c76e5d7375a7971bc3a17b87338">setLedOn</a>(<a class="code" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> a);</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#a8e81eb7d2d78680df0dee1869695ff05">setLedToggle</a>(<a class="code" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> a);</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#a5d3b4a33ebc2ca9ebb154e10a05dbdd4">setLedStatus</a>();</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  uint8_t <a class="code" href="class_w_i_i.html#ae946f7d6e9ce89fb083f5f138c0736c2">getBatteryLevel</a>();</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a8e9ac1d379db5c07c478401046a1c0ac"> 189</a></span>  uint8_t <a class="code" href="class_w_i_i.html#a8e9ac1d379db5c07c478401046a1c0ac">getWiiState</a>() {</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="keywordflow">return</span> wiiState;</div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="class_w_i_i.html#ae25a8ea1b0713801e0209e795b4596fa"> 191</a></span>  };</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keywordtype">bool</span> <a class="code" href="class_w_i_i.html#ae25a8ea1b0713801e0209e795b4596fa">wiimoteConnected</a>;</div><div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a7cb4cec343c65fd350e6b05043d7f1a8"> 198</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_w_i_i.html#a7cb4cec343c65fd350e6b05043d7f1a8">nunchuckConnected</a>;</div><div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a72bd4fad2e524276712a154b8cc2a16c"> 200</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_w_i_i.html#a72bd4fad2e524276712a154b8cc2a16c">motionPlusConnected</a>;</div><div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a461f5b7a5f2bc874e107fc776c284b16"> 202</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_w_i_i.html#a461f5b7a5f2bc874e107fc776c284b16">wiiUProControllerConnected</a>;</div><div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a1a1bdeef9ca069a1d14887182a2664a4"> 204</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_w_i_i.html#a1a1bdeef9ca069a1d14887182a2664a4">wiiBalanceBoardConnected</a>;</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="comment">/* IMU Data, might be usefull if you need to do something more advanced than just calculating the angle */</span></div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> </div><div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a7646584a691279fbdb688e7f35f6a5b3"> 212</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_w_i_i.html#a7646584a691279fbdb688e7f35f6a5b3">getWiimotePitch</a>() {</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <span class="keywordflow">return</span> (atan2f(<a class="code" href="class_w_i_i.html#aa2c14275d9e482e6add06cb34ccf1197">accYwiimote</a>, <a class="code" href="class_w_i_i.html#acdebdaab544ffcecf8ab09adacbd28c8">accZwiimote</a>) + PI) * RAD_TO_DEG;</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  };</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> </div><div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a2e1236eaee605bd5a6fa581c501cf406"> 216</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_w_i_i.html#a2e1236eaee605bd5a6fa581c501cf406">getWiimoteRoll</a>() {</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordflow">return</span> (atan2f(<a class="code" href="class_w_i_i.html#afaafee11ac191ba43b6a2b989cdd137c">accXwiimote</a>, <a class="code" href="class_w_i_i.html#acdebdaab544ffcecf8ab09adacbd28c8">accZwiimote</a>) + PI) * RAD_TO_DEG;</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  };</div><div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="class_w_i_i.html#ad0a061fd6715690914c922911106b813"> 224</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_w_i_i.html#ad0a061fd6715690914c922911106b813">getNunchuckPitch</a>() {</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordflow">return</span> (atan2f(<a class="code" href="class_w_i_i.html#ae657585a560e9d214e6c0219f8b47aeb">accYnunchuck</a>, <a class="code" href="class_w_i_i.html#a42af5743d2e3c2dbc01ea0b5531cc7c6">accZnunchuck</a>) + PI) * RAD_TO_DEG;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  };</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span> </div><div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="class_w_i_i.html#ac2f0e9f96d0a4b0dd7044b7f3ffc24bd"> 228</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_w_i_i.html#ac2f0e9f96d0a4b0dd7044b7f3ffc24bd">getNunchuckRoll</a>() {</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordflow">return</span> (atan2f(<a class="code" href="class_w_i_i.html#a3a13b5931284d5bcd6647f681cda95b4">accXnunchuck</a>, <a class="code" href="class_w_i_i.html#a42af5743d2e3c2dbc01ea0b5531cc7c6">accZnunchuck</a>) + PI) * RAD_TO_DEG;</div><div class="line"><a name="l00230"></a><span class="lineno"><a class="line" href="class_w_i_i.html#acdebdaab544ffcecf8ab09adacbd28c8"> 230</a></span>  };</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  int16_t <a class="code" href="class_w_i_i.html#afaafee11ac191ba43b6a2b989cdd137c">accXwiimote</a>, <a class="code" href="class_w_i_i.html#aa2c14275d9e482e6add06cb34ccf1197">accYwiimote</a>, <a class="code" href="class_w_i_i.html#acdebdaab544ffcecf8ab09adacbd28c8">accZwiimote</a>;</div><div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a42af5743d2e3c2dbc01ea0b5531cc7c6"> 236</a></span>  int16_t <a class="code" href="class_w_i_i.html#a3a13b5931284d5bcd6647f681cda95b4">accXnunchuck</a>, <a class="code" href="class_w_i_i.html#ae657585a560e9d214e6c0219f8b47aeb">accYnunchuck</a>, <a class="code" href="class_w_i_i.html#a42af5743d2e3c2dbc01ea0b5531cc7c6">accZnunchuck</a>;</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="comment">/* Variables for the gyro inside the Motion Plus */</span></div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="class_w_i_i.html#ab4da8502042b18c71fbef321ed213d25"> 241</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_w_i_i.html#ab4da8502042b18c71fbef321ed213d25">gyroPitch</a>;</div><div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="class_w_i_i.html#acd16def2e2100b0ccb590d57a50fa742"> 243</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_w_i_i.html#acd16def2e2100b0ccb590d57a50fa742">gyroRoll</a>;</div><div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="class_w_i_i.html#ac3df2ac430112b4a6803d20105e88e67"> 245</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_w_i_i.html#ac3df2ac430112b4a6803d20105e88e67">gyroYaw</a>;</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span> </div><div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="class_w_i_i.html#aa47478ccdfe009dabb7c21232e07bfd5"> 249</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_w_i_i.html#aa47478ccdfe009dabb7c21232e07bfd5">pitchGyroSpeed</a>;</div><div class="line"><a name="l00250"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a7ddd67a8797d582e324cffe2847a4288"> 250</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_w_i_i.html#a7ddd67a8797d582e324cffe2847a4288">rollGyroSpeed</a>;</div><div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a4c373f956eddf2dd3a66d4a000459b85"> 251</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_w_i_i.html#a4c373f956eddf2dd3a66d4a000459b85">yawGyroSpeed</a>;</div><div class="line"><a name="l00256"></a><span class="lineno"><a class="line" href="class_w_i_i.html#aea6ce6f3222df3e547e9957673c7a07a"> 256</a></span>  uint16_t <a class="code" href="class_w_i_i.html#aea6ce6f3222df3e547e9957673c7a07a">pitchGyroScale</a>;</div><div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a6c0971ae4c9ab752888a5871020c8331"> 257</a></span>  uint16_t <a class="code" href="class_w_i_i.html#a6c0971ae4c9ab752888a5871020c8331">rollGyroScale</a>;</div><div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a0694969a30092b9b1dcb26120c7cff73"> 258</a></span>  uint16_t <a class="code" href="class_w_i_i.html#a0694969a30092b9b1dcb26120c7cff73">yawGyroScale</a>;</div><div class="line"><a name="l00263"></a><span class="lineno"><a class="line" href="class_w_i_i.html#ab813b65548e827f41a5192fcc34056ea"> 263</a></span>  int16_t <a class="code" href="class_w_i_i.html#ab813b65548e827f41a5192fcc34056ea">gyroYawRaw</a>;</div><div class="line"><a name="l00264"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a0784c779ebeae2d459996c35a54ee3b8"> 264</a></span>  int16_t <a class="code" href="class_w_i_i.html#a0784c779ebeae2d459996c35a54ee3b8">gyroRollRaw</a>;</div><div class="line"><a name="l00265"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a749ea9dd39ba9a5320c5b24ce93bc544"> 265</a></span>  int16_t <a class="code" href="class_w_i_i.html#a749ea9dd39ba9a5320c5b24ce93bc544">gyroPitchRaw</a>;</div><div class="line"><a name="l00270"></a><span class="lineno"><a class="line" href="class_w_i_i.html#ad4f0d2456c56414f9b8013b85a1ee7d2"> 270</a></span>  int16_t <a class="code" href="class_w_i_i.html#ad4f0d2456c56414f9b8013b85a1ee7d2">gyroYawZero</a>;</div><div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a10d91cd5d73bc655be776b44d27004c9"> 271</a></span>  int16_t <a class="code" href="class_w_i_i.html#a10d91cd5d73bc655be776b44d27004c9">gyroRollZero</a>;</div><div class="line"><a name="l00272"></a><span class="lineno"><a class="line" href="class_w_i_i.html#abbc31ecd4495d70258cfa095e34cb3c3"> 272</a></span>  int16_t <a class="code" href="class_w_i_i.html#abbc31ecd4495d70258cfa095e34cb3c3">gyroPitchZero</a>;</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keywordtype">float</span> <a class="code" href="class_w_i_i.html#ac1fef8ad0f7d5c36fa61ee91422629f9">getWeight</a>(<a class="code" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80b">BalanceBoardEnum</a> pos);</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span> </div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keywordtype">float</span> <a class="code" href="class_w_i_i.html#a966e34bb434984de59706384c8efc1f1">getTotalWeight</a>();</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span> </div><div class="line"><a name="l00295"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a5f554cc77f108336981f7774761b9279"> 295</a></span>  uint16_t <a class="code" href="class_w_i_i.html#a5f554cc77f108336981f7774761b9279">getWeightRaw</a>(<a class="code" href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80b">BalanceBoardEnum</a> pos) {</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keywordflow">return</span> wiiBalanceBoardRaw[pos];</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  };</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span> <span class="preprocessor">#ifdef WIICAMERA</span></div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span> </div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#a3505abbc01c71d134ce301dfb7c0c5b5">IRinitialize</a>();</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span> </div><div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="class_w_i_i.html#af380eb3bf65ce33a60aaf35f74a44f6d"> 311</a></span>  uint16_t <a class="code" href="class_w_i_i.html#af380eb3bf65ce33a60aaf35f74a44f6d">getIRx1</a>() {</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="keywordflow">return</span> IR_object_x1;</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  };</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span> </div><div class="line"><a name="l00319"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a341b9a50bfdb18af9c66a3079e5804d9"> 319</a></span>  uint16_t <a class="code" href="class_w_i_i.html#a341b9a50bfdb18af9c66a3079e5804d9">getIRy1</a>() {</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <span class="keywordflow">return</span> IR_object_y1;</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  };</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span> </div><div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a2d8fd822e6e9c271d59c71dc7b757421"> 327</a></span>  uint8_t <a class="code" href="class_w_i_i.html#a2d8fd822e6e9c271d59c71dc7b757421">getIRs1</a>() {</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <span class="keywordflow">return</span> IR_object_s1;</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  };</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span> </div><div class="line"><a name="l00335"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a551e48a50c7b60722e807e68ae25f084"> 335</a></span>  uint16_t <a class="code" href="class_w_i_i.html#a551e48a50c7b60722e807e68ae25f084">getIRx2</a>() {</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <span class="keywordflow">return</span> IR_object_x2;</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  };</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span> </div><div class="line"><a name="l00343"></a><span class="lineno"><a class="line" href="class_w_i_i.html#ae148de3c99b3fb4ef65ea62d2848df7d"> 343</a></span>  uint16_t <a class="code" href="class_w_i_i.html#ae148de3c99b3fb4ef65ea62d2848df7d">getIRy2</a>() {</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="keywordflow">return</span> IR_object_y2;</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  };</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span> </div><div class="line"><a name="l00351"></a><span class="lineno"><a class="line" href="class_w_i_i.html#accf6ca623ffe93b3c78aaf60c7fd1f46"> 351</a></span>  uint8_t <a class="code" href="class_w_i_i.html#accf6ca623ffe93b3c78aaf60c7fd1f46">getIRs2</a>() {</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <span class="keywordflow">return</span> IR_object_s2;</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  };</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span> </div><div class="line"><a name="l00359"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a5648a03968d0c2331867f9b7bcaa3e3e"> 359</a></span>  uint16_t <a class="code" href="class_w_i_i.html#a5648a03968d0c2331867f9b7bcaa3e3e">getIRx3</a>() {</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <span class="keywordflow">return</span> IR_object_x3;</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  };</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span> </div><div class="line"><a name="l00367"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a5e778f879c6d0a73a94bd61e42d05b8d"> 367</a></span>  uint16_t <a class="code" href="class_w_i_i.html#a5e778f879c6d0a73a94bd61e42d05b8d">getIRy3</a>() {</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <span class="keywordflow">return</span> IR_object_y3;</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  };</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span> </div><div class="line"><a name="l00375"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a05841e1975803d561f80aeb3dd0a4a1e"> 375</a></span>  uint8_t <a class="code" href="class_w_i_i.html#a05841e1975803d561f80aeb3dd0a4a1e">getIRs3</a>() {</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="keywordflow">return</span> IR_object_s3;</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  };</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span> </div><div class="line"><a name="l00383"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a7a92d63c7cf9d3d5b38bdb9ad4d7ef66"> 383</a></span>  uint16_t <a class="code" href="class_w_i_i.html#a7a92d63c7cf9d3d5b38bdb9ad4d7ef66">getIRx4</a>() {</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  <span class="keywordflow">return</span> IR_object_x4;</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  };</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span> </div><div class="line"><a name="l00391"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a759837b933f63ce7c3235639be29250a"> 391</a></span>  uint16_t <a class="code" href="class_w_i_i.html#a759837b933f63ce7c3235639be29250a">getIRy4</a>() {</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <span class="keywordflow">return</span> IR_object_y4;</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  };</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span> </div><div class="line"><a name="l00399"></a><span class="lineno"><a class="line" href="class_w_i_i.html#aef56b9f37422b0a41642b39d10db0735"> 399</a></span>  uint8_t <a class="code" href="class_w_i_i.html#aef56b9f37422b0a41642b39d10db0735">getIRs4</a>() {</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <span class="keywordflow">return</span> IR_object_s4;</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  };</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span> </div><div class="line"><a name="l00408"></a><span class="lineno"><a class="line" href="class_w_i_i.html#a0a444d7e348026e062751cf723877e8f"> 408</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_w_i_i.html#a0a444d7e348026e062751cf723877e8f">isIRCameraEnabled</a>() {</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <span class="keywordflow">return</span> (wiiState & 0x08);</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  };</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span> </div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#a81e1eb4d9ef9999a84e71d764d54dff7">ACLData</a>(uint8_t* <a class="code" href="class_w_i_i.html#a81e1eb4d9ef9999a84e71d764d54dff7">ACLData</a>);</div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#ac5cd06f3e9aa2a0d9b9691f00c047e72">Run</a>();</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#a769ee2f9a0088da097438bc3cc677f7c">Reset</a>();</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  <span class="keywordtype">void</span> <a class="code" href="class_w_i_i.html#ab9449f87825417defb9b985d7181bbd6">onInit</a>();</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span> </div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  <span class="keywordtype">void</span> L2CAP_task(); <span class="comment">// L2CAP state machine</span></div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span> </div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  <span class="comment">/* Variables filled from HCI event management */</span></div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  <span class="keywordtype">bool</span> activeConnection; <span class="comment">// Used to indicate if it's already has established a connection</span></div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span> </div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  <span class="comment">/* Variables used by high level L2CAP task */</span></div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  uint8_t l2cap_state;</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  uint8_t wii_event_flag; <span class="comment">// Used for Wii flags</span></div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span> </div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  uint32_t ButtonState;</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  uint32_t OldButtonState;</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  uint32_t ButtonClickState;</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  uint16_t hatValues[4];</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span> </div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  uint8_t HIDBuffer[3]; <span class="comment">// Used to store HID commands</span></div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span> </div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  uint16_t stateCounter;</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  <span class="keywordtype">bool</span> unknownExtensionConnected;</div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  <span class="keywordtype">bool</span> extensionConnected;</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  <span class="keywordtype">bool</span> checkBatteryLevel; <span class="comment">// Set to true when getBatteryLevel() is called otherwise if should be false</span></div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  <span class="keywordtype">bool</span> motionPlusInside; <span class="comment">// True if it's a new Wiimote with the Motion Plus extension build into it</span></div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span> </div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  <span class="comment">/* L2CAP Channels */</span></div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  uint8_t control_scid[2]; <span class="comment">// L2CAP source CID for HID_Control</span></div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  uint8_t control_dcid[2]; <span class="comment">// 0x0060</span></div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  uint8_t interrupt_scid[2]; <span class="comment">// L2CAP source CID for HID_Interrupt</span></div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  uint8_t interrupt_dcid[2]; <span class="comment">// 0x0061</span></div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span> </div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  <span class="comment">/* HID Commands */</span></div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  <span class="keywordtype">void</span> HID_Command(uint8_t* data, uint8_t nbytes);</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  <span class="keywordtype">void</span> setReportMode(<span class="keywordtype">bool</span> continuous, uint8_t mode);</div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span> </div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  <span class="keywordtype">void</span> writeData(uint32_t offset, uint8_t size, uint8_t* data);</div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  <span class="keywordtype">void</span> initExtension1();</div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  <span class="keywordtype">void</span> initExtension2();</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span> </div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  <span class="keywordtype">void</span> statusRequest(); <span class="comment">// Used to update the Wiimote state and battery level</span></div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span> </div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  <span class="keywordtype">void</span> readData(uint32_t offset, uint16_t size, <span class="keywordtype">bool</span> EEPROM);</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  <span class="keywordtype">void</span> readExtensionType();</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  <span class="keywordtype">void</span> readCalData();</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  <span class="keywordtype">void</span> readWiiBalanceBoardCalibration(); <span class="comment">// Used by the library to read the Wii Balance Board calibration values</span></div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span> </div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  <span class="keywordtype">void</span> checkMotionPresent(); <span class="comment">// Used to see if a Motion Plus is connected to the Wiimote</span></div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  <span class="keywordtype">void</span> initMotionPlus();</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  <span class="keywordtype">void</span> activateMotionPlus();</div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span> </div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  uint16_t wiiBalanceBoardRaw[4]; <span class="comment">// Wii Balance Board raw values</span></div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  uint16_t wiiBalanceBoardCal[3][4]; <span class="comment">// Wii Balance Board calibration values</span></div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span> </div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  <span class="keywordtype">float</span> compPitch; <span class="comment">// Fusioned angle using a complimentary filter if the Motion Plus is connected</span></div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  <span class="keywordtype">float</span> compRoll; <span class="comment">// Fusioned angle using a complimentary filter if the Motion Plus is connected</span></div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span> </div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  <span class="keywordtype">bool</span> activateNunchuck;</div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="keywordtype">bool</span> motionValuesReset; <span class="comment">// This bool is true when the gyro values has been reset</span></div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  uint32_t timer;</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span> </div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  uint8_t wiiState; <span class="comment">// Stores the value in l2capinbuf[12] - (0x01: Battery is nearly empty), (0x02: An Extension Controller is connected), (0x04: Speaker enabled), (0x08: IR enabled), (0x10: LED1, 0x20: LED2, 0x40: LED3, 0x80: LED4)</span></div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  uint8_t batteryLevel;</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span> </div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span> <span class="preprocessor">#ifdef WIICAMERA</span></div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  <span class="comment">/* Private function and variables for the readings from the IR Camera */</span></div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  <span class="keywordtype">void</span> enableIRCamera1(); <span class="comment">// Sets bit 2 of output report 13</span></div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  <span class="keywordtype">void</span> enableIRCamera2(); <span class="comment">// Sets bit 2 of output report 1A</span></div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  <span class="keywordtype">void</span> writeSensitivityBlock1();</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  <span class="keywordtype">void</span> writeSensitivityBlock2();</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  <span class="keywordtype">void</span> write0x08Value();</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  <span class="keywordtype">void</span> setWiiModeNumber(uint8_t mode_number);</div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span> </div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  uint16_t IR_object_x1; <span class="comment">// IR x position 10 bits</span></div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  uint16_t IR_object_y1; <span class="comment">// IR y position 10 bits</span></div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  uint8_t IR_object_s1; <span class="comment">// IR size value</span></div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  uint16_t IR_object_x2;</div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  uint16_t IR_object_y2;</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  uint8_t IR_object_s2;</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  uint16_t IR_object_x3; <span class="comment">// IR x position 10 bits</span></div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  uint16_t IR_object_y3; <span class="comment">// IR y position 10 bits</span></div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  uint8_t IR_object_s3; <span class="comment">// IR size value</span></div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  uint16_t IR_object_x4;</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  uint16_t IR_object_y4;</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  uint8_t IR_object_s4;</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span> };</div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="class_w_i_i_html_ae25a8ea1b0713801e0209e795b4596fa"><div class="ttname"><a href="class_w_i_i.html#ae25a8ea1b0713801e0209e795b4596fa">WII::wiimoteConnected</a></div><div class="ttdeci">bool wiimoteConnected</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00191">Wii.h:191</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ab9449f87825417defb9b985d7181bbd6"><div class="ttname"><a href="class_w_i_i.html#ab9449f87825417defb9b985d7181bbd6">WII::onInit</a></div><div class="ttdeci">void onInit()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l01139">Wii.cpp:1139</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a749ea9dd39ba9a5320c5b24ce93bc544"><div class="ttname"><a href="class_w_i_i.html#a749ea9dd39ba9a5320c5b24ce93bc544">WII::gyroPitchRaw</a></div><div class="ttdeci">int16_t gyroPitchRaw</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00265">Wii.h:265</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a6c0971ae4c9ab752888a5871020c8331"><div class="ttname"><a href="class_w_i_i.html#a6c0971ae4c9ab752888a5871020c8331">WII::rollGyroScale</a></div><div class="ttdeci">uint16_t rollGyroScale</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00257">Wii.h:257</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a8e81eb7d2d78680df0dee1869695ff05"><div class="ttname"><a href="class_w_i_i.html#a8e81eb7d2d78680df0dee1869695ff05">WII::setLedToggle</a></div><div class="ttdeci">void setLedToggle(LEDEnum a)</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l00949">Wii.cpp:949</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ae7e07f929fba8f0ff061a1405baa2b58"><div class="ttname"><a href="class_w_i_i.html#ae7e07f929fba8f0ff061a1405baa2b58">WII::setLedRaw</a></div><div class="ttdeci">void setLedRaw(uint8_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l00927">Wii.cpp:927</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a8e34abf62a9631ca3efba0150ca91b93"><div class="ttname"><a href="class_w_i_i.html#a8e34abf62a9631ca3efba0150ca91b93">WII::getAnalogHat</a></div><div class="ttdeci">uint8_t getAnalogHat(HatEnum a)</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l01115">Wii.cpp:1115</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a0694969a30092b9b1dcb26120c7cff73"><div class="ttname"><a href="class_w_i_i.html#a0694969a30092b9b1dcb26120c7cff73">WII::yawGyroScale</a></div><div class="ttdeci">uint16_t yawGyroScale</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00258">Wii.h:258</a></div></div>
|
|
<div class="ttc" id="_wii_8h_html_ad79e49e27b025d6ac9d695c4816f84d4ae2ac743b5ba1752933e09f1dac48d97b"><div class="ttname"><a href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4ae2ac743b5ba1752933e09f1dac48d97b">HatY</a></div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00040">Wii.h:40</a></div></div>
|
|
<div class="ttc" id="class_b_t_d_html"><div class="ttname"><a href="class_b_t_d.html">BTD</a></div><div class="ttdef"><b>Definition:</b> <a href="_b_t_d_8h_source.html#l00201">BTD.h:201</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a2d8fd822e6e9c271d59c71dc7b757421"><div class="ttname"><a href="class_w_i_i.html#a2d8fd822e6e9c271d59c71dc7b757421">WII::getIRs1</a></div><div class="ttdeci">uint8_t getIRs1()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00327">Wii.h:327</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a05841e1975803d561f80aeb3dd0a4a1e"><div class="ttname"><a href="class_w_i_i.html#a05841e1975803d561f80aeb3dd0a4a1e">WII::getIRs3</a></div><div class="ttdeci">uint8_t getIRs3()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00375">Wii.h:375</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a81e1eb4d9ef9999a84e71d764d54dff7"><div class="ttname"><a href="class_w_i_i.html#a81e1eb4d9ef9999a84e71d764d54dff7">WII::ACLData</a></div><div class="ttdeci">void ACLData(uint8_t *ACLData)</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l00133">Wii.cpp:133</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a7a92d63c7cf9d3d5b38bdb9ad4d7ef66"><div class="ttname"><a href="class_w_i_i.html#a7a92d63c7cf9d3d5b38bdb9ad4d7ef66">WII::getIRx4</a></div><div class="ttdeci">uint16_t getIRx4()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00383">Wii.h:383</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_aa47478ccdfe009dabb7c21232e07bfd5"><div class="ttname"><a href="class_w_i_i.html#aa47478ccdfe009dabb7c21232e07bfd5">WII::pitchGyroSpeed</a></div><div class="ttdeci">float pitchGyroSpeed</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00249">Wii.h:249</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a0d9c869bd3677c4488a586c38558a137"><div class="ttname"><a href="class_w_i_i.html#a0d9c869bd3677c4488a586c38558a137">WII::setRumbleOn</a></div><div class="ttdeci">void setRumbleOn()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l00915">Wii.cpp:915</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a769ee2f9a0088da097438bc3cc677f7c"><div class="ttname"><a href="class_w_i_i.html#a769ee2f9a0088da097438bc3cc677f7c">WII::Reset</a></div><div class="ttdeci">void Reset()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l00101">Wii.cpp:101</a></div></div>
|
|
<div class="ttc" id="controller_enums_8h_html_a34dad8f0a0927471137c403216597093"><div class="ttname"><a href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093">AnalogHatEnum</a></div><div class="ttdeci">AnalogHatEnum</div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00157">controllerEnums.h:157</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a42af5743d2e3c2dbc01ea0b5531cc7c6"><div class="ttname"><a href="class_w_i_i.html#a42af5743d2e3c2dbc01ea0b5531cc7c6">WII::accZnunchuck</a></div><div class="ttdeci">int16_t accZnunchuck</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00236">Wii.h:236</a></div></div>
|
|
<div class="ttc" id="_wii_8h_html_a1f2e8277faa24c51a9c99f3fbac8d80ba591404ff43c722c0641186be037b181d"><div class="ttname"><a href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80ba591404ff43c722c0641186be037b181d">BotLeft</a></div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00048">Wii.h:48</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ae946f7d6e9ce89fb083f5f138c0736c2"><div class="ttname"><a href="class_w_i_i.html#ae946f7d6e9ce89fb083f5f138c0736c2">WII::getBatteryLevel</a></div><div class="ttdeci">uint8_t getBatteryLevel()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l00968">Wii.cpp:968</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_aabe4780f258dada1c0564a4ac7607370"><div class="ttname"><a href="class_w_i_i.html#aabe4780f258dada1c0564a4ac7607370">WII::disconnect</a></div><div class="ttdeci">void disconnect()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l00116">Wii.cpp:116</a></div></div>
|
|
<div class="ttc" id="_wii_8h_html_a1f2e8277faa24c51a9c99f3fbac8d80ba61f66ddc6702462a94d3e231f02b9017"><div class="ttname"><a href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80ba61f66ddc6702462a94d3e231f02b9017">TopLeft</a></div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00047">Wii.h:47</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a3a13b5931284d5bcd6647f681cda95b4"><div class="ttname"><a href="class_w_i_i.html#a3a13b5931284d5bcd6647f681cda95b4">WII::accXnunchuck</a></div><div class="ttdeci">int16_t accXnunchuck</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00236">Wii.h:236</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a8e9ac1d379db5c07c478401046a1c0ac"><div class="ttname"><a href="class_w_i_i.html#a8e9ac1d379db5c07c478401046a1c0ac">WII::getWiiState</a></div><div class="ttdeci">uint8_t getWiiState()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00189">Wii.h:189</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ae148de3c99b3fb4ef65ea62d2848df7d"><div class="ttname"><a href="class_w_i_i.html#ae148de3c99b3fb4ef65ea62d2848df7d">WII::getIRy2</a></div><div class="ttdeci">uint16_t getIRy2()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00343">Wii.h:343</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a0784c779ebeae2d459996c35a54ee3b8"><div class="ttname"><a href="class_w_i_i.html#a0784c779ebeae2d459996c35a54ee3b8">WII::gyroRollRaw</a></div><div class="ttdeci">int16_t gyroRollRaw</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00264">Wii.h:264</a></div></div>
|
|
<div class="ttc" id="controller_enums_8h_html_a70df64e026046bc352983127b7ae2cf0"><div class="ttname"><a href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a></div><div class="ttdeci">LEDEnum</div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00031">controllerEnums.h:31</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a3505abbc01c71d134ce301dfb7c0c5b5"><div class="ttname"><a href="class_w_i_i.html#a3505abbc01c71d134ce301dfb7c0c5b5">WII::IRinitialize</a></div><div class="ttdeci">void IRinitialize()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l01173">Wii.cpp:1173</a></div></div>
|
|
<div class="ttc" id="_wii_8h_html_ad79e49e27b025d6ac9d695c4816f84d4aed1a7a35bf1b9c1003fbe3dd4a61a06d"><div class="ttname"><a href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4aed1a7a35bf1b9c1003fbe3dd4a61a06d">HatX</a></div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00038">Wii.h:38</a></div></div>
|
|
<div class="ttc" id="controller_enums_8h_html"><div class="ttname"><a href="controller_enums_8h.html">controllerEnums.h</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a551e48a50c7b60722e807e68ae25f084"><div class="ttname"><a href="class_w_i_i.html#a551e48a50c7b60722e807e68ae25f084">WII::getIRx2</a></div><div class="ttdeci">uint16_t getIRx2()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00335">Wii.h:335</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_af380eb3bf65ce33a60aaf35f74a44f6d"><div class="ttname"><a href="class_w_i_i.html#af380eb3bf65ce33a60aaf35f74a44f6d">WII::getIRx1</a></div><div class="ttdeci">uint16_t getIRx1()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00311">Wii.h:311</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a841396b533cccccb05db37d35f6fef9c"><div class="ttname"><a href="class_w_i_i.html#a841396b533cccccb05db37d35f6fef9c">WII::setRumbleToggle</a></div><div class="ttdeci">void setRumbleToggle()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l00921">Wii.cpp:921</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_abbc31ecd4495d70258cfa095e34cb3c3"><div class="ttname"><a href="class_w_i_i.html#abbc31ecd4495d70258cfa095e34cb3c3">WII::gyroPitchZero</a></div><div class="ttdeci">int16_t gyroPitchZero</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00272">Wii.h:272</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_aea6ce6f3222df3e547e9957673c7a07a"><div class="ttname"><a href="class_w_i_i.html#aea6ce6f3222df3e547e9957673c7a07a">WII::pitchGyroScale</a></div><div class="ttdeci">uint16_t pitchGyroScale</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00256">Wii.h:256</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a2df9544486403b369836a10bf8af6dfa"><div class="ttname"><a href="class_w_i_i.html#a2df9544486403b369836a10bf8af6dfa">WII::getPitch</a></div><div class="ttdeci">float getPitch()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00110">Wii.h:110</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a6597cb0e240a8ccb4ebdb236daef712e"><div class="ttname"><a href="class_w_i_i.html#a6597cb0e240a8ccb4ebdb236daef712e">WII::WII</a></div><div class="ttdeci">WII(BTD *p, bool pair=false)</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l00085">Wii.cpp:85</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ad0a061fd6715690914c922911106b813"><div class="ttname"><a href="class_w_i_i.html#ad0a061fd6715690914c922911106b813">WII::getNunchuckPitch</a></div><div class="ttdeci">float getNunchuckPitch()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00224">Wii.h:224</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_aef56b9f37422b0a41642b39d10db0735"><div class="ttname"><a href="class_w_i_i.html#aef56b9f37422b0a41642b39d10db0735">WII::getIRs4</a></div><div class="ttdeci">uint8_t getIRs4()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00399">Wii.h:399</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a7ddd67a8797d582e324cffe2847a4288"><div class="ttname"><a href="class_w_i_i.html#a7ddd67a8797d582e324cffe2847a4288">WII::rollGyroSpeed</a></div><div class="ttdeci">float rollGyroSpeed</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00250">Wii.h:250</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a5e778f879c6d0a73a94bd61e42d05b8d"><div class="ttname"><a href="class_w_i_i.html#a5e778f879c6d0a73a94bd61e42d05b8d">WII::getIRy3</a></div><div class="ttdeci">uint16_t getIRy3()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00367">Wii.h:367</a></div></div>
|
|
<div class="ttc" id="class_bluetooth_service_html"><div class="ttname"><a href="class_bluetooth_service.html">BluetoothService</a></div><div class="ttdef"><b>Definition:</b> <a href="_b_t_d_8h_source.html#l00569">BTD.h:569</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a5d3b4a33ebc2ca9ebb154e10a05dbdd4"><div class="ttname"><a href="class_w_i_i.html#a5d3b4a33ebc2ca9ebb154e10a05dbdd4">WII::setLedStatus</a></div><div class="ttdeci">void setLedStatus()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l00955">Wii.cpp:955</a></div></div>
|
|
<div class="ttc" id="_wii_8h_html_a1f2e8277faa24c51a9c99f3fbac8d80b"><div class="ttname"><a href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80b">BalanceBoardEnum</a></div><div class="ttdeci">BalanceBoardEnum</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00044">Wii.h:44</a></div></div>
|
|
<div class="ttc" id="controller_enums_8h_html_a94f7389d205c78830a5441370d7870fd"><div class="ttname"><a href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a></div><div class="ttdeci">ButtonEnum</div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00078">controllerEnums.h:78</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ac94e8b9ce6d3f914f0e3ee4fba82efa3"><div class="ttname"><a href="class_w_i_i.html#ac94e8b9ce6d3f914f0e3ee4fba82efa3">WII::getButtonClick</a></div><div class="ttdeci">bool getButtonClick(ButtonEnum b)</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l01104">Wii.cpp:1104</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_aa2c14275d9e482e6add06cb34ccf1197"><div class="ttname"><a href="class_w_i_i.html#aa2c14275d9e482e6add06cb34ccf1197">WII::accYwiimote</a></div><div class="ttdeci">int16_t accYwiimote</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00230">Wii.h:230</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a461f5b7a5f2bc874e107fc776c284b16"><div class="ttname"><a href="class_w_i_i.html#a461f5b7a5f2bc874e107fc776c284b16">WII::wiiUProControllerConnected</a></div><div class="ttdeci">bool wiiUProControllerConnected</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00202">Wii.h:202</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ad8c2d7acc64b32272de0ec9c1675e1fa"><div class="ttname"><a href="class_w_i_i.html#ad8c2d7acc64b32272de0ec9c1675e1fa">WII::getYaw</a></div><div class="ttdeci">float getYaw()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00132">Wii.h:132</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a2c5c32841b020b248f757cb793acb936"><div class="ttname"><a href="class_w_i_i.html#a2c5c32841b020b248f757cb793acb936">WII::setRumbleOff</a></div><div class="ttdeci">void setRumbleOff()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l00909">Wii.cpp:909</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a1a1bdeef9ca069a1d14887182a2664a4"><div class="ttname"><a href="class_w_i_i.html#a1a1bdeef9ca069a1d14887182a2664a4">WII::wiiBalanceBoardConnected</a></div><div class="ttdeci">bool wiiBalanceBoardConnected</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00204">Wii.h:204</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_acd16def2e2100b0ccb590d57a50fa742"><div class="ttname"><a href="class_w_i_i.html#acd16def2e2100b0ccb590d57a50fa742">WII::gyroRoll</a></div><div class="ttdeci">float gyroRoll</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00243">Wii.h:243</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a6e97bfcfb134b63d7190ba1bc326e1d3"><div class="ttname"><a href="class_w_i_i.html#a6e97bfcfb134b63d7190ba1bc326e1d3">WII::setAllOff</a></div><div class="ttdeci">void setAllOff()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l00903">Wii.cpp:903</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ae3eb7942181a9c9e681e18bd5c8eaef4"><div class="ttname"><a href="class_w_i_i.html#ae3eb7942181a9c9e681e18bd5c8eaef4">WII::setLedOff</a></div><div class="ttdeci">void setLedOff()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00152">Wii.h:152</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a2e1236eaee605bd5a6fa581c501cf406"><div class="ttname"><a href="class_w_i_i.html#a2e1236eaee605bd5a6fa581c501cf406">WII::getWiimoteRoll</a></div><div class="ttdeci">float getWiimoteRoll()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00216">Wii.h:216</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a341b9a50bfdb18af9c66a3079e5804d9"><div class="ttname"><a href="class_w_i_i.html#a341b9a50bfdb18af9c66a3079e5804d9">WII::getIRy1</a></div><div class="ttdeci">uint16_t getIRy1()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00319">Wii.h:319</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a5648a03968d0c2331867f9b7bcaa3e3e"><div class="ttname"><a href="class_w_i_i.html#a5648a03968d0c2331867f9b7bcaa3e3e">WII::getIRx3</a></div><div class="ttdeci">uint16_t getIRx3()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00359">Wii.h:359</a></div></div>
|
|
<div class="ttc" id="class_bluetooth_service_html_aa67faf901f78a55a202945a20f6d778a"><div class="ttname"><a href="class_bluetooth_service.html#aa67faf901f78a55a202945a20f6d778a">BluetoothService::pBtd</a></div><div class="ttdeci">BTD * pBtd</div><div class="ttdef"><b>Definition:</b> <a href="_b_t_d_8h_source.html#l00612">BTD.h:612</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a7cb4cec343c65fd350e6b05043d7f1a8"><div class="ttname"><a href="class_w_i_i.html#a7cb4cec343c65fd350e6b05043d7f1a8">WII::nunchuckConnected</a></div><div class="ttdeci">bool nunchuckConnected</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00198">Wii.h:198</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a759837b933f63ce7c3235639be29250a"><div class="ttname"><a href="class_w_i_i.html#a759837b933f63ce7c3235639be29250a">WII::getIRy4</a></div><div class="ttdeci">uint16_t getIRy4()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00391">Wii.h:391</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ab4da8502042b18c71fbef321ed213d25"><div class="ttname"><a href="class_w_i_i.html#ab4da8502042b18c71fbef321ed213d25">WII::gyroPitch</a></div><div class="ttdeci">float gyroPitch</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00241">Wii.h:241</a></div></div>
|
|
<div class="ttc" id="_wii_8h_html_a1f2e8277faa24c51a9c99f3fbac8d80ba7e42a96f07eab63a8c9fa8a0526f34f4"><div class="ttname"><a href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80ba7e42a96f07eab63a8c9fa8a0526f34f4">TopRight</a></div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00045">Wii.h:45</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ab813b65548e827f41a5192fcc34056ea"><div class="ttname"><a href="class_w_i_i.html#ab813b65548e827f41a5192fcc34056ea">WII::gyroYawRaw</a></div><div class="ttdeci">int16_t gyroYawRaw</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00263">Wii.h:263</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ac3df2ac430112b4a6803d20105e88e67"><div class="ttname"><a href="class_w_i_i.html#ac3df2ac430112b4a6803d20105e88e67">WII::gyroYaw</a></div><div class="ttdeci">float gyroYaw</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00245">Wii.h:245</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a0a444d7e348026e062751cf723877e8f"><div class="ttname"><a href="class_w_i_i.html#a0a444d7e348026e062751cf723877e8f">WII::isIRCameraEnabled</a></div><div class="ttdeci">bool isIRCameraEnabled()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00408">Wii.h:408</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a4c373f956eddf2dd3a66d4a000459b85"><div class="ttname"><a href="class_w_i_i.html#a4c373f956eddf2dd3a66d4a000459b85">WII::yawGyroSpeed</a></div><div class="ttdeci">float yawGyroSpeed</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00251">Wii.h:251</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a39c3101b26cc549d5258018b3d05c608"><div class="ttname"><a href="class_w_i_i.html#a39c3101b26cc549d5258018b3d05c608">WII::pair</a></div><div class="ttdeci">void pair(void)</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00089">Wii.h:89</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a38507c76e5d7375a7971bc3a17b87338"><div class="ttname"><a href="class_w_i_i.html#a38507c76e5d7375a7971bc3a17b87338">WII::setLedOn</a></div><div class="ttdeci">void setLedOn(LEDEnum a)</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l00939">Wii.cpp:939</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a5f554cc77f108336981f7774761b9279"><div class="ttname"><a href="class_w_i_i.html#a5f554cc77f108336981f7774761b9279">WII::getWeightRaw</a></div><div class="ttdeci">uint16_t getWeightRaw(BalanceBoardEnum pos)</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00295">Wii.h:295</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a9463c27f6e683634571928a29f13824f"><div class="ttname"><a href="class_w_i_i.html#a9463c27f6e683634571928a29f13824f">WII::getRoll</a></div><div class="ttdeci">float getRoll()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00120">Wii.h:120</a></div></div>
|
|
<div class="ttc" id="_wii_8h_html_ad79e49e27b025d6ac9d695c4816f84d4"><div class="ttname"><a href="_wii_8h.html#ad79e49e27b025d6ac9d695c4816f84d4">HatEnum</a></div><div class="ttdeci">HatEnum</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00036">Wii.h:36</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ae657585a560e9d214e6c0219f8b47aeb"><div class="ttname"><a href="class_w_i_i.html#ae657585a560e9d214e6c0219f8b47aeb">WII::accYnunchuck</a></div><div class="ttdeci">int16_t accYnunchuck</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00236">Wii.h:236</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ad4f0d2456c56414f9b8013b85a1ee7d2"><div class="ttname"><a href="class_w_i_i.html#ad4f0d2456c56414f9b8013b85a1ee7d2">WII::gyroYawZero</a></div><div class="ttdeci">int16_t gyroYawZero</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00270">Wii.h:270</a></div></div>
|
|
<div class="ttc" id="_wii_8h_html_a1f2e8277faa24c51a9c99f3fbac8d80bab2a25b9fb1bdac62760c8cb2fb047437"><div class="ttname"><a href="_wii_8h.html#a1f2e8277faa24c51a9c99f3fbac8d80bab2a25b9fb1bdac62760c8cb2fb047437">BotRight</a></div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00046">Wii.h:46</a></div></div>
|
|
<div class="ttc" id="class_b_t_d_html_a6b66a27c0fd359e3129f53451352b55c"><div class="ttname"><a href="class_b_t_d.html#a6b66a27c0fd359e3129f53451352b55c">BTD::pairWithWiimote</a></div><div class="ttdeci">void pairWithWiimote()</div><div class="ttdef"><b>Definition:</b> <a href="_b_t_d_8h_source.html#l00467">BTD.h:467</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_accf6ca623ffe93b3c78aaf60c7fd1f46"><div class="ttname"><a href="class_w_i_i.html#accf6ca623ffe93b3c78aaf60c7fd1f46">WII::getIRs2</a></div><div class="ttdeci">uint8_t getIRs2()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00351">Wii.h:351</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html"><div class="ttname"><a href="class_w_i_i.html">WII</a></div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00056">Wii.h:56</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a7b183fe1809c1c595438e930b8f3f4de"><div class="ttname"><a href="class_w_i_i.html#a7b183fe1809c1c595438e930b8f3f4de">WII::getButtonPress</a></div><div class="ttdeci">bool getButtonPress(ButtonEnum b)</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l01097">Wii.cpp:1097</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a7646584a691279fbdb688e7f35f6a5b3"><div class="ttname"><a href="class_w_i_i.html#a7646584a691279fbdb688e7f35f6a5b3">WII::getWiimotePitch</a></div><div class="ttdeci">float getWiimotePitch()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00212">Wii.h:212</a></div></div>
|
|
<div class="ttc" id="_b_t_d_8h_html"><div class="ttname"><a href="_b_t_d_8h.html">BTD.h</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a72bd4fad2e524276712a154b8cc2a16c"><div class="ttname"><a href="class_w_i_i.html#a72bd4fad2e524276712a154b8cc2a16c">WII::motionPlusConnected</a></div><div class="ttdeci">bool motionPlusConnected</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00200">Wii.h:200</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a10d91cd5d73bc655be776b44d27004c9"><div class="ttname"><a href="class_w_i_i.html#a10d91cd5d73bc655be776b44d27004c9">WII::gyroRollZero</a></div><div class="ttdeci">int16_t gyroRollZero</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00271">Wii.h:271</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_a966e34bb434984de59706384c8efc1f1"><div class="ttname"><a href="class_w_i_i.html#a966e34bb434984de59706384c8efc1f1">WII::getTotalWeight</a></div><div class="ttdeci">float getTotalWeight()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l01163">Wii.cpp:1163</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ac2f0e9f96d0a4b0dd7044b7f3ffc24bd"><div class="ttname"><a href="class_w_i_i.html#ac2f0e9f96d0a4b0dd7044b7f3ffc24bd">WII::getNunchuckRoll</a></div><div class="ttdeci">float getNunchuckRoll()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00228">Wii.h:228</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ac5cd06f3e9aa2a0d9b9691f00c047e72"><div class="ttname"><a href="class_w_i_i.html#ac5cd06f3e9aa2a0d9b9691f00c047e72">WII::Run</a></div><div class="ttdeci">void Run()</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l00725">Wii.cpp:725</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_afaafee11ac191ba43b6a2b989cdd137c"><div class="ttname"><a href="class_w_i_i.html#afaafee11ac191ba43b6a2b989cdd137c">WII::accXwiimote</a></div><div class="ttdeci">int16_t accXwiimote</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00230">Wii.h:230</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_ac1fef8ad0f7d5c36fa61ee91422629f9"><div class="ttname"><a href="class_w_i_i.html#ac1fef8ad0f7d5c36fa61ee91422629f9">WII::getWeight</a></div><div class="ttdeci">float getWeight(BalanceBoardEnum pos)</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8cpp_source.html#l01150">Wii.cpp:1150</a></div></div>
|
|
<div class="ttc" id="class_w_i_i_html_acdebdaab544ffcecf8ab09adacbd28c8"><div class="ttname"><a href="class_w_i_i.html#acdebdaab544ffcecf8ab09adacbd28c8">WII::accZwiimote</a></div><div class="ttdeci">int16_t accZwiimote</div><div class="ttdef"><b>Definition:</b> <a href="_wii_8h_source.html#l00230">Wii.h:230</a></div></div>
|
|
</div><!-- fragment --></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.14
|
|
</small></address>
|
|
</body>
|
|
</html>
|