Skip to content

Commit

Permalink
deploy: 9bcb12a
Browse files Browse the repository at this point in the history
  • Loading branch information
TMRh20 committed Dec 19, 2023
1 parent 131178c commit 528a4f1
Show file tree
Hide file tree
Showing 100 changed files with 2,957 additions and 3,184 deletions.
74 changes: 40 additions & 34 deletions AudioRadioRelay_8ino-example.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!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">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<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 http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Auto Analog Audio: AudioRadioRelay.ino</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
Expand All @@ -20,10 +20,9 @@
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Auto Analog Audio
&#160;<span id="projectnumber">1.43</span>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Auto Analog Audio<span id="projectnumber">&#160;v1.44</span>
</div>
<div id="projectbrief">TMRh20 2020 - Automatic DAC, ADC &amp; Timers on Arduino Due</div>
</td>
Expand All @@ -32,21 +31,22 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
Expand All @@ -58,20 +58,26 @@

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
<div class="headertitle">
<div class="title">AudioRadioRelay.ino</div> </div>
<div class="headertitle"><div class="title">AudioRadioRelay.ino</div></div>
</div><!--header-->
<div class="contents">
<p><b>For Arduino Due</b><br />
<p ><b>For Arduino Due</b><br />
</p>
<p>Audio Relay &amp; Peripheral Test Example:</p>
<p>This example demonstrates how to manage incoming and outgoing audio streams using the AAAudio library and nrf24l01+ radio modules on Arduino Due.</p>
<p >Audio Relay &amp; Peripheral Test Example:</p>
<p >This example demonstrates how to manage incoming and outgoing audio streams using the AAAudio library and nrf24l01+ radio modules on Arduino Due.</p>
<ol type="1">
<li>This example uses the onboard DAC to play the incoming audio data via DAC0</li>
<li>The ADC is used to sample the DAC0 pin, and the data is made available</li>
Expand Down Expand Up @@ -132,12 +138,12 @@
<div class="line"><span class="preprocessor">#include &lt;<a class="code" href="AutoAnalogAudio_8h.html">AutoAnalogAudio.h</a>&gt;</span></div>
<div class="line"><span class="preprocessor">#include &quot;myRadio.h&quot;</span></div>
<div class="line"> </div>
<div class="line"><a name="_a0"></a><a class="code" href="classAutoAnalog.html">AutoAnalog</a> aaAudio;</div>
<div class="line"><a id="_a0" name="_a0"></a><a class="code hl_class" href="classAutoAnalog.html">AutoAnalog</a> aaAudio;</div>
<div class="line"> </div>
<div class="line"><span class="comment">/*********************************************************/</span></div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">void</span> DACC_Handler(<span class="keywordtype">void</span>) {</div>
<div class="line"> aaAudio.<a name="a1"></a><a class="code" href="classAutoAnalog.html#a0bf0cb2ddbf79748887551f09a7932ec">dacHandler</a>(); <span class="comment">//Link the DAC ISR/IRQ library. Called by the MCU when DAC is ready for data</span></div>
<div class="line"> aaAudio.<a id="a1" name="a1"></a><a class="code hl_function" href="classAutoAnalog.html#a0bf0cb2ddbf79748887551f09a7932ec">dacHandler</a>(); <span class="comment">//Link the DAC ISR/IRQ library. Called by the MCU when DAC is ready for data</span></div>
<div class="line">}</div>
<div class="line"> </div>
<div class="line"><span class="comment">/*********************************************************/</span></div>
Expand All @@ -147,9 +153,9 @@
<div class="line"> Serial.begin(115200);</div>
<div class="line"> Serial.println(<span class="stringliteral">&quot;Analog Audio Begin&quot;</span>);</div>
<div class="line"> </div>
<div class="line"> aaAudio.<a name="a2"></a><a class="code" href="classAutoAnalog.html#af050f10f4589e38907f4776bb49b0e07">begin</a>(1, 1); <span class="comment">//Setup aaAudio using both DAC and ADC</span></div>
<div class="line"> aaAudio.<a id="a2" name="a2"></a><a class="code hl_function" href="classAutoAnalog.html#af050f10f4589e38907f4776bb49b0e07">begin</a>(1, 1); <span class="comment">//Setup aaAudio using both DAC and ADC</span></div>
<div class="line"><span class="preprocessor">#if defined (ARDUINO_AVR)</span></div>
<div class="line"> aaAudio.<a name="a3"></a><a class="code" href="classAutoAnalog.html#a34814ebff21d9b602f1f33503c070a54">autoAdjust</a> = 0;</div>
<div class="line"> aaAudio.<a id="a3" name="a3"></a><a class="code hl_variable" href="classAutoAnalog.html#a34814ebff21d9b602f1f33503c070a54">autoAdjust</a> = 0;</div>
<div class="line"><span class="preprocessor">#endif</span></div>
<div class="line"> setupRadio();</div>
<div class="line">}</div>
Expand Down Expand Up @@ -191,21 +197,21 @@
<div class="line"> </div>
<div class="line"> <span class="keywordflow">if</span> (pipeNo == 2) {</div>
<div class="line"> radio.read(&amp;dynSampleRate, 4); <span class="comment">// Receive commands using pipe #2</span></div>
<div class="line"> aaAudio.<a name="a4"></a><a class="code" href="classAutoAnalog.html#a99cfa2255a20289a00274d3ead8d1f6e">setSampleRate</a>(dynSampleRate); <span class="comment">// Pipe 2 is being used for command data, pipe 1 &amp; others for audio data</span></div>
<div class="line"> aaAudio.<a id="a4" name="a4"></a><a class="code hl_function" href="classAutoAnalog.html#a99cfa2255a20289a00274d3ead8d1f6e">setSampleRate</a>(dynSampleRate); <span class="comment">// Pipe 2 is being used for command data, pipe 1 &amp; others for audio data</span></div>
<div class="line"> } <span class="keywordflow">else</span> {</div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#if !defined (ARDUINO_ARCH_AVR) </span><span class="comment">//AVR (Uno, Nano can&#39;t handle extra processing)</span></div>
<div class="line"> radio.stopListening(); <span class="comment">// Prepare to send data out via radio</span></div>
<div class="line"><span class="preprocessor">#endif</span></div>
<div class="line"> radio.read(&amp;aaAudio.<a name="a5"></a><a class="code" href="classAutoAnalog.html#a4b5f46afb8f50e9bc28431cd467ee8bf">dacBuffer</a>, 32); <span class="comment">// Read the available radio data</span></div>
<div class="line"> radio.read(&amp;aaAudio.<a id="a5" name="a5"></a><a class="code hl_variable" href="classAutoAnalog.html#a4b5f46afb8f50e9bc28431cd467ee8bf">dacBuffer</a>, 32); <span class="comment">// Read the available radio data</span></div>
<div class="line"> </div>
<div class="line"> aaAudio.<a name="a6"></a><a class="code" href="classAutoAnalog.html#ad6728b5d90528b5817c1b8aa661de5e5">feedDAC</a>(0, 32); <span class="comment">// Feed the DAC with the received data</span></div>
<div class="line"> aaAudio.<a id="a6" name="a6"></a><a class="code hl_function" href="classAutoAnalog.html#ad6728b5d90528b5817c1b8aa661de5e5">feedDAC</a>(0, 32); <span class="comment">// Feed the DAC with the received data</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#if !defined (ARDUINO_ARCH_AVR)</span></div>
<div class="line"> aaAudio.<a name="a7"></a><a class="code" href="classAutoAnalog.html#a61f2ceee4ff61ec9323a30a6c44ab504">getADC</a>(32); <span class="comment">// Grab the available data from the ADC</span></div>
<div class="line"> aaAudio.<a id="a7" name="a7"></a><a class="code hl_function" href="classAutoAnalog.html#a61f2ceee4ff61ec9323a30a6c44ab504">getADC</a>(32); <span class="comment">// Grab the available data from the ADC</span></div>
<div class="line"> </div>
<div class="line"> <span class="comment">//Send the received ADC data via radio</span></div>
<div class="line"> radio.startFastWrite(&amp;aaAudio.<a name="a8"></a><a class="code" href="classAutoAnalog.html#a257d95cf5a0b43deaef32b761fc25792">adcBuffer</a>, 32, 1);</div>
<div class="line"> radio.startFastWrite(&amp;aaAudio.<a id="a8" name="a8"></a><a class="code hl_variable" href="classAutoAnalog.html#a257d95cf5a0b43deaef32b761fc25792">adcBuffer</a>, 32, 1);</div>
<div class="line"><span class="preprocessor">#endif</span></div>
<div class="line"> </div>
<div class="line"> <span class="comment">/*Note: The data initially recieved can directly be sent via radio, but</span></div>
Expand All @@ -221,19 +227,19 @@
<div class="line"><span class="comment">/*********************************************************/</span></div>
<div class="line"> </div>
<div class="ttc" id="aAutoAnalogAudio_8h_html"><div class="ttname"><a href="AutoAnalogAudio_8h.html">AutoAnalogAudio.h</a></div></div>
<div class="ttc" id="aclassAutoAnalog_html"><div class="ttname"><a href="classAutoAnalog.html">AutoAnalog</a></div><div class="ttdef"><b>Definition:</b> <a href="AutoAnalogAudio_8h_source.html#l00036">AutoAnalogAudio.h:37</a></div></div>
<div class="ttc" id="aclassAutoAnalog_html"><div class="ttname"><a href="classAutoAnalog.html">AutoAnalog</a></div><div class="ttdef"><b>Definition:</b> <a href="AutoAnalogAudio_8h_source.html#l00037">AutoAnalogAudio.h:38</a></div></div>
<div class="ttc" id="aclassAutoAnalog_html_a0bf0cb2ddbf79748887551f09a7932ec"><div class="ttname"><a href="classAutoAnalog.html#a0bf0cb2ddbf79748887551f09a7932ec">AutoAnalog::dacHandler</a></div><div class="ttdeci">void dacHandler(void)</div></div>
<div class="ttc" id="aclassAutoAnalog_html_a257d95cf5a0b43deaef32b761fc25792"><div class="ttname"><a href="classAutoAnalog.html#a257d95cf5a0b43deaef32b761fc25792">AutoAnalog::adcBuffer</a></div><div class="ttdeci">uint8_t adcBuffer[MAX_BUFFER_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="AutoAnalogAudio_8h_source.html#l00088">AutoAnalogAudio.h:88</a></div></div>
<div class="ttc" id="aclassAutoAnalog_html_a34814ebff21d9b602f1f33503c070a54"><div class="ttname"><a href="classAutoAnalog.html#a34814ebff21d9b602f1f33503c070a54">AutoAnalog::autoAdjust</a></div><div class="ttdeci">bool autoAdjust</div><div class="ttdef"><b>Definition:</b> <a href="AutoAnalogAudio_8h_source.html#l00117">AutoAnalogAudio.h:117</a></div></div>
<div class="ttc" id="aclassAutoAnalog_html_a4b5f46afb8f50e9bc28431cd467ee8bf"><div class="ttname"><a href="classAutoAnalog.html#a4b5f46afb8f50e9bc28431cd467ee8bf">AutoAnalog::dacBuffer</a></div><div class="ttdeci">uint8_t dacBuffer[MAX_BUFFER_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="AutoAnalogAudio_8h_source.html#l00081">AutoAnalogAudio.h:81</a></div></div>
<div class="ttc" id="aclassAutoAnalog_html_a257d95cf5a0b43deaef32b761fc25792"><div class="ttname"><a href="classAutoAnalog.html#a257d95cf5a0b43deaef32b761fc25792">AutoAnalog::adcBuffer</a></div><div class="ttdeci">uint8_t adcBuffer[MAX_BUFFER_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="AutoAnalogAudio_8h_source.html#l00089">AutoAnalogAudio.h:89</a></div></div>
<div class="ttc" id="aclassAutoAnalog_html_a34814ebff21d9b602f1f33503c070a54"><div class="ttname"><a href="classAutoAnalog.html#a34814ebff21d9b602f1f33503c070a54">AutoAnalog::autoAdjust</a></div><div class="ttdeci">bool autoAdjust</div><div class="ttdef"><b>Definition:</b> <a href="AutoAnalogAudio_8h_source.html#l00122">AutoAnalogAudio.h:122</a></div></div>
<div class="ttc" id="aclassAutoAnalog_html_a4b5f46afb8f50e9bc28431cd467ee8bf"><div class="ttname"><a href="classAutoAnalog.html#a4b5f46afb8f50e9bc28431cd467ee8bf">AutoAnalog::dacBuffer</a></div><div class="ttdeci">uint8_t dacBuffer[MAX_BUFFER_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="AutoAnalogAudio_8h_source.html#l00082">AutoAnalogAudio.h:82</a></div></div>
<div class="ttc" id="aclassAutoAnalog_html_a61f2ceee4ff61ec9323a30a6c44ab504"><div class="ttname"><a href="classAutoAnalog.html#a61f2ceee4ff61ec9323a30a6c44ab504">AutoAnalog::getADC</a></div><div class="ttdeci">void getADC(uint32_t samples=MAX_BUFFER_SIZE)</div></div>
<div class="ttc" id="aclassAutoAnalog_html_a99cfa2255a20289a00274d3ead8d1f6e"><div class="ttname"><a href="classAutoAnalog.html#a99cfa2255a20289a00274d3ead8d1f6e">AutoAnalog::setSampleRate</a></div><div class="ttdeci">void setSampleRate(uint32_t sampRate=0, bool stereo=true)</div></div>
<div class="ttc" id="aclassAutoAnalog_html_ad6728b5d90528b5817c1b8aa661de5e5"><div class="ttname"><a href="classAutoAnalog.html#ad6728b5d90528b5817c1b8aa661de5e5">AutoAnalog::feedDAC</a></div><div class="ttdeci">void feedDAC(uint8_t dacChannel=0, uint32_t samples=MAX_BUFFER_SIZE, bool startInterrupts=false)</div></div>
<div class="ttc" id="aclassAutoAnalog_html_af050f10f4589e38907f4776bb49b0e07"><div class="ttname"><a href="classAutoAnalog.html#af050f10f4589e38907f4776bb49b0e07">AutoAnalog::begin</a></div><div class="ttdeci">void begin(bool enADC, bool enDAC)</div></div>
</div><!-- fragment --> </div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Apr 12 2021 16:45:51 for Auto Analog Audio by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
Generated on Tue Dec 19 2023 15:04:43 for Auto Analog Audio by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
Loading

0 comments on commit 528a4f1

Please sign in to comment.