forked from pschatzmann/arduino-stk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArdBtSource_8h_source.html
101 lines (101 loc) · 11.1 KB
/
ArdBtSource_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Arduino STK: ArdBtSource.h Source File</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="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Arduino STK
 <span id="projectnumber">4.6.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">ArdBtSource.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>  </div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include "Stk.h"</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#ifdef __BT_A2DP__</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>  </div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#ifndef ARDBTSOURCE_H</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#define ARDBTSOURCE_H</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  </div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "WvOut.h"</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "ArdCommonOut.h"</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "BluetoothA2DPSource.h"</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "Voicer.h"</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "esp_log.h"</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  </div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="keyword">namespace </span><a class="code" href="namespacestk.html">stk</a> {</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  </div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">/***************************************************/</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">/***************************************************/</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classstk_1_1ArdBtSource.html"> 27</a></span> <span class="keyword">class </span><a class="code" href="classstk_1_1ArdBtSource.html">ArdBtSource</a> : <span class="keyword">public</span> <a class="code" href="classstk_1_1Stk.html">Stk</a></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> {</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classstk_1_1ArdBtSource.html#a895c224a25f85b626bdc3e07efb1eedd"> 31</a></span>  <a class="code" href="classstk_1_1ArdBtSource.html#a895c224a25f85b626bdc3e07efb1eedd">ArdBtSource</a>();</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classstk_1_1ArdBtSource.html#a35530c924eed2a9af5cf18b2dbf17715"> 34</a></span>  <a class="code" href="classstk_1_1ArdBtSource.html#a35530c924eed2a9af5cf18b2dbf17715">~ArdBtSource</a>();</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classstk_1_1ArdBtSource.html#a5bee726b22829079127374a623e08f2b"> 37</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1ArdBtSource.html#a5bee726b22829079127374a623e08f2b">start</a>(<span class="keywordtype">char</span>* name, <a class="code" href="classstk_1_1Voicer.html">Voicer</a> &voicer);</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classstk_1_1ArdBtSource.html#a2661c876b9c6f579ed8d6d287ae33aa0"> 40</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classstk_1_1ArdBtSource.html#a2661c876b9c6f579ed8d6d287ae33aa0">isConnected</a>();</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classstk_1_1ArdBtSource.html#a89cb0c8bc3c83f5a73ffd98b7aad3ab1"> 43</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1ArdBtSource.html#a89cb0c8bc3c83f5a73ffd98b7aad3ab1">setNVSInit</a>(<span class="keywordtype">bool</span> doInit);</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classstk_1_1ArdBtSource.html#a0e81c96adb00146fb02a2b73c1892ef3"> 46</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1ArdBtSource.html#a0e81c96adb00146fb02a2b73c1892ef3">setResetBLE</a>(<span class="keywordtype">bool</span> doInit);</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="classstk_1_1Voicer.html">Voicer</a> *pVoicer;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  BluetoothA2DPSource *a2dp_source;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> };</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> } <span class="comment">// stk namespace</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassstk_1_1ArdBtSource_html"><div class="ttname"><a href="classstk_1_1ArdBtSource.html">stk::ArdBtSource</a></div><div class="ttdoc">ESP32 Output to Bluetooth.</div><div class="ttdef"><b>Definition:</b> ArdBtSource.h:28</div></div>
<div class="ttc" id="aclassstk_1_1ArdBtSource_html_a0e81c96adb00146fb02a2b73c1892ef3"><div class="ttname"><a href="classstk_1_1ArdBtSource.html#a0e81c96adb00146fb02a2b73c1892ef3">stk::ArdBtSource::setResetBLE</a></div><div class="ttdeci">void setResetBLE(bool doInit)</div><div class="ttdoc">Defines if the BLE should be reset on start.</div></div>
<div class="ttc" id="aclassstk_1_1ArdBtSource_html_a2661c876b9c6f579ed8d6d287ae33aa0"><div class="ttname"><a href="classstk_1_1ArdBtSource.html#a2661c876b9c6f579ed8d6d287ae33aa0">stk::ArdBtSource::isConnected</a></div><div class="ttdeci">bool isConnected()</div><div class="ttdoc">Checks if this device is still connnected.</div></div>
<div class="ttc" id="aclassstk_1_1ArdBtSource_html_a35530c924eed2a9af5cf18b2dbf17715"><div class="ttname"><a href="classstk_1_1ArdBtSource.html#a35530c924eed2a9af5cf18b2dbf17715">stk::ArdBtSource::~ArdBtSource</a></div><div class="ttdeci">~ArdBtSource()</div><div class="ttdoc">Destructor.</div></div>
<div class="ttc" id="aclassstk_1_1ArdBtSource_html_a5bee726b22829079127374a623e08f2b"><div class="ttname"><a href="classstk_1_1ArdBtSource.html#a5bee726b22829079127374a623e08f2b">stk::ArdBtSource::start</a></div><div class="ttdeci">void start(char *name, Voicer &voicer)</div><div class="ttdoc">Starts the Bluetooth device.</div></div>
<div class="ttc" id="aclassstk_1_1ArdBtSource_html_a895c224a25f85b626bdc3e07efb1eedd"><div class="ttname"><a href="classstk_1_1ArdBtSource.html#a895c224a25f85b626bdc3e07efb1eedd">stk::ArdBtSource::ArdBtSource</a></div><div class="ttdeci">ArdBtSource()</div><div class="ttdoc">Default constructor ...</div></div>
<div class="ttc" id="aclassstk_1_1ArdBtSource_html_a89cb0c8bc3c83f5a73ffd98b7aad3ab1"><div class="ttname"><a href="classstk_1_1ArdBtSource.html#a89cb0c8bc3c83f5a73ffd98b7aad3ab1">stk::ArdBtSource::setNVSInit</a></div><div class="ttdeci">void setNVSInit(bool doInit)</div><div class="ttdoc">Defines if the Flash NVS should be reset on start.</div></div>
<div class="ttc" id="aclassstk_1_1Stk_html"><div class="ttname"><a href="classstk_1_1Stk.html">stk::Stk</a></div><div class="ttdoc">STK base class.</div><div class="ttdef"><b>Definition:</b> Stk.h:144</div></div>
<div class="ttc" id="aclassstk_1_1Voicer_html"><div class="ttname"><a href="classstk_1_1Voicer.html">stk::Voicer</a></div><div class="ttdoc">STK voice manager class.</div><div class="ttdef"><b>Definition:</b> Voicer.h:35</div></div>
<div class="ttc" id="anamespacestk_html"><div class="ttname"><a href="namespacestk.html">stk</a></div><div class="ttdoc">The STK namespace.</div><div class="ttdef"><b>Definition:</b> ADSR.h:8</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>