USB_Host_Shield_2.0/class_p_s3_b_t.html

1117 lines
65 KiB
HTML
Raw Normal View History

2013-01-30 22:00:18 +01:00
<!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.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>USB Host Shield 2.0: PS3BT Class Reference</title>
2013-01-30 22:00:18 +01:00
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
2013-01-30 22:00:18 +01:00
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="imageStyle.css" rel="stylesheet" type="text/css"/>
2013-01-30 22:00:18 +01:00
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">USB Host Shield 2.0
2013-01-30 22:00:18 +01:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
2013-01-30 22:00:18 +01:00
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
2013-01-30 22:00:18 +01:00
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
2013-01-30 22:00:18 +01:00
<!-- 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="5,5,127,32"/>
</map>
2013-01-30 22:00:18 +01:00
<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="204,260,325,287"/>
<area shape="rect" id="node3" href="class_b_t_d.html" title="BTD" alt="" coords="240,171,289,197"/>
<area shape="rect" id="node4" href="class_u_s_b_device_config.html" title="USBDeviceConfig" alt="" coords="5,81,135,108"/>
<area shape="rect" id="node5" href="class_usb_config_xtracter.html" title="UsbConfigXtracter" alt="" coords="159,81,290,108"/>
<area shape="rect" id="node6" href="class_u_s_b.html" title="USB" alt="" coords="314,81,365,108"/>
<area shape="rect" id="node7" href="class_m_a_x3421e.html" title="MAX3421E" alt="" coords="295,5,383,32"/>
<area shape="rect" id="node8" href="struct_ep_info.html" title="EpInfo" alt="" coords="389,81,449,108"/>
</map>
2013-01-30 22:00:18 +01:00
<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>
2015-04-07 16:07:33 +02:00
<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> *<a class="el" href="class_bluetooth_service.html#aa67faf901f78a55a202945a20f6d778a">pBtd</a>, 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>
2013-01-30 22:00:18 +01:00
<tr class="separator:aab14832f7844f07e6287eb443019b6e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
2013-02-05 20:02:12 +01:00
<tr><td colspan="2"><div class="groupHeader">PS3 Controller functions</div></td></tr>
2014-01-10 18:20:37 +01:00
<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>
2014-01-19 17:17:06 +01:00
<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>
2014-01-10 18:20:37 +01:00
<tr class="separator:a07c8dcb809005e8492bbef4e1f4b9d24"><td class="memSeparator" colspan="2">&#160;</td></tr>
2016-04-19 18:16:46 +02:00
<tr class="memitem:abf7179f12e5e8cf3e9e13c69c2713592"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#abf7179f12e5e8cf3e9e13c69c2713592">getAngle</a> (<a class="el" href="controller_enums_8h.html#a7c7824a10a9ffa8fea85602fcf4d84e6">AngleEnum</a> a)</td></tr>
<tr class="separator:abf7179f12e5e8cf3e9e13c69c2713592"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ed9dead526c19fc912506850b2f9cc8"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#a1ed9dead526c19fc912506850b2f9cc8">get9DOFValues</a> (<a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51">SensorEnum</a> a)</td></tr>
<tr class="separator:a1ed9dead526c19fc912506850b2f9cc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
2014-01-10 18:20:37 +01:00
<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>
2013-01-30 22:00:18 +01:00
<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>
2014-06-09 17:02:31 +02:00
<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="controller_enums_8h.html#ab195293384292950ebc2166bfe360fd1">RumbleEnum</a> mode)</td></tr>
2014-01-10 18:20:37 +01:00
<tr class="separator:a7a3e593911490538c061e9ccb4273f87"><td class="memSeparator" colspan="2">&#160;</td></tr>
2013-04-01 22:52:24 +02:00
<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>
2014-01-10 18:20:37 +01:00
<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>
2013-01-30 22:00:18 +01:00
<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>
2014-06-09 17:02:31 +02:00
<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="controller_enums_8h.html#aac6fa7b0395b95cc528deaad0ce884a2">ColorsEnum</a> color)</td></tr>
2014-01-10 18:20:37 +01:00
<tr class="separator:abe1292b459edfd114ef129b3320d5317"><td class="memSeparator" colspan="2">&#160;</td></tr>
2013-01-30 22:00:18 +01:00
<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>
2014-06-09 17:02:31 +02:00
<tr class="memitem:ad5b6bba68b85614f6a1b2ddeb2a3f191"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_s3_b_t.html#ad5b6bba68b85614f6a1b2ddeb2a3f191">getLastMessageTime</a> ()</td></tr>
<tr class="separator:ad5b6bba68b85614f6a1b2ddeb2a3f191"><td class="memSeparator" colspan="2">&#160;</td></tr>
2015-04-07 16:07:33 +02:00
<tr class="inherit_header pub_methods_class_bluetooth_service"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_bluetooth_service')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_bluetooth_service.html">BluetoothService</a></td></tr>
<tr class="memitem:a410c7df1e49328de23a89921c89f9573 inherit pub_methods_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#a410c7df1e49328de23a89921c89f9573">BluetoothService</a> (<a class="el" href="class_b_t_d.html">BTD</a> *p)</td></tr>
<tr class="separator:a410c7df1e49328de23a89921c89f9573 inherit pub_methods_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a488e219cf0a90d39e643615b1f12e91f inherit pub_methods_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#a488e219cf0a90d39e643615b1f12e91f">attachOnInit</a> (void(*funcOnInit)(void))</td></tr>
<tr class="separator:a488e219cf0a90d39e643615b1f12e91f inherit pub_methods_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
2013-01-30 22:00:18 +01:00
</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>
2015-04-07 16:07:33 +02:00
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
BluetoothService implementation</h2></td></tr>
<tr class="memitem:a39ad8810c67e85eddc68c8a16d38a985"><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#a39ad8810c67e85eddc68c8a16d38a985">disconnect</a> ()</td></tr>
<tr class="separator:a39ad8810c67e85eddc68c8a16d38a985"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa310ede24b68b1b03cfc49c4308c66b7"><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#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">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">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:a4ed5311e2ba8b2700ab003e37e0f9172"><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#a4ed5311e2ba8b2700ab003e37e0f9172">onInit</a> ()</td></tr>
<tr class="separator:a4ed5311e2ba8b2700ab003e37e0f9172"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_class_bluetooth_service"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_bluetooth_service')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="class_bluetooth_service.html">BluetoothService</a></td></tr>
<tr class="memitem:a2a3674a4bb5d409840995eabe07049bd inherit pro_methods_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#a2a3674a4bb5d409840995eabe07049bd">checkHciHandle</a> (uint8_t *buf, uint16_t handle)</td></tr>
<tr class="separator:a2a3674a4bb5d409840995eabe07049bd inherit pro_methods_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_bluetooth_service"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_bluetooth_service')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_bluetooth_service.html">BluetoothService</a></td></tr>
<tr class="memitem:a321393d44ce59213fa1c7498c247d5ff inherit pro_attribs_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#a321393d44ce59213fa1c7498c247d5ff">pFuncOnInit</a> )(void)</td></tr>
<tr class="separator:a321393d44ce59213fa1c7498c247d5ff inherit pro_attribs_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
2015-04-07 16:07:33 +02:00
<tr class="memitem:aa67faf901f78a55a202945a20f6d778a inherit pro_attribs_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_b_t_d.html">BTD</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#aa67faf901f78a55a202945a20f6d778a">pBtd</a></td></tr>
<tr class="separator:aa67faf901f78a55a202945a20f6d778a inherit pro_attribs_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67b1db67c05d0bbdcd9c992135455437 inherit pro_attribs_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#a67b1db67c05d0bbdcd9c992135455437">hci_handle</a></td></tr>
<tr class="separator:a67b1db67c05d0bbdcd9c992135455437 inherit pro_attribs_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78a1a893ec9c2db32e42bc2271c4a4f2 inherit pro_attribs_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#a78a1a893ec9c2db32e42bc2271c4a4f2">l2cap_event_flag</a></td></tr>
<tr class="separator:a78a1a893ec9c2db32e42bc2271c4a4f2 inherit pro_attribs_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad643db609c7e2e3fae8904dbc7991262 inherit pro_attribs_class_bluetooth_service"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bluetooth_service.html#ad643db609c7e2e3fae8904dbc7991262">identifier</a></td></tr>
<tr class="separator:ad643db609c7e2e3fae8904dbc7991262 inherit pro_attribs_class_bluetooth_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
2013-01-30 22:00:18 +01:00
</table>
2013-02-05 20:02:12 +01:00
<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 class="definition">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>
2013-02-05 20:02:12 +01:00
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aab14832f7844f07e6287eb443019b6e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab14832f7844f07e6287eb443019b6e7">&#9670;&nbsp;</a></span>PS3BT()</h2>
2013-01-30 22:00:18 +01:00
<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>
2013-02-05 20:02:12 +01:00
<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 class="definition">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>
2013-01-30 22:00:18 +01:00
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a39ad8810c67e85eddc68c8a16d38a985"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39ad8810c67e85eddc68c8a16d38a985">&#9670;&nbsp;</a></span>disconnect()</h2>
2013-01-30 22:00:18 +01:00
<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>
2013-10-21 21:15:43 +02:00
<td class="paramname"></td><td>)</td>
2013-01-30 22:00:18 +01:00
<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">
2013-02-05 20:02:12 +01:00
<p>Used this to disconnect any of the controllers. </p>
2013-01-30 22:00:18 +01:00
2015-04-07 16:07:33 +02:00
<p>Implements <a class="el" href="class_bluetooth_service.html#a7bb2c8cccf3f2931629ead9becc51ec9">BluetoothService</a>.</p>
2013-01-30 22:00:18 +01:00
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00217">217</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-02-05 20:02:12 +01:00
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="a5e7842bef25e7c7210974f5405e1bc81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e7842bef25e7c7210974f5405e1bc81">&#9670;&nbsp;</a></span>getButtonPress()</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool PS3BT::getButtonPress </td>
2013-01-30 22:00:18 +01:00
<td>(</td>
2014-01-10 18:20:37 +01:00
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a>&#160;</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"><em>b</em></td><td>)</td>
2013-01-30 22:00:18 +01:00
<td></td>
</tr>
</table>
</div><div class="memdoc">
2014-01-10 18:20:37 +01:00
<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>
2014-01-10 18:20:37 +01:00
<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>
2013-02-05 20:02:12 +01:00
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00049">49</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a id="a3b0e522b5d8a39d3daf540e4feb4f5fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b0e522b5d8a39d3daf540e4feb4f5fe">&#9670;&nbsp;</a></span>getButtonClick()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool PS3BT::getButtonClick </td>
<td>(</td>
2014-01-10 18:20:37 +01:00
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a>&#160;</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"><em>b</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
2014-01-10 18:20:37 +01:00
<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>
2014-01-10 18:20:37 +01:00
<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 class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00053">53</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="a6dac11972fc4b1f5984d43365be1a954"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6dac11972fc4b1f5984d43365be1a954">&#9670;&nbsp;</a></span>getAnalogButton()</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t PS3BT::getAnalogButton </td>
<td>(</td>
2014-01-10 18:20:37 +01:00
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a94f7389d205c78830a5441370d7870fd">ButtonEnum</a>&#160;</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"><em>a</em></td><td>)</td>
2013-01-30 22:00:18 +01:00
<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>
2013-02-05 20:02:12 +01:00
<table class="params">
2014-01-10 18:20:37 +01:00
<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>
2013-02-05 20:02:12 +01:00
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Analog value in the range of 0-255. </dd></dl>
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00060">60</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="a648e2bfeb06e2dc1603202e95324b206"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a648e2bfeb06e2dc1603202e95324b206">&#9670;&nbsp;</a></span>getAnalogHat()</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t PS3BT::getAnalogHat </td>
<td>(</td>
2014-01-10 18:20:37 +01:00
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a34dad8f0a0927471137c403216597093">AnalogHatEnum</a>&#160;</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"><em>a</em></td><td>)</td>
2013-01-30 22:00:18 +01:00
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to read the analog joystick. </p><dl class="params"><dt>Parameters</dt><dd>
2013-02-05 20:02:12 +01:00
<table class="params">
2014-01-10 18:20:37 +01:00
<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>
2013-02-05 20:02:12 +01:00
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Return the analog value in the range of 0-255. </dd></dl>
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00064">64</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="a07c8dcb809005e8492bbef4e1f4b9d24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07c8dcb809005e8492bbef4e1f4b9d24">&#9670;&nbsp;</a></span>getSensor()</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int16_t PS3BT::getSensor </td>
2013-01-30 22:00:18 +01:00
<td>(</td>
2014-01-19 17:17:06 +01:00
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51">SensorEnum</a>&#160;</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"><em>a</em></td><td>)</td>
2013-01-30 22:00:18 +01:00
<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>
2013-02-05 20:02:12 +01:00
<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>
2013-02-05 20:02:12 +01:00
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Return the raw sensor value. </dd></dl>
2013-02-05 20:02:12 +01:00
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00068">68</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="abf7179f12e5e8cf3e9e13c69c2713592"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf7179f12e5e8cf3e9e13c69c2713592">&#9670;&nbsp;</a></span>getAngle()</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2016-04-19 18:16:46 +02:00
<td class="memname">float PS3BT::getAngle </td>
2013-01-30 22:00:18 +01:00
<td>(</td>
2014-01-19 17:17:06 +01:00
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a7c7824a10a9ffa8fea85602fcf4d84e6">AngleEnum</a>&#160;</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"><em>a</em></td><td>)</td>
2013-01-30 22:00:18 +01:00
<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">
2014-01-19 17:17:06 +01:00
<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>
2013-02-05 20:02:12 +01:00
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00085">85</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="a1ed9dead526c19fc912506850b2f9cc8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ed9dead526c19fc912506850b2f9cc8">&#9670;&nbsp;</a></span>get9DOFValues()</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2016-04-19 18:16:46 +02:00
<td class="memname">float PS3BT::get9DOFValues </td>
2013-01-30 22:00:18 +01:00
<td>(</td>
2014-01-19 17:17:06 +01:00
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a00d5030559c481763282483889597d51">SensorEnum</a>&#160;</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"><em>a</em></td><td>)</td>
2013-01-30 22:00:18 +01:00
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Read the sensors inside the Move controller. </p><dl class="params"><dt>Parameters</dt><dd>
2013-02-05 20:02:12 +01:00
<table class="params">
2014-01-19 17:17:06 +01:00
<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>
2013-02-05 20:02:12 +01:00
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value in SI units. </dd></dl>
2013-02-05 20:02:12 +01:00
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00112">112</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="a5062acbd19a52d88a998f19060fbc46a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5062acbd19a52d88a998f19060fbc46a">&#9670;&nbsp;</a></span>getStatus()</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool PS3BT::getStatus </td>
<td>(</td>
2014-01-10 18:20:37 +01:00
<td class="paramtype"><a class="el" href="_p_s3_enums_8h.html#add5c7a32e8138b44244caf07232161ae">StatusEnum</a>&#160;</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"><em>c</em></td><td>)</td>
2013-01-30 22:00:18 +01:00
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the status from the controller. </p><dl class="params"><dt>Parameters</dt><dd>
2013-02-05 20:02:12 +01:00
<table class="params">
2014-01-10 18:20:37 +01:00
<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>
2013-02-05 20:02:12 +01:00
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if correct and false if not. </dd></dl>
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00156">156</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="a8f3945da5c4e00ce2fd3daf0b6267cec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f3945da5c4e00ce2fd3daf0b6267cec">&#9670;&nbsp;</a></span>printStatusString()</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2014-01-10 18:20:37 +01:00
<td class="memname">void PS3BT::printStatusString </td>
2013-01-30 22:00:18 +01:00
<td>(</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"></td><td>)</td>
2013-01-30 22:00:18 +01:00
<td></td>
</tr>
</table>
</div><div class="memdoc">
2014-01-10 18:20:37 +01:00
<p>Read all the available statuses from the controller and prints it as a nice formated string. </p>
2013-02-05 20:02:12 +01:00
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00160">160</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="ab4f49b61167df001d13b68c7699651b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4f49b61167df001d13b68c7699651b4">&#9670;&nbsp;</a></span>getTemperature()</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">String PS3BT::getTemperature </td>
<td>(</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"></td><td>)</td>
2013-01-30 22:00:18 +01:00
<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>
2013-02-05 20:02:12 +01:00
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00141">141</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="a6ee74242b0c1644496ff04b457f39cd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ee74242b0c1644496ff04b457f39cd2">&#9670;&nbsp;</a></span>setAllOff()</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::setAllOff </td>
2013-01-30 22:00:18 +01:00
<td>(</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"></td><td>)</td>
2013-01-30 22:00:18 +01:00
<td></td>
</tr>
</table>
</div><div class="memdoc">
2014-01-10 18:20:37 +01:00
<p>Used to set all LEDs and rumble off. </p>
2013-02-05 20:02:12 +01:00
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00519">519</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="a5c87e7db5311a5d56f78c994b5545e4e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c87e7db5311a5d56f78c994b5545e4e">&#9670;&nbsp;</a></span>setRumbleOff()</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::setRumbleOff </td>
2013-01-30 22:00:18 +01:00
<td>(</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"></td><td>)</td>
2013-01-30 22:00:18 +01:00
<td></td>
</tr>
</table>
</div><div class="memdoc">
2014-01-10 18:20:37 +01:00
<p>Turn off rumble. </p>
2013-02-05 20:02:12 +01:00
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00530">530</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="a7a3e593911490538c061e9ccb4273f87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a3e593911490538c061e9ccb4273f87">&#9670;&nbsp;</a></span>setRumbleOn() <span class="overload">[1/2]</span></h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::setRumbleOn </td>
2013-01-30 22:00:18 +01:00
<td>(</td>
2014-06-09 17:02:31 +02:00
<td class="paramtype"><a class="el" href="controller_enums_8h.html#ab195293384292950ebc2166bfe360fd1">RumbleEnum</a>&#160;</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"><em>mode</em></td><td>)</td>
2013-01-30 22:00:18 +01:00
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Turn on rumble. </p><dl class="params"><dt>Parameters</dt><dd>
2013-02-05 20:02:12 +01:00
<table class="params">
2014-06-09 17:02:31 +02:00
<tr><td class="paramname">mode</td><td>Either <a class="el" href="controller_enums_8h.html#ab195293384292950ebc2166bfe360fd1a5819f165165589a8e65b07bf46c7382b">RumbleHigh</a> or <a class="el" href="controller_enums_8h.html#ab195293384292950ebc2166bfe360fd1a080b52389e532b79b9e48f43ae6086ac">RumbleLow</a>. </td></tr>
2013-02-05 20:02:12 +01:00
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00540">540</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-04-01 22:52:24 +02:00
</div>
</div>
<a id="ae309556e995afc10b13dfbe4e6c32798"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae309556e995afc10b13dfbe4e6c32798">&#9670;&nbsp;</a></span>setRumbleOn() <span class="overload">[2/2]</span></h2>
2013-04-01 22:52:24 +02:00
<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>
2013-04-01 22:52:24 +02:00
<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 class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00549">549</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-04-01 22:52:24 +02:00
</div>
</div>
<a id="a0acdc09661a8099b2d5e8b59cd8325bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0acdc09661a8099b2d5e8b59cd8325bb">&#9670;&nbsp;</a></span>setLedRaw()</h2>
2013-04-01 22:52:24 +02:00
<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>
2013-10-21 21:15:43 +02:00
<td class="paramname"><em>value</em></td><td>)</td>
2013-04-01 22:52:24 +02:00
<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>
2013-04-01 22:52:24 +02:00
<table class="params">
2014-01-10 18:20:37 +01:00
<tr><td class="paramname">value</td><td>See: <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a>. </td></tr>
2013-04-01 22:52:24 +02:00
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00559">559</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a id="a2ce9fb6251b56ec877cd22af7213a037"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ce9fb6251b56ec877cd22af7213a037">&#9670;&nbsp;</a></span>setLedOff() <span class="overload">[1/2]</span></h2>
<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 class="definition">Definition at line <a class="el" href="_p_s3_b_t_8h_source.html#l00138">138</a> of file <a class="el" href="_p_s3_b_t_8h_source.html">PS3BT.h</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="af8677eaae9121a60947a1743628cd20a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8677eaae9121a60947a1743628cd20a">&#9670;&nbsp;</a></span>setLedOff() <span class="overload">[2/2]</span></h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::setLedOff </td>
<td>(</td>
2014-01-10 18:20:37 +01:00
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a>&#160;</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"><em>a</em></td><td>)</td>
2013-01-30 22:00:18 +01:00
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Turn the specific LED off. </p><dl class="params"><dt>Parameters</dt><dd>
2013-02-05 20:02:12 +01:00
<table class="params">
2014-01-10 18:20:37 +01:00
<tr><td class="paramname">a</td><td>The <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> to turn off. </td></tr>
2013-02-05 20:02:12 +01:00
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00564">564</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="a4e6cdea1880421a21cc8cfca0f00b449"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e6cdea1880421a21cc8cfca0f00b449">&#9670;&nbsp;</a></span>setLedOn()</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::setLedOn </td>
<td>(</td>
2014-01-10 18:20:37 +01:00
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a>&#160;</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"><em>a</em></td><td>)</td>
2013-01-30 22:00:18 +01:00
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Turn the specific LED on. </p><dl class="params"><dt>Parameters</dt><dd>
2013-02-05 20:02:12 +01:00
<table class="params">
2014-01-10 18:20:37 +01:00
<tr><td class="paramname">a</td><td>The <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> to turn on. </td></tr>
2013-02-05 20:02:12 +01:00
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00569">569</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="ae163b7f00d287f8647dabc2897d0d208"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae163b7f00d287f8647dabc2897d0d208">&#9670;&nbsp;</a></span>setLedToggle()</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::setLedToggle </td>
<td>(</td>
2014-01-10 18:20:37 +01:00
<td class="paramtype"><a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a>&#160;</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"><em>a</em></td><td>)</td>
2013-01-30 22:00:18 +01:00
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Toggle the specific LED. </p><dl class="params"><dt>Parameters</dt><dd>
2013-02-05 20:02:12 +01:00
<table class="params">
2014-01-10 18:20:37 +01:00
<tr><td class="paramname">a</td><td>The <a class="el" href="controller_enums_8h.html#a70df64e026046bc352983127b7ae2cf0">LEDEnum</a> to toggle. </td></tr>
2013-02-05 20:02:12 +01:00
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00578">578</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="ad0926b75edcbb12ddf76f78e66728782"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0926b75edcbb12ddf76f78e66728782">&#9670;&nbsp;</a></span>moveSetBulb() <span class="overload">[1/2]</span></h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::moveSetBulb </td>
2013-01-30 22:00:18 +01:00
<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>
2013-01-30 22:00:18 +01:00
<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>
2013-01-30 22:00:18 +01:00
</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>
2013-02-05 20:02:12 +01:00
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00604">604</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="abe1292b459edfd114ef129b3320d5317"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe1292b459edfd114ef129b3320d5317">&#9670;&nbsp;</a></span>moveSetBulb() <span class="overload">[2/2]</span></h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void PS3BT::moveSetBulb </td>
2013-01-30 22:00:18 +01:00
<td>(</td>
2014-06-09 17:02:31 +02:00
<td class="paramtype"><a class="el" href="controller_enums_8h.html#aac6fa7b0395b95cc528deaad0ce884a2">ColorsEnum</a>&#160;</td>
2013-10-21 21:15:43 +02:00
<td class="paramname"><em>color</em></td><td>)</td>
2013-01-30 22:00:18 +01:00
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Use this to set the color using the predefined colors in <a class="el" href="controller_enums_8h.html#aac6fa7b0395b95cc528deaad0ce884a2">ColorsEnum</a>. </p><dl class="params"><dt>Parameters</dt><dd>
2013-02-05 20:02:12 +01:00
<table class="params">
<tr><td class="paramname">color</td><td>The desired color. </td></tr>
2013-02-05 20:02:12 +01:00
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00613">613</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
</div>
</div>
<a id="ac14d338ddb573d1c06f70749f9205689"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac14d338ddb573d1c06f70749f9205689">&#9670;&nbsp;</a></span>moveSetRumble()</h2>
<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>
2013-10-21 21:15:43 +02:00
<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 class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00617">617</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2014-06-09 17:02:31 +02:00
</div>
</div>
<a id="ad5b6bba68b85614f6a1b2ddeb2a3f191"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5b6bba68b85614f6a1b2ddeb2a3f191">&#9670;&nbsp;</a></span>getLastMessageTime()</h2>
2014-06-09 17:02:31 +02:00
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint32_t PS3BT::getLastMessageTime </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to get the millis() of the last message </p>
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8h_source.html#l00174">174</a> of file <a class="el" href="_p_s3_b_t_8h_source.html">PS3BT.h</a>.</p>
2013-08-14 01:16:29 +02:00
</div>
</div>
<a id="aa310ede24b68b1b03cfc49c4308c66b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa310ede24b68b1b03cfc49c4308c66b7">&#9670;&nbsp;</a></span>ACLData()</h2>
2013-08-14 01:16:29 +02:00
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
2015-04-07 16:07:33 +02:00
<td class="memname">void PS3BT::ACLData </td>
2013-08-14 01:16:29 +02:00
<td>(</td>
2015-04-07 16:07:33 +02:00
<td class="paramtype">uint8_t *&#160;</td>
<td class="paramname"><em>ACLData</em></td><td>)</td>
2013-08-14 01:16:29 +02:00
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
2015-04-07 16:07:33 +02:00
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
2013-08-14 01:16:29 +02:00
</tr>
</table>
</div><div class="memdoc">
<p>Used to pass acldata to the services. </p><dl class="params"><dt>Parameters</dt><dd>
2013-08-14 01:16:29 +02:00
<table class="params">
2015-04-07 16:07:33 +02:00
<tr><td class="paramname">ACLData</td><td>Incoming acldata. </td></tr>
2013-08-14 01:16:29 +02:00
</table>
</dd>
</dl>
2015-04-07 16:07:33 +02:00
<p>Implements <a class="el" href="class_bluetooth_service.html#a9740e997198485c9629a146a9c981043">BluetoothService</a>.</p>
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00224">224</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2015-04-07 16:07:33 +02:00
</div>
</div>
<a id="ab41f25f45573239990f68611dc825086"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab41f25f45573239990f68611dc825086">&#9670;&nbsp;</a></span>Run()</h2>
2015-04-07 16:07:33 +02:00
<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">protected</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Used to run part of the state machine. </p>
<p>Implements <a class="el" href="class_bluetooth_service.html#a16df27af39d09963cf0d43910d92ff4c">BluetoothService</a>.</p>
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00454">454</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2015-04-07 16:07:33 +02:00
</div>
</div>
<a id="a576d72cdf12af58ae59c8f2a02f99c0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a576d72cdf12af58ae59c8f2a02f99c0f">&#9670;&nbsp;</a></span>Reset()</h2>
2015-04-07 16:07:33 +02:00
<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">protected</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Use this to reset the service. </p>
<p>Implements <a class="el" href="class_bluetooth_service.html#aa7c81841d4e898e9dc91533da6d7ab64">BluetoothService</a>.</p>
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00204">204</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2015-04-07 16:07:33 +02:00
</div>
</div>
<a id="a4ed5311e2ba8b2700ab003e37e0f9172"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ed5311e2ba8b2700ab003e37e0f9172">&#9670;&nbsp;</a></span>onInit()</h2>
2015-04-07 16:07:33 +02:00
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void PS3BT::onInit </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Called when the controller is successfully initialized. Use attachOnInit(void (*funcOnInit)(void)) to call your own function. This is useful for instance if you want to set the LEDs in a specific way. </p>
<p>Implements <a class="el" href="class_bluetooth_service.html#a34d08d56c560c892c9684133f69b971b">BluetoothService</a>.</p>
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8cpp_source.html#l00628">628</a> of file <a class="el" href="_p_s3_b_t_8cpp_source.html">PS3BT.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a2804535e3164eafca80a6f6c6bd9a4f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2804535e3164eafca80a6f6c6bd9a4f9">&#9670;&nbsp;</a></span>PS3Connected</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool PS3BT::PS3Connected</td>
</tr>
</table>
</div><div class="memdoc">
2013-08-14 01:16:29 +02:00
<p>Variable used to indicate if the normal Playstation controller is successfully connected. </p>
2013-02-05 20:02:12 +01:00
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8h_source.html#l00176">176</a> of file <a class="el" href="_p_s3_b_t_8h_source.html">PS3BT.h</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="a9273b6796948b83772117b3805421b4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9273b6796948b83772117b3805421b4a">&#9670;&nbsp;</a></span>PS3MoveConnected</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool PS3BT::PS3MoveConnected</td>
</tr>
</table>
</div><div class="memdoc">
2013-08-14 01:16:29 +02:00
<p>Variable used to indicate if the Move controller is successfully connected. </p>
2013-02-05 20:02:12 +01:00
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8h_source.html#l00182">182</a> of file <a class="el" href="_p_s3_b_t_8h_source.html">PS3BT.h</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a id="ab35277632083d43f8750d130bea6d430"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab35277632083d43f8750d130bea6d430">&#9670;&nbsp;</a></span>PS3NavigationConnected</h2>
2013-01-30 22:00:18 +01:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool PS3BT::PS3NavigationConnected</td>
</tr>
</table>
</div><div class="memdoc">
2013-08-14 01:16:29 +02:00
<p>Variable used to indicate if the Navigation controller is successfully connected. </p>
2013-02-05 20:02:12 +01:00
<p class="definition">Definition at line <a class="el" href="_p_s3_b_t_8h_source.html#l00184">184</a> of file <a class="el" href="_p_s3_b_t_8h_source.html">PS3BT.h</a>.</p>
2013-01-30 22:00:18 +01:00
</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>
2013-01-30 22:00:18 +01:00
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
2013-01-30 22:00:18 +01:00
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
2013-01-30 22:00:18 +01:00
</small></address>
</body>
</html>