USB_Host_Shield_2.0/class_switch_pro_b_t.html

501 lines
48 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>USB Host Shield 2.0: SwitchProBT Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="imageStyle.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">USB Host Shield 2.0
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_switch_pro_b_t-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">SwitchProBT Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="_switch_pro_b_t_8h_source.html">SwitchProBT.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for SwitchProBT:</div>
<div class="dyncontent">
<div class="center"><img src="class_switch_pro_b_t__inherit__graph.png" border="0" usemap="#_switch_pro_b_t_inherit__map" alt="Inheritance graph"/></div>
<map name="_switch_pro_b_t_inherit__map" id="_switch_pro_b_t_inherit__map">
<area shape="rect" title=" " alt="" coords="79,155,182,181"/>
<area shape="rect" href="class_b_t_h_i_d.html" title=" " alt="" coords="41,80,103,107"/>
<area shape="rect" href="class_bluetooth_service.html" title=" " alt="" coords="5,5,139,32"/>
<area shape="rect" href="class_switch_pro_parser.html" title=" " alt="" coords="127,80,254,107"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for SwitchProBT:</div>
<div class="dyncontent">
<div class="center"><img src="class_switch_pro_b_t__coll__graph.png" border="0" usemap="#_switch_pro_b_t_coll__map" alt="Collaboration graph"/></div>
<map name="_switch_pro_b_t_coll__map" id="_switch_pro_b_t_coll__map">
<area shape="rect" title=" " alt="" coords="296,425,399,452"/>
<area shape="rect" href="class_b_t_h_i_d.html" title=" " alt="" coords="257,349,320,376"/>
<area shape="rect" href="class_bluetooth_service.html" title=" " alt="" coords="207,260,341,287"/>
<area shape="rect" href="class_b_t_d.html" title=" " alt="" coords="249,171,299,197"/>
<area shape="rect" href="class_u_s_b_device_config.html" title=" " alt="" coords="5,81,140,108"/>
<area shape="rect" href="class_usb_config_xtracter.html" title=" " alt="" coords="164,81,304,108"/>
<area shape="rect" href="class_u_s_b.html" title=" " alt="" coords="328,81,377,108"/>
<area shape="rect" href="class_m_a_x3421e.html" title=" " alt="" coords="307,5,399,32"/>
<area shape="rect" href="struct_ep_info.html" title=" " alt="" coords="401,81,464,108"/>
<area shape="rect" href="class_switch_pro_parser.html" title=" " alt="" coords="363,349,489,376"/>
<area shape="rect" href="struct_switch_pro_output.html" title=" " alt="" coords="365,260,495,287"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7d5e4f95a9b372c394f83912e6c7601c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_b_t.html#a7d5e4f95a9b372c394f83912e6c7601c">SwitchProBT</a> (<a class="el" href="class_b_t_d.html">BTD</a> *p, bool <a class="el" href="class_b_t_h_i_d.html#afb19720b65cda69d910416c7a689dd45">pair</a>=false, const char *pin=&quot;0000&quot;)</td></tr>
<tr class="separator:a7d5e4f95a9b372c394f83912e6c7601c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59c7ce1651dc72c4cf4f1e2cf55b81a7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_b_t.html#a59c7ce1651dc72c4cf4f1e2cf55b81a7">connected</a> ()</td></tr>
<tr class="separator:a59c7ce1651dc72c4cf4f1e2cf55b81a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_b_t_h_i_d"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_b_t_h_i_d')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_b_t_h_i_d.html">BTHID</a></td></tr>
<tr class="memitem:a5ee874513852b83d6a04b991ab892f54 inherit pub_methods_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#a5ee874513852b83d6a04b991ab892f54">BTHID</a> (<a class="el" href="class_b_t_d.html">BTD</a> *p, bool <a class="el" href="class_b_t_h_i_d.html#afb19720b65cda69d910416c7a689dd45">pair</a>=false, const char *pin=&quot;0000&quot;)</td></tr>
<tr class="separator:a5ee874513852b83d6a04b991ab892f54 inherit pub_methods_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade1924514bc9c9cd71f54a1f37529575 inherit pub_methods_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_h_i_d_report_parser.html">HIDReportParser</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#ade1924514bc9c9cd71f54a1f37529575">GetReportParser</a> (uint8_t id)</td></tr>
<tr class="separator:ade1924514bc9c9cd71f54a1f37529575 inherit pub_methods_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e903f0b5040f3561e5de6c4431027b1 inherit pub_methods_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#a0e903f0b5040f3561e5de6c4431027b1">SetReportParser</a> (uint8_t id, <a class="el" href="class_h_i_d_report_parser.html">HIDReportParser</a> *prs)</td></tr>
<tr class="separator:a0e903f0b5040f3561e5de6c4431027b1 inherit pub_methods_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afceaafc89581441da40b141170b98595 inherit pub_methods_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#afceaafc89581441da40b141170b98595">setProtocolMode</a> (uint8_t mode)</td></tr>
<tr class="separator:afceaafc89581441da40b141170b98595 inherit pub_methods_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb19720b65cda69d910416c7a689dd45 inherit pub_methods_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#afb19720b65cda69d910416c7a689dd45">pair</a> (void)</td></tr>
<tr class="separator:afb19720b65cda69d910416c7a689dd45 inherit pub_methods_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d6a230b8916108f32bb3ca628e10bbf inherit pub_methods_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#a0d6a230b8916108f32bb3ca628e10bbf">getLastMessageTime</a> ()</td></tr>
<tr class="separator:a0d6a230b8916108f32bb3ca628e10bbf inherit pub_methods_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbe1ef647fe57bfeaf72ce86cddb8357 inherit pub_methods_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#adbe1ef647fe57bfeaf72ce86cddb8357">setLeds</a> (struct <a class="el" href="struct_k_b_d_l_e_d_s.html">KBDLEDS</a> data)</td></tr>
<tr class="separator:adbe1ef647fe57bfeaf72ce86cddb8357 inherit pub_methods_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae222e33ac617620c4cab5c1b23b89310 inherit pub_methods_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#ae222e33ac617620c4cab5c1b23b89310">setLeds</a> (uint8_t data)</td></tr>
<tr class="separator:ae222e33ac617620c4cab5c1b23b89310 inherit pub_methods_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1ee62d7b9951ec7960f122c9fc2d2d0 inherit pub_methods_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#ae1ee62d7b9951ec7960f122c9fc2d2d0">disconnect</a> ()</td></tr>
<tr class="separator:ae1ee62d7b9951ec7960f122c9fc2d2d0 inherit pub_methods_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_bluetooth_service"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_bluetooth_service')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_bluetooth_service.html">BluetoothService</a></td></tr>
<tr class="memitem:a410c7df1e49328de23a89921c89f9573 inherit pub_methods_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#a410c7df1e49328de23a89921c89f9573">BluetoothService</a> (<a class="el" href="class_b_t_d.html">BTD</a> *p)</td></tr>
<tr class="separator:a410c7df1e49328de23a89921c89f9573 inherit pub_methods_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a488e219cf0a90d39e643615b1f12e91f inherit pub_methods_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#a488e219cf0a90d39e643615b1f12e91f">attachOnInit</a> (void(*funcOnInit)(void))</td></tr>
<tr class="separator:a488e219cf0a90d39e643615b1f12e91f inherit pub_methods_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_switch_pro_parser"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_switch_pro_parser')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_switch_pro_parser.html">SwitchProParser</a></td></tr>
<tr class="memitem:a85db48692252c7f28c91c5582ed022c3 inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a85db48692252c7f28c91c5582ed022c3">SwitchProParser</a> ()</td></tr>
<tr class="separator:a85db48692252c7f28c91c5582ed022c3 inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a292e664f95d4c5b410ca79a9450c46a3 inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a292e664f95d4c5b410ca79a9450c46a3">getButtonPress</a> (<a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b)</td></tr>
<tr class="separator:a292e664f95d4c5b410ca79a9450c46a3 inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a163612831c3f1f9327f085a3104ed0d4 inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a163612831c3f1f9327f085a3104ed0d4">getButtonClick</a> (<a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b)</td></tr>
<tr class="separator:a163612831c3f1f9327f085a3104ed0d4 inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f87ee43a2313148f9e8376406b0d563 inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a0f87ee43a2313148f9e8376406b0d563">getAnalogHat</a> (<a class="el" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093">AnalogHatEnum</a> a)</td></tr>
<tr class="separator:a0f87ee43a2313148f9e8376406b0d563 inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3877333d3c4c8407d10351b759835e01 inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a3877333d3c4c8407d10351b759835e01">enableImu</a> (bool enable)</td></tr>
<tr class="separator:a3877333d3c4c8407d10351b759835e01 inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ef4f1ea633a25ac736cbd86b5fdeb27 inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a1ef4f1ea633a25ac736cbd86b5fdeb27">getAngle</a> (<a class="el" href="controller_enums_8h.html#a7c7824a10a9ffa8fea85602fcf4d84e6">AngleEnum</a> a)</td></tr>
<tr class="separator:a1ef4f1ea633a25ac736cbd86b5fdeb27 inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40e2e73968f611b9eda6f7fb51cd69e1 inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a40e2e73968f611b9eda6f7fb51cd69e1">getSensor</a> (<a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51">SensorEnum</a> s)</td></tr>
<tr class="separator:a40e2e73968f611b9eda6f7fb51cd69e1 inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a610f4352736e66dd771bdf861d0c15ea inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a610f4352736e66dd771bdf861d0c15ea">setAllOff</a> ()</td></tr>
<tr class="separator:a610f4352736e66dd771bdf861d0c15ea inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa53fdd73be6381ed34b679e8a22d40fd inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#aa53fdd73be6381ed34b679e8a22d40fd">setRumbleOff</a> ()</td></tr>
<tr class="separator:aa53fdd73be6381ed34b679e8a22d40fd inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae728c5d688da18e88a33262ed2badb8b inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#ae728c5d688da18e88a33262ed2badb8b">setRumbleToggle</a> ()</td></tr>
<tr class="separator:ae728c5d688da18e88a33262ed2badb8b inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1cf06c32c5c5ae134a1575311ce5bd2c inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a1cf06c32c5c5ae134a1575311ce5bd2c">setRumble</a> (bool leftRumbleOn, bool rightRumbleOn)</td></tr>
<tr class="separator:a1cf06c32c5c5ae134a1575311ce5bd2c inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af438f8f06fadfd270b525b0b83b7ef6e inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#af438f8f06fadfd270b525b0b83b7ef6e">setRumbleLeft</a> (bool on)</td></tr>
<tr class="separator:af438f8f06fadfd270b525b0b83b7ef6e inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90b47bca515de4f3909dfb841e3817d6 inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a90b47bca515de4f3909dfb841e3817d6">setRumbleRight</a> (bool on)</td></tr>
<tr class="separator:a90b47bca515de4f3909dfb841e3817d6 inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bcc2cf9e69e4f90d81cb0869f55ca05 inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a4bcc2cf9e69e4f90d81cb0869f55ca05">setLedRaw</a> (uint8_t mask)</td></tr>
<tr class="separator:a4bcc2cf9e69e4f90d81cb0869f55ca05 inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17f1aef8f55bb2845edb2a255037b76b inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a17f1aef8f55bb2845edb2a255037b76b">setLedOff</a> ()</td></tr>
<tr class="separator:a17f1aef8f55bb2845edb2a255037b76b inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e8f055fe136eb9c3b646ff12b2b261a inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a2e8f055fe136eb9c3b646ff12b2b261a">setLedOff</a> (<a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> a)</td></tr>
<tr class="separator:a2e8f055fe136eb9c3b646ff12b2b261a inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7956f6c328bdf5113c57b56d235572a7 inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a7956f6c328bdf5113c57b56d235572a7">setLedOn</a> (<a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> a)</td></tr>
<tr class="separator:a7956f6c328bdf5113c57b56d235572a7 inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6216e3f43b17e84226c95ef0b1f8e69b inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a6216e3f43b17e84226c95ef0b1f8e69b">setLedToggle</a> (<a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> a)</td></tr>
<tr class="separator:a6216e3f43b17e84226c95ef0b1f8e69b inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a23a1d822f97a3502502854dc8e2f8a inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a2a23a1d822f97a3502502854dc8e2f8a">setLedHomeOff</a> ()</td></tr>
<tr class="separator:a2a23a1d822f97a3502502854dc8e2f8a inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4d90c6a9e1b275beb6982d834874cae inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#af4d90c6a9e1b275beb6982d834874cae">setLedHomeOn</a> ()</td></tr>
<tr class="separator:af4d90c6a9e1b275beb6982d834874cae inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3656bc02dc69dd62549f72084991ba6 inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#ab3656bc02dc69dd62549f72084991ba6">setLedHomeToggle</a> ()</td></tr>
<tr class="separator:ab3656bc02dc69dd62549f72084991ba6 inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9afb7a6557642cfc71d8f70f3e2d1c25 inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a9afb7a6557642cfc71d8f70f3e2d1c25">getMessageCounter</a> ()</td></tr>
<tr class="separator:a9afb7a6557642cfc71d8f70f3e2d1c25 inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11c576f9a670ce43956a00e83b38e87e inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a11c576f9a670ce43956a00e83b38e87e">getBatteryLevel</a> ()</td></tr>
<tr class="separator:a11c576f9a670ce43956a00e83b38e87e inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a89147ec13b27bd368240c7ee8a92b2 inherit pub_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a3a89147ec13b27bd368240c7ee8a92b2">isCharging</a> ()</td></tr>
<tr class="separator:a3a89147ec13b27bd368240c7ee8a92b2 inherit pub_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">BTHID implementation</div></td></tr>
<tr class="memitem:a3c7cc7f920685f3443eb005d5c3cd74c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_b_t.html#a3c7cc7f920685f3443eb005d5c3cd74c">ParseBTHIDData</a> (uint8_t len, uint8_t *buf)</td></tr>
<tr class="separator:a3c7cc7f920685f3443eb005d5c3cd74c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe57a4d564d4880d41488a0f82274e76"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_b_t.html#afe57a4d564d4880d41488a0f82274e76">OnInitBTHID</a> ()</td></tr>
<tr class="separator:afe57a4d564d4880d41488a0f82274e76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e3a6e1390cb85f4691eaa98acdb62b5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_b_t.html#a1e3a6e1390cb85f4691eaa98acdb62b5">ResetBTHID</a> ()</td></tr>
<tr class="separator:a1e3a6e1390cb85f4691eaa98acdb62b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">SwitchProParser implementation</div></td></tr>
<tr class="memitem:a7b394d6ccc473f158d19e5354a257fdd"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_b_t.html#a7b394d6ccc473f158d19e5354a257fdd">sendOutputReport</a> (uint8_t *data, uint8_t len)</td></tr>
<tr class="separator:a7b394d6ccc473f158d19e5354a257fdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_b_t_h_i_d"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_b_t_h_i_d')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="class_b_t_h_i_d.html">BTHID</a></td></tr>
<tr class="memitem:ad8339ed58b8c19bb5bee1c8aaa4bb715 inherit pro_methods_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#ad8339ed58b8c19bb5bee1c8aaa4bb715">ParseBTHIDControlData</a> (uint8_t len, uint8_t *buf)</td></tr>
<tr class="separator:ad8339ed58b8c19bb5bee1c8aaa4bb715 inherit pro_methods_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84eb1b910027f2d78741f65225c14e54 inherit pro_methods_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#a84eb1b910027f2d78741f65225c14e54">ACLData</a> (uint8_t *ACLData)</td></tr>
<tr class="separator:a84eb1b910027f2d78741f65225c14e54 inherit pro_methods_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a938eab04e406a29cc9324dad3ccb52cc inherit pro_methods_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#a938eab04e406a29cc9324dad3ccb52cc">Run</a> ()</td></tr>
<tr class="separator:a938eab04e406a29cc9324dad3ccb52cc inherit pro_methods_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4c58b81414a037910dd6fb78f97b96e inherit pro_methods_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#af4c58b81414a037910dd6fb78f97b96e">Reset</a> ()</td></tr>
<tr class="separator:af4c58b81414a037910dd6fb78f97b96e inherit pro_methods_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c3d1a1c2420a7f7d6d9f8a75a4a5a88 inherit pro_methods_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#a9c3d1a1c2420a7f7d6d9f8a75a4a5a88">onInit</a> ()</td></tr>
<tr class="separator:a9c3d1a1c2420a7f7d6d9f8a75a4a5a88 inherit pro_methods_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_bluetooth_service"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_bluetooth_service')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="class_bluetooth_service.html">BluetoothService</a></td></tr>
<tr class="memitem:a2a3674a4bb5d409840995eabe07049bd inherit pro_methods_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#a2a3674a4bb5d409840995eabe07049bd">checkHciHandle</a> (uint8_t *buf, uint16_t handle)</td></tr>
<tr class="separator:a2a3674a4bb5d409840995eabe07049bd inherit pro_methods_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_switch_pro_parser"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_switch_pro_parser')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="class_switch_pro_parser.html">SwitchProParser</a></td></tr>
<tr class="memitem:ae367fa9a7d7246765230473bac09b101 inherit pro_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#ae367fa9a7d7246765230473bac09b101">Parse</a> (uint8_t len, uint8_t *buf)</td></tr>
<tr class="separator:ae367fa9a7d7246765230473bac09b101 inherit pro_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2f27f3be01e18845d102bd6f24c87fa inherit pro_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#ac2f27f3be01e18845d102bd6f24c87fa">Reset</a> ()</td></tr>
<tr class="separator:ac2f27f3be01e18845d102bd6f24c87fa inherit pro_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1a55bb91dff131b50eb3a7ea4543470 inherit pro_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#ac1a55bb91dff131b50eb3a7ea4543470">sendHandshake</a> ()</td></tr>
<tr class="separator:ac1a55bb91dff131b50eb3a7ea4543470 inherit pro_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e853cd5d73f424610f0e78fcbd65b1a inherit pro_methods_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#a4e853cd5d73f424610f0e78fcbd65b1a">disableTimeout</a> ()</td></tr>
<tr class="separator:a4e853cd5d73f424610f0e78fcbd65b1a inherit pro_methods_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_attribs_class_b_t_h_i_d"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_class_b_t_h_i_d')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="class_b_t_h_i_d.html">BTHID</a></td></tr>
<tr class="memitem:ab3a81823a1d8805383146a6baad6ccc4 inherit pub_attribs_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#ab3a81823a1d8805383146a6baad6ccc4">connected</a></td></tr>
<tr class="separator:ab3a81823a1d8805383146a6baad6ccc4 inherit pub_attribs_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_b_t_h_i_d"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_b_t_h_i_d')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_b_t_h_i_d.html">BTHID</a></td></tr>
<tr class="memitem:acf6933a4988ed9f48c6e08cc7c9b906c inherit pro_attribs_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#acf6933a4988ed9f48c6e08cc7c9b906c">control_scid</a> [2]</td></tr>
<tr class="separator:acf6933a4988ed9f48c6e08cc7c9b906c inherit pro_attribs_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34a91f92ea32033403c2b37af92535dc inherit pro_attribs_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#a34a91f92ea32033403c2b37af92535dc">interrupt_scid</a> [2]</td></tr>
<tr class="separator:a34a91f92ea32033403c2b37af92535dc inherit pro_attribs_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae239a164548e359b4deead55ed540962 inherit pro_attribs_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#ae239a164548e359b4deead55ed540962">l2cap_sdp_state</a></td></tr>
<tr class="separator:ae239a164548e359b4deead55ed540962 inherit pro_attribs_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0446c8e266a111f007b48fa7895f36d7 inherit pro_attribs_class_b_t_h_i_d"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_h_i_d.html#a0446c8e266a111f007b48fa7895f36d7">sdp_scid</a> [2]</td></tr>
<tr class="separator:a0446c8e266a111f007b48fa7895f36d7 inherit pro_attribs_class_b_t_h_i_d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_bluetooth_service"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_bluetooth_service')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_bluetooth_service.html">BluetoothService</a></td></tr>
<tr class="memitem:a321393d44ce59213fa1c7498c247d5ff inherit pro_attribs_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#a321393d44ce59213fa1c7498c247d5ff">pFuncOnInit</a> )(void)</td></tr>
<tr class="separator:a321393d44ce59213fa1c7498c247d5ff inherit pro_attribs_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa67faf901f78a55a202945a20f6d778a inherit pro_attribs_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_b_t_d.html">BTD</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#aa67faf901f78a55a202945a20f6d778a">pBtd</a></td></tr>
<tr class="separator:aa67faf901f78a55a202945a20f6d778a inherit pro_attribs_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67b1db67c05d0bbdcd9c992135455437 inherit pro_attribs_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#a67b1db67c05d0bbdcd9c992135455437">hci_handle</a></td></tr>
<tr class="separator:a67b1db67c05d0bbdcd9c992135455437 inherit pro_attribs_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78a1a893ec9c2db32e42bc2271c4a4f2 inherit pro_attribs_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#a78a1a893ec9c2db32e42bc2271c4a4f2">l2cap_event_flag</a></td></tr>
<tr class="separator:a78a1a893ec9c2db32e42bc2271c4a4f2 inherit pro_attribs_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad643db609c7e2e3fae8904dbc7991262 inherit pro_attribs_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#ad643db609c7e2e3fae8904dbc7991262">identifier</a></td></tr>
<tr class="separator:ad643db609c7e2e3fae8904dbc7991262 inherit pro_attribs_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_switch_pro_parser"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_switch_pro_parser')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_switch_pro_parser.html">SwitchProParser</a></td></tr>
<tr class="memitem:af381fc1fc4eccfac00e628786d8b7092 inherit pro_attribs_class_switch_pro_parser"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_switch_pro_output.html">SwitchProOutput</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_switch_pro_parser.html#af381fc1fc4eccfac00e628786d8b7092">switchProOutput</a></td></tr>
<tr class="separator:af381fc1fc4eccfac00e628786d8b7092 inherit pro_attribs_class_switch_pro_parser"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class implements support for the Switch Pro controller via Bluetooth. It uses the <a class="el" href="class_b_t_h_i_d.html">BTHID</a> class for all the Bluetooth communication. </p>
<p class="definition">Definition at line <a class="el" href="_switch_pro_b_t_8h_source.html#l00028">28</a> of file <a class="el" href="_switch_pro_b_t_8h_source.html">SwitchProBT.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a7d5e4f95a9b372c394f83912e6c7601c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d5e4f95a9b372c394f83912e6c7601c">&#9670;&nbsp;</a></span>SwitchProBT()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">SwitchProBT::SwitchProBT </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_b_t_d.html">BTD</a> *&#160;</td>
<td class="paramname"><em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>pair</em> = <code>false</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>pin</em> = <code>&quot;0000&quot;</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor for the <a class="el" href="class_switch_pro_b_t.html">SwitchProBT</a> class. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">p</td><td>Pointer to the <a class="el" href="class_b_t_d.html">BTD</a> class instance. </td></tr>
<tr><td class="paramname">pair</td><td>Set this to true in order to pair with the device. If the argument is omitted then it will not pair with it. One can use <a class="el" href="_b_t_d_8h.html#a8f0b5b0dedaf5c25c4887f03ebfdd425">PAIR</a> to set it to true. </td></tr>
<tr><td class="paramname">pin</td><td>Write the pin to <a class="el" href="class_b_t_d.html#a215cb939c01ed3ff56db37841224546c">BTD::btdPin</a>. If argument is omitted, then "0000" will be used. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="_switch_pro_b_t_8h_source.html#l00036">36</a> of file <a class="el" href="_switch_pro_b_t_8h_source.html">SwitchProBT.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a59c7ce1651dc72c4cf4f1e2cf55b81a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59c7ce1651dc72c4cf4f1e2cf55b81a7">&#9670;&nbsp;</a></span>connected()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool SwitchProBT::connected </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to check if a Switch Pro controller is connected. </p><dl class="section return"><dt>Returns</dt><dd>Returns true if it is connected. </dd></dl>
<p class="definition">Definition at line <a class="el" href="_switch_pro_b_t_8h_source.html#l00045">45</a> of file <a class="el" href="_switch_pro_b_t_8h_source.html">SwitchProBT.h</a>.</p>
</div>
</div>
<a id="a3c7cc7f920685f3443eb005d5c3cd74c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c7cc7f920685f3443eb005d5c3cd74c">&#9670;&nbsp;</a></span>ParseBTHIDData()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void SwitchProBT::ParseBTHIDData </td>
<td>(</td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>buf</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to parse Bluetooth HID data. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">len</td><td>The length of the incoming data. </td></tr>
<tr><td class="paramname">buf</td><td>Pointer to the data buffer. </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented from <a class="el" href="class_b_t_h_i_d.html#a4de4a1efd32000a0cf5a884456e52c7d">BTHID</a>.</p>
<p class="definition">Definition at line <a class="el" href="_switch_pro_b_t_8h_source.html#l00056">56</a> of file <a class="el" href="_switch_pro_b_t_8h_source.html">SwitchProBT.h</a>.</p>
</div>
</div>
<a id="afe57a4d564d4880d41488a0f82274e76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe57a4d564d4880d41488a0f82274e76">&#9670;&nbsp;</a></span>OnInitBTHID()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void SwitchProBT::OnInitBTHID </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Called when a device is successfully initialized. Use attachOnInit(void (*funcOnInit)(void)) to call your own function. This is useful for instance if you want to set the LEDs in a specific way. </p>
<p>Reimplemented from <a class="el" href="class_b_t_h_i_d.html#a6d92c1771d643172094fcd084f418421">BTHID</a>.</p>
<p class="definition">Definition at line <a class="el" href="_switch_pro_b_t_8h_source.html#l00065">65</a> of file <a class="el" href="_switch_pro_b_t_8h_source.html">SwitchProBT.h</a>.</p>
</div>
</div>
<a id="a1e3a6e1390cb85f4691eaa98acdb62b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e3a6e1390cb85f4691eaa98acdb62b5">&#9670;&nbsp;</a></span>ResetBTHID()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void SwitchProBT::ResetBTHID </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to reset the different buffers to there default values </p>
<p>Reimplemented from <a class="el" href="class_b_t_h_i_d.html#acc22bf5baaa096fe09b72c812c1134f0">BTHID</a>.</p>
<p class="definition">Definition at line <a class="el" href="_switch_pro_b_t_8h_source.html#l00076">76</a> of file <a class="el" href="_switch_pro_b_t_8h_source.html">SwitchProBT.h</a>.</p>
</div>
</div>
<a id="a7b394d6ccc473f158d19e5354a257fdd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b394d6ccc473f158d19e5354a257fdd">&#9670;&nbsp;</a></span>sendOutputReport()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void SwitchProBT::sendOutputReport </td>
<td>(</td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>len</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Send the output to the Switch Pro controller. This is implemented in <a class="el" href="_switch_pro_b_t_8h.html">SwitchProBT.h</a> and <a class="el" href="_switch_pro_u_s_b_8h.html">SwitchProUSB.h</a>. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">data</td><td>Pointer to buffer to send by the derived class. </td></tr>
<tr><td class="paramname">len</td><td>Length of buffer. </td></tr>
</table>
</dd>
</dl>
<p>Implements <a class="el" href="class_switch_pro_parser.html#a0cb8e11033817f3e8eb968bd8541c052">SwitchProParser</a>.</p>
<p class="definition">Definition at line <a class="el" href="_switch_pro_b_t_8h_source.html#l00082">82</a> of file <a class="el" href="_switch_pro_b_t_8h_source.html">SwitchProBT.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_switch_pro_b_t_8h_source.html">SwitchProBT.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>