USB_Host_Shield_2.0/class_p_s3_b_t.html
2014-01-19 17:17:06 +01:00

1041 lines
56 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.6"/>
<title>USB Host Shield 2.0: PS3BT 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" />
<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 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.6 -->
<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="class_p_s3_b_t-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">PS3BT Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="_p_s3_b_t_8h_source.html">PS3BT.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for PS3BT:</div>
<div class="dyncontent">
<div class="center"><img src="class_p_s3_b_t__inherit__graph.png" border="0" usemap="#_p_s3_b_t_inherit__map" alt="Inheritance graph"/></div>
<map name="_p_s3_b_t_inherit__map" id="_p_s3_b_t_inherit__map">
<area shape="rect" id="node2" href="class_bluetooth_service.html" title="BluetoothService" alt="" coords="4,6,125,34"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for PS3BT:</div>
<div class="dyncontent">
<div class="center"><img src="class_p_s3_b_t__coll__graph.png" border="0" usemap="#_p_s3_b_t_coll__map" alt="Collaboration graph"/></div>
<map name="_p_s3_b_t_coll__map" id="_p_s3_b_t_coll__map">
<area shape="rect" id="node2" href="class_bluetooth_service.html" title="BluetoothService" alt="" coords="4,6,125,34"/></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:aab14832f7844f07e6287eb443019b6e7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#aab14832f7844f07e6287eb443019b6e7">PS3BT</a> (<a class="el" href="class_b_t_d.html">BTD</a> *pBtd, uint8_t btadr5=0, uint8_t btadr4=0, uint8_t btadr3=0, uint8_t btadr2=0, uint8_t btadr1=0, uint8_t btadr0=0)</td></tr>
<tr class="separator:aab14832f7844f07e6287eb443019b6e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">BluetoothService implementation</div></td></tr>
<tr class="memitem:aa310ede24b68b1b03cfc49c4308c66b7"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#aa310ede24b68b1b03cfc49c4308c66b7">ACLData</a> (uint8_t *ACLData)</td></tr>
<tr class="separator:aa310ede24b68b1b03cfc49c4308c66b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab41f25f45573239990f68611dc825086"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#ab41f25f45573239990f68611dc825086">Run</a> ()</td></tr>
<tr class="separator:ab41f25f45573239990f68611dc825086"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a576d72cdf12af58ae59c8f2a02f99c0f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a576d72cdf12af58ae59c8f2a02f99c0f">Reset</a> ()</td></tr>
<tr class="separator:a576d72cdf12af58ae59c8f2a02f99c0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39ad8810c67e85eddc68c8a16d38a985"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a39ad8810c67e85eddc68c8a16d38a985">disconnect</a> ()</td></tr>
<tr class="separator:a39ad8810c67e85eddc68c8a16d38a985"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">PS3 Controller functions</div></td></tr>
<tr class="memitem:a5e7842bef25e7c7210974f5405e1bc81"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a5e7842bef25e7c7210974f5405e1bc81">getButtonPress</a> (<a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b)</td></tr>
<tr class="separator:a5e7842bef25e7c7210974f5405e1bc81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b0e522b5d8a39d3daf540e4feb4f5fe"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a3b0e522b5d8a39d3daf540e4feb4f5fe">getButtonClick</a> (<a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> b)</td></tr>
<tr class="separator:a3b0e522b5d8a39d3daf540e4feb4f5fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dac11972fc4b1f5984d43365be1a954"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a6dac11972fc4b1f5984d43365be1a954">getAnalogButton</a> (<a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> a)</td></tr>
<tr class="separator:a6dac11972fc4b1f5984d43365be1a954"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a648e2bfeb06e2dc1603202e95324b206"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a648e2bfeb06e2dc1603202e95324b206">getAnalogHat</a> (<a class="el" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093">AnalogHatEnum</a> a)</td></tr>
<tr class="separator:a648e2bfeb06e2dc1603202e95324b206"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07c8dcb809005e8492bbef4e1f4b9d24"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a07c8dcb809005e8492bbef4e1f4b9d24">getSensor</a> (<a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51">SensorEnum</a> a)</td></tr>
<tr class="separator:a07c8dcb809005e8492bbef4e1f4b9d24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1e00364c5ff214274438bf54c3cf743"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#ae1e00364c5ff214274438bf54c3cf743">getAngle</a> (<a class="el" href="controller_enums_8h.html#a7c7824a10a9ffa8fea85602fcf4d84e6">AngleEnum</a> a)</td></tr>
<tr class="separator:ae1e00364c5ff214274438bf54c3cf743"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6596ca28c65db105392a9fed8698ef2"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#ae6596ca28c65db105392a9fed8698ef2">get9DOFValues</a> (<a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51">SensorEnum</a> a)</td></tr>
<tr class="separator:ae6596ca28c65db105392a9fed8698ef2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5062acbd19a52d88a998f19060fbc46a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a5062acbd19a52d88a998f19060fbc46a">getStatus</a> (<a class="el" href="_p_s3_enums_8h.html#add5c7a32e8138b44244caf07232161ae">StatusEnum</a> c)</td></tr>
<tr class="separator:a5062acbd19a52d88a998f19060fbc46a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f3945da5c4e00ce2fd3daf0b6267cec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a8f3945da5c4e00ce2fd3daf0b6267cec">printStatusString</a> ()</td></tr>
<tr class="separator:a8f3945da5c4e00ce2fd3daf0b6267cec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4f49b61167df001d13b68c7699651b4"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#ab4f49b61167df001d13b68c7699651b4">getTemperature</a> ()</td></tr>
<tr class="separator:ab4f49b61167df001d13b68c7699651b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ee74242b0c1644496ff04b457f39cd2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a6ee74242b0c1644496ff04b457f39cd2">setAllOff</a> ()</td></tr>
<tr class="separator:a6ee74242b0c1644496ff04b457f39cd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c87e7db5311a5d56f78c994b5545e4e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a5c87e7db5311a5d56f78c994b5545e4e">setRumbleOff</a> ()</td></tr>
<tr class="separator:a5c87e7db5311a5d56f78c994b5545e4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a3e593911490538c061e9ccb4273f87"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a7a3e593911490538c061e9ccb4273f87">setRumbleOn</a> (<a class="el" href="_p_s3_enums_8h.html#ab195293384292950ebc2166bfe360fd1">RumbleEnum</a> mode)</td></tr>
<tr class="separator:a7a3e593911490538c061e9ccb4273f87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae309556e995afc10b13dfbe4e6c32798"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#ae309556e995afc10b13dfbe4e6c32798">setRumbleOn</a> (uint8_t rightDuration, uint8_t rightPower, uint8_t leftDuration, uint8_t leftPower)</td></tr>
<tr class="separator:ae309556e995afc10b13dfbe4e6c32798"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0acdc09661a8099b2d5e8b59cd8325bb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a0acdc09661a8099b2d5e8b59cd8325bb">setLedRaw</a> (uint8_t value)</td></tr>
<tr class="separator:a0acdc09661a8099b2d5e8b59cd8325bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ce9fb6251b56ec877cd22af7213a037"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a2ce9fb6251b56ec877cd22af7213a037">setLedOff</a> ()</td></tr>
<tr class="separator:a2ce9fb6251b56ec877cd22af7213a037"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8677eaae9121a60947a1743628cd20a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#af8677eaae9121a60947a1743628cd20a">setLedOff</a> (<a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> a)</td></tr>
<tr class="separator:af8677eaae9121a60947a1743628cd20a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e6cdea1880421a21cc8cfca0f00b449"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a4e6cdea1880421a21cc8cfca0f00b449">setLedOn</a> (<a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> a)</td></tr>
<tr class="separator:a4e6cdea1880421a21cc8cfca0f00b449"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae163b7f00d287f8647dabc2897d0d208"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#ae163b7f00d287f8647dabc2897d0d208">setLedToggle</a> (<a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> a)</td></tr>
<tr class="separator:ae163b7f00d287f8647dabc2897d0d208"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0926b75edcbb12ddf76f78e66728782"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#ad0926b75edcbb12ddf76f78e66728782">moveSetBulb</a> (uint8_t r, uint8_t g, uint8_t b)</td></tr>
<tr class="separator:ad0926b75edcbb12ddf76f78e66728782"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe1292b459edfd114ef129b3320d5317"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#abe1292b459edfd114ef129b3320d5317">moveSetBulb</a> (<a class="el" href="_p_s3_enums_8h.html#aac6fa7b0395b95cc528deaad0ce884a2">ColorsEnum</a> color)</td></tr>
<tr class="separator:abe1292b459edfd114ef129b3320d5317"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac14d338ddb573d1c06f70749f9205689"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#ac14d338ddb573d1c06f70749f9205689">moveSetRumble</a> (uint8_t rumble)</td></tr>
<tr class="separator:ac14d338ddb573d1c06f70749f9205689"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11a7a031b249e09c39aa0872fa1e4a6c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a11a7a031b249e09c39aa0872fa1e4a6c">attachOnInit</a> (void(*funcOnInit)(void))</td></tr>
<tr class="separator:a11a7a031b249e09c39aa0872fa1e4a6c"><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:a2804535e3164eafca80a6f6c6bd9a4f9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a2804535e3164eafca80a6f6c6bd9a4f9">PS3Connected</a></td></tr>
<tr class="separator:a2804535e3164eafca80a6f6c6bd9a4f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9273b6796948b83772117b3805421b4a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a9273b6796948b83772117b3805421b4a">PS3MoveConnected</a></td></tr>
<tr class="separator:a9273b6796948b83772117b3805421b4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab35277632083d43f8750d130bea6d430"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#ab35277632083d43f8750d130bea6d430">PS3NavigationConnected</a></td></tr>
<tr class="separator:ab35277632083d43f8750d130bea6d430"><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 <a class="el" href="class_bluetooth_service.html">BluetoothService</a> class implements support for all the official PS3 Controllers: Dualshock 3, Navigation or a Motion controller via Bluetooth.</p>
<p>Information about the protocol can be found at the wiki: <a href="https://github.com/felis/USB_Host_Shield_2.0/wiki/PS3-Information">https://github.com/felis/USB_Host_Shield_2.0/wiki/PS3-Information</a>. </p>
<p>Definition at line <a class="el" href="_p_s3_b_t_8h_source.html#l00032">32</a> of file <a class="el" href="_p_s3_b_t_8h_source.html">PS3BT.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aab14832f7844f07e6287eb443019b6e7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PS3BT::PS3BT </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_b_t_d.html">BTD</a> *&#160;</td>
<td class="paramname"><em>pBtd</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>btadr5</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>btadr4</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>btadr3</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>btadr2</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>btadr1</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>btadr0</em> = <code>0</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor for the <a class="el" href="class_p_s3_b_t.html">PS3BT</a> class. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">pBtd</td><td>Pointer to <a class="el" href="class_b_t_d.html">BTD</a> class instance. </td></tr>
<tr><td class="paramname">btadr5,btadr4,btadr3,btadr2,btadr1,btadr0</td><td>Pass your dongles Bluetooth address into the constructor, This will set <a class="el" href="class_b_t_d.html#a1f8e9171a310e50f2c4a3c19066efe5a">BTD::my_bdaddr</a>, so you don't have to plug in the dongle before pairing with your controller. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00023">23</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aa310ede24b68b1b03cfc49c4308c66b7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void PS3BT::ACLData </td>
<td>(</td>
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>ACLData</em></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>Used to pass acldata to the services. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ACLData</td><td>Incoming acldata. </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented from <a class="el" href="class_bluetooth_service.html#a8dc98310fe481357eaa86c53e49af113">BluetoothService</a>.</p>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00227">227</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ab41f25f45573239990f68611dc825086"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void PS3BT::Run </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>Used to run part of the state machine. </p>
<p>Reimplemented from <a class="el" href="class_bluetooth_service.html#a680692ff13cb37eb81ddbb74bc9e0383">BluetoothService</a>.</p>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00456">456</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a576d72cdf12af58ae59c8f2a02f99c0f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void PS3BT::Reset </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>Use this to reset the service. </p>
<p>Reimplemented from <a class="el" href="class_bluetooth_service.html#a1dff7caf251f1d8a5f358b368445cb48">BluetoothService</a>.</p>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00207">207</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a39ad8810c67e85eddc68c8a16d38a985"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void PS3BT::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">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Used this to disconnect any of the controllers. </p>
<p>Reimplemented from <a class="el" href="class_bluetooth_service.html#a66ee2f09c6087b82e3920c3d652a99b2">BluetoothService</a>.</p>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00220">220</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a5e7842bef25e7c7210974f5405e1bc81"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool PS3BT::getButtonPress </td>
<td>(</td>
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a>&#160;</td>
<td class="paramname"><em>b</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p><a class="el" href="class_p_s3_b_t.html#a5e7842bef25e7c7210974f5405e1bc81">getButtonPress(ButtonEnum b)</a> will return true as long as the button is held down.</p>
<p>While <a class="el" href="class_p_s3_b_t.html#a3b0e522b5d8a39d3daf540e4feb4f5fe">getButtonClick(ButtonEnum b)</a> will only return it once.</p>
<p>So you instance if you need to increase a variable once you would use <a class="el" href="class_p_s3_b_t.html#a3b0e522b5d8a39d3daf540e4feb4f5fe">getButtonClick(ButtonEnum b)</a>, but if you need to drive a robot forward you would use <a class="el" href="class_p_s3_b_t.html#a5e7842bef25e7c7210974f5405e1bc81">getButtonPress(ButtonEnum b)</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">b</td><td><a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> to read. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_p_s3_b_t.html#a5e7842bef25e7c7210974f5405e1bc81">getButtonPress(ButtonEnum b)</a> will return a true as long as a button is held down, while <a class="el" href="class_p_s3_b_t.html#a3b0e522b5d8a39d3daf540e4feb4f5fe">getButtonClick(ButtonEnum b)</a> will return true once for each button press. </dd></dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00052">52</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a3b0e522b5d8a39d3daf540e4feb4f5fe"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool PS3BT::getButtonClick </td>
<td>(</td>
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a>&#160;</td>
<td class="paramname"><em>b</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p><a class="el" href="class_p_s3_b_t.html#a5e7842bef25e7c7210974f5405e1bc81">getButtonPress(ButtonEnum b)</a> will return true as long as the button is held down.</p>
<p>While <a class="el" href="class_p_s3_b_t.html#a3b0e522b5d8a39d3daf540e4feb4f5fe">getButtonClick(ButtonEnum b)</a> will only return it once.</p>
<p>So you instance if you need to increase a variable once you would use <a class="el" href="class_p_s3_b_t.html#a3b0e522b5d8a39d3daf540e4feb4f5fe">getButtonClick(ButtonEnum b)</a>, but if you need to drive a robot forward you would use <a class="el" href="class_p_s3_b_t.html#a5e7842bef25e7c7210974f5405e1bc81">getButtonPress(ButtonEnum b)</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">b</td><td><a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> to read. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_p_s3_b_t.html#a5e7842bef25e7c7210974f5405e1bc81">getButtonPress(ButtonEnum b)</a> will return a true as long as a button is held down, while <a class="el" href="class_p_s3_b_t.html#a3b0e522b5d8a39d3daf540e4feb4f5fe">getButtonClick(ButtonEnum b)</a> will return true once for each button press. </dd></dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00056">56</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a6dac11972fc4b1f5984d43365be1a954"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t PS3BT::getAnalogButton </td>
<td>(</td>
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a>&#160;</td>
<td class="paramname"><em>a</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to get the analog value from button presses. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a</td><td>The <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a> to read. The supported buttons are: <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdaba595d8bca8bc5e67c37c0a9d89becfa">UP</a>, <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdaec8379af7490bb9eaaf579cf17876f38">RIGHT</a>, <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda9b0b4a95b99523966e0e34ffdadac9da">DOWN</a>, <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdadb45120aafd37a973140edee24708065">LEFT</a>, <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdae5bc7ee7d6dda5340a28f91834f10543">L1</a>, <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda0adffb24dae0c41be5b803f4d444f066">L2</a>, <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdaf8d87ff07efe24755164f550526f4dac">R1</a>, <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda629d7b403cea5f826352f3aefb9a6d6a">R2</a>, <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda2fd33892864d1c342d3bead2f2d9ad56">TRIANGLE</a>, <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdaa79c827759ea48f0735386c4b1188911">CIRCLE</a>, <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdad699bdf1731bd839b56c299536ba1d9d">CROSS</a>, <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda4233fbf0cafb86abcee94b38d769fc59">SQUARE</a>, and <a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fda21f40778b7db9343a6ca75ec2c41ccce">T</a>. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Analog value in the range of 0-255. </dd></dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00063">63</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a648e2bfeb06e2dc1603202e95324b206"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t PS3BT::getAnalogHat </td>
<td>(</td>
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093">AnalogHatEnum</a>&#160;</td>
<td class="paramname"><em>a</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to read the analog joystick. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a</td><td><a class="el" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093a383cb8895dd296b7f69ce845ed16b0ca">LeftHatX</a>, <a class="el" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093af3f3925efa9762c4e9e71ac7da7a94a3">LeftHatY</a>, <a class="el" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093aaeb027a0ae5bbc6ba25e1c78a6486c7b">RightHatX</a>, and <a class="el" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093a7f1fb2db5381286691f4dec179ed5d5a">RightHatY</a>. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Return the analog value in the range of 0-255. </dd></dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00067">67</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a07c8dcb809005e8492bbef4e1f4b9d24"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int16_t PS3BT::getSensor </td>
<td>(</td>
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51">SensorEnum</a>&#160;</td>
<td class="paramname"><em>a</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to read the sensors inside the Dualshock 3 and Move controller. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a</td><td>The Dualshock 3 has a 3-axis accelerometer and a 1-axis gyro inside. The Move controller has a 3-axis accelerometer, a 3-axis gyro, a 3-axis magnetometer and a temperature sensor inside. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Return the raw sensor value. </dd></dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00071">71</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ae1e00364c5ff214274438bf54c3cf743"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double PS3BT::getAngle </td>
<td>(</td>
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a7c7824a10a9ffa8fea85602fcf4d84e6">AngleEnum</a>&#160;</td>
<td class="paramname"><em>a</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Use this to get <a class="el" href="controller_enums_8h.html#a7c7824a10a9ffa8fea85602fcf4d84e6ae3a34b760fa4a6854f28852e91d8bb47">Pitch</a> and <a class="el" href="controller_enums_8h.html#a7c7824a10a9ffa8fea85602fcf4d84e6a9d80e5f030503ccac779c6491826a173">Roll</a> calculated using the accelerometer. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a</td><td>Either <a class="el" href="controller_enums_8h.html#a7c7824a10a9ffa8fea85602fcf4d84e6ae3a34b760fa4a6854f28852e91d8bb47">Pitch</a> or <a class="el" href="controller_enums_8h.html#a7c7824a10a9ffa8fea85602fcf4d84e6a9d80e5f030503ccac779c6491826a173">Roll</a>. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Return the angle in the range of 0-360. </dd></dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00088">88</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ae6596ca28c65db105392a9fed8698ef2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double PS3BT::get9DOFValues </td>
<td>(</td>
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51">SensorEnum</a>&#160;</td>
<td class="paramname"><em>a</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Read the sensors inside the Move controller. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a</td><td><a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51a832ceb5090692e95e93982849f740de7">aXmove</a>, <a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51a5c436ac329e20e6b7661152c74e82199">aYmove</a>, <a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51a077e283d0c3f06568c20adf90ced0a3f">aZmove</a>, <a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51a1851ce90f7a3f6acb062de46e78ca731">gXmove</a>, <a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51a9c538a78bbc03fb258e1141acdc69a91">gYmove</a>, <a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51a9ea1d99ce7ddecd65fcb39f30c77037d">gZmove</a>, <a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51a9d1f82ecbf55d931c3f49858d86d4d68">mXmove</a>, <a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51aee1254b85fe360243299d2041323aa78">mYmove</a>, and <a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51a9d1f82ecbf55d931c3f49858d86d4d68">mXmove</a>. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value in SI units. </dd></dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00115">115</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a5062acbd19a52d88a998f19060fbc46a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool PS3BT::getStatus </td>
<td>(</td>
<td class="paramtype"><a class="el" href="_p_s3_enums_8h.html#add5c7a32e8138b44244caf07232161ae">StatusEnum</a>&#160;</td>
<td class="paramname"><em>c</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the status from the controller. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">c</td><td>The <a class="el" href="_p_s3_enums_8h.html#add5c7a32e8138b44244caf07232161ae">StatusEnum</a> you want to read. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if correct and false if not. </dd></dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00159">159</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a8f3945da5c4e00ce2fd3daf0b6267cec"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::printStatusString </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Read all the available statuses from the controller and prints it as a nice formated string. </p>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00163">163</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ab4f49b61167df001d13b68c7699651b4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">String PS3BT::getTemperature </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Read the temperature from the Move controller. </p>
<dl class="section return"><dt>Returns</dt><dd>The temperature in degrees Celsius. </dd></dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00144">144</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a6ee74242b0c1644496ff04b457f39cd2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::setAllOff </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to set all LEDs and rumble off. </p>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00521">521</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a5c87e7db5311a5d56f78c994b5545e4e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::setRumbleOff </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Turn off rumble. </p>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00532">532</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a7a3e593911490538c061e9ccb4273f87"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::setRumbleOn </td>
<td>(</td>
<td class="paramtype"><a class="el" href="_p_s3_enums_8h.html#ab195293384292950ebc2166bfe360fd1">RumbleEnum</a>&#160;</td>
<td class="paramname"><em>mode</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Turn on rumble. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">mode</td><td>Either <a class="el" href="_p_s3_enums_8h.html#ab195293384292950ebc2166bfe360fd1a5819f165165589a8e65b07bf46c7382b">RumbleHigh</a> or <a class="el" href="_p_s3_enums_8h.html#ab195293384292950ebc2166bfe360fd1a080b52389e532b79b9e48f43ae6086ac">RumbleLow</a>. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00541">541</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ae309556e995afc10b13dfbe4e6c32798"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::setRumbleOn </td>
<td>(</td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>rightDuration</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>rightPower</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>leftDuration</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>leftPower</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Turn on rumble using custom duration and power. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">rightDuration</td><td>The duration of the right/low rumble effect. </td></tr>
<tr><td class="paramname">rightPower</td><td>The intensity of the right/low rumble effect. </td></tr>
<tr><td class="paramname">leftDuration</td><td>The duration of the left/high rumble effect. </td></tr>
<tr><td class="paramname">leftPower</td><td>The intensity of the left/high rumble effect. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00550">550</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a0acdc09661a8099b2d5e8b59cd8325bb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::setLedRaw </td>
<td>(</td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set LED value without using <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">value</td><td>See: <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a>. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00558">558</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a2ce9fb6251b56ec877cd22af7213a037"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void PS3BT::setLedOff </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>Turn all LEDs off. </p>
<p>Definition at line <a class="el" href="_p_s3_b_t_8h_source.html#l00147">147</a> of file <a class="el" href="_p_s3_b_t_8h_source.html">PS3BT.h</a>.</p>
</div>
</div>
<a class="anchor" id="af8677eaae9121a60947a1743628cd20a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::setLedOff </td>
<td>(</td>
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a>&#160;</td>
<td class="paramname"><em>a</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Turn the specific LED off. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a</td><td>The <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> to turn off. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00563">563</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a4e6cdea1880421a21cc8cfca0f00b449"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::setLedOn </td>
<td>(</td>
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a>&#160;</td>
<td class="paramname"><em>a</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Turn the specific LED on. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a</td><td>The <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> to turn on. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00568">568</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ae163b7f00d287f8647dabc2897d0d208"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::setLedToggle </td>
<td>(</td>
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a>&#160;</td>
<td class="paramname"><em>a</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Toggle the specific LED. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a</td><td>The <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> to toggle. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00577">577</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ad0926b75edcbb12ddf76f78e66728782"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::moveSetBulb </td>
<td>(</td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>r</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>g</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>b</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Use this to set the Color using RGB values. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">r,g,b</td><td>RGB value. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00603">603</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="abe1292b459edfd114ef129b3320d5317"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::moveSetBulb </td>
<td>(</td>
<td class="paramtype"><a class="el" href="_p_s3_enums_8h.html#aac6fa7b0395b95cc528deaad0ce884a2">ColorsEnum</a>&#160;</td>
<td class="paramname"><em>color</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Use this to set the color using the predefined colors in <a class="el" href="_p_s3_enums_8h.html#aac6fa7b0395b95cc528deaad0ce884a2">ColorsEnum</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">color</td><td>The desired color. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00612">612</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ac14d338ddb573d1c06f70749f9205689"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::moveSetRumble </td>
<td>(</td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>rumble</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the rumble value inside the Move controller. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">rumble</td><td>The desired value in the range from 64-255. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00616">616</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a11a7a031b249e09c39aa0872fa1e4a6c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void PS3BT::attachOnInit </td>
<td>(</td>
<td class="paramtype">void(*)(void)&#160;</td>
<td class="paramname"><em>funcOnInit</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>Used to call your own function when the controller is successfully initialized. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">funcOnInit</td><td>Function to call. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_p_s3_b_t_8h_source.html#l00186">186</a> of file <a class="el" href="_p_s3_b_t_8h_source.html">PS3BT.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a2804535e3164eafca80a6f6c6bd9a4f9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool PS3BT::PS3Connected</td>
</tr>
</table>
</div><div class="memdoc">
<p>Variable used to indicate if the normal Playstation controller is successfully connected. </p>
<p>Definition at line <a class="el" href="_p_s3_b_t_8h_source.html#l00188">188</a> of file <a class="el" href="_p_s3_b_t_8h_source.html">PS3BT.h</a>.</p>
</div>
</div>
<a class="anchor" id="a9273b6796948b83772117b3805421b4a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool PS3BT::PS3MoveConnected</td>
</tr>
</table>
</div><div class="memdoc">
<p>Variable used to indicate if the Move controller is successfully connected. </p>
<p>Definition at line <a class="el" href="_p_s3_b_t_8h_source.html#l00194">194</a> of file <a class="el" href="_p_s3_b_t_8h_source.html">PS3BT.h</a>.</p>
</div>
</div>
<a class="anchor" id="ab35277632083d43f8750d130bea6d430"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool PS3BT::PS3NavigationConnected</td>
</tr>
</table>
</div><div class="memdoc">
<p>Variable used to indicate if the Navigation controller is successfully connected. </p>
<p>Definition at line <a class="el" href="_p_s3_b_t_8h_source.html#l00196">196</a> of file <a class="el" href="_p_s3_b_t_8h_source.html">PS3BT.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_p_s3_b_t_8h_source.html">PS3BT.h</a></li>
<li><a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</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.6
</small></address>
</body>
</html>