Skip to content

Commit

Permalink
deploy: f07e8d7
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycastillo committed Nov 5, 2023
1 parent d866850 commit 1390555
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 18 deletions.
43 changes: 39 additions & 4 deletions dac_8h.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">dac.h File Reference</div></div>
</div><!--header-->
Expand All @@ -87,15 +88,23 @@
</div>
<p><a href="dac_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:af4354af06971d78b3b6e0d6412462da5"><td class="memItemLeft" align="right" valign="top"><a id="af4354af06971d78b3b6e0d6412462da5" name="af4354af06971d78b3b6e0d6412462da5"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>dac_channel_mask_t</b> { <b>DAC_CHANNEL_NONE</b> = 0
, <b>DAC_CHANNEL_0</b> = 1
, <b>DAC_CHANNEL_1</b> = 2
, <b>DAC_CHANNEL_BOTH</b> = 3
}</td></tr>
<tr class="separator:af4354af06971d78b3b6e0d6412462da5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a6e622fafee8436bf9cf9f6b120352e3c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dac_8h.html#a6e622fafee8436bf9cf9f6b120352e3c">dac_init</a> (void)</td></tr>
<tr class="memdesc:a6e622fafee8436bf9cf9f6b120352e3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the DAC peripheral, but does not enable it. <a href="dac_8h.html#a6e622fafee8436bf9cf9f6b120352e3c">More...</a><br /></td></tr>
<tr class="separator:a6e622fafee8436bf9cf9f6b120352e3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e1932f9617b1febf4965b1f40ad2835"><td class="memItemLeft" align="right" valign="top"><a id="a5e1932f9617b1febf4965b1f40ad2835" name="a5e1932f9617b1febf4965b1f40ad2835"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>dac_enable</b> (uint16_t channel)</td></tr>
<tr class="memdesc:a5e1932f9617b1febf4965b1f40ad2835"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the given DAC channel. <br /></td></tr>
<tr class="separator:a5e1932f9617b1febf4965b1f40ad2835"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27483fa712ea61a534f679e72ffba463"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dac_8h.html#a27483fa712ea61a534f679e72ffba463">dac_enable</a> (dac_channel_mask_t channelmask)</td></tr>
<tr class="memdesc:a27483fa712ea61a534f679e72ffba463"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the DAC channels specified in the mask, and disables others. <a href="dac_8h.html#a27483fa712ea61a534f679e72ffba463">More...</a><br /></td></tr>
<tr class="separator:a27483fa712ea61a534f679e72ffba463"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b43d67fbe14479cc72c1119fb2b7a48"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dac_8h.html#a2b43d67fbe14479cc72c1119fb2b7a48">dac_set_analog_value</a> (uint16_t channel, uint16_t value)</td></tr>
<tr class="memdesc:a2b43d67fbe14479cc72c1119fb2b7a48"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the analog value of the DAC. <a href="dac_8h.html#a2b43d67fbe14479cc72c1119fb2b7a48">More...</a><br /></td></tr>
<tr class="separator:a2b43d67fbe14479cc72c1119fb2b7a48"><td class="memSeparator" colspan="2">&#160;</td></tr>
Expand Down Expand Up @@ -125,6 +134,32 @@ <h2 class="memtitle"><span class="permalink"><a href="#a6b0e70e8bf5135e2f3491e87
<p>Disables the given DAC channel. </p>
<dl class="section warning"><dt>Warning</dt><dd>Currently only supports the DAC on VOUT[0] </dd></dl>

</div>
</div>
<a id="a27483fa712ea61a534f679e72ffba463" name="a27483fa712ea61a534f679e72ffba463"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27483fa712ea61a534f679e72ffba463">&#9670;&#160;</a></span>dac_enable()</h2>

<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void dac_enable </td>
<td>(</td>
<td class="paramtype">dac_channel_mask_t&#160;</td>
<td class="paramname"><em>channelmask</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">

<p>Enables the DAC channels specified in the mask, and disables others. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">channelmask</td><td>A bitmask of the channels to enable: 1 for channel 0, 2 for channel 1, 3 for both channels. For MCUs with only one DAC channel, this parameter is ignored. </td></tr>
</table>
</dd>
</dl>

</div>
</div>
<a id="a6e622fafee8436bf9cf9f6b120352e3c" name="a6e622fafee8436bf9cf9f6b120352e3c"></a>
Expand Down
28 changes: 18 additions & 10 deletions dac_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,24 @@
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include &lt;stdbool.h&gt;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span><span class="keywordtype">void</span> <a class="code hl_function" href="dac_8h.html#a6e622fafee8436bf9cf9f6b120352e3c">dac_init</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="keywordtype">void</span> <a class="code hl_function" href="dac_8h.html#a5e1932f9617b1febf4965b1f40ad2835">dac_enable</a>(uint16_t channel);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><span class="keywordtype">void</span> <a class="code hl_function" href="dac_8h.html#a2b43d67fbe14479cc72c1119fb2b7a48">dac_set_analog_value</a>(uint16_t channel, uint16_t value);</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><span class="keywordtype">void</span> <a class="code hl_function" href="dac_8h.html#a6b0e70e8bf5135e2f3491e87fcd804fe">dac_disable</a>(uint16_t channel);</div>
<div class="ttc" id="adac_8h_html_a2b43d67fbe14479cc72c1119fb2b7a48"><div class="ttname"><a href="dac_8h.html#a2b43d67fbe14479cc72c1119fb2b7a48">dac_set_analog_value</a></div><div class="ttdeci">void dac_set_analog_value(uint16_t channel, uint16_t value)</div><div class="ttdoc">Set the analog value of the DAC.</div><div class="ttdef"><b>Definition:</b> dac.c:90</div></div>
<div class="ttc" id="adac_8h_html_a5e1932f9617b1febf4965b1f40ad2835"><div class="ttname"><a href="dac_8h.html#a5e1932f9617b1febf4965b1f40ad2835">dac_enable</a></div><div class="ttdeci">void dac_enable(uint16_t channel)</div><div class="ttdoc">Enables the given DAC channel.</div><div class="ttdef"><b>Definition:</b> dac.c:75</div></div>
<div class="ttc" id="adac_8h_html_a6b0e70e8bf5135e2f3491e87fcd804fe"><div class="ttname"><a href="dac_8h.html#a6b0e70e8bf5135e2f3491e87fcd804fe">dac_disable</a></div><div class="ttdeci">void dac_disable(uint16_t channel)</div><div class="ttdoc">Disables the given DAC channel.</div><div class="ttdef"><b>Definition:</b> dac.c:103</div></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="comment">// channel mask enum for dac_enable</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> DAC_CHANNEL_NONE = 0,</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> DAC_CHANNEL_0 = 1,</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> DAC_CHANNEL_1 = 2,</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> DAC_CHANNEL_BOTH = 3</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span>} dac_channel_mask_t;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><span class="keywordtype">void</span> <a class="code hl_function" href="dac_8h.html#a6e622fafee8436bf9cf9f6b120352e3c">dac_init</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span><span class="keywordtype">void</span> <a class="code hl_function" href="dac_8h.html#a27483fa712ea61a534f679e72ffba463">dac_enable</a>(dac_channel_mask_t channelmask);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span><span class="keywordtype">void</span> <a class="code hl_function" href="dac_8h.html#a2b43d67fbe14479cc72c1119fb2b7a48">dac_set_analog_value</a>(uint16_t channel, uint16_t value);</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span><span class="keywordtype">void</span> <a class="code hl_function" href="dac_8h.html#a6b0e70e8bf5135e2f3491e87fcd804fe">dac_disable</a>(uint16_t channel);</div>
<div class="ttc" id="adac_8h_html_a27483fa712ea61a534f679e72ffba463"><div class="ttname"><a href="dac_8h.html#a27483fa712ea61a534f679e72ffba463">dac_enable</a></div><div class="ttdeci">void dac_enable(dac_channel_mask_t channelmask)</div><div class="ttdoc">Enables the DAC channels specified in the mask, and disables others.</div><div class="ttdef"><b>Definition:</b> dac.c:75</div></div>
<div class="ttc" id="adac_8h_html_a2b43d67fbe14479cc72c1119fb2b7a48"><div class="ttname"><a href="dac_8h.html#a2b43d67fbe14479cc72c1119fb2b7a48">dac_set_analog_value</a></div><div class="ttdeci">void dac_set_analog_value(uint16_t channel, uint16_t value)</div><div class="ttdoc">Set the analog value of the DAC.</div><div class="ttdef"><b>Definition:</b> dac.c:97</div></div>
<div class="ttc" id="adac_8h_html_a6b0e70e8bf5135e2f3491e87fcd804fe"><div class="ttname"><a href="dac_8h.html#a6b0e70e8bf5135e2f3491e87fcd804fe">dac_disable</a></div><div class="ttdeci">void dac_disable(uint16_t channel)</div><div class="ttdoc">Disables the given DAC channel.</div><div class="ttdef"><b>Definition:</b> dac.c:110</div></div>
<div class="ttc" id="adac_8h_html_a6e622fafee8436bf9cf9f6b120352e3c"><div class="ttname"><a href="dac_8h.html#a6e622fafee8436bf9cf9f6b120352e3c">dac_init</a></div><div class="ttdeci">void dac_init(void)</div><div class="ttdoc">Initializes the DAC peripheral, but does not enable it.</div><div class="ttdef"><b>Definition:</b> dac.c:40</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
Expand Down
2 changes: 1 addition & 1 deletion globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ <h3><a id="index_a" name="index_a"></a>- a -</h3><ul>

<h3><a id="index_d" name="index_d"></a>- d -</h3><ul>
<li>dac_disable()&#160;:&#160;<a class="el" href="dac_8h.html#a6b0e70e8bf5135e2f3491e87fcd804fe">dac.h</a></li>
<li>dac_enable()&#160;:&#160;<a class="el" href="dac_8h.html#a5e1932f9617b1febf4965b1f40ad2835">dac.h</a></li>
<li>dac_enable()&#160;:&#160;<a class="el" href="dac_8h.html#a27483fa712ea61a534f679e72ffba463">dac.h</a></li>
<li>dac_init()&#160;:&#160;<a class="el" href="dac_8h.html#a6e622fafee8436bf9cf9f6b120352e3c">dac.h</a></li>
<li>dac_set_analog_value()&#160;:&#160;<a class="el" href="dac_8h.html#a2b43d67fbe14479cc72c1119fb2b7a48">dac.h</a></li>
<li>delay_ms()&#160;:&#160;<a class="el" href="delay_8h.html#ad2dd6e794004b50917d231195c324ce5">delay.h</a></li>
Expand Down
2 changes: 1 addition & 1 deletion globals_func.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ <h3><a id="index_a" name="index_a"></a>- a -</h3><ul>

<h3><a id="index_d" name="index_d"></a>- d -</h3><ul>
<li>dac_disable()&#160;:&#160;<a class="el" href="dac_8h.html#a6b0e70e8bf5135e2f3491e87fcd804fe">dac.h</a></li>
<li>dac_enable()&#160;:&#160;<a class="el" href="dac_8h.html#a5e1932f9617b1febf4965b1f40ad2835">dac.h</a></li>
<li>dac_enable()&#160;:&#160;<a class="el" href="dac_8h.html#a27483fa712ea61a534f679e72ffba463">dac.h</a></li>
<li>dac_init()&#160;:&#160;<a class="el" href="dac_8h.html#a6e622fafee8436bf9cf9f6b120352e3c">dac.h</a></li>
<li>dac_set_analog_value()&#160;:&#160;<a class="el" href="dac_8h.html#a2b43d67fbe14479cc72c1119fb2b7a48">dac.h</a></li>
<li>delay_ms()&#160;:&#160;<a class="el" href="delay_8h.html#ad2dd6e794004b50917d231195c324ce5">delay.h</a></li>
Expand Down
2 changes: 1 addition & 1 deletion search/all_4.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var searchData=
[
['dac_2eh_0',['dac.h',['../dac_8h.html',1,'']]],
['dac_5fdisable_1',['dac_disable',['../dac_8h.html#a6b0e70e8bf5135e2f3491e87fcd804fe',1,'dac.c']]],
['dac_5fenable_2',['dac_enable',['../dac_8h.html#a5e1932f9617b1febf4965b1f40ad2835',1,'dac.c']]],
['dac_5fenable_2',['dac_enable',['../dac_8h.html#a27483fa712ea61a534f679e72ffba463',1,'dac.c']]],
['dac_5finit_3',['dac_init',['../dac_8h.html#a6e622fafee8436bf9cf9f6b120352e3c',1,'dac.c']]],
['dac_5fset_5fanalog_5fvalue_4',['dac_set_analog_value',['../dac_8h.html#a2b43d67fbe14479cc72c1119fb2b7a48',1,'dac.c']]],
['data_5',['data',['../structrndis__msg__out__of__band__data__t.html#a99a3b3343a7c97415eedd0b762e3d445',1,'rndis_msg_out_of_band_data_t']]],
Expand Down
2 changes: 1 addition & 1 deletion search/functions_2.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var searchData=
[
['dac_5fdisable_0',['dac_disable',['../dac_8h.html#a6b0e70e8bf5135e2f3491e87fcd804fe',1,'dac.c']]],
['dac_5fenable_1',['dac_enable',['../dac_8h.html#a5e1932f9617b1febf4965b1f40ad2835',1,'dac.c']]],
['dac_5fenable_1',['dac_enable',['../dac_8h.html#a27483fa712ea61a534f679e72ffba463',1,'dac.c']]],
['dac_5finit_2',['dac_init',['../dac_8h.html#a6e622fafee8436bf9cf9f6b120352e3c',1,'dac.c']]],
['dac_5fset_5fanalog_5fvalue_3',['dac_set_analog_value',['../dac_8h.html#a2b43d67fbe14479cc72c1119fb2b7a48',1,'dac.c']]],
['delay_5fms_4',['delay_ms',['../delay_8h.html#ad2dd6e794004b50917d231195c324ce5',1,'delay.c']]],
Expand Down

0 comments on commit 1390555

Please sign in to comment.