USB_Host_Shield_2.0/class_b_t_d.html
Kristian Sloth Lauszus c59318fe51 defined Arduino=100
2013-02-05 21:05:03 +01:00

1832 lines
84 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>USB_Host_Shield_2.0: BTD 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/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.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 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.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></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="#pub-attribs">Public Attributes</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#pro-static-attribs">Static Protected Attributes</a> &#124;
<a href="class_b_t_d-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">BTD Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="_b_t_d_8h_source.html">BTD.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for BTD:</div>
<div class="dyncontent">
<div class="center"><img src="class_b_t_d__inherit__graph.png" border="0" usemap="#_b_t_d_inherit__map" alt="Inheritance graph"/></div>
<map name="_b_t_d_inherit__map" id="_b_t_d_inherit__map">
<area shape="rect" id="node2" href="class_u_s_b_device_config.html" title="USBDeviceConfig" alt="" coords="5,5,91,27"/><area shape="rect" id="node3" href="class_usb_config_xtracter.html" title="UsbConfigXtracter" alt="" coords="116,5,204,27"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for BTD:</div>
<div class="dyncontent">
<div class="center"><img src="class_b_t_d__coll__graph.png" border="0" usemap="#_b_t_d_coll__map" alt="Collaboration graph"/></div>
<map name="_b_t_d_coll__map" id="_b_t_d_coll__map">
<area shape="rect" id="node2" href="class_u_s_b_device_config.html" title="USBDeviceConfig" alt="" coords="5,77,91,99"/><area shape="rect" id="node3" href="class_usb_config_xtracter.html" title="UsbConfigXtracter" alt="" coords="116,77,204,99"/><area shape="rect" id="node4" href="class_u_s_b.html" title="USB" alt="" coords="229,77,267,99"/><area shape="rect" id="node5" href="class_m_a_x3421e.html" title="MAX3421E" alt="" coords="217,5,279,27"/><area shape="rect" id="node6" href="struct_ep_info.html" title="EpInfo" alt="" coords="292,77,337,99"/></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:a5f07597fe15a2b917cce405fe87f2981"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a5f07597fe15a2b917cce405fe87f2981">BTD</a> (<a class="el" href="class_u_s_b.html">USB</a> *p)</td></tr>
<tr class="separator:a5f07597fe15a2b917cce405fe87f2981"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a610183f9ddf04155ef2612d1839af7da"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a610183f9ddf04155ef2612d1839af7da">disconnect</a> ()</td></tr>
<tr class="separator:a610183f9ddf04155ef2612d1839af7da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4adfc7e51ad3b3c03e7c37d1af159e73"><td class="memItemLeft" align="right" valign="top">int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a4adfc7e51ad3b3c03e7c37d1af159e73">registerServiceClass</a> (<a class="el" href="class_bluetooth_service.html">BluetoothService</a> *pService)</td></tr>
<tr class="separator:a4adfc7e51ad3b3c03e7c37d1af159e73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">USBDeviceConfig implementation</div></td></tr>
<tr class="memitem:a48608619d8253972dd132edbb3001c5f"><td class="memItemLeft" align="right" valign="top">virtual uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a48608619d8253972dd132edbb3001c5f">Init</a> (uint8_t parent, uint8_t port, bool lowspeed)</td></tr>
<tr class="separator:a48608619d8253972dd132edbb3001c5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa87c23bce56a20f2db47c6a40c8eda87"><td class="memItemLeft" align="right" valign="top">virtual uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#aa87c23bce56a20f2db47c6a40c8eda87">Release</a> ()</td></tr>
<tr class="separator:aa87c23bce56a20f2db47c6a40c8eda87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76e201c5b561e3a6d0405894ba5c2e41"><td class="memItemLeft" align="right" valign="top">virtual uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a76e201c5b561e3a6d0405894ba5c2e41">Poll</a> ()</td></tr>
<tr class="separator:a76e201c5b561e3a6d0405894ba5c2e41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecdd9d00fc9c12bb3677ed213a6687c3"><td class="memItemLeft" align="right" valign="top">virtual uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#aecdd9d00fc9c12bb3677ed213a6687c3">GetAddress</a> ()</td></tr>
<tr class="separator:aecdd9d00fc9c12bb3677ed213a6687c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b2440748bdaaeb552a05b0f0902f5d8"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a1b2440748bdaaeb552a05b0f0902f5d8">isReady</a> ()</td></tr>
<tr class="separator:a1b2440748bdaaeb552a05b0f0902f5d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">UsbConfigXtracter implementation</div></td></tr>
<tr class="memitem:a23928cd0e5711a2433aec763cfa55773"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a23928cd0e5711a2433aec763cfa55773">EndpointXtract</a> (uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const <a class="el" 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)</td></tr>
<tr class="separator:a23928cd0e5711a2433aec763cfa55773"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">HCI Commands</div></td></tr>
<tr class="memitem:af11ad71d20783d46fe42dd405d10dfda"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#af11ad71d20783d46fe42dd405d10dfda">HCI_Command</a> (uint8_t *data, uint16_t nbytes)</td></tr>
<tr class="separator:af11ad71d20783d46fe42dd405d10dfda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6f942eabd29257bc4896e5f263275b6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#ae6f942eabd29257bc4896e5f263275b6">hci_reset</a> ()</td></tr>
<tr class="separator:ae6f942eabd29257bc4896e5f263275b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb94a629477d85cebd16a9c5ecd4a8b3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#acb94a629477d85cebd16a9c5ecd4a8b3">hci_read_bdaddr</a> ()</td></tr>
<tr class="separator:acb94a629477d85cebd16a9c5ecd4a8b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2ba215b6942f4131e4c5fdef2771e22"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#ae2ba215b6942f4131e4c5fdef2771e22">hci_read_local_version_information</a> ()</td></tr>
<tr class="separator:ae2ba215b6942f4131e4c5fdef2771e22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a6747d58951f53389922d80e25b886c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a9a6747d58951f53389922d80e25b886c">hci_set_local_name</a> (const char *name)</td></tr>
<tr class="separator:a9a6747d58951f53389922d80e25b886c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7dd7faaec1d3d9a1d8159cc2a4190977"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a7dd7faaec1d3d9a1d8159cc2a4190977">hci_write_scan_enable</a> ()</td></tr>
<tr class="separator:a7dd7faaec1d3d9a1d8159cc2a4190977"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff59ab45d917406141ae0c9c79047f08"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#aff59ab45d917406141ae0c9c79047f08">hci_write_scan_disable</a> ()</td></tr>
<tr class="separator:aff59ab45d917406141ae0c9c79047f08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8767529bd203c549348a38ac9c6682b3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a8767529bd203c549348a38ac9c6682b3">hci_remote_name</a> ()</td></tr>
<tr class="separator:a8767529bd203c549348a38ac9c6682b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1cb07a155c69bb1fcf45ae030b8947ec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a1cb07a155c69bb1fcf45ae030b8947ec">hci_accept_connection</a> ()</td></tr>
<tr class="separator:a1cb07a155c69bb1fcf45ae030b8947ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bea5dd793a2f47006b4a7642efc9e56"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a1bea5dd793a2f47006b4a7642efc9e56">hci_disconnect</a> (uint16_t handle)</td></tr>
<tr class="separator:a1bea5dd793a2f47006b4a7642efc9e56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70047b0f624c3f0ef29f8b76b8a34938"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a70047b0f624c3f0ef29f8b76b8a34938">hci_pin_code_request_reply</a> ()</td></tr>
<tr class="separator:a70047b0f624c3f0ef29f8b76b8a34938"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7114d2cb62aa413e5ecb25c45c76832b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a7114d2cb62aa413e5ecb25c45c76832b">hci_pin_code_negative_request_reply</a> ()</td></tr>
<tr class="separator:a7114d2cb62aa413e5ecb25c45c76832b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4d28b9c1a3b9688a1871610caee2cfc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#af4d28b9c1a3b9688a1871610caee2cfc">hci_link_key_request_negative_reply</a> ()</td></tr>
<tr class="separator:af4d28b9c1a3b9688a1871610caee2cfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addd07c18c725a324a05792a83026d36d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#addd07c18c725a324a05792a83026d36d">hci_authentication_request</a> ()</td></tr>
<tr class="separator:addd07c18c725a324a05792a83026d36d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a678f2c995553ce6a9f48f9b59f2f1555"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a678f2c995553ce6a9f48f9b59f2f1555">hci_inquiry</a> ()</td></tr>
<tr class="separator:a678f2c995553ce6a9f48f9b59f2f1555"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45ffbc7a40bbb763b0ece907c3dfc9ff"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a45ffbc7a40bbb763b0ece907c3dfc9ff">hci_inquiry_cancel</a> ()</td></tr>
<tr class="separator:a45ffbc7a40bbb763b0ece907c3dfc9ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7066ea743f8907708db945ebef3ad76"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#ae7066ea743f8907708db945ebef3ad76">hci_connect</a> ()</td></tr>
<tr class="separator:ae7066ea743f8907708db945ebef3ad76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">L2CAP Commands</div></td></tr>
<tr class="memitem:aad7d8ef46e60b48ff4aaabefb0b290e7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#aad7d8ef46e60b48ff4aaabefb0b290e7">L2CAP_Command</a> (uint16_t handle, uint8_t *data, uint8_t nbytes, uint8_t channelLow=0x01, uint8_t channelHigh=0x00)</td></tr>
<tr class="separator:aad7d8ef46e60b48ff4aaabefb0b290e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55cf412a2053972a353b1ab964ca9d3e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a55cf412a2053972a353b1ab964ca9d3e">l2cap_connection_request</a> (uint16_t handle, uint8_t rxid, uint8_t *scid, uint16_t psm)</td></tr>
<tr class="separator:a55cf412a2053972a353b1ab964ca9d3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d34c62b1d561679dea5cd27356b38a7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a7d34c62b1d561679dea5cd27356b38a7">l2cap_connection_response</a> (uint16_t handle, uint8_t rxid, uint8_t *dcid, uint8_t *scid, uint8_t result)</td></tr>
<tr class="separator:a7d34c62b1d561679dea5cd27356b38a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab646a59311344966f139bb3b78f30233"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#ab646a59311344966f139bb3b78f30233">l2cap_config_request</a> (uint16_t handle, uint8_t rxid, uint8_t *dcid)</td></tr>
<tr class="separator:ab646a59311344966f139bb3b78f30233"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a792ac4529b65235698ecf3d37982c05e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a792ac4529b65235698ecf3d37982c05e">l2cap_config_response</a> (uint16_t handle, uint8_t rxid, uint8_t *scid)</td></tr>
<tr class="separator:a792ac4529b65235698ecf3d37982c05e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7053ef7ac690be3afbbdd985b163f10"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#ac7053ef7ac690be3afbbdd985b163f10">l2cap_disconnection_request</a> (uint16_t handle, uint8_t rxid, uint8_t *dcid, uint8_t *scid)</td></tr>
<tr class="separator:ac7053ef7ac690be3afbbdd985b163f10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29d176d9194e5c92fbe54791fc245407"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a29d176d9194e5c92fbe54791fc245407">l2cap_disconnection_response</a> (uint16_t handle, uint8_t rxid, uint8_t *dcid, uint8_t *scid)</td></tr>
<tr class="separator:a29d176d9194e5c92fbe54791fc245407"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91f61915c503fe7b861c88f5b3e6733c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a91f61915c503fe7b861c88f5b3e6733c">l2cap_information_response</a> (uint16_t handle, uint8_t rxid, uint8_t infoTypeLow, uint8_t infoTypeHigh)</td></tr>
<tr class="separator:a91f61915c503fe7b861c88f5b3e6733c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aa7735da01865bab01b569ee836173737"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#aa7735da01865bab01b569ee836173737">watingForConnection</a></td></tr>
<tr class="separator:aa7735da01865bab01b569ee836173737"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f1c28a03bcbe62cc7c083f97ea27594"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a0f1c28a03bcbe62cc7c083f97ea27594">l2capConnectionClaimed</a></td></tr>
<tr class="separator:a0f1c28a03bcbe62cc7c083f97ea27594"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5e5b085cec1da5c83c75e80e95b3590"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#af5e5b085cec1da5c83c75e80e95b3590">sdpConnectionClaimed</a></td></tr>
<tr class="separator:af5e5b085cec1da5c83c75e80e95b3590"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e5a34242007b64cd6a226cfd1901e74"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a9e5a34242007b64cd6a226cfd1901e74">rfcommConnectionClaimed</a></td></tr>
<tr class="separator:a9e5a34242007b64cd6a226cfd1901e74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0359c0c158c864c27319810cbd1534f9"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a0359c0c158c864c27319810cbd1534f9">btdName</a></td></tr>
<tr class="separator:a0359c0c158c864c27319810cbd1534f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a215cb939c01ed3ff56db37841224546c"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a215cb939c01ed3ff56db37841224546c">btdPin</a></td></tr>
<tr class="separator:a215cb939c01ed3ff56db37841224546c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f8e9171a310e50f2c4a3c19066efe5a"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a1f8e9171a310e50f2c4a3c19066efe5a">my_bdaddr</a> [6]</td></tr>
<tr class="separator:a1f8e9171a310e50f2c4a3c19066efe5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3bb6c692701cb33dfad1ea4d68b6f98"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#aa3bb6c692701cb33dfad1ea4d68b6f98">hci_handle</a></td></tr>
<tr class="separator:aa3bb6c692701cb33dfad1ea4d68b6f98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab23f95f12675d7b4505ca6807d379182"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#ab23f95f12675d7b4505ca6807d379182">disc_bdaddr</a> [6]</td></tr>
<tr class="separator:ab23f95f12675d7b4505ca6807d379182"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aede42d995c384c238fd49d728df01e4e"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#aede42d995c384c238fd49d728df01e4e">remote_name</a> [30]</td></tr>
<tr class="separator:aede42d995c384c238fd49d728df01e4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addaddee110af23a3195ad56f631e69ea"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#addaddee110af23a3195ad56f631e69ea">hci_version</a></td></tr>
<tr class="separator:addaddee110af23a3195ad56f631e69ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7caac80fb6f5f0e794af3644887d88e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#ac7caac80fb6f5f0e794af3644887d88e">connectToWii</a></td></tr>
<tr class="separator:ac7caac80fb6f5f0e794af3644887d88e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dc8f94fe85028f3d54f13dde1e5b4ee"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a4dc8f94fe85028f3d54f13dde1e5b4ee">incomingWii</a></td></tr>
<tr class="separator:a4dc8f94fe85028f3d54f13dde1e5b4ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c8cc2a2dd2cda3e760b8b4c1a2d169c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a0c8cc2a2dd2cda3e760b8b4c1a2d169c">pairWithWii</a></td></tr>
<tr class="separator:a0c8cc2a2dd2cda3e760b8b4c1a2d169c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3aea445b2349e99ef057db1a4ffdd9dc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a3aea445b2349e99ef057db1a4ffdd9dc">motionPlusInside</a></td></tr>
<tr class="separator:a3aea445b2349e99ef057db1a4ffdd9dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a962a5714c225dcb633434f02e3657583"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a962a5714c225dcb633434f02e3657583">wiiUProController</a></td></tr>
<tr class="separator:a962a5714c225dcb633434f02e3657583"><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 class="memitem:aa5976eead215a58553aee683d42405a0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#aa5976eead215a58553aee683d42405a0">PrintEndpointDescriptor</a> (const <a class="el" 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)</td></tr>
<tr class="separator:aa5976eead215a58553aee683d42405a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a4bcd1d622a6455ee3d0cccc4408700a1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_u_s_b.html">USB</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a4bcd1d622a6455ee3d0cccc4408700a1">pUsb</a></td></tr>
<tr class="separator:a4bcd1d622a6455ee3d0cccc4408700a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58f78a9a28db81858dcc34a32a2ec82c"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a58f78a9a28db81858dcc34a32a2ec82c">bAddress</a></td></tr>
<tr class="separator:a58f78a9a28db81858dcc34a32a2ec82c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91d92fee94e5a4cbca472bb3fd883e3e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_ep_info.html">EpInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a91d92fee94e5a4cbca472bb3fd883e3e">epInfo</a> [<a class="el" href="_b_t_d_8h.html#aee41c4878894db24e7ad8cd6246595cd">BTD_MAX_ENDPOINTS</a>]</td></tr>
<tr class="separator:a91d92fee94e5a4cbca472bb3fd883e3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10c34527ae90e95791ac48ac7d1154a2"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a10c34527ae90e95791ac48ac7d1154a2">bConfNum</a></td></tr>
<tr class="separator:a10c34527ae90e95791ac48ac7d1154a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a893dd35932821cddda7e482a1904af66"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a893dd35932821cddda7e482a1904af66">bNumEP</a></td></tr>
<tr class="separator:a893dd35932821cddda7e482a1904af66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52d6c7895f6bb01729d01ce28a2f3079"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a52d6c7895f6bb01729d01ce28a2f3079">qNextPollTime</a></td></tr>
<tr class="separator:a52d6c7895f6bb01729d01ce28a2f3079"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-attribs"></a>
Static Protected Attributes</h2></td></tr>
<tr class="memitem:a49f433ab824f259c3815e180c73bb0ad"><td class="memItemLeft" align="right" valign="top">static const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a49f433ab824f259c3815e180c73bb0ad">BTD_CONTROL_PIPE</a> = 0</td></tr>
<tr class="separator:a49f433ab824f259c3815e180c73bb0ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24166c9b308925eeb2f635fae43ca5ec"><td class="memItemLeft" align="right" valign="top">static const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a24166c9b308925eeb2f635fae43ca5ec">BTD_EVENT_PIPE</a> = 1</td></tr>
<tr class="separator:a24166c9b308925eeb2f635fae43ca5ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a480510bd399ae74a97cd74c8474ef59c"><td class="memItemLeft" align="right" valign="top">static const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a480510bd399ae74a97cd74c8474ef59c">BTD_DATAIN_PIPE</a> = 2</td></tr>
<tr class="separator:a480510bd399ae74a97cd74c8474ef59c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d82870f7eef8c27c33e6f5989d7a4dd"><td class="memItemLeft" align="right" valign="top">static const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_t_d.html#a0d82870f7eef8c27c33e6f5989d7a4dd">BTD_DATAOUT_PIPE</a> = 3</td></tr>
<tr class="separator:a0d82870f7eef8c27c33e6f5989d7a4dd"><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>The Bluetooth Dongle class will take care of all the <a class="el" href="class_u_s_b.html">USB</a> communication and then pass the data to the <a class="el" href="class_bluetooth_service.html">BluetoothService</a> classes. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00153">153</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a5f07597fe15a2b917cce405fe87f2981"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">BTD::BTD </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_u_s_b.html">USB</a> *&#160;</td>
<td class="paramname"><em>p</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor for the <a class="el" href="class_b_t_d.html">BTD</a> class. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">p</td><td>Pointer to <a class="el" href="class_u_s_b.html">USB</a> class instance. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00027">27</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a610183f9ddf04155ef2612d1839af7da"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void BTD::disconnect </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>Disconnects both the L2CAP Channel and the HCI Connection for all Bluetooth services. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00205">205</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a23928cd0e5711a2433aec763cfa55773"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void BTD::EndpointXtract </td>
<td>(</td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>conf</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>iface</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>alt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>proto</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" 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> *&#160;</td>
<td class="paramname"><em>ep</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">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p><a class="el" href="class_usb_config_xtracter.html">UsbConfigXtracter</a> implementation, used to extract endpoint information. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">conf</td><td>Configuration value. </td></tr>
<tr><td class="paramname">iface</td><td>Interface number. </td></tr>
<tr><td class="paramname">alt</td><td>Alternate setting. </td></tr>
<tr><td class="paramname">proto</td><td>Interface Protocol. </td></tr>
<tr><td class="paramname">ep</td><td>Endpoint Descriptor. </td></tr>
</table>
</dd>
</dl>
<p>Implements <a class="el" href="class_usb_config_xtracter.html#aceb5da8339172cbb2e9ce2064e34e5ef">UsbConfigXtracter</a>.</p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00252">252</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="aecdd9d00fc9c12bb3677ed213a6687c3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual uint8_t BTD::GetAddress </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">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the device address. </p>
<dl class="section return"><dt>Returns</dt><dd>The device address. </dd></dl>
<p>Implements <a class="el" href="class_u_s_b_device_config.html#aae3130517514c902bad5f153849b3811">USBDeviceConfig</a>.</p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00184">184</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a1cb07a155c69bb1fcf45ae030b8947ec"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_accept_connection </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Accept the connection with the Bluetooth device. </p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00814">814</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="addd07c18c725a324a05792a83026d36d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_authentication_request </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to try to authenticate with the remote device. </p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00969">969</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="af11ad71d20783d46fe42dd405d10dfda"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::HCI_Command </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">uint16_t&#160;</td>
<td class="paramname"><em>nbytes</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to send a HCI Command. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">data</td><td>Data to send. </td></tr>
<tr><td class="paramname">nbytes</td><td>Number of bytes to send. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00773">773</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ae7066ea743f8907708db945ebef3ad76"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_connect </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Connect to a device. </p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00878">878</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a1bea5dd793a2f47006b4a7642efc9e56"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_disconnect </td>
<td>(</td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>handle</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Disconnect the HCI connection. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">handle</td><td>The HCI Handle for the connection. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00978">978</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a678f2c995553ce6a9f48f9b59f2f1555"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_inquiry </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Start a HCI inquiry. </p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00858">858</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a45ffbc7a40bbb763b0ece907c3dfc9ff"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_inquiry_cancel </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Cancel a HCI inquiry. </p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00871">871</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="af4d28b9c1a3b9688a1871610caee2cfc"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_link_key_request_negative_reply </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Command is used to reply to a Link Key Request event from the BR/EDR Controller if the Host does not have a stored Link Key for the connection. </p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00956">956</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a7114d2cb62aa413e5ecb25c45c76832b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_pin_code_negative_request_reply </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Respons when no pin was set. </p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00943">943</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a70047b0f624c3f0ef29f8b76b8a34938"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_pin_code_request_reply </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Respond with the pin for the connection. The pin is automatically set for the Wii library, but can be customized for the <a class="el" href="class_s_p_p.html">SPP</a> library. </p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00899">899</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="acb94a629477d85cebd16a9c5ecd4a8b3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_read_bdaddr </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Read the Bluetooth address of the dongle. </p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00802">802</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ae2ba215b6942f4131e4c5fdef2771e22"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_read_local_version_information </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Read the HCI Version of the Bluetooth dongle. </p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00808">808</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a8767529bd203c549348a38ac9c6682b3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_remote_name </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Read the remote devices name. </p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00829">829</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ae6f942eabd29257bc4896e5f263275b6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_reset </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Reset the Bluetooth dongle. </p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00777">777</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a9a6747d58951f53389922d80e25b886c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_set_local_name </td>
<td>(</td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the local name of the Bluetooth dongle. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>Desired name. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00847">847</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="aff59ab45d917406141ae0c9c79047f08"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_write_scan_disable </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Disable visibility to other Bluetooth devices. </p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00795">795</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a7dd7faaec1d3d9a1d8159cc2a4190977"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::hci_write_scan_enable </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Enable visibility to other Bluetooth devices. </p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00784">784</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a48608619d8253972dd132edbb3001c5f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint8_t BTD::Init </td>
<td>(</td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>parent</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>port</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>lowspeed</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">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Initialize the Bluetooth dongle. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">parent</td><td>Hub number. </td></tr>
<tr><td class="paramname">port</td><td>Port number on the hub. </td></tr>
<tr><td class="paramname">lowspeed</td><td>Speed of the device. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success. </dd></dl>
<p>Implements <a class="el" href="class_u_s_b_device_config.html#a391dc824a3271671890cebeb829b35ed">USBDeviceConfig</a>.</p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00045">45</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a1b2440748bdaaeb552a05b0f0902f5d8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool BTD::isReady </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">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to check if the dongle has been initialized. </p>
<dl class="section return"><dt>Returns</dt><dd>True if it's ready. </dd></dl>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00189">189</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="aad7d8ef46e60b48ff4aaabefb0b290e7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::L2CAP_Command </td>
<td>(</td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>handle</em>, </td>
</tr>
<tr>
<td class="paramkey"></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>nbytes</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>channelLow</em> = <code>0x01</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>channelHigh</em> = <code>0x00</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to send L2CAP Commands. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">handle</td><td>HCI Handle. </td></tr>
<tr><td class="paramname">data</td><td>Data to send. </td></tr>
<tr><td class="paramname">nbytes</td><td>Number of bytes to send. </td></tr>
<tr><td class="paramname">channelLow,channelHigh</td><td>Low and high byte of channel to send to. If argument is omitted then the Standard L2CAP header: Channel ID (0x01) for ACL-U will be used. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l01014">1014</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ab646a59311344966f139bb3b78f30233"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::l2cap_config_request </td>
<td>(</td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>handle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>rxid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>dcid</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>L2CAP Config Request. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">handle</td><td>HCI Handle. </td></tr>
<tr><td class="paramname">rxid</td><td>Identifier. </td></tr>
<tr><td class="paramname">dcid</td><td>Destination Channel Identifier. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l01069">1069</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a792ac4529b65235698ecf3d37982c05e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::l2cap_config_response </td>
<td>(</td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>handle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>rxid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>scid</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>L2CAP Config Response. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">handle</td><td>HCI Handle. </td></tr>
<tr><td class="paramname">rxid</td><td>Identifier. </td></tr>
<tr><td class="paramname">scid</td><td>Source Channel Identifier. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l01085">1085</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a55cf412a2053972a353b1ab964ca9d3e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::l2cap_connection_request </td>
<td>(</td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>handle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>rxid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>scid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>psm</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>L2CAP Connection Request. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">handle</td><td>HCI handle. </td></tr>
<tr><td class="paramname">rxid</td><td>Identifier. </td></tr>
<tr><td class="paramname">scid</td><td>Source Channel Identifier. </td></tr>
<tr><td class="paramname">psm</td><td>Protocol/Service Multiplexer - see: <a href="https://www.bluetooth.org/Technical/AssignedNumbers/logical_link.htm">https://www.bluetooth.org/Technical/AssignedNumbers/logical_link.htm</a>. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l01041">1041</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a7d34c62b1d561679dea5cd27356b38a7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::l2cap_connection_response </td>
<td>(</td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>handle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>rxid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>dcid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>scid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>result</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>L2CAP Connection Response. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">handle</td><td>HCI handle. </td></tr>
<tr><td class="paramname">rxid</td><td>Identifier. </td></tr>
<tr><td class="paramname">dcid</td><td>Destination Channel Identifier. </td></tr>
<tr><td class="paramname">scid</td><td>Source Channel Identifier. </td></tr>
<tr><td class="paramname">result</td><td>Result - First send <a class="el" href="_b_t_d_8h.html#a9960d0d5ae92fc92c70bbb84c2a5c0cc">PENDING</a> and then <a class="el" href="_b_t_d_8h.html#a1be7a56cdddcdb7dedf16d4dee381e93">SUCCESSFUL</a>. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l01053">1053</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ac7053ef7ac690be3afbbdd985b163f10"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::l2cap_disconnection_request </td>
<td>(</td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>handle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>rxid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>dcid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>scid</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>L2CAP Disconnection Request. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">handle</td><td>HCI Handle. </td></tr>
<tr><td class="paramname">rxid</td><td>Identifier. </td></tr>
<tr><td class="paramname">dcid</td><td>Device Channel Identifier. </td></tr>
<tr><td class="paramname">scid</td><td>Source Channel Identifier. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l01103">1103</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a29d176d9194e5c92fbe54791fc245407"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::l2cap_disconnection_response </td>
<td>(</td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>handle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>rxid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>dcid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>scid</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>L2CAP Disconnection Response. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">handle</td><td>HCI Handle. </td></tr>
<tr><td class="paramname">rxid</td><td>Identifier. </td></tr>
<tr><td class="paramname">dcid</td><td>Device Channel Identifier. </td></tr>
<tr><td class="paramname">scid</td><td>Source Channel Identifier. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l01114">1114</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a91f61915c503fe7b861c88f5b3e6733c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void BTD::l2cap_information_response </td>
<td>(</td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>handle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>rxid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>infoTypeLow</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>infoTypeHigh</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>L2CAP Information Response. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">handle</td><td>HCI Handle. </td></tr>
<tr><td class="paramname">rxid</td><td>Identifier. </td></tr>
<tr><td class="paramname">infoTypeLow,infoTypeHigh</td><td>Infotype. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l01125">1125</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a76e201c5b561e3a6d0405894ba5c2e41"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint8_t BTD::Poll </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Poll the <a class="el" href="class_u_s_b.html">USB</a> Input endpoins and run the state machines. </p>
<dl class="section return"><dt>Returns</dt><dd>0 on success. </dd></dl>
<p>Implements <a class="el" href="class_u_s_b_device_config.html#a4961e92df3e75c38e6953fb08b11f8b6">USBDeviceConfig</a>.</p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00312">312</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="aa5976eead215a58553aee683d42405a0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void BTD::PrintEndpointDescriptor </td>
<td>(</td>
<td class="paramtype">const <a class="el" 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> *&#160;</td>
<td class="paramname"><em>ep_ptr</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to print the <a class="el" href="class_u_s_b.html">USB</a> Endpoint Descriptor. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ep_ptr</td><td>Pointer to <a class="el" href="class_u_s_b.html">USB</a> Endpoint Descriptor. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00283">283</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a4adfc7e51ad3b3c03e7c37d1af159e73"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int8_t BTD::registerServiceClass </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_bluetooth_service.html">BluetoothService</a> *&#160;</td>
<td class="paramname"><em>pService</em></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>Register bluetooth dongle members/services. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">pService</td><td>Pointer to <a class="el" href="class_bluetooth_service.html">BluetoothService</a> class instance. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The serice ID on succes or -1 on fail. </dd></dl>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00215">215</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="aa87c23bce56a20f2db47c6a40c8eda87"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint8_t BTD::Release </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Release the <a class="el" href="class_u_s_b.html">USB</a> device. </p>
<dl class="section return"><dt>Returns</dt><dd>0 on success. </dd></dl>
<p>Implements <a class="el" href="class_u_s_b_device_config.html#a74c06c5fe641b20faeeebd39e33248b3">USBDeviceConfig</a>.</p>
<p>Definition at line <a class="el" href="_b_t_d_8cpp_source.html#l00302">302</a> of file <a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a58f78a9a28db81858dcc34a32a2ec82c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint8_t BTD::bAddress</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Device address. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00388">388</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a10c34527ae90e95791ac48ac7d1154a2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint8_t BTD::bConfNum</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Configuration number. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00393">393</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a893dd35932821cddda7e482a1904af66"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint8_t BTD::bNumEP</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Total number of endpoints in the configuration. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00395">395</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a49f433ab824f259c3815e180c73bb0ad"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const uint8_t BTD::BTD_CONTROL_PIPE = 0</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Bluetooth dongle control endpoint. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00400">400</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a480510bd399ae74a97cd74c8474ef59c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const uint8_t BTD::BTD_DATAIN_PIPE = 2</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>ACL In endpoint index. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00404">404</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a0d82870f7eef8c27c33e6f5989d7a4dd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const uint8_t BTD::BTD_DATAOUT_PIPE = 3</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>ACL Out endpoint index. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00406">406</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a24166c9b308925eeb2f635fae43ca5ec"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const uint8_t BTD::BTD_EVENT_PIPE = 1</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>HCI event endpoint index. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00402">402</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a0359c0c158c864c27319810cbd1534f9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const char* BTD::btdName</td>
</tr>
</table>
</div><div class="memdoc">
<p>The name you wish to make the dongle show up as. It is set automatically by the <a class="el" href="class_s_p_p.html">SPP</a> library. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00355">355</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a215cb939c01ed3ff56db37841224546c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const char* BTD::btdPin</td>
</tr>
</table>
</div><div class="memdoc">
<p>The pin you wish to make the dongle use for authentication. It is set automatically by the <a class="el" href="class_s_p_p.html">SPP</a> library. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00357">357</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="ac7caac80fb6f5f0e794af3644887d88e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool BTD::connectToWii</td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to only send the ACL data to the wiimote. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00374">374</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="ab23f95f12675d7b4505ca6807d379182"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t BTD::disc_bdaddr[6]</td>
</tr>
</table>
</div><div class="memdoc">
<p>Last incoming devices Bluetooth address. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00364">364</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a91d92fee94e5a4cbca472bb3fd883e3e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_ep_info.html">EpInfo</a> BTD::epInfo[<a class="el" href="_b_t_d_8h.html#aee41c4878894db24e7ad8cd6246595cd">BTD_MAX_ENDPOINTS</a>]</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Endpoint info structure. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00390">390</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="aa3bb6c692701cb33dfad1ea4d68b6f98"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint16_t BTD::hci_handle</td>
</tr>
</table>
</div><div class="memdoc">
<p>HCI handle for the last connection. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00362">362</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="addaddee110af23a3195ad56f631e69ea"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t BTD::hci_version</td>
</tr>
</table>
</div><div class="memdoc">
<p>The supported HCI Version read from the Bluetooth dongle. Used by the <a class="el" href="class_p_s3_b_t.html">PS3BT</a> library to check the HCI Version of the Bluetooth dongle, it should be at least 3 to work properly with the library. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00372">372</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a4dc8f94fe85028f3d54f13dde1e5b4ee"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool BTD::incomingWii</td>
</tr>
</table>
</div><div class="memdoc">
<p>True if a Wiimote is connecting. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00376">376</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a0f1c28a03bcbe62cc7c083f97ea27594"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool BTD::l2capConnectionClaimed</td>
</tr>
</table>
</div><div class="memdoc">
<p>This is used by the service to know when to store the device information. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00348">348</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a3aea445b2349e99ef057db1a4ffdd9dc"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool BTD::motionPlusInside</td>
</tr>
</table>
</div><div class="memdoc">
<p>True if it's the new Wiimote with the Motion Plus Inside or a Wii U Pro Controller. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00380">380</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a1f8e9171a310e50f2c4a3c19066efe5a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t BTD::my_bdaddr[6]</td>
</tr>
</table>
</div><div class="memdoc">
<p>The bluetooth dongles Bluetooth address. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00360">360</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a0c8cc2a2dd2cda3e760b8b4c1a2d169c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool BTD::pairWithWii</td>
</tr>
</table>
</div><div class="memdoc">
<p>True when it should pair with the incoming Wiimote. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00378">378</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a4bcd1d622a6455ee3d0cccc4408700a1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_u_s_b.html">USB</a>* BTD::pUsb</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Pointer to <a class="el" href="class_u_s_b.html">USB</a> class instance. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00386">386</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a52d6c7895f6bb01729d01ce28a2f3079"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint32_t BTD::qNextPollTime</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Next poll time based on poll interval taken from the <a class="el" href="class_u_s_b.html">USB</a> descriptor. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00397">397</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="aede42d995c384c238fd49d728df01e4e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t BTD::remote_name[30]</td>
</tr>
</table>
</div><div class="memdoc">
<p>First 30 chars of last remote name. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00366">366</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a9e5a34242007b64cd6a226cfd1901e74"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool BTD::rfcommConnectionClaimed</td>
</tr>
</table>
</div><div class="memdoc">
<p>This is used by the <a class="el" href="class_s_p_p.html">SPP</a> library to claim the current RFCOMM incoming request. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00352">352</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="af5e5b085cec1da5c83c75e80e95b3590"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool BTD::sdpConnectionClaimed</td>
</tr>
</table>
</div><div class="memdoc">
<p>This is used by the <a class="el" href="class_s_p_p.html">SPP</a> library to claim the current SDP incoming request. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00350">350</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="aa7735da01865bab01b569ee836173737"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool BTD::watingForConnection</td>
</tr>
</table>
</div><div class="memdoc">
<p>Use this to see if it is waiting for a incoming connection. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00346">346</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a962a5714c225dcb633434f02e3657583"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool BTD::wiiUProController</td>
</tr>
</table>
</div><div class="memdoc">
<p>True if it's a Wii U Pro Controller. </p>
<p>Definition at line <a class="el" href="_b_t_d_8h_source.html#l00382">382</a> of file <a class="el" href="_b_t_d_8h_source.html">BTD.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/Users/Lauszus/GitHub/USB_Host_Shield_2.0/<a class="el" href="_b_t_d_8h_source.html">BTD.h</a></li>
<li>/Users/Lauszus/GitHub/USB_Host_Shield_2.0/<a class="el" href="_b_t_d_8cpp_source.html">BTD.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 5 2013 20:57:22 for USB_Host_Shield_2.0 by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>