Deploy felis/USB_Host_Shield_2.0 to github.com/felis/USB_Host_Shield_2.0.git:gh-pages

This commit is contained in:
Deployment Bot (from Travis CI) 2019-01-18 00:43:00 +00:00
parent bfc048298d
commit 8092bb3aa1
3 changed files with 270 additions and 264 deletions

View file

@ -323,252 +323,260 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160;}</div> <div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160;}</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160;</div> <div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160;</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160;<span class="comment">/* Extracts endpoint information from config descriptor */</span></div> <div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160;<span class="comment">/* Extracts endpoint information from config descriptor */</span></div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a499cc378b8ae7d8fd63baa1b4dab97b5"> 239</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a499cc378b8ae7d8fd63baa1b4dab97b5">XBOXONE::EndpointXtract</a>(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, <span class="keyword">const</span> <a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a> *pep) {</div> <div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a499cc378b8ae7d8fd63baa1b4dab97b5"> 239</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a499cc378b8ae7d8fd63baa1b4dab97b5">XBOXONE::EndpointXtract</a>(uint8_t conf,</div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#ac6c75dcd5dfd5a9685a049f9bb8cb93f">bConfNum</a> = conf;</div> <div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; uint8_t iface __attribute__((unused)),</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; uint8_t index;</div> <div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; uint8_t alt __attribute__((unused)),</div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160;</div> <div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; uint8_t proto __attribute__((unused)),</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; <span class="keywordflow">if</span>((pep-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a8ee7f1bafac335258c6e742969387f57">bmAttributes</a> &amp; <a class="code" href="usb__ch9_8h.html#ac1b1bcdd6bd4e8c5a65052e914e028d5">bmUSB_TRANSFER_TYPE</a>) == <a class="code" href="usb__ch9_8h.html#ac80ae240a4a703b554aa8edee201495f">USB_TRANSFER_TYPE_INTERRUPT</a>) { <span class="comment">// Interrupt endpoint</span></div> <div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; <span class="keyword">const</span> <a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a> *pep)</div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; index = (pep-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a23fbb539d72d10a6cb12efedf7d3457c">bEndpointAddress</a> &amp; 0x80) == 0x80 ? <a class="code" href="_x_b_o_x_o_n_e_8h.html#a996610ea223dd4c7756ad3af2efa821b">XBOX_ONE_INPUT_PIPE</a> : <a class="code" href="_x_b_o_x_o_n_e_8h.html#a1a9da90da4584db2de7c84f45bdafc89">XBOX_ONE_OUTPUT_PIPE</a>; <span class="comment">// Set the endpoint index</span></div> <div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160;{</div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; } <span class="keywordflow">else</span></div> <div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; </div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; <span class="keywordflow">return</span>;</div> <div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#ac6c75dcd5dfd5a9685a049f9bb8cb93f">bConfNum</a> = conf;</div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160;</div> <div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; uint8_t index;</div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; <span class="comment">// Fill the rest of endpoint data structure</span></div> <div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160;</div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">epInfo</a>[index].<a class="code" href="struct_ep_info.html#a9f92be74c75c037b39e2cae1eb49b89b">epAddr</a> = (pep-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a23fbb539d72d10a6cb12efedf7d3457c">bEndpointAddress</a> &amp; 0x0F);</div> <div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; <span class="keywordflow">if</span>((pep-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a8ee7f1bafac335258c6e742969387f57">bmAttributes</a> &amp; <a class="code" href="usb__ch9_8h.html#ac1b1bcdd6bd4e8c5a65052e914e028d5">bmUSB_TRANSFER_TYPE</a>) == <a class="code" href="usb__ch9_8h.html#ac80ae240a4a703b554aa8edee201495f">USB_TRANSFER_TYPE_INTERRUPT</a>) { <span class="comment">// Interrupt endpoint</span></div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">epInfo</a>[index].<a class="code" href="struct_ep_info.html#aa2ca775b63736df4008e88da7dd4dddb">maxPktSize</a> = (uint8_t)pep-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#af34105fa6bd0029d9c6b73d85f7853c6">wMaxPacketSize</a>;</div> <div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; index = (pep-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a23fbb539d72d10a6cb12efedf7d3457c">bEndpointAddress</a> &amp; 0x80) == 0x80 ? <a class="code" href="_x_b_o_x_o_n_e_8h.html#a996610ea223dd4c7756ad3af2efa821b">XBOX_ONE_INPUT_PIPE</a> : <a class="code" href="_x_b_o_x_o_n_e_8h.html#a1a9da90da4584db2de7c84f45bdafc89">XBOX_ONE_OUTPUT_PIPE</a>; <span class="comment">// Set the endpoint index</span></div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160;#ifdef EXTRADEBUG</div> <div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; } <span class="keywordflow">else</span></div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a2eea30f2ce47380fc414d4fc4231335b">PrintEndpointDescriptor</a>(pep);</div> <div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160;<span class="preprocessor">#endif</span></div> <div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160;</div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160;<span class="preprocessor"></span> <span class="keywordflow">if</span>(pollInterval &lt; pep-&gt;bInterval) <span class="comment">// Set the polling interval as the largest polling interval obtained from endpoints</span></div> <div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; <span class="comment">// Fill the rest of endpoint data structure</span></div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; pollInterval = pep-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a95cd9669dee9cab375a7c5e62284a01b">bInterval</a>;</div> <div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">epInfo</a>[index].<a class="code" href="struct_ep_info.html#a9f92be74c75c037b39e2cae1eb49b89b">epAddr</a> = (pep-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a23fbb539d72d10a6cb12efedf7d3457c">bEndpointAddress</a> &amp; 0x0F);</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a958f262ed66dd5bf0ad7dfd54a369659">bNumEP</a>++;</div> <div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">epInfo</a>[index].<a class="code" href="struct_ep_info.html#aa2ca775b63736df4008e88da7dd4dddb">maxPktSize</a> = (uint8_t)pep-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#af34105fa6bd0029d9c6b73d85f7853c6">wMaxPacketSize</a>;</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160;}</div> <div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160;#ifdef EXTRADEBUG</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160;</div> <div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a2eea30f2ce47380fc414d4fc4231335b">PrintEndpointDescriptor</a>(pep);</div>
<div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a2eea30f2ce47380fc414d4fc4231335b"> 259</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a2eea30f2ce47380fc414d4fc4231335b">XBOXONE::PrintEndpointDescriptor</a>(<span class="keyword">const</span> <a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a>* ep_ptr) {</div> <div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160;<span class="preprocessor">#ifdef EXTRADEBUG</span></div> <div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160;<span class="preprocessor"></span> <span class="keywordflow">if</span>(pollInterval &lt; pep-&gt;bInterval) <span class="comment">// Set the polling interval as the largest polling interval obtained from endpoints</span></div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160;<span class="preprocessor"></span> <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nEndpoint descriptor:&quot;</span>), 0x80);</div> <div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; pollInterval = pep-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a95cd9669dee9cab375a7c5e62284a01b">bInterval</a>;</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nLength:\t\t&quot;</span>), 0x80);</div> <div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a958f262ed66dd5bf0ad7dfd54a369659">bNumEP</a>++;</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; D_PrintHex&lt;uint8_t &gt; (ep_ptr-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a55263a9cc9dc17abc37226ac8a471ad0">bLength</a>, 0x80);</div> <div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160;}</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nType:\t\t&quot;</span>), 0x80);</div> <div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160;</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; D_PrintHex&lt;uint8_t &gt; (ep_ptr-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#af39d036ab903a96b9d4d56b879555d6c">bDescriptorType</a>, 0x80);</div> <div class="line"><a name="l00265"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a2eea30f2ce47380fc414d4fc4231335b"> 265</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a2eea30f2ce47380fc414d4fc4231335b">XBOXONE::PrintEndpointDescriptor</a>(<span class="keyword">const</span> <a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a>* ep_ptr</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nAddress:\t&quot;</span>), 0x80);</div> <div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; __attribute__((unused)))</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; D_PrintHex&lt;uint8_t &gt; (ep_ptr-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a23fbb539d72d10a6cb12efedf7d3457c">bEndpointAddress</a>, 0x80);</div> <div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160;{</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nAttributes:\t&quot;</span>), 0x80);</div> <div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160;<span class="preprocessor">#ifdef EXTRADEBUG</span></div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; D_PrintHex&lt;uint8_t &gt; (ep_ptr-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a8ee7f1bafac335258c6e742969387f57">bmAttributes</a>, 0x80);</div> <div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160;<span class="preprocessor"></span> <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nEndpoint descriptor:&quot;</span>), 0x80);</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nMaxPktSize:\t&quot;</span>), 0x80);</div> <div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nLength:\t\t&quot;</span>), 0x80);</div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; D_PrintHex&lt;uint16_t &gt; (ep_ptr-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#af34105fa6bd0029d9c6b73d85f7853c6">wMaxPacketSize</a>, 0x80);</div> <div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; D_PrintHex&lt;uint8_t &gt; (ep_ptr-&gt;bLength, 0x80);</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nPoll Intrv:\t&quot;</span>), 0x80);</div> <div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nType:\t\t&quot;</span>), 0x80);</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; D_PrintHex&lt;uint8_t &gt; (ep_ptr-&gt;<a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a95cd9669dee9cab375a7c5e62284a01b">bInterval</a>, 0x80);</div> <div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; D_PrintHex&lt;uint8_t &gt; (ep_ptr-&gt;bDescriptorType, 0x80);</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160;<span class="preprocessor">#endif</span></div> <div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nAddress:\t&quot;</span>), 0x80);</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160;<span class="preprocessor"></span>}</div> <div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; D_PrintHex&lt;uint8_t &gt; (ep_ptr-&gt;bEndpointAddress, 0x80);</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160;</div> <div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nAttributes:\t&quot;</span>), 0x80);</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160;<span class="comment">/* Performs a cleanup after failed Init() attempt */</span></div> <div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160; D_PrintHex&lt;uint8_t &gt; (ep_ptr-&gt;bmAttributes, 0x80);</div>
<div class="line"><a name="l00278"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#ab836f2e18a00ef89054d66fb2023ba64"> 278</a></span>&#160;uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#ab836f2e18a00ef89054d66fb2023ba64">XBOXONE::Release</a>() {</div> <div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nMaxPktSize:\t&quot;</span>), 0x80);</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#ac055f7c7156ef515fe362e751fe1bae3">XboxOneConnected</a> = <span class="keyword">false</span>;</div> <div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; D_PrintHex&lt;uint16_t &gt; (ep_ptr-&gt;wMaxPacketSize, 0x80);</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">pUsb</a>-&gt;<a class="code" href="class_u_s_b.html#a66ab8f5eda239e761d5a48741ea1f9d4">GetAddressPool</a>().<a class="code" href="class_address_pool.html#a15fde13223dcb1da89305ad229763562">FreeAddress</a>(<a class="code" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">bAddress</a>);</div> <div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nPoll Intrv:\t&quot;</span>), 0x80);</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">bAddress</a> = 0; <span class="comment">// Clear device address</span></div> <div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; D_PrintHex&lt;uint8_t &gt; (ep_ptr-&gt;bInterval, 0x80);</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a958f262ed66dd5bf0ad7dfd54a369659">bNumEP</a> = 1; <span class="comment">// Must have to be reset to 1</span></div> <div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284">qNextPollTime</a> = 0; <span class="comment">// Reset next poll time</span></div> <div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160;<span class="preprocessor"></span>}</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; pollInterval = 0;</div> <div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160;</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; bPollEnable = <span class="keyword">false</span>;</div> <div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160;<span class="comment">/* Performs a cleanup after failed Init() attempt */</span></div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160;<span class="preprocessor">#ifdef DEBUG_USB_HOST</span></div> <div class="line"><a name="l00286"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#ab836f2e18a00ef89054d66fb2023ba64"> 286</a></span>&#160;uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#ab836f2e18a00ef89054d66fb2023ba64">XBOXONE::Release</a>() {</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160;<span class="preprocessor"></span> <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nXbox One Controller Disconnected\r\n&quot;</span>), 0x80);</div> <div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#ac055f7c7156ef515fe362e751fe1bae3">XboxOneConnected</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160;<span class="preprocessor">#endif</span></div> <div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">pUsb</a>-&gt;<a class="code" href="class_u_s_b.html#a66ab8f5eda239e761d5a48741ea1f9d4">GetAddressPool</a>().<a class="code" href="class_address_pool.html#a15fde13223dcb1da89305ad229763562">FreeAddress</a>(<a class="code" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">bAddress</a>);</div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160;<span class="preprocessor"></span> <span class="keywordflow">return</span> 0;</div> <div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">bAddress</a> = 0; <span class="comment">// Clear device address</span></div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160;}</div> <div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a958f262ed66dd5bf0ad7dfd54a369659">bNumEP</a> = 1; <span class="comment">// Must have to be reset to 1</span></div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160;</div> <div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284">qNextPollTime</a> = 0; <span class="comment">// Reset next poll time</span></div>
<div class="line"><a name="l00292"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#ac645e477bde4c2c2674ad8916f749651"> 292</a></span>&#160;uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#ac645e477bde4c2c2674ad8916f749651">XBOXONE::Poll</a>() {</div> <div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160; pollInterval = 0;</div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160; uint8_t rcode = 0;</div> <div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160; bPollEnable = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160;</div> <div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160;<span class="preprocessor">#ifdef DEBUG_USB_HOST</span></div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160; <span class="keywordflow">if</span>(!bPollEnable)</div> <div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160;<span class="preprocessor"></span> <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nXbox One Controller Disconnected\r\n&quot;</span>), 0x80);</div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160; <span class="keywordflow">return</span> 0;</div> <div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160;</div> <div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160;<span class="preprocessor"></span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160; <span class="keywordflow">if</span>((int32_t)((uint32_t)millis() - <a class="code" href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284">qNextPollTime</a>) &gt;= 0<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdaef31cc6fe9479955961311ee18ac205f">L</a>) { <span class="comment">// Do not poll if shorter than polling interval</span></div> <div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160;}</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284">qNextPollTime</a> = (uint32_t)millis() + pollInterval; <span class="comment">// Set new poll time</span></div> <div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160;</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; uint16_t length = (uint16_t)<a class="code" href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">epInfo</a>[ <a class="code" href="_x_b_o_x_o_n_e_8h.html#a996610ea223dd4c7756ad3af2efa821b">XBOX_ONE_INPUT_PIPE</a> ].maxPktSize; <span class="comment">// Read the maximum packet size from the endpoint</span></div> <div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#ac645e477bde4c2c2674ad8916f749651"> 300</a></span>&#160;uint8_t <a class="code" href="class_x_b_o_x_o_n_e.html#ac645e477bde4c2c2674ad8916f749651">XBOXONE::Poll</a>() {</div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; uint8_t rcode = <a class="code" href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">pUsb</a>-&gt;<a class="code" href="class_u_s_b.html#aead4d2040c641d55176854b236804088">inTransfer</a>(<a class="code" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">bAddress</a>, <a class="code" href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">epInfo</a>[ <a class="code" href="_x_b_o_x_o_n_e_8h.html#a996610ea223dd4c7756ad3af2efa821b">XBOX_ONE_INPUT_PIPE</a> ].epAddr, &amp;length, readBuf, pollInterval);</div> <div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; uint8_t rcode = 0;</div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160; <span class="keywordflow">if</span>(!rcode) {</div> <div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160;</div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; readReport();</div> <div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; <span class="keywordflow">if</span>(!bPollEnable)</div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160;<span class="preprocessor">#ifdef PRINTREPORT // Uncomment &quot;#define PRINTREPORT&quot; to print the report send by the Xbox ONE Controller</span></div> <div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160;<span class="preprocessor"></span> <span class="keywordflow">for</span>(uint8_t i = 0; i &lt; length; i++) {</div> <div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160;</div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160; D_PrintHex&lt;uint8_t &gt; (readBuf[i], 0x80);</div> <div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160; <span class="keywordflow">if</span>((int32_t)((uint32_t)millis() - <a class="code" href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284">qNextPollTime</a>) &gt;= 0<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdaef31cc6fe9479955961311ee18ac205f">L</a>) { <span class="comment">// Do not poll if shorter than polling interval</span></div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot; &quot;</span>), 0x80);</div> <div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160; <a class="code" href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284">qNextPollTime</a> = (uint32_t)millis() + pollInterval; <span class="comment">// Set new poll time</span></div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160; }</div> <div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160; uint16_t length = (uint16_t)<a class="code" href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">epInfo</a>[ <a class="code" href="_x_b_o_x_o_n_e_8h.html#a996610ea223dd4c7756ad3af2efa821b">XBOX_ONE_INPUT_PIPE</a> ].maxPktSize; <span class="comment">// Read the maximum packet size from the endpoint</span></div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\n&quot;</span>), 0x80);</div> <div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160; uint8_t rcode = <a class="code" href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">pUsb</a>-&gt;<a class="code" href="class_u_s_b.html#aead4d2040c641d55176854b236804088">inTransfer</a>(<a class="code" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">bAddress</a>, <a class="code" href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">epInfo</a>[ <a class="code" href="_x_b_o_x_o_n_e_8h.html#a996610ea223dd4c7756ad3af2efa821b">XBOX_ONE_INPUT_PIPE</a> ].epAddr, &amp;length, readBuf, pollInterval);</div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160;<span class="preprocessor">#endif</span></div> <div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160; <span class="keywordflow">if</span>(!rcode) {</div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160;<span class="preprocessor"></span> }</div> <div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160; readReport();</div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160;<span class="preprocessor">#ifdef DEBUG_USB_HOST</span></div> <div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160;<span class="preprocessor">#ifdef PRINTREPORT // Uncomment &quot;#define PRINTREPORT&quot; to print the report send by the Xbox ONE Controller</span></div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160;<span class="preprocessor"></span> <span class="keywordflow">else</span> <span class="keywordflow">if</span>(rcode != <a class="code" href="max3421e_8h.html#ab44a7968d08016b58d98951059c37076">hrNAK</a>) { <span class="comment">// Not a matter of no update to send</span></div> <div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160;<span class="preprocessor"></span> <span class="keywordflow">for</span>(uint8_t i = 0; i &lt; length; i++) {</div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nXbox One Poll Failed, error code: &quot;</span>), 0x80);</div> <div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160; D_PrintHex&lt;uint8_t &gt; (readBuf[i], 0x80);</div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; <a class="code" href="message_8h.html#a22695bdc18ebde4a87dbe8633cb39593">NotifyFail</a>(rcode);</div> <div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot; &quot;</span>), 0x80);</div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160; }</div> <div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160; }</div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160;<span class="preprocessor">#endif</span></div> <div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\n&quot;</span>), 0x80);</div>
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160;<span class="preprocessor"></span> }</div> <div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160; <span class="keywordflow">return</span> rcode;</div> <div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160;<span class="preprocessor"></span> }</div>
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160;}</div> <div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160;<span class="preprocessor">#ifdef DEBUG_USB_HOST</span></div>
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160;</div> <div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160;<span class="preprocessor"></span> <span class="keywordflow">else</span> <span class="keywordflow">if</span>(rcode != <a class="code" href="max3421e_8h.html#ab44a7968d08016b58d98951059c37076">hrNAK</a>) { <span class="comment">// Not a matter of no update to send</span></div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160;<span class="keywordtype">void</span> XBOXONE::readReport() {</div> <div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160; <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nXbox One Poll Failed, error code: &quot;</span>), 0x80);</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160; <span class="keywordflow">if</span>(readBuf[0] == 0x07) {</div> <div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160; <a class="code" href="message_8h.html#a22695bdc18ebde4a87dbe8633cb39593">NotifyFail</a>(rcode);</div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160; <span class="comment">// The XBOX button has a separate message</span></div> <div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160; }</div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160; <span class="keywordflow">if</span>(readBuf[4] == 1)</div> <div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160; ButtonState |= <a class="code" href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a>(&amp;<a class="code" href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a>[<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdad4689acdcdf0e61373d52de14ff07eae">XBOX</a>]);</div> <div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160;<span class="preprocessor"></span> }</div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; <span class="keywordflow">else</span></div> <div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; <span class="keywordflow">return</span> rcode;</div>
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>&#160; ButtonState &amp;= ~<a class="code" href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a>(&amp;<a class="code" href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a>[<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdad4689acdcdf0e61373d52de14ff07eae">XBOX</a>]);</div> <div class="line"><a name="l00328"></a><span class="lineno"> 328</span>&#160;}</div>
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160;</div> <div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160;</div>
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160; <span class="keywordflow">if</span>(ButtonState != OldButtonState) {</div> <div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160;<span class="keywordtype">void</span> XBOXONE::readReport() {</div>
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160; ButtonClickState = ButtonState &amp; ~OldButtonState; <span class="comment">// Update click state variable</span></div> <div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160; <span class="keywordflow">if</span>(readBuf[0] == 0x07) {</div>
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160; OldButtonState = ButtonState;</div> <div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160; <span class="comment">// The XBOX button has a separate message</span></div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160; }</div> <div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160; <span class="keywordflow">if</span>(readBuf[4] == 1)</div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160; }</div> <div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160; ButtonState |= <a class="code" href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a>(&amp;<a class="code" href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a>[<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdad4689acdcdf0e61373d52de14ff07eae">XBOX</a>]);</div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160; <span class="keywordflow">if</span>(readBuf[0] != 0x20) { <span class="comment">// Check if it&#39;s the correct report, otherwise return - the controller also sends different status reports</span></div> <div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160;<span class="preprocessor">#ifdef EXTRADEBUG</span></div> <div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160; ButtonState &amp;= ~<a class="code" href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a>(&amp;<a class="code" href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a>[<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdad4689acdcdf0e61373d52de14ff07eae">XBOX</a>]);</div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160;<span class="preprocessor"></span> <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nXbox Poll: &quot;</span>), 0x80);</div> <div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160;</div>
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160; D_PrintHex&lt;uint8_t &gt; (readBuf[0], 0x80); <span class="comment">// 0x03 is a heart beat report!</span></div> <div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160; <span class="keywordflow">if</span>(ButtonState != OldButtonState) {</div>
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>&#160;<span class="preprocessor">#endif</span></div> <div class="line"><a name="l00339"></a><span class="lineno"> 339</span>&#160; ButtonClickState = ButtonState &amp; ~OldButtonState; <span class="comment">// Update click state variable</span></div>
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>&#160;<span class="preprocessor"></span> <span class="keywordflow">return</span>;</div> <div class="line"><a name="l00340"></a><span class="lineno"> 340</span>&#160; OldButtonState = ButtonState;</div>
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160; }</div> <div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160; }</div>
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160;</div> <div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160; }</div>
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160; uint16_t xbox = ButtonState &amp; <a class="code" href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a>(&amp;<a class="code" href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a>[<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdad4689acdcdf0e61373d52de14ff07eae">XBOX</a>]); <span class="comment">// Since the XBOX button is separate, save it and add it back in</span></div> <div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160; <span class="keywordflow">if</span>(readBuf[0] != 0x20) { <span class="comment">// Check if it&#39;s the correct report, otherwise return - the controller also sends different status reports</span></div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160; <span class="comment">// xbox button from before, dpad, abxy, start/back, sync, stick click, shoulder buttons</span></div> <div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160;<span class="preprocessor">#ifdef EXTRADEBUG</span></div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160; ButtonState = xbox | (((uint16_t)readBuf[5] &amp; 0xF) &lt;&lt; 8) | (readBuf[4] &amp; 0xF0) | (((uint16_t)readBuf[4] &amp; 0x0C) &lt;&lt; 10) | ((readBuf[4] &amp; 0x01) &lt;&lt; 3) | (((uint16_t)readBuf[5] &amp; 0xC0) &lt;&lt; 8) | ((readBuf[5] &amp; 0x30) &gt;&gt; 4);</div> <div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160;<span class="preprocessor"></span> <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nXbox Poll: &quot;</span>), 0x80);</div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160;</div> <div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160; D_PrintHex&lt;uint8_t &gt; (readBuf[0], 0x80); <span class="comment">// 0x03 is a heart beat report!</span></div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160; triggerValue[0] = (uint16_t)(((uint16_t)readBuf[7] &lt;&lt; 8) | readBuf[6]);</div> <div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>&#160; triggerValue[1] = (uint16_t)(((uint16_t)readBuf[9] &lt;&lt; 8) | readBuf[8]);</div> <div class="line"><a name="l00348"></a><span class="lineno"> 348</span>&#160;<span class="preprocessor"></span> <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>&#160;</div> <div class="line"><a name="l00349"></a><span class="lineno"> 349</span>&#160; }</div>
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160; hatValue[<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093a383cb8895dd296b7f69ce845ed16b0ca">LeftHatX</a>] = (int16_t)(((uint16_t)readBuf[11] &lt;&lt; 8) | readBuf[10]);</div> <div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160;</div>
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160; hatValue[<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093af3f3925efa9762c4e9e71ac7da7a94a3">LeftHatY</a>] = (int16_t)(((uint16_t)readBuf[13] &lt;&lt; 8) | readBuf[12]);</div> <div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160; uint16_t xbox = ButtonState &amp; <a class="code" href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a>(&amp;<a class="code" href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a>[<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdad4689acdcdf0e61373d52de14ff07eae">XBOX</a>]); <span class="comment">// Since the XBOX button is separate, save it and add it back in</span></div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160; hatValue[<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093aaeb027a0ae5bbc6ba25e1c78a6486c7b">RightHatX</a>] = (int16_t)(((uint16_t)readBuf[15] &lt;&lt; 8) | readBuf[14]);</div> <div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160; <span class="comment">// xbox button from before, dpad, abxy, start/back, sync, stick click, shoulder buttons</span></div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160; hatValue[<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093a7f1fb2db5381286691f4dec179ed5d5a">RightHatY</a>] = (int16_t)(((uint16_t)readBuf[17] &lt;&lt; 8) | readBuf[16]);</div> <div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160; ButtonState = xbox | (((uint16_t)readBuf[5] &amp; 0xF) &lt;&lt; 8) | (readBuf[4] &amp; 0xF0) | (((uint16_t)readBuf[4] &amp; 0x0C) &lt;&lt; 10) | ((readBuf[4] &amp; 0x01) &lt;&lt; 3) | (((uint16_t)readBuf[5] &amp; 0xC0) &lt;&lt; 8) | ((readBuf[5] &amp; 0x30) &gt;&gt; 4);</div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160;</div> <div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160;</div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160; <span class="comment">//Notify(PSTR(&quot;\r\nButtonState&quot;), 0x80);</span></div> <div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160; triggerValue[0] = (uint16_t)(((uint16_t)readBuf[7] &lt;&lt; 8) | readBuf[6]);</div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160; <span class="comment">//PrintHex&lt;uint16_t&gt;(ButtonState, 0x80);</span></div> <div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160; triggerValue[1] = (uint16_t)(((uint16_t)readBuf[9] &lt;&lt; 8) | readBuf[8]);</div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160;</div> <div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160;</div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>&#160; <span class="keywordflow">if</span>(ButtonState != OldButtonState) {</div> <div class="line"><a name="l00358"></a><span class="lineno"> 358</span>&#160; hatValue[<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093a383cb8895dd296b7f69ce845ed16b0ca">LeftHatX</a>] = (int16_t)(((uint16_t)readBuf[11] &lt;&lt; 8) | readBuf[10]);</div>
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>&#160; ButtonClickState = ButtonState &amp; ~OldButtonState; <span class="comment">// Update click state variable</span></div> <div class="line"><a name="l00359"></a><span class="lineno"> 359</span>&#160; hatValue[<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093af3f3925efa9762c4e9e71ac7da7a94a3">LeftHatY</a>] = (int16_t)(((uint16_t)readBuf[13] &lt;&lt; 8) | readBuf[12]);</div>
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>&#160; OldButtonState = ButtonState;</div> <div class="line"><a name="l00360"></a><span class="lineno"> 360</span>&#160; hatValue[<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093aaeb027a0ae5bbc6ba25e1c78a6486c7b">RightHatX</a>] = (int16_t)(((uint16_t)readBuf[15] &lt;&lt; 8) | readBuf[14]);</div>
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>&#160; }</div> <div class="line"><a name="l00361"></a><span class="lineno"> 361</span>&#160; hatValue[<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093a7f1fb2db5381286691f4dec179ed5d5a">RightHatY</a>] = (int16_t)(((uint16_t)readBuf[17] &lt;&lt; 8) | readBuf[16]);</div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160;</div> <div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160;</div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160; <span class="comment">// Handle click detection for triggers</span></div> <div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160; <span class="comment">//Notify(PSTR(&quot;\r\nButtonState&quot;), 0x80);</span></div>
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>&#160; <span class="keywordflow">if</span>(triggerValue[0] != 0 &amp;&amp; triggerValueOld[0] == 0)</div> <div class="line"><a name="l00364"></a><span class="lineno"> 364</span>&#160; <span class="comment">//PrintHex&lt;uint16_t&gt;(ButtonState, 0x80);</span></div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>&#160; L2Clicked = <span class="keyword">true</span>;</div> <div class="line"><a name="l00365"></a><span class="lineno"> 365</span>&#160;</div>
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>&#160; triggerValueOld[0] = triggerValue[0];</div> <div class="line"><a name="l00366"></a><span class="lineno"> 366</span>&#160; <span class="keywordflow">if</span>(ButtonState != OldButtonState) {</div>
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>&#160; <span class="keywordflow">if</span>(triggerValue[1] != 0 &amp;&amp; triggerValueOld[1] == 0)</div> <div class="line"><a name="l00367"></a><span class="lineno"> 367</span>&#160; ButtonClickState = ButtonState &amp; ~OldButtonState; <span class="comment">// Update click state variable</span></div>
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>&#160; R2Clicked = <span class="keyword">true</span>;</div> <div class="line"><a name="l00368"></a><span class="lineno"> 368</span>&#160; OldButtonState = ButtonState;</div>
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>&#160; triggerValueOld[1] = triggerValue[1];</div> <div class="line"><a name="l00369"></a><span class="lineno"> 369</span>&#160; }</div>
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>&#160;}</div> <div class="line"><a name="l00370"></a><span class="lineno"> 370</span>&#160;</div>
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160;</div> <div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160; <span class="comment">// Handle click detection for triggers</span></div>
<div class="line"><a name="l00372"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4"> 372</a></span>&#160;uint16_t <a class="code" href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4">XBOXONE::getButtonPress</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b) {</div> <div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160; <span class="keywordflow">if</span>(triggerValue[0] != 0 &amp;&amp; triggerValueOld[0] == 0)</div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160; <span class="keywordflow">if</span>(b == <a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066">L2</a>) <span class="comment">// These are analog buttons</span></div> <div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160; L2Clicked = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160; <span class="keywordflow">return</span> triggerValue[0];</div> <div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160; triggerValueOld[0] = triggerValue[0];</div>
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span>(b == <a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a">R2</a>)</div> <div class="line"><a name="l00375"></a><span class="lineno"> 375</span>&#160; <span class="keywordflow">if</span>(triggerValue[1] != 0 &amp;&amp; triggerValueOld[1] == 0)</div>
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>&#160; <span class="keywordflow">return</span> triggerValue[1];</div> <div class="line"><a name="l00376"></a><span class="lineno"> 376</span>&#160; R2Clicked = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>&#160; <span class="keywordflow">return</span> (<span class="keywordtype">bool</span>)(ButtonState &amp; ((uint16_t)<a class="code" href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a>(&amp;<a class="code" href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a>[(uint8_t)b])));</div> <div class="line"><a name="l00377"></a><span class="lineno"> 377</span>&#160; triggerValueOld[1] = triggerValue[1];</div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>&#160;}</div> <div class="line"><a name="l00378"></a><span class="lineno"> 378</span>&#160;}</div>
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>&#160;</div> <div class="line"><a name="l00379"></a><span class="lineno"> 379</span>&#160;</div>
<div class="line"><a name="l00380"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811"> 380</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811">XBOXONE::getButtonClick</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b) {</div> <div class="line"><a name="l00380"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4"> 380</a></span>&#160;uint16_t <a class="code" href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4">XBOXONE::getButtonPress</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b) {</div>
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>&#160; <span class="keywordflow">if</span>(b == <a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066">L2</a>) {</div> <div class="line"><a name="l00381"></a><span class="lineno"> 381</span>&#160; <span class="keywordflow">if</span>(b == <a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066">L2</a>) <span class="comment">// These are analog buttons</span></div>
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>&#160; <span class="keywordflow">if</span>(L2Clicked) {</div> <div class="line"><a name="l00382"></a><span class="lineno"> 382</span>&#160; <span class="keywordflow">return</span> triggerValue[0];</div>
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>&#160; L2Clicked = <span class="keyword">false</span>;</div> <div class="line"><a name="l00383"></a><span class="lineno"> 383</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span>(b == <a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a">R2</a>)</div>
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div> <div class="line"><a name="l00384"></a><span class="lineno"> 384</span>&#160; <span class="keywordflow">return</span> triggerValue[1];</div>
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>&#160; }</div> <div class="line"><a name="l00385"></a><span class="lineno"> 385</span>&#160; <span class="keywordflow">return</span> (<span class="keywordtype">bool</span>)(ButtonState &amp; ((uint16_t)<a class="code" href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a>(&amp;<a class="code" href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a>[(uint8_t)b])));</div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> <div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160;}</div>
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>&#160; } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(b == <a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a">R2</a>) {</div> <div class="line"><a name="l00387"></a><span class="lineno"> 387</span>&#160;</div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>&#160; <span class="keywordflow">if</span>(R2Clicked) {</div> <div class="line"><a name="l00388"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811"> 388</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811">XBOXONE::getButtonClick</a>(<a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b) {</div>
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>&#160; R2Clicked = <span class="keyword">false</span>;</div> <div class="line"><a name="l00389"></a><span class="lineno"> 389</span>&#160; <span class="keywordflow">if</span>(b == <a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066">L2</a>) {</div>
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div> <div class="line"><a name="l00390"></a><span class="lineno"> 390</span>&#160; <span class="keywordflow">if</span>(L2Clicked) {</div>
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>&#160; }</div> <div class="line"><a name="l00391"></a><span class="lineno"> 391</span>&#160; L2Clicked = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> <div class="line"><a name="l00392"></a><span class="lineno"> 392</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>&#160; }</div> <div class="line"><a name="l00393"></a><span class="lineno"> 393</span>&#160; }</div>
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span>&#160; uint16_t button = <a class="code" href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a>(&amp;<a class="code" href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a>[(uint8_t)b]);</div> <div class="line"><a name="l00394"></a><span class="lineno"> 394</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>&#160; <span class="keywordtype">bool</span> click = (ButtonClickState &amp; button);</div> <div class="line"><a name="l00395"></a><span class="lineno"> 395</span>&#160; } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(b == <a class="code" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a">R2</a>) {</div>
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span>&#160; ButtonClickState &amp;= ~button; <span class="comment">// Clear &quot;click&quot; event</span></div> <div class="line"><a name="l00396"></a><span class="lineno"> 396</span>&#160; <span class="keywordflow">if</span>(R2Clicked) {</div>
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>&#160; <span class="keywordflow">return</span> click;</div> <div class="line"><a name="l00397"></a><span class="lineno"> 397</span>&#160; R2Clicked = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>&#160;}</div> <div class="line"><a name="l00398"></a><span class="lineno"> 398</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>&#160;</div> <div class="line"><a name="l00399"></a><span class="lineno"> 399</span>&#160; }</div>
<div class="line"><a name="l00400"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#af49b526b57d3a3148537bdada9fb69bc"> 400</a></span>&#160;int16_t <a class="code" href="class_x_b_o_x_o_n_e.html#af49b526b57d3a3148537bdada9fb69bc">XBOXONE::getAnalogHat</a>(<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093">AnalogHatEnum</a> a) {</div> <div class="line"><a name="l00400"></a><span class="lineno"> 400</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>&#160; <span class="keywordflow">return</span> hatValue[a];</div> <div class="line"><a name="l00401"></a><span class="lineno"> 401</span>&#160; }</div>
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>&#160;}</div> <div class="line"><a name="l00402"></a><span class="lineno"> 402</span>&#160; uint16_t button = <a class="code" href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a>(&amp;<a class="code" href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a>[(uint8_t)b]);</div>
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>&#160;</div> <div class="line"><a name="l00403"></a><span class="lineno"> 403</span>&#160; <span class="keywordtype">bool</span> click = (ButtonClickState &amp; button);</div>
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span>&#160;<span class="comment">/* Xbox Controller commands */</span></div> <div class="line"><a name="l00404"></a><span class="lineno"> 404</span>&#160; ButtonClickState &amp;= ~button; <span class="comment">// Clear &quot;click&quot; event</span></div>
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span>&#160;uint8_t XBOXONE::XboxCommand(uint8_t* data, uint16_t nbytes) {</div> <div class="line"><a name="l00405"></a><span class="lineno"> 405</span>&#160; <span class="keywordflow">return</span> click;</div>
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span>&#160; data[2] = cmdCounter++; <span class="comment">// Increment the output command counter</span></div> <div class="line"><a name="l00406"></a><span class="lineno"> 406</span>&#160;}</div>
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span>&#160; uint8_t rcode = <a class="code" href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">pUsb</a>-&gt;<a class="code" href="class_u_s_b.html#affbc018973a588995457d535b0ac7ee7">outTransfer</a>(<a class="code" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">bAddress</a>, <a class="code" href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">epInfo</a>[ <a class="code" href="_x_b_o_x_o_n_e_8h.html#a1a9da90da4584db2de7c84f45bdafc89">XBOX_ONE_OUTPUT_PIPE</a> ].epAddr, nbytes, data);</div> <div class="line"><a name="l00407"></a><span class="lineno"> 407</span>&#160;</div>
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>&#160;<span class="preprocessor">#ifdef DEBUG_USB_HOST</span></div> <div class="line"><a name="l00408"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#af49b526b57d3a3148537bdada9fb69bc"> 408</a></span>&#160;int16_t <a class="code" href="class_x_b_o_x_o_n_e.html#af49b526b57d3a3148537bdada9fb69bc">XBOXONE::getAnalogHat</a>(<a class="code" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093">AnalogHatEnum</a> a) {</div>
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>&#160;<span class="preprocessor"></span> <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nXboxCommand, Return: &quot;</span>), 0x80);</div> <div class="line"><a name="l00409"></a><span class="lineno"> 409</span>&#160; <span class="keywordflow">return</span> hatValue[a];</div>
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>&#160; D_PrintHex&lt;uint8_t &gt; (rcode, 0x80);</div> <div class="line"><a name="l00410"></a><span class="lineno"> 410</span>&#160;}</div>
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span>&#160;<span class="preprocessor">#endif</span></div> <div class="line"><a name="l00411"></a><span class="lineno"> 411</span>&#160;</div>
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>&#160;<span class="preprocessor"></span> <span class="keywordflow">return</span> rcode;</div> <div class="line"><a name="l00412"></a><span class="lineno"> 412</span>&#160;<span class="comment">/* Xbox Controller commands */</span></div>
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>&#160;}</div> <div class="line"><a name="l00413"></a><span class="lineno"> 413</span>&#160;uint8_t XBOXONE::XboxCommand(uint8_t* data, uint16_t nbytes) {</div>
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>&#160;</div> <div class="line"><a name="l00414"></a><span class="lineno"> 414</span>&#160; data[2] = cmdCounter++; <span class="comment">// Increment the output command counter</span></div>
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span>&#160;<span class="comment">// The Xbox One packets are described at: https://github.com/quantus/xbox-one-controller-protocol</span></div> <div class="line"><a name="l00415"></a><span class="lineno"> 415</span>&#160; uint8_t rcode = <a class="code" href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">pUsb</a>-&gt;<a class="code" href="class_u_s_b.html#affbc018973a588995457d535b0ac7ee7">outTransfer</a>(<a class="code" href="class_x_b_o_x_o_n_e.html#a800dd3559813c0f1771e8fdd30c4105b">bAddress</a>, <a class="code" href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">epInfo</a>[ <a class="code" href="_x_b_o_x_o_n_e_8h.html#a1a9da90da4584db2de7c84f45bdafc89">XBOX_ONE_OUTPUT_PIPE</a> ].epAddr, nbytes, data);</div>
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>&#160;<span class="keywordtype">void</span> XBOXONE::onInit() {</div> <div class="line"><a name="l00416"></a><span class="lineno"> 416</span>&#160;<span class="preprocessor">#ifdef DEBUG_USB_HOST</span></div>
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>&#160; <span class="comment">// A short buzz to show the controller is active</span></div> <div class="line"><a name="l00417"></a><span class="lineno"> 417</span>&#160;<span class="preprocessor"></span> <a class="code" href="message_8h.html#a27117e124c5d66d5512fe8d494fe6338">Notify</a>(<a class="code" href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a>(<span class="stringliteral">&quot;\r\nXboxCommand, Return: &quot;</span>), 0x80);</div>
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>&#160; uint8_t writeBuf[13];</div> <div class="line"><a name="l00418"></a><span class="lineno"> 418</span>&#160; D_PrintHex&lt;uint8_t &gt; (rcode, 0x80);</div>
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>&#160;</div> <div class="line"><a name="l00419"></a><span class="lineno"> 419</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>&#160; <span class="comment">// Activate rumble</span></div> <div class="line"><a name="l00420"></a><span class="lineno"> 420</span>&#160;<span class="preprocessor"></span> <span class="keywordflow">return</span> rcode;</div>
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160; writeBuf[0] = 0x09;</div> <div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160;}</div>
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>&#160; writeBuf[1] = 0x00;</div> <div class="line"><a name="l00422"></a><span class="lineno"> 422</span>&#160;</div>
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span>&#160; <span class="comment">// Byte 2 is set in &quot;XboxCommand&quot;</span></div> <div class="line"><a name="l00423"></a><span class="lineno"> 423</span>&#160;<span class="comment">// The Xbox One packets are described at: https://github.com/quantus/xbox-one-controller-protocol</span></div>
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span>&#160;</div> <div class="line"><a name="l00424"></a><span class="lineno"> 424</span>&#160;<span class="keywordtype">void</span> XBOXONE::onInit() {</div>
<div class="line"><a name="l00425"></a><span class="lineno"> 425</span>&#160; <span class="comment">// Single rumble effect</span></div> <div class="line"><a name="l00425"></a><span class="lineno"> 425</span>&#160; <span class="comment">// A short buzz to show the controller is active</span></div>
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span>&#160; writeBuf[3] = 0x09; <span class="comment">// Substructure (what substructure rest of this packet has)</span></div> <div class="line"><a name="l00426"></a><span class="lineno"> 426</span>&#160; uint8_t writeBuf[13];</div>
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span>&#160; writeBuf[4] = 0x00; <span class="comment">// Mode</span></div> <div class="line"><a name="l00427"></a><span class="lineno"> 427</span>&#160;</div>
<div class="line"><a name="l00428"></a><span class="lineno"> 428</span>&#160; writeBuf[5] = 0x0F; <span class="comment">// Rumble mask (what motors are activated) (0000 lT rT L R)</span></div> <div class="line"><a name="l00428"></a><span class="lineno"> 428</span>&#160; <span class="comment">// Activate rumble</span></div>
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>&#160; writeBuf[6] = 0x04; <span class="comment">// lT force</span></div> <div class="line"><a name="l00429"></a><span class="lineno"> 429</span>&#160; writeBuf[0] = 0x09;</div>
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>&#160; writeBuf[7] = 0x04; <span class="comment">// rT force</span></div> <div class="line"><a name="l00430"></a><span class="lineno"> 430</span>&#160; writeBuf[1] = 0x00;</div>
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span>&#160; writeBuf[8] = 0x20; <span class="comment">// L force</span></div> <div class="line"><a name="l00431"></a><span class="lineno"> 431</span>&#160; <span class="comment">// Byte 2 is set in &quot;XboxCommand&quot;</span></div>
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>&#160; writeBuf[9] = 0x20; <span class="comment">// R force</span></div> <div class="line"><a name="l00432"></a><span class="lineno"> 432</span>&#160;</div>
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>&#160; writeBuf[10] = 0x80; <span class="comment">// Length of pulse</span></div> <div class="line"><a name="l00433"></a><span class="lineno"> 433</span>&#160; <span class="comment">// Single rumble effect</span></div>
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span>&#160; writeBuf[11] = 0x00; <span class="comment">// Off period</span></div> <div class="line"><a name="l00434"></a><span class="lineno"> 434</span>&#160; writeBuf[3] = 0x09; <span class="comment">// Substructure (what substructure rest of this packet has)</span></div>
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span>&#160; writeBuf[12] = 0x00; <span class="comment">// Repeat count</span></div> <div class="line"><a name="l00435"></a><span class="lineno"> 435</span>&#160; writeBuf[4] = 0x00; <span class="comment">// Mode</span></div>
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span>&#160; XboxCommand(writeBuf, 13);</div> <div class="line"><a name="l00436"></a><span class="lineno"> 436</span>&#160; writeBuf[5] = 0x0F; <span class="comment">// Rumble mask (what motors are activated) (0000 lT rT L R)</span></div>
<div class="line"><a name="l00437"></a><span class="lineno"> 437</span>&#160;</div> <div class="line"><a name="l00437"></a><span class="lineno"> 437</span>&#160; writeBuf[6] = 0x04; <span class="comment">// lT force</span></div>
<div class="line"><a name="l00438"></a><span class="lineno"> 438</span>&#160; <span class="keywordflow">if</span>(pFuncOnInit)</div> <div class="line"><a name="l00438"></a><span class="lineno"> 438</span>&#160; writeBuf[7] = 0x04; <span class="comment">// rT force</span></div>
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span>&#160; pFuncOnInit(); <span class="comment">// Call the user function</span></div> <div class="line"><a name="l00439"></a><span class="lineno"> 439</span>&#160; writeBuf[8] = 0x20; <span class="comment">// L force</span></div>
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>&#160;}</div> <div class="line"><a name="l00440"></a><span class="lineno"> 440</span>&#160; writeBuf[9] = 0x20; <span class="comment">// R force</span></div>
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span>&#160;</div> <div class="line"><a name="l00441"></a><span class="lineno"> 441</span>&#160; writeBuf[10] = 0x80; <span class="comment">// Length of pulse</span></div>
<div class="line"><a name="l00442"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a506e8add57ffac652a28e8c5b7e72e85"> 442</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a506e8add57ffac652a28e8c5b7e72e85">XBOXONE::setRumbleOff</a>() {</div> <div class="line"><a name="l00442"></a><span class="lineno"> 442</span>&#160; writeBuf[11] = 0x00; <span class="comment">// Off period</span></div>
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span>&#160; uint8_t writeBuf[13];</div> <div class="line"><a name="l00443"></a><span class="lineno"> 443</span>&#160; writeBuf[12] = 0x00; <span class="comment">// Repeat count</span></div>
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span>&#160;</div> <div class="line"><a name="l00444"></a><span class="lineno"> 444</span>&#160; XboxCommand(writeBuf, 13);</div>
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span>&#160; <span class="comment">// Activate rumble</span></div> <div class="line"><a name="l00445"></a><span class="lineno"> 445</span>&#160;</div>
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span>&#160; writeBuf[0] = 0x09;</div> <div class="line"><a name="l00446"></a><span class="lineno"> 446</span>&#160; <span class="keywordflow">if</span>(pFuncOnInit)</div>
<div class="line"><a name="l00447"></a><span class="lineno"> 447</span>&#160; writeBuf[1] = 0x00;</div> <div class="line"><a name="l00447"></a><span class="lineno"> 447</span>&#160; pFuncOnInit(); <span class="comment">// Call the user function</span></div>
<div class="line"><a name="l00448"></a><span class="lineno"> 448</span>&#160; <span class="comment">// Byte 2 is set in &quot;XboxCommand&quot;</span></div> <div class="line"><a name="l00448"></a><span class="lineno"> 448</span>&#160;}</div>
<div class="line"><a name="l00449"></a><span class="lineno"> 449</span>&#160;</div> <div class="line"><a name="l00449"></a><span class="lineno"> 449</span>&#160;</div>
<div class="line"><a name="l00450"></a><span class="lineno"> 450</span>&#160; <span class="comment">// Continuous rumble effect</span></div> <div class="line"><a name="l00450"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a506e8add57ffac652a28e8c5b7e72e85"> 450</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a506e8add57ffac652a28e8c5b7e72e85">XBOXONE::setRumbleOff</a>() {</div>
<div class="line"><a name="l00451"></a><span class="lineno"> 451</span>&#160; writeBuf[3] = 0x09; <span class="comment">// Substructure (what substructure rest of this packet has)</span></div> <div class="line"><a name="l00451"></a><span class="lineno"> 451</span>&#160; uint8_t writeBuf[13];</div>
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span>&#160; writeBuf[4] = 0x00; <span class="comment">// Mode</span></div> <div class="line"><a name="l00452"></a><span class="lineno"> 452</span>&#160;</div>
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>&#160; writeBuf[5] = 0x0F; <span class="comment">// Rumble mask (what motors are activated) (0000 lT rT L R)</span></div> <div class="line"><a name="l00453"></a><span class="lineno"> 453</span>&#160; <span class="comment">// Activate rumble</span></div>
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>&#160; writeBuf[6] = 0x00; <span class="comment">// lT force</span></div> <div class="line"><a name="l00454"></a><span class="lineno"> 454</span>&#160; writeBuf[0] = 0x09;</div>
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span>&#160; writeBuf[7] = 0x00; <span class="comment">// rT force</span></div> <div class="line"><a name="l00455"></a><span class="lineno"> 455</span>&#160; writeBuf[1] = 0x00;</div>
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span>&#160; writeBuf[8] = 0x00; <span class="comment">// L force</span></div> <div class="line"><a name="l00456"></a><span class="lineno"> 456</span>&#160; <span class="comment">// Byte 2 is set in &quot;XboxCommand&quot;</span></div>
<div class="line"><a name="l00457"></a><span class="lineno"> 457</span>&#160; writeBuf[9] = 0x00; <span class="comment">// R force</span></div> <div class="line"><a name="l00457"></a><span class="lineno"> 457</span>&#160;</div>
<div class="line"><a name="l00458"></a><span class="lineno"> 458</span>&#160; writeBuf[10] = 0x00; <span class="comment">// On period</span></div> <div class="line"><a name="l00458"></a><span class="lineno"> 458</span>&#160; <span class="comment">// Continuous rumble effect</span></div>
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span>&#160; writeBuf[11] = 0x00; <span class="comment">// Off period</span></div> <div class="line"><a name="l00459"></a><span class="lineno"> 459</span>&#160; writeBuf[3] = 0x09; <span class="comment">// Substructure (what substructure rest of this packet has)</span></div>
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span>&#160; writeBuf[12] = 0x00; <span class="comment">// Repeat count</span></div> <div class="line"><a name="l00460"></a><span class="lineno"> 460</span>&#160; writeBuf[4] = 0x00; <span class="comment">// Mode</span></div>
<div class="line"><a name="l00461"></a><span class="lineno"> 461</span>&#160; XboxCommand(writeBuf, 13);</div> <div class="line"><a name="l00461"></a><span class="lineno"> 461</span>&#160; writeBuf[5] = 0x0F; <span class="comment">// Rumble mask (what motors are activated) (0000 lT rT L R)</span></div>
<div class="line"><a name="l00462"></a><span class="lineno"> 462</span>&#160;}</div> <div class="line"><a name="l00462"></a><span class="lineno"> 462</span>&#160; writeBuf[6] = 0x00; <span class="comment">// lT force</span></div>
<div class="line"><a name="l00463"></a><span class="lineno"> 463</span>&#160;</div> <div class="line"><a name="l00463"></a><span class="lineno"> 463</span>&#160; writeBuf[7] = 0x00; <span class="comment">// rT force</span></div>
<div class="line"><a name="l00464"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a6586343cacf8705c7a3c2d4f479f2261"> 464</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a6586343cacf8705c7a3c2d4f479f2261">XBOXONE::setRumbleOn</a>(uint8_t leftTrigger, uint8_t rightTrigger, uint8_t leftMotor, uint8_t rightMotor) {</div> <div class="line"><a name="l00464"></a><span class="lineno"> 464</span>&#160; writeBuf[8] = 0x00; <span class="comment">// L force</span></div>
<div class="line"><a name="l00465"></a><span class="lineno"> 465</span>&#160; uint8_t writeBuf[13];</div> <div class="line"><a name="l00465"></a><span class="lineno"> 465</span>&#160; writeBuf[9] = 0x00; <span class="comment">// R force</span></div>
<div class="line"><a name="l00466"></a><span class="lineno"> 466</span>&#160;</div> <div class="line"><a name="l00466"></a><span class="lineno"> 466</span>&#160; writeBuf[10] = 0x00; <span class="comment">// On period</span></div>
<div class="line"><a name="l00467"></a><span class="lineno"> 467</span>&#160; <span class="comment">// Activate rumble</span></div> <div class="line"><a name="l00467"></a><span class="lineno"> 467</span>&#160; writeBuf[11] = 0x00; <span class="comment">// Off period</span></div>
<div class="line"><a name="l00468"></a><span class="lineno"> 468</span>&#160; writeBuf[0] = 0x09;</div> <div class="line"><a name="l00468"></a><span class="lineno"> 468</span>&#160; writeBuf[12] = 0x00; <span class="comment">// Repeat count</span></div>
<div class="line"><a name="l00469"></a><span class="lineno"> 469</span>&#160; writeBuf[1] = 0x00;</div> <div class="line"><a name="l00469"></a><span class="lineno"> 469</span>&#160; XboxCommand(writeBuf, 13);</div>
<div class="line"><a name="l00470"></a><span class="lineno"> 470</span>&#160; <span class="comment">// Byte 2 is set in &quot;XboxCommand&quot;</span></div> <div class="line"><a name="l00470"></a><span class="lineno"> 470</span>&#160;}</div>
<div class="line"><a name="l00471"></a><span class="lineno"> 471</span>&#160;</div> <div class="line"><a name="l00471"></a><span class="lineno"> 471</span>&#160;</div>
<div class="line"><a name="l00472"></a><span class="lineno"> 472</span>&#160; <span class="comment">// Continuous rumble effect</span></div> <div class="line"><a name="l00472"></a><span class="lineno"><a class="line" href="class_x_b_o_x_o_n_e.html#a6586343cacf8705c7a3c2d4f479f2261"> 472</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_x_b_o_x_o_n_e.html#a6586343cacf8705c7a3c2d4f479f2261">XBOXONE::setRumbleOn</a>(uint8_t leftTrigger, uint8_t rightTrigger, uint8_t leftMotor, uint8_t rightMotor) {</div>
<div class="line"><a name="l00473"></a><span class="lineno"> 473</span>&#160; writeBuf[3] = 0x09; <span class="comment">// Substructure (what substructure rest of this packet has)</span></div> <div class="line"><a name="l00473"></a><span class="lineno"> 473</span>&#160; uint8_t writeBuf[13];</div>
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span>&#160; writeBuf[4] = 0x00; <span class="comment">// Mode</span></div> <div class="line"><a name="l00474"></a><span class="lineno"> 474</span>&#160;</div>
<div class="line"><a name="l00475"></a><span class="lineno"> 475</span>&#160; writeBuf[5] = 0x0F; <span class="comment">// Rumble mask (what motors are activated) (0000 lT rT L R)</span></div> <div class="line"><a name="l00475"></a><span class="lineno"> 475</span>&#160; <span class="comment">// Activate rumble</span></div>
<div class="line"><a name="l00476"></a><span class="lineno"> 476</span>&#160; writeBuf[6] = leftTrigger; <span class="comment">// lT force</span></div> <div class="line"><a name="l00476"></a><span class="lineno"> 476</span>&#160; writeBuf[0] = 0x09;</div>
<div class="line"><a name="l00477"></a><span class="lineno"> 477</span>&#160; writeBuf[7] = rightTrigger; <span class="comment">// rT force</span></div> <div class="line"><a name="l00477"></a><span class="lineno"> 477</span>&#160; writeBuf[1] = 0x00;</div>
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span>&#160; writeBuf[8] = leftMotor; <span class="comment">// L force</span></div> <div class="line"><a name="l00478"></a><span class="lineno"> 478</span>&#160; <span class="comment">// Byte 2 is set in &quot;XboxCommand&quot;</span></div>
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span>&#160; writeBuf[9] = rightMotor; <span class="comment">// R force</span></div> <div class="line"><a name="l00479"></a><span class="lineno"> 479</span>&#160;</div>
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span>&#160; writeBuf[10] = 0xFF; <span class="comment">// On period</span></div> <div class="line"><a name="l00480"></a><span class="lineno"> 480</span>&#160; <span class="comment">// Continuous rumble effect</span></div>
<div class="line"><a name="l00481"></a><span class="lineno"> 481</span>&#160; writeBuf[11] = 0x00; <span class="comment">// Off period</span></div> <div class="line"><a name="l00481"></a><span class="lineno"> 481</span>&#160; writeBuf[3] = 0x09; <span class="comment">// Substructure (what substructure rest of this packet has)</span></div>
<div class="line"><a name="l00482"></a><span class="lineno"> 482</span>&#160; writeBuf[12] = 0xFF; <span class="comment">// Repeat count</span></div> <div class="line"><a name="l00482"></a><span class="lineno"> 482</span>&#160; writeBuf[4] = 0x00; <span class="comment">// Mode</span></div>
<div class="line"><a name="l00483"></a><span class="lineno"> 483</span>&#160; XboxCommand(writeBuf, 13);</div> <div class="line"><a name="l00483"></a><span class="lineno"> 483</span>&#160; writeBuf[5] = 0x0F; <span class="comment">// Rumble mask (what motors are activated) (0000 lT rT L R)</span></div>
<div class="line"><a name="l00484"></a><span class="lineno"> 484</span>&#160;}</div> <div class="line"><a name="l00484"></a><span class="lineno"> 484</span>&#160; writeBuf[6] = leftTrigger; <span class="comment">// lT force</span></div>
<div class="line"><a name="l00485"></a><span class="lineno"> 485</span>&#160; writeBuf[7] = rightTrigger; <span class="comment">// rT force</span></div>
<div class="line"><a name="l00486"></a><span class="lineno"> 486</span>&#160; writeBuf[8] = leftMotor; <span class="comment">// L force</span></div>
<div class="line"><a name="l00487"></a><span class="lineno"> 487</span>&#160; writeBuf[9] = rightMotor; <span class="comment">// R force</span></div>
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span>&#160; writeBuf[10] = 0xFF; <span class="comment">// On period</span></div>
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>&#160; writeBuf[11] = 0x00; <span class="comment">// Off period</span></div>
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span>&#160; writeBuf[12] = 0xFF; <span class="comment">// Repeat count</span></div>
<div class="line"><a name="l00491"></a><span class="lineno"> 491</span>&#160; XboxCommand(writeBuf, 13);</div>
<div class="line"><a name="l00492"></a><span class="lineno"> 492</span>&#160;}</div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ac6c75dcd5dfd5a9685a049f9bb8cb93f"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ac6c75dcd5dfd5a9685a049f9bb8cb93f">XBOXONE::bConfNum</a></div><div class="ttdeci">uint8_t bConfNum</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00186">XBOXONE.h:186</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_ac6c75dcd5dfd5a9685a049f9bb8cb93f"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ac6c75dcd5dfd5a9685a049f9bb8cb93f">XBOXONE::bConfNum</a></div><div class="ttdeci">uint8_t bConfNum</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00186">XBOXONE.h:186</a></div></div>
<div class="ttc" id="class_u_s_b_html_a618eedabc161d8315be45cae0c8b6f89"><div class="ttname"><a href="class_u_s_b.html#a618eedabc161d8315be45cae0c8b6f89">USB::getConfDescr</a></div><div class="ttdeci">uint8_t getConfDescr(uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t conf, uint8_t *dataptr)</div><div class="ttdef"><b>Definition:</b> <a href="_usb_8cpp_source.html#l00801">Usb.cpp:801</a></div></div> <div class="ttc" id="class_u_s_b_html_a618eedabc161d8315be45cae0c8b6f89"><div class="ttname"><a href="class_u_s_b.html#a618eedabc161d8315be45cae0c8b6f89">USB::getConfDescr</a></div><div class="ttdeci">uint8_t getConfDescr(uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t conf, uint8_t *dataptr)</div><div class="ttdef"><b>Definition:</b> <a href="_usb_8cpp_source.html#l00801">Usb.cpp:801</a></div></div>
<div class="ttc" id="struct_ep_info_html_a9238dd40c096baedf041c98b19386a14"><div class="ttname"><a href="struct_ep_info.html#a9238dd40c096baedf041c98b19386a14">EpInfo::bmRcvToggle</a></div><div class="ttdeci">uint8_t bmRcvToggle</div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00048">address.h:48</a></div></div> <div class="ttc" id="struct_ep_info_html_a9238dd40c096baedf041c98b19386a14"><div class="ttname"><a href="struct_ep_info.html#a9238dd40c096baedf041c98b19386a14">EpInfo::bmRcvToggle</a></div><div class="ttdeci">uint8_t bmRcvToggle</div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00048">address.h:48</a></div></div>
@ -582,7 +590,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
<div class="ttc" id="version__helper_8h_html_a910fb5f01313d339d3b835d45e1e5ad0"><div class="ttname"><a href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a></div><div class="ttdeci">#define pgm_read_word(addr)</div><div class="ttdef"><b>Definition:</b> <a href="version__helper_8h_source.html#l00164">version_helper.h:164</a></div></div> <div class="ttc" id="version__helper_8h_html_a910fb5f01313d339d3b835d45e1e5ad0"><div class="ttname"><a href="version__helper_8h.html#a910fb5f01313d339d3b835d45e1e5ad0">pgm_read_word</a></div><div class="ttdeci">#define pgm_read_word(addr)</div><div class="ttdef"><b>Definition:</b> <a href="version__helper_8h_source.html#l00164">version_helper.h:164</a></div></div>
<div class="ttc" id="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r_html"><div class="ttname"><a href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a></div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00148">usb_ch9.h:148</a></div></div> <div class="ttc" id="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r_html"><div class="ttname"><a href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a></div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00148">usb_ch9.h:148</a></div></div>
<div class="ttc" id="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r_html_a95cd9669dee9cab375a7c5e62284a01b"><div class="ttname"><a href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a95cd9669dee9cab375a7c5e62284a01b">USB_ENDPOINT_DESCRIPTOR::bInterval</a></div><div class="ttdeci">uint8_t bInterval</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00154">usb_ch9.h:154</a></div></div> <div class="ttc" id="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r_html_a95cd9669dee9cab375a7c5e62284a01b"><div class="ttname"><a href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a95cd9669dee9cab375a7c5e62284a01b">USB_ENDPOINT_DESCRIPTOR::bInterval</a></div><div class="ttdeci">uint8_t bInterval</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00154">usb_ch9.h:154</a></div></div>
<div class="ttc" id="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r_html_a55263a9cc9dc17abc37226ac8a471ad0"><div class="ttname"><a href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a55263a9cc9dc17abc37226ac8a471ad0">USB_ENDPOINT_DESCRIPTOR::bLength</a></div><div class="ttdeci">uint8_t bLength</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00149">usb_ch9.h:149</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a5b4e45cdd8695439d9772f55bb8ece6f"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">XBOXONE::pUsb</a></div><div class="ttdeci">USB * pUsb</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00179">XBOXONE.h:179</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a5b4e45cdd8695439d9772f55bb8ece6f"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a5b4e45cdd8695439d9772f55bb8ece6f">XBOXONE::pUsb</a></div><div class="ttdeci">USB * pUsb</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00179">XBOXONE.h:179</a></div></div>
<div class="ttc" id="message_8h_html_a22695bdc18ebde4a87dbe8633cb39593"><div class="ttname"><a href="message_8h.html#a22695bdc18ebde4a87dbe8633cb39593">NotifyFail</a></div><div class="ttdeci">#define NotifyFail(...)</div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00062">message.h:62</a></div></div> <div class="ttc" id="message_8h_html_a22695bdc18ebde4a87dbe8633cb39593"><div class="ttname"><a href="message_8h.html#a22695bdc18ebde4a87dbe8633cb39593">NotifyFail</a></div><div class="ttdeci">#define NotifyFail(...)</div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00062">message.h:62</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="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>
@ -602,14 +609,14 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
<div class="ttc" id="macros_8h_html_adbe3f00986df48a9254f8bf0992041d3"><div class="ttname"><a href="macros_8h.html#adbe3f00986df48a9254f8bf0992041d3">USBTRACE2</a></div><div class="ttdeci">#define USBTRACE2(s, r)</div><div class="ttdef"><b>Definition:</b> <a href="macros_8h_source.html#l00084">macros.h:84</a></div></div> <div class="ttc" id="macros_8h_html_adbe3f00986df48a9254f8bf0992041d3"><div class="ttname"><a href="macros_8h.html#adbe3f00986df48a9254f8bf0992041d3">USBTRACE2</a></div><div class="ttdeci">#define USBTRACE2(s, r)</div><div class="ttdef"><b>Definition:</b> <a href="macros_8h_source.html#l00084">macros.h:84</a></div></div>
<div class="ttc" id="class_u_s_b_html_a3aea534daed66b5606fa798df7ad3c47"><div class="ttname"><a href="class_u_s_b.html#a3aea534daed66b5606fa798df7ad3c47">USB::setAddr</a></div><div class="ttdeci">uint8_t setAddr(uint8_t oldaddr, uint8_t ep, uint8_t newaddr)</div><div class="ttdef"><b>Definition:</b> <a href="_usb_8cpp_source.html#l00831">Usb.cpp:831</a></div></div> <div class="ttc" id="class_u_s_b_html_a3aea534daed66b5606fa798df7ad3c47"><div class="ttname"><a href="class_u_s_b.html#a3aea534daed66b5606fa798df7ad3c47">USB::setAddr</a></div><div class="ttdeci">uint8_t setAddr(uint8_t oldaddr, uint8_t ep, uint8_t newaddr)</div><div class="ttdef"><b>Definition:</b> <a href="_usb_8cpp_source.html#l00831">Usb.cpp:831</a></div></div>
<div class="ttc" id="message_8h_html_a38aabfb47a8bf743b0532e356c39faaf"><div class="ttname"><a href="message_8h.html#a38aabfb47a8bf743b0532e356c39faaf">NotifyFailGetConfDescr</a></div><div class="ttdeci">#define NotifyFailGetConfDescr(...)</div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00059">message.h:59</a></div></div> <div class="ttc" id="message_8h_html_a38aabfb47a8bf743b0532e356c39faaf"><div class="ttname"><a href="message_8h.html#a38aabfb47a8bf743b0532e356c39faaf">NotifyFailGetConfDescr</a></div><div class="ttdeci">#define NotifyFailGetConfDescr(...)</div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00059">message.h:59</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a2eea30f2ce47380fc414d4fc4231335b"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a2eea30f2ce47380fc414d4fc4231335b">XBOXONE::PrintEndpointDescriptor</a></div><div class="ttdeci">void PrintEndpointDescriptor(const USB_ENDPOINT_DESCRIPTOR *ep_ptr)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00259">XBOXONE.cpp:259</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a2eea30f2ce47380fc414d4fc4231335b"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a2eea30f2ce47380fc414d4fc4231335b">XBOXONE::PrintEndpointDescriptor</a></div><div class="ttdeci">void PrintEndpointDescriptor(const USB_ENDPOINT_DESCRIPTOR *ep_ptr)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00265">XBOXONE.cpp:265</a></div></div>
<div class="ttc" id="struct_ep_info_html_a9f92be74c75c037b39e2cae1eb49b89b"><div class="ttname"><a href="struct_ep_info.html#a9f92be74c75c037b39e2cae1eb49b89b">EpInfo::epAddr</a></div><div class="ttdeci">uint8_t epAddr</div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00040">address.h:40</a></div></div> <div class="ttc" id="struct_ep_info_html_a9f92be74c75c037b39e2cae1eb49b89b"><div class="ttname"><a href="struct_ep_info.html#a9f92be74c75c037b39e2cae1eb49b89b">EpInfo::epAddr</a></div><div class="ttdeci">uint8_t epAddr</div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00040">address.h:40</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ac055f7c7156ef515fe362e751fe1bae3"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ac055f7c7156ef515fe362e751fe1bae3">XBOXONE::XboxOneConnected</a></div><div class="ttdeci">bool XboxOneConnected</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00175">XBOXONE.h:175</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_ac055f7c7156ef515fe362e751fe1bae3"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ac055f7c7156ef515fe362e751fe1bae3">XBOXONE::XboxOneConnected</a></div><div class="ttdeci">bool XboxOneConnected</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00175">XBOXONE.h:175</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a8e9bf59d8bc051ff3fa38e2b327ade6e"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a8e9bf59d8bc051ff3fa38e2b327ade6e">XBOX_ONE_MAX_ENDPOINTS</a></div><div class="ttdeci">#define XBOX_ONE_MAX_ENDPOINTS</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00037">XBOXONE.h:37</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a8e9bf59d8bc051ff3fa38e2b327ade6e"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a8e9bf59d8bc051ff3fa38e2b327ade6e">XBOX_ONE_MAX_ENDPOINTS</a></div><div class="ttdeci">#define XBOX_ONE_MAX_ENDPOINTS</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00037">XBOXONE.h:37</a></div></div>
<div class="ttc" id="message_8h_html_a0ce3a725ee65614d7f95cda10e4d2e91"><div class="ttname"><a href="message_8h.html#a0ce3a725ee65614d7f95cda10e4d2e91">NotifyFailUnknownDevice</a></div><div class="ttdeci">#define NotifyFailUnknownDevice(...)</div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00061">message.h:61</a></div></div> <div class="ttc" id="message_8h_html_a0ce3a725ee65614d7f95cda10e4d2e91"><div class="ttname"><a href="message_8h.html#a0ce3a725ee65614d7f95cda10e4d2e91">NotifyFailUnknownDevice</a></div><div class="ttdeci">#define NotifyFailUnknownDevice(...)</div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00061">message.h:61</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a506e8add57ffac652a28e8c5b7e72e85"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a506e8add57ffac652a28e8c5b7e72e85">XBOXONE::setRumbleOff</a></div><div class="ttdeci">void setRumbleOff()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00442">XBOXONE.cpp:442</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a506e8add57ffac652a28e8c5b7e72e85"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a506e8add57ffac652a28e8c5b7e72e85">XBOXONE::setRumbleOff</a></div><div class="ttdeci">void setRumbleOff()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00450">XBOXONE.cpp:450</a></div></div>
<div class="ttc" id="address_8h_html_a517dfa014946e2d087d197312234a1de"><div class="ttname"><a href="address_8h.html#a517dfa014946e2d087d197312234a1de">USB_NAK_MAX_POWER</a></div><div class="ttdeci">#define USB_NAK_MAX_POWER</div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00034">address.h:34</a></div></div> <div class="ttc" id="address_8h_html_a517dfa014946e2d087d197312234a1de"><div class="ttname"><a href="address_8h.html#a517dfa014946e2d087d197312234a1de">USB_NAK_MAX_POWER</a></div><div class="ttdeci">#define USB_NAK_MAX_POWER</div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00034">address.h:34</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ab836f2e18a00ef89054d66fb2023ba64"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ab836f2e18a00ef89054d66fb2023ba64">XBOXONE::Release</a></div><div class="ttdeci">virtual uint8_t Release()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00278">XBOXONE.cpp:278</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_ab836f2e18a00ef89054d66fb2023ba64"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ab836f2e18a00ef89054d66fb2023ba64">XBOXONE::Release</a></div><div class="ttdeci">virtual uint8_t Release()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00286">XBOXONE.cpp:286</a></div></div>
<div class="ttc" id="controller_enums_8h_html_a34dad8f0a0927471137c403216597093a7f1fb2db5381286691f4dec179ed5d5a"><div class="ttname"><a href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093a7f1fb2db5381286691f4dec179ed5d5a">RightHatY</a></div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00165">controllerEnums.h:165</a></div></div> <div class="ttc" id="controller_enums_8h_html_a34dad8f0a0927471137c403216597093a7f1fb2db5381286691f4dec179ed5d5a"><div class="ttname"><a href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093a7f1fb2db5381286691f4dec179ed5d5a">RightHatY</a></div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00165">controllerEnums.h:165</a></div></div>
<div class="ttc" id="struct_ep_info_html"><div class="ttname"><a href="struct_ep_info.html">EpInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00039">address.h:39</a></div></div> <div class="ttc" id="struct_ep_info_html"><div class="ttname"><a href="struct_ep_info.html">EpInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00039">address.h:39</a></div></div>
<div class="ttc" id="class_u_s_b_html_affbc018973a588995457d535b0ac7ee7"><div class="ttname"><a href="class_u_s_b.html#affbc018973a588995457d535b0ac7ee7">USB::outTransfer</a></div><div class="ttdeci">uint8_t outTransfer(uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t *data)</div><div class="ttdef"><b>Definition:</b> <a href="_usb_8cpp_source.html#l00303">Usb.cpp:303</a></div></div> <div class="ttc" id="class_u_s_b_html_affbc018973a588995457d535b0ac7ee7"><div class="ttname"><a href="class_u_s_b.html#affbc018973a588995457d535b0ac7ee7">USB::outTransfer</a></div><div class="ttdeci">uint8_t outTransfer(uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t *data)</div><div class="ttdef"><b>Definition:</b> <a href="_usb_8cpp_source.html#l00303">Usb.cpp:303</a></div></div>
@ -618,7 +625,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
<div class="ttc" id="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r_html_af34105fa6bd0029d9c6b73d85f7853c6"><div class="ttname"><a href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#af34105fa6bd0029d9c6b73d85f7853c6">USB_ENDPOINT_DESCRIPTOR::wMaxPacketSize</a></div><div class="ttdeci">uint16_t wMaxPacketSize</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00153">usb_ch9.h:153</a></div></div> <div class="ttc" id="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r_html_af34105fa6bd0029d9c6b73d85f7853c6"><div class="ttname"><a href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#af34105fa6bd0029d9c6b73d85f7853c6">USB_ENDPOINT_DESCRIPTOR::wMaxPacketSize</a></div><div class="ttdeci">uint16_t wMaxPacketSize</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00153">usb_ch9.h:153</a></div></div>
<div class="ttc" id="usb__ch9_8h_html_ac1b1bcdd6bd4e8c5a65052e914e028d5"><div class="ttname"><a href="usb__ch9_8h.html#ac1b1bcdd6bd4e8c5a65052e914e028d5">bmUSB_TRANSFER_TYPE</a></div><div class="ttdeci">#define bmUSB_TRANSFER_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00094">usb_ch9.h:94</a></div></div> <div class="ttc" id="usb__ch9_8h_html_ac1b1bcdd6bd4e8c5a65052e914e028d5"><div class="ttname"><a href="usb__ch9_8h.html#ac1b1bcdd6bd4e8c5a65052e914e028d5">bmUSB_TRANSFER_TYPE</a></div><div class="ttdeci">#define bmUSB_TRANSFER_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00094">usb_ch9.h:94</a></div></div>
<div class="ttc" id="controller_enums_8h_html_a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066"><div class="ttname"><a href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066">L2</a></div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00115">controllerEnums.h:115</a></div></div> <div class="ttc" id="controller_enums_8h_html_a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066"><div class="ttname"><a href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066">L2</a></div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00115">controllerEnums.h:115</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ae197d34a4c2138d1889afe2c2e3345c4"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4">XBOXONE::getButtonPress</a></div><div class="ttdeci">uint16_t getButtonPress(ButtonEnum b)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00372">XBOXONE.cpp:372</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_ae197d34a4c2138d1889afe2c2e3345c4"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4">XBOXONE::getButtonPress</a></div><div class="ttdeci">uint16_t getButtonPress(ButtonEnum b)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00380">XBOXONE.cpp:380</a></div></div>
<div class="ttc" id="controller_enums_8h_html_a94f7389d205c78830a5441370d7870fdaef31cc6fe9479955961311ee18ac205f"><div class="ttname"><a href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdaef31cc6fe9479955961311ee18ac205f">L</a></div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00102">controllerEnums.h:102</a></div></div> <div class="ttc" id="controller_enums_8h_html_a94f7389d205c78830a5441370d7870fdaef31cc6fe9479955961311ee18ac205f"><div class="ttname"><a href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdaef31cc6fe9479955961311ee18ac205f">L</a></div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00102">controllerEnums.h:102</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a4d0702c6fc0327535d909975670e9284"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284">XBOXONE::qNextPollTime</a></div><div class="ttdeci">uint32_t qNextPollTime</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00190">XBOXONE.h:190</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a4d0702c6fc0327535d909975670e9284"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284">XBOXONE::qNextPollTime</a></div><div class="ttdeci">uint32_t qNextPollTime</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00190">XBOXONE.h:190</a></div></div>
<div class="ttc" id="class_address_pool_html_a97df4ef42e50960ce2165f4cdb53e590"><div class="ttname"><a href="class_address_pool.html#a97df4ef42e50960ce2165f4cdb53e590">AddressPool::AllocAddress</a></div><div class="ttdeci">virtual uint8_t AllocAddress(uint8_t parent, bool is_hub=false, uint8_t port=0)=0</div></div> <div class="ttc" id="class_address_pool_html_a97df4ef42e50960ce2165f4cdb53e590"><div class="ttname"><a href="class_address_pool.html#a97df4ef42e50960ce2165f4cdb53e590">AddressPool::AllocAddress</a></div><div class="ttdeci">virtual uint8_t AllocAddress(uint8_t parent, bool is_hub=false, uint8_t port=0)=0</div></div>
@ -627,11 +634,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
<div class="ttc" id="_usb_core_8h_html_a44416ff64fc0e3691f98addac13d4595"><div class="ttname"><a href="_usb_core_8h.html#a44416ff64fc0e3691f98addac13d4595">USB_ERROR_CLASS_INSTANCE_ALREADY_IN_USE</a></div><div class="ttdeci">#define USB_ERROR_CLASS_INSTANCE_ALREADY_IN_USE</div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00098">UsbCore.h:98</a></div></div> <div class="ttc" id="_usb_core_8h_html_a44416ff64fc0e3691f98addac13d4595"><div class="ttname"><a href="_usb_core_8h.html#a44416ff64fc0e3691f98addac13d4595">USB_ERROR_CLASS_INSTANCE_ALREADY_IN_USE</a></div><div class="ttdeci">#define USB_ERROR_CLASS_INSTANCE_ALREADY_IN_USE</div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00098">UsbCore.h:98</a></div></div>
<div class="ttc" id="version__helper_8h_html_a73809107539df84eaf01f6a4dea4fbff"><div class="ttname"><a href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a></div><div class="ttdeci">#define PSTR(str)</div><div class="ttdef"><b>Definition:</b> <a href="version__helper_8h_source.html#l00054">version_helper.h:54</a></div></div> <div class="ttc" id="version__helper_8h_html_a73809107539df84eaf01f6a4dea4fbff"><div class="ttname"><a href="version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff">PSTR</a></div><div class="ttdeci">#define PSTR(str)</div><div class="ttdef"><b>Definition:</b> <a href="version__helper_8h_source.html#l00054">version_helper.h:54</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a996610ea223dd4c7756ad3af2efa821b"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a996610ea223dd4c7756ad3af2efa821b">XBOX_ONE_INPUT_PIPE</a></div><div class="ttdeci">#define XBOX_ONE_INPUT_PIPE</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00035">XBOXONE.h:35</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a996610ea223dd4c7756ad3af2efa821b"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a996610ea223dd4c7756ad3af2efa821b">XBOX_ONE_INPUT_PIPE</a></div><div class="ttdeci">#define XBOX_ONE_INPUT_PIPE</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00035">XBOXONE.h:35</a></div></div>
<div class="ttc" id="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r_html_af39d036ab903a96b9d4d56b879555d6c"><div class="ttname"><a href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#af39d036ab903a96b9d4d56b879555d6c">USB_ENDPOINT_DESCRIPTOR::bDescriptorType</a></div><div class="ttdeci">uint8_t bDescriptorType</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00150">usb_ch9.h:150</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a2915fc1f1f3a9c5333bfd643defa0621"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">XBOXONE::epInfo</a></div><div class="ttdeci">EpInfo epInfo[XBOX_ONE_MAX_ENDPOINTS]</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00183">XBOXONE.h:183</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a2915fc1f1f3a9c5333bfd643defa0621"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">XBOXONE::epInfo</a></div><div class="ttdeci">EpInfo epInfo[XBOX_ONE_MAX_ENDPOINTS]</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00183">XBOXONE.h:183</a></div></div>
<div class="ttc" id="controller_enums_8h_html_a94f7389d205c78830a5441370d7870fdad4689acdcdf0e61373d52de14ff07eae"><div class="ttname"><a href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdad4689acdcdf0e61373d52de14ff07eae">XBOX</a></div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00141">controllerEnums.h:141</a></div></div> <div class="ttc" id="controller_enums_8h_html_a94f7389d205c78830a5441370d7870fdad4689acdcdf0e61373d52de14ff07eae"><div class="ttname"><a href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdad4689acdcdf0e61373d52de14ff07eae">XBOX</a></div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00141">controllerEnums.h:141</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a9bd03dd0f2abde83f34635ab72564811"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811">XBOXONE::getButtonClick</a></div><div class="ttdeci">bool getButtonClick(ButtonEnum b)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00380">XBOXONE.cpp:380</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a9bd03dd0f2abde83f34635ab72564811"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811">XBOXONE::getButtonClick</a></div><div class="ttdeci">bool getButtonClick(ButtonEnum b)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00388">XBOXONE.cpp:388</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ac645e477bde4c2c2674ad8916f749651"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ac645e477bde4c2c2674ad8916f749651">XBOXONE::Poll</a></div><div class="ttdeci">virtual uint8_t Poll()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00292">XBOXONE.cpp:292</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_ac645e477bde4c2c2674ad8916f749651"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ac645e477bde4c2c2674ad8916f749651">XBOXONE::Poll</a></div><div class="ttdeci">virtual uint8_t Poll()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00300">XBOXONE.cpp:300</a></div></div>
<div class="ttc" id="address_8h_html_a660e8da9c1167a8450aef91c5c03761d"><div class="ttname"><a href="address_8h.html#a660e8da9c1167a8450aef91c5c03761d">USB_NAK_NOWAIT</a></div><div class="ttdeci">#define USB_NAK_NOWAIT</div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00036">address.h:36</a></div></div> <div class="ttc" id="address_8h_html_a660e8da9c1167a8450aef91c5c03761d"><div class="ttname"><a href="address_8h.html#a660e8da9c1167a8450aef91c5c03761d">USB_NAK_NOWAIT</a></div><div class="ttdeci">#define USB_NAK_NOWAIT</div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00036">address.h:36</a></div></div>
<div class="ttc" id="_usb_core_8h_html_afe2fedb4b0ccc89a688c0b4b59691ce0"><div class="ttname"><a href="_usb_core_8h.html#afe2fedb4b0ccc89a688c0b4b59691ce0">USB_ERROR_ADDRESS_NOT_FOUND_IN_POOL</a></div><div class="ttdeci">#define USB_ERROR_ADDRESS_NOT_FOUND_IN_POOL</div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00095">UsbCore.h:95</a></div></div> <div class="ttc" id="_usb_core_8h_html_afe2fedb4b0ccc89a688c0b4b59691ce0"><div class="ttname"><a href="_usb_core_8h.html#afe2fedb4b0ccc89a688c0b4b59691ce0">USB_ERROR_ADDRESS_NOT_FOUND_IN_POOL</a></div><div class="ttdeci">#define USB_ERROR_ADDRESS_NOT_FOUND_IN_POOL</div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00095">UsbCore.h:95</a></div></div>
<div class="ttc" id="_usb_core_8h_html_ae9e139d0fd29bb0b3e7afad2f76cd589"><div class="ttname"><a href="_usb_core_8h.html#ae9e139d0fd29bb0b3e7afad2f76cd589">USB_DEV_CONFIG_ERROR_DEVICE_NOT_SUPPORTED</a></div><div class="ttdeci">#define USB_DEV_CONFIG_ERROR_DEVICE_NOT_SUPPORTED</div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00090">UsbCore.h:90</a></div></div> <div class="ttc" id="_usb_core_8h_html_ae9e139d0fd29bb0b3e7afad2f76cd589"><div class="ttname"><a href="_usb_core_8h.html#ae9e139d0fd29bb0b3e7afad2f76cd589">USB_DEV_CONFIG_ERROR_DEVICE_NOT_SUPPORTED</a></div><div class="ttdeci">#define USB_DEV_CONFIG_ERROR_DEVICE_NOT_SUPPORTED</div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00090">UsbCore.h:90</a></div></div>
@ -644,7 +650,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a916c0ffc31c703da27b5f5cbdabea361"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a916c0ffc31c703da27b5f5cbdabea361">XBOX_ONE_CONTROL_PIPE</a></div><div class="ttdeci">#define XBOX_ONE_CONTROL_PIPE</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00033">XBOXONE.h:33</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a916c0ffc31c703da27b5f5cbdabea361"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a916c0ffc31c703da27b5f5cbdabea361">XBOX_ONE_CONTROL_PIPE</a></div><div class="ttdeci">#define XBOX_ONE_CONTROL_PIPE</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00033">XBOXONE.h:33</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a1a9da90da4584db2de7c84f45bdafc89"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a1a9da90da4584db2de7c84f45bdafc89">XBOX_ONE_OUTPUT_PIPE</a></div><div class="ttdeci">#define XBOX_ONE_OUTPUT_PIPE</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00034">XBOXONE.h:34</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a1a9da90da4584db2de7c84f45bdafc89"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a1a9da90da4584db2de7c84f45bdafc89">XBOX_ONE_OUTPUT_PIPE</a></div><div class="ttdeci">#define XBOX_ONE_OUTPUT_PIPE</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00034">XBOXONE.h:34</a></div></div>
<div class="ttc" id="controller_enums_8h_html_a34dad8f0a0927471137c403216597093af3f3925efa9762c4e9e71ac7da7a94a3"><div class="ttname"><a href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093af3f3925efa9762c4e9e71ac7da7a94a3">LeftHatY</a></div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00161">controllerEnums.h:161</a></div></div> <div class="ttc" id="controller_enums_8h_html_a34dad8f0a0927471137c403216597093af3f3925efa9762c4e9e71ac7da7a94a3"><div class="ttname"><a href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093af3f3925efa9762c4e9e71ac7da7a94a3">LeftHatY</a></div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00161">controllerEnums.h:161</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_af49b526b57d3a3148537bdada9fb69bc"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#af49b526b57d3a3148537bdada9fb69bc">XBOXONE::getAnalogHat</a></div><div class="ttdeci">int16_t getAnalogHat(AnalogHatEnum a)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00400">XBOXONE.cpp:400</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_af49b526b57d3a3148537bdada9fb69bc"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#af49b526b57d3a3148537bdada9fb69bc">XBOXONE::getAnalogHat</a></div><div class="ttdeci">int16_t getAnalogHat(AnalogHatEnum a)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00408">XBOXONE.cpp:408</a></div></div>
<div class="ttc" id="controller_enums_8h_html_a34dad8f0a0927471137c403216597093a383cb8895dd296b7f69ce845ed16b0ca"><div class="ttname"><a href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093a383cb8895dd296b7f69ce845ed16b0ca">LeftHatX</a></div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00159">controllerEnums.h:159</a></div></div> <div class="ttc" id="controller_enums_8h_html_a34dad8f0a0927471137c403216597093a383cb8895dd296b7f69ce845ed16b0ca"><div class="ttname"><a href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093a383cb8895dd296b7f69ce845ed16b0ca">LeftHatX</a></div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00159">controllerEnums.h:159</a></div></div>
<div class="ttc" id="controller_enums_8h_html_a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a"><div class="ttname"><a href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a">R2</a></div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00116">controllerEnums.h:116</a></div></div> <div class="ttc" id="controller_enums_8h_html_a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a"><div class="ttname"><a href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a">R2</a></div><div class="ttdef"><b>Definition:</b> <a href="controller_enums_8h_source.html#l00116">controllerEnums.h:116</a></div></div>
<div class="ttc" id="xbox_enums_8h_html_a35901eab017bd1df5d2361634309adbd"><div class="ttname"><a href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a></div><div class="ttdeci">const uint16_t XBOX_BUTTONS[]</div><div class="ttdef"><b>Definition:</b> <a href="xbox_enums_8h_source.html#l00041">xboxEnums.h:41</a></div></div> <div class="ttc" id="xbox_enums_8h_html_a35901eab017bd1df5d2361634309adbd"><div class="ttname"><a href="xbox_enums_8h.html#a35901eab017bd1df5d2361634309adbd">XBOX_BUTTONS</a></div><div class="ttdeci">const uint16_t XBOX_BUTTONS[]</div><div class="ttdef"><b>Definition:</b> <a href="xbox_enums_8h_source.html#l00041">xboxEnums.h:41</a></div></div>
@ -654,7 +660,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a53082e8413a3e7046b7e96fa3183b0eb"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a53082e8413a3e7046b7e96fa3183b0eb">XBOXONE::VIDPIDOK</a></div><div class="ttdeci">virtual bool VIDPIDOK(uint16_t vid, uint16_t pid)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00124">XBOXONE.h:124</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a53082e8413a3e7046b7e96fa3183b0eb"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a53082e8413a3e7046b7e96fa3183b0eb">XBOXONE::VIDPIDOK</a></div><div class="ttdeci">virtual bool VIDPIDOK(uint16_t vid, uint16_t pid)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00124">XBOXONE.h:124</a></div></div>
<div class="ttc" id="class_u_s_b_html_a193e63c149fad46adabd77ceb09b2b24"><div class="ttname"><a href="class_u_s_b.html#a193e63c149fad46adabd77ceb09b2b24">USB::getDevDescr</a></div><div class="ttdeci">uint8_t getDevDescr(uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t *dataptr)</div><div class="ttdoc">defined(USB_METHODS_INLINE) </div><div class="ttdef"><b>Definition:</b> <a href="_usb_8cpp_source.html#l00796">Usb.cpp:796</a></div></div> <div class="ttc" id="class_u_s_b_html_a193e63c149fad46adabd77ceb09b2b24"><div class="ttname"><a href="class_u_s_b.html#a193e63c149fad46adabd77ceb09b2b24">USB::getDevDescr</a></div><div class="ttdeci">uint8_t getDevDescr(uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t *dataptr)</div><div class="ttdoc">defined(USB_METHODS_INLINE) </div><div class="ttdef"><b>Definition:</b> <a href="_usb_8cpp_source.html#l00796">Usb.cpp:796</a></div></div>
<div class="ttc" id="message_8h_html_a69619d86b1636f141c830ca82c7f45e7"><div class="ttname"><a href="message_8h.html#a69619d86b1636f141c830ca82c7f45e7">NotifyFailSetDevTblEntry</a></div><div class="ttdeci">#define NotifyFailSetDevTblEntry(...)</div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00058">message.h:58</a></div></div> <div class="ttc" id="message_8h_html_a69619d86b1636f141c830ca82c7f45e7"><div class="ttname"><a href="message_8h.html#a69619d86b1636f141c830ca82c7f45e7">NotifyFailSetDevTblEntry</a></div><div class="ttdeci">#define NotifyFailSetDevTblEntry(...)</div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00058">message.h:58</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a6586343cacf8705c7a3c2d4f479f2261"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a6586343cacf8705c7a3c2d4f479f2261">XBOXONE::setRumbleOn</a></div><div class="ttdeci">void setRumbleOn(uint8_t leftTrigger, uint8_t rightTrigger, uint8_t leftMotor, uint8_t rightMotor)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00464">XBOXONE.cpp:464</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a6586343cacf8705c7a3c2d4f479f2261"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a6586343cacf8705c7a3c2d4f479f2261">XBOXONE::setRumbleOn</a></div><div class="ttdeci">void setRumbleOn(uint8_t leftTrigger, uint8_t rightTrigger, uint8_t leftMotor, uint8_t rightMotor)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00472">XBOXONE.cpp:472</a></div></div>
<div class="ttc" id="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html">USB_DEVICE_DESCRIPTOR</a></div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00105">usb_ch9.h:105</a></div></div> <div class="ttc" id="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html">USB_DEVICE_DESCRIPTOR</a></div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00105">usb_ch9.h:105</a></div></div>
</div><!-- fragment --></div><!-- contents --> </div><!-- fragment --></div><!-- contents -->
<!-- start footer part --> <!-- start footer part -->

View file

@ -247,25 +247,25 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a499cc378b8ae7d8fd63baa1b4dab97b5"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a499cc378b8ae7d8fd63baa1b4dab97b5">XBOXONE::EndpointXtract</a></div><div class="ttdeci">void EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00239">XBOXONE.cpp:239</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a499cc378b8ae7d8fd63baa1b4dab97b5"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a499cc378b8ae7d8fd63baa1b4dab97b5">XBOXONE::EndpointXtract</a></div><div class="ttdeci">void EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00239">XBOXONE.cpp:239</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a958f262ed66dd5bf0ad7dfd54a369659"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a958f262ed66dd5bf0ad7dfd54a369659">XBOXONE::bNumEP</a></div><div class="ttdeci">uint8_t bNumEP</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00188">XBOXONE.h:188</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a958f262ed66dd5bf0ad7dfd54a369659"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a958f262ed66dd5bf0ad7dfd54a369659">XBOXONE::bNumEP</a></div><div class="ttdeci">uint8_t bNumEP</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00188">XBOXONE.h:188</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a02fcf09e41a7a1a28fd1bdb28dc098ed"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a02fcf09e41a7a1a28fd1bdb28dc098ed">XBOX_VID6</a></div><div class="ttdeci">#define XBOX_VID6</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00054">XBOXONE.h:54</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a02fcf09e41a7a1a28fd1bdb28dc098ed"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a02fcf09e41a7a1a28fd1bdb28dc098ed">XBOX_VID6</a></div><div class="ttdeci">#define XBOX_VID6</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00054">XBOXONE.h:54</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a2eea30f2ce47380fc414d4fc4231335b"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a2eea30f2ce47380fc414d4fc4231335b">XBOXONE::PrintEndpointDescriptor</a></div><div class="ttdeci">void PrintEndpointDescriptor(const USB_ENDPOINT_DESCRIPTOR *ep_ptr)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00259">XBOXONE.cpp:259</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a2eea30f2ce47380fc414d4fc4231335b"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a2eea30f2ce47380fc414d4fc4231335b">XBOXONE::PrintEndpointDescriptor</a></div><div class="ttdeci">void PrintEndpointDescriptor(const USB_ENDPOINT_DESCRIPTOR *ep_ptr)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00265">XBOXONE.cpp:265</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ac055f7c7156ef515fe362e751fe1bae3"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ac055f7c7156ef515fe362e751fe1bae3">XBOXONE::XboxOneConnected</a></div><div class="ttdeci">bool XboxOneConnected</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00175">XBOXONE.h:175</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_ac055f7c7156ef515fe362e751fe1bae3"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ac055f7c7156ef515fe362e751fe1bae3">XBOXONE::XboxOneConnected</a></div><div class="ttdeci">bool XboxOneConnected</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00175">XBOXONE.h:175</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a8e9bf59d8bc051ff3fa38e2b327ade6e"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a8e9bf59d8bc051ff3fa38e2b327ade6e">XBOX_ONE_MAX_ENDPOINTS</a></div><div class="ttdeci">#define XBOX_ONE_MAX_ENDPOINTS</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00037">XBOXONE.h:37</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a8e9bf59d8bc051ff3fa38e2b327ade6e"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a8e9bf59d8bc051ff3fa38e2b327ade6e">XBOX_ONE_MAX_ENDPOINTS</a></div><div class="ttdeci">#define XBOX_ONE_MAX_ENDPOINTS</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00037">XBOXONE.h:37</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a85fb8c87d82f5c49fdb951d41247563f"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a85fb8c87d82f5c49fdb951d41247563f">XBOX_VID2</a></div><div class="ttdeci">#define XBOX_VID2</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00050">XBOXONE.h:50</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a85fb8c87d82f5c49fdb951d41247563f"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a85fb8c87d82f5c49fdb951d41247563f">XBOX_VID2</a></div><div class="ttdeci">#define XBOX_VID2</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00050">XBOXONE.h:50</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a506e8add57ffac652a28e8c5b7e72e85"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a506e8add57ffac652a28e8c5b7e72e85">XBOXONE::setRumbleOff</a></div><div class="ttdeci">void setRumbleOff()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00442">XBOXONE.cpp:442</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a506e8add57ffac652a28e8c5b7e72e85"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a506e8add57ffac652a28e8c5b7e72e85">XBOXONE::setRumbleOff</a></div><div class="ttdeci">void setRumbleOff()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00450">XBOXONE.cpp:450</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_ac3ac9e12165117b895d17af5f40ea5dd"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#ac3ac9e12165117b895d17af5f40ea5dd">XBOX_ONE_PID8</a></div><div class="ttdeci">#define XBOX_ONE_PID8</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00059">XBOXONE.h:59</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_ac3ac9e12165117b895d17af5f40ea5dd"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#ac3ac9e12165117b895d17af5f40ea5dd">XBOX_ONE_PID8</a></div><div class="ttdeci">#define XBOX_ONE_PID8</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00059">XBOXONE.h:59</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ab836f2e18a00ef89054d66fb2023ba64"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ab836f2e18a00ef89054d66fb2023ba64">XBOXONE::Release</a></div><div class="ttdeci">virtual uint8_t Release()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00278">XBOXONE.cpp:278</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_ab836f2e18a00ef89054d66fb2023ba64"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ab836f2e18a00ef89054d66fb2023ba64">XBOXONE::Release</a></div><div class="ttdeci">virtual uint8_t Release()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00286">XBOXONE.cpp:286</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a17464f5e0fb6afc082555ccb61c29668"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a17464f5e0fb6afc082555ccb61c29668">XBOX_VID4</a></div><div class="ttdeci">#define XBOX_VID4</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00052">XBOXONE.h:52</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a17464f5e0fb6afc082555ccb61c29668"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a17464f5e0fb6afc082555ccb61c29668">XBOX_VID4</a></div><div class="ttdeci">#define XBOX_VID4</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00052">XBOXONE.h:52</a></div></div>
<div class="ttc" id="struct_ep_info_html"><div class="ttname"><a href="struct_ep_info.html">EpInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00039">address.h:39</a></div></div> <div class="ttc" id="struct_ep_info_html"><div class="ttname"><a href="struct_ep_info.html">EpInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00039">address.h:39</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="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_x_b_o_x_o_n_e_html_ae197d34a4c2138d1889afe2c2e3345c4"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4">XBOXONE::getButtonPress</a></div><div class="ttdeci">uint16_t getButtonPress(ButtonEnum b)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00372">XBOXONE.cpp:372</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_ae197d34a4c2138d1889afe2c2e3345c4"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4">XBOXONE::getButtonPress</a></div><div class="ttdeci">uint16_t getButtonPress(ButtonEnum b)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00380">XBOXONE.cpp:380</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a05332491fe28b71c6d7c9a9827370bdf"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a05332491fe28b71c6d7c9a9827370bdf">XBOXONE::GetAddress</a></div><div class="ttdeci">virtual uint8_t GetAddress()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00098">XBOXONE.h:98</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a05332491fe28b71c6d7c9a9827370bdf"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a05332491fe28b71c6d7c9a9827370bdf">XBOXONE::GetAddress</a></div><div class="ttdeci">virtual uint8_t GetAddress()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00098">XBOXONE.h:98</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a4d0702c6fc0327535d909975670e9284"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284">XBOXONE::qNextPollTime</a></div><div class="ttdeci">uint32_t qNextPollTime</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00190">XBOXONE.h:190</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a4d0702c6fc0327535d909975670e9284"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a4d0702c6fc0327535d909975670e9284">XBOXONE::qNextPollTime</a></div><div class="ttdeci">uint32_t qNextPollTime</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00190">XBOXONE.h:190</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_abba090da8fd2707cb996899e798d1bd4"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#abba090da8fd2707cb996899e798d1bd4">XBOX_ONE_PID2</a></div><div class="ttdeci">#define XBOX_ONE_PID2</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00044">XBOXONE.h:44</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_abba090da8fd2707cb996899e798d1bd4"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#abba090da8fd2707cb996899e798d1bd4">XBOX_ONE_PID2</a></div><div class="ttdeci">#define XBOX_ONE_PID2</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00044">XBOXONE.h:44</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a2915fc1f1f3a9c5333bfd643defa0621"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">XBOXONE::epInfo</a></div><div class="ttdeci">EpInfo epInfo[XBOX_ONE_MAX_ENDPOINTS]</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00183">XBOXONE.h:183</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a2915fc1f1f3a9c5333bfd643defa0621"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a2915fc1f1f3a9c5333bfd643defa0621">XBOXONE::epInfo</a></div><div class="ttdeci">EpInfo epInfo[XBOX_ONE_MAX_ENDPOINTS]</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00183">XBOXONE.h:183</a></div></div>
<div class="ttc" id="class_usb_config_xtracter_html"><div class="ttname"><a href="class_usb_config_xtracter.html">UsbConfigXtracter</a></div><div class="ttdef"><b>Definition:</b> <a href="confdescparser_8h_source.html#l00030">confdescparser.h:30</a></div></div> <div class="ttc" id="class_usb_config_xtracter_html"><div class="ttname"><a href="class_usb_config_xtracter.html">UsbConfigXtracter</a></div><div class="ttdef"><b>Definition:</b> <a href="confdescparser_8h_source.html#l00030">confdescparser.h:30</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a9bd03dd0f2abde83f34635ab72564811"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811">XBOXONE::getButtonClick</a></div><div class="ttdeci">bool getButtonClick(ButtonEnum b)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00380">XBOXONE.cpp:380</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a9bd03dd0f2abde83f34635ab72564811"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811">XBOXONE::getButtonClick</a></div><div class="ttdeci">bool getButtonClick(ButtonEnum b)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00388">XBOXONE.cpp:388</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ae606811be2389140b19421aad2cb040f"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ae606811be2389140b19421aad2cb040f">XBOXONE::readPollInterval</a></div><div class="ttdeci">uint8_t readPollInterval()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00114">XBOXONE.h:114</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_ae606811be2389140b19421aad2cb040f"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ae606811be2389140b19421aad2cb040f">XBOXONE::readPollInterval</a></div><div class="ttdeci">uint8_t readPollInterval()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00114">XBOXONE.h:114</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_ac645e477bde4c2c2674ad8916f749651"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ac645e477bde4c2c2674ad8916f749651">XBOXONE::Poll</a></div><div class="ttdeci">virtual uint8_t Poll()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00292">XBOXONE.cpp:292</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_ac645e477bde4c2c2674ad8916f749651"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#ac645e477bde4c2c2674ad8916f749651">XBOXONE::Poll</a></div><div class="ttdeci">virtual uint8_t Poll()</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00300">XBOXONE.cpp:300</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a3692a20fd79bcdfdcdec36b4acae8a76"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a3692a20fd79bcdfdcdec36b4acae8a76">XBOX_ONE_PID11</a></div><div class="ttdeci">#define XBOX_ONE_PID11</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00062">XBOXONE.h:62</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a3692a20fd79bcdfdcdec36b4acae8a76"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a3692a20fd79bcdfdcdec36b4acae8a76">XBOX_ONE_PID11</a></div><div class="ttdeci">#define XBOX_ONE_PID11</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00062">XBOXONE.h:62</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a148021ecf4a60cb1f25d59bb698fa7df"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a148021ecf4a60cb1f25d59bb698fa7df">XBOX_ONE_PID4</a></div><div class="ttdeci">#define XBOX_ONE_PID4</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00046">XBOXONE.h:46</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a148021ecf4a60cb1f25d59bb698fa7df"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a148021ecf4a60cb1f25d59bb698fa7df">XBOX_ONE_PID4</a></div><div class="ttdeci">#define XBOX_ONE_PID4</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00046">XBOXONE.h:46</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_aeb2d90a3d77fc252a12f5ed54c3f370e"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#aeb2d90a3d77fc252a12f5ed54c3f370e">XBOXONE::Init</a></div><div class="ttdeci">virtual uint8_t Init(uint8_t parent, uint8_t port, bool lowspeed)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00046">XBOXONE.cpp:46</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_aeb2d90a3d77fc252a12f5ed54c3f370e"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#aeb2d90a3d77fc252a12f5ed54c3f370e">XBOXONE::Init</a></div><div class="ttdeci">virtual uint8_t Init(uint8_t parent, uint8_t port, bool lowspeed)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00046">XBOXONE.cpp:46</a></div></div>
@ -275,13 +275,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
<div class="ttc" id="class_u_s_b_html"><div class="ttname"><a href="class_u_s_b.html">USB</a></div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00210">UsbCore.h:210</a></div></div> <div class="ttc" id="class_u_s_b_html"><div class="ttname"><a href="class_u_s_b.html">USB</a></div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00210">UsbCore.h:210</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_ade0eb2e0dd4f0c3fe45c82121f31d44d"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#ade0eb2e0dd4f0c3fe45c82121f31d44d">XBOX_VID5</a></div><div class="ttdeci">#define XBOX_VID5</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00053">XBOXONE.h:53</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_ade0eb2e0dd4f0c3fe45c82121f31d44d"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#ade0eb2e0dd4f0c3fe45c82121f31d44d">XBOX_VID5</a></div><div class="ttdeci">#define XBOX_VID5</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00053">XBOXONE.h:53</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_aede8fa4d1fe42ddc8c48f0bb2bfeee0c"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#aede8fa4d1fe42ddc8c48f0bb2bfeee0c">XBOX_ONE_PID6</a></div><div class="ttdeci">#define XBOX_ONE_PID6</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00057">XBOXONE.h:57</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_aede8fa4d1fe42ddc8c48f0bb2bfeee0c"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#aede8fa4d1fe42ddc8c48f0bb2bfeee0c">XBOX_ONE_PID6</a></div><div class="ttdeci">#define XBOX_ONE_PID6</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00057">XBOXONE.h:57</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_af49b526b57d3a3148537bdada9fb69bc"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#af49b526b57d3a3148537bdada9fb69bc">XBOXONE::getAnalogHat</a></div><div class="ttdeci">int16_t getAnalogHat(AnalogHatEnum a)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00400">XBOXONE.cpp:400</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_af49b526b57d3a3148537bdada9fb69bc"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#af49b526b57d3a3148537bdada9fb69bc">XBOXONE::getAnalogHat</a></div><div class="ttdeci">int16_t getAnalogHat(AnalogHatEnum a)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00408">XBOXONE.cpp:408</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a72296ecd70897c4fcfe4c614bbf2051b"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a72296ecd70897c4fcfe4c614bbf2051b">XBOX_VID1</a></div><div class="ttdeci">#define XBOX_VID1</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00042">XBOXONE.h:42</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a72296ecd70897c4fcfe4c614bbf2051b"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a72296ecd70897c4fcfe4c614bbf2051b">XBOX_VID1</a></div><div class="ttdeci">#define XBOX_VID1</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00042">XBOXONE.h:42</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html">XBOXONE</a></div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00066">XBOXONE.h:66</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html">XBOXONE</a></div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00066">XBOXONE.h:66</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a10b005f24d84af7d10268faabea14c1e"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a10b005f24d84af7d10268faabea14c1e">XBOX_ONE_PID1</a></div><div class="ttdeci">#define XBOX_ONE_PID1</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00043">XBOXONE.h:43</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a10b005f24d84af7d10268faabea14c1e"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a10b005f24d84af7d10268faabea14c1e">XBOX_ONE_PID1</a></div><div class="ttdeci">#define XBOX_ONE_PID1</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00043">XBOXONE.h:43</a></div></div>
<div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a6cc79a26eb1b03c3ca320f8adcd1d1bd"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a6cc79a26eb1b03c3ca320f8adcd1d1bd">XBOX_ONE_PID3</a></div><div class="ttdeci">#define XBOX_ONE_PID3</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00045">XBOXONE.h:45</a></div></div> <div class="ttc" id="_x_b_o_x_o_n_e_8h_html_a6cc79a26eb1b03c3ca320f8adcd1d1bd"><div class="ttname"><a href="_x_b_o_x_o_n_e_8h.html#a6cc79a26eb1b03c3ca320f8adcd1d1bd">XBOX_ONE_PID3</a></div><div class="ttdeci">#define XBOX_ONE_PID3</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00045">XBOXONE.h:45</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a53082e8413a3e7046b7e96fa3183b0eb"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a53082e8413a3e7046b7e96fa3183b0eb">XBOXONE::VIDPIDOK</a></div><div class="ttdeci">virtual bool VIDPIDOK(uint16_t vid, uint16_t pid)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00124">XBOXONE.h:124</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a53082e8413a3e7046b7e96fa3183b0eb"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a53082e8413a3e7046b7e96fa3183b0eb">XBOXONE::VIDPIDOK</a></div><div class="ttdeci">virtual bool VIDPIDOK(uint16_t vid, uint16_t pid)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8h_source.html#l00124">XBOXONE.h:124</a></div></div>
<div class="ttc" id="class_x_b_o_x_o_n_e_html_a6586343cacf8705c7a3c2d4f479f2261"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a6586343cacf8705c7a3c2d4f479f2261">XBOXONE::setRumbleOn</a></div><div class="ttdeci">void setRumbleOn(uint8_t leftTrigger, uint8_t rightTrigger, uint8_t leftMotor, uint8_t rightMotor)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00464">XBOXONE.cpp:464</a></div></div> <div class="ttc" id="class_x_b_o_x_o_n_e_html_a6586343cacf8705c7a3c2d4f479f2261"><div class="ttname"><a href="class_x_b_o_x_o_n_e.html#a6586343cacf8705c7a3c2d4f479f2261">XBOXONE::setRumbleOn</a></div><div class="ttdeci">void setRumbleOn(uint8_t leftTrigger, uint8_t rightTrigger, uint8_t leftMotor, uint8_t rightMotor)</div><div class="ttdef"><b>Definition:</b> <a href="_x_b_o_x_o_n_e_8cpp_source.html#l00472">XBOXONE.cpp:472</a></div></div>
</div><!-- fragment --></div><!-- contents --> </div><!-- fragment --></div><!-- contents -->
<!-- start footer part --> <!-- start footer part -->
<hr class="footer"/><address class="footer"><small> <hr class="footer"/><address class="footer"><small>

View file

@ -290,7 +290,7 @@ Protected Attributes</h2></td></tr>
<p>Reimplemented from <a class="el" href="class_u_s_b_device_config.html#a61e301efedae55c6ac12c6cce154e432">USBDeviceConfig</a>.</p> <p>Reimplemented from <a class="el" href="class_u_s_b_device_config.html#a61e301efedae55c6ac12c6cce154e432">USBDeviceConfig</a>.</p>
<p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00278">278</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p> <p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00286">286</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p>
</div> </div>
</div> </div>
@ -319,7 +319,7 @@ Protected Attributes</h2></td></tr>
<p>Reimplemented from <a class="el" href="class_u_s_b_device_config.html#a893ea73deab98be837c257201e7da25a">USBDeviceConfig</a>.</p> <p>Reimplemented from <a class="el" href="class_u_s_b_device_config.html#a893ea73deab98be837c257201e7da25a">USBDeviceConfig</a>.</p>
<p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00292">292</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p> <p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00300">300</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p>
</div> </div>
</div> </div>
@ -477,7 +477,7 @@ Protected Attributes</h2></td></tr>
</dl> </dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811">getButtonClick(ButtonEnum b)</a> will return a bool, while <a class="el" href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4">getButtonPress(ButtonEnum b)</a> will return a word if reading <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066">L2</a> or <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a">R2</a>. </dd></dl> <dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811">getButtonClick(ButtonEnum b)</a> will return a bool, while <a class="el" href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4">getButtonPress(ButtonEnum b)</a> will return a word if reading <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066">L2</a> or <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a">R2</a>. </dd></dl>
<p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00372">372</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p> <p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00380">380</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p>
</div> </div>
</div> </div>
@ -505,7 +505,7 @@ Protected Attributes</h2></td></tr>
</dl> </dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811">getButtonClick(ButtonEnum b)</a> will return a bool, while <a class="el" href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4">getButtonPress(ButtonEnum b)</a> will return a word if reading <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066">L2</a> or <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a">R2</a>. </dd></dl> <dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_x_b_o_x_o_n_e.html#a9bd03dd0f2abde83f34635ab72564811">getButtonClick(ButtonEnum b)</a> will return a bool, while <a class="el" href="class_x_b_o_x_o_n_e.html#ae197d34a4c2138d1889afe2c2e3345c4">getButtonPress(ButtonEnum b)</a> will return a word if reading <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066">L2</a> or <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a">R2</a>. </dd></dl>
<p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00380">380</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p> <p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00388">388</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p>
</div> </div>
</div> </div>
@ -531,7 +531,7 @@ Protected Attributes</h2></td></tr>
</dl> </dl>
<dl class="section return"><dt>Returns</dt><dd>Returns a signed 16-bit integer. </dd></dl> <dl class="section return"><dt>Returns</dt><dd>Returns a signed 16-bit integer. </dd></dl>
<p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00400">400</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p> <p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00408">408</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p>
</div> </div>
</div> </div>
@ -582,7 +582,7 @@ Protected Attributes</h2></td></tr>
</div><div class="memdoc"> </div><div class="memdoc">
<p>Used to set the rumble off. </p> <p>Used to set the rumble off. </p>
<p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00442">442</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p> <p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00450">450</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p>
</div> </div>
</div> </div>
@ -632,7 +632,7 @@ Protected Attributes</h2></td></tr>
</dd> </dd>
</dl> </dl>
<p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00464">464</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p> <p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00472">472</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p>
</div> </div>
</div> </div>
@ -732,7 +732,7 @@ Protected Attributes</h2></td></tr>
</dd> </dd>
</dl> </dl>
<p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00259">259</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p> <p>Definition at line <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html#l00265">265</a> of file <a class="el" href="_x_b_o_x_o_n_e_8cpp_source.html">XBOXONE.cpp</a>.</p>
</div> </div>
</div> </div>