You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
139 lines
15 KiB
HTML
139 lines
15 KiB
HTML
<!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.8.20"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>SAME54P20A Test Project: /storage/Shared/Documents/Projects/ePenguin/ePenguin-Software-Framework/arch/arm/SAME54/SAME54A/mcu/inc/instance/dac.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="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.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">SAME54P20A Test Project
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.20 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @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&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_ea9599923402ca8ab47fc3e495999dea.html">arch</a></li><li class="navelem"><a class="el" href="dir_9e929c73feaf15d3695ce4c76b483065.html">arm</a></li><li class="navelem"><a class="el" href="dir_58955c0f35a9c3d48181d2be53994c7b.html">SAME54</a></li><li class="navelem"><a class="el" href="dir_09e97e512ca7d4e6cd359f1c5497eeba.html">SAME54A</a></li><li class="navelem"><a class="el" href="dir_4b38d63e5c584a4d6c9001c789e1829f.html">mcu</a></li><li class="navelem"><a class="el" href="dir_d4fc57b996dc082ef023092a5b7d90fc.html">inc</a></li><li class="navelem"><a class="el" href="dir_92b117bae75cf16a05ca7611db29e9c7.html">instance</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">dac.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="instance_2dac_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>  </div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#ifndef _SAME54_DAC_INSTANCE_</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#define _SAME54_DAC_INSTANCE_</span></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">/* ========== Register definition for DAC peripheral ========== */</span></div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))</span></div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#define REG_DAC_CTRLA (0x43002400) </span></div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#define REG_DAC_CTRLB (0x43002401) </span></div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#define REG_DAC_EVCTRL (0x43002402) </span></div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#define REG_DAC_INTENCLR (0x43002404) </span></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#define REG_DAC_INTENSET (0x43002405) </span></div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#define REG_DAC_INTFLAG (0x43002406) </span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#define REG_DAC_STATUS (0x43002407) </span></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#define REG_DAC_SYNCBUSY (0x43002408) </span></div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#define REG_DAC_DACCTRL0 (0x4300240C) </span></div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#define REG_DAC_DACCTRL1 (0x4300240E) </span></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor">#define REG_DAC_DATA0 (0x43002410) </span></div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor">#define REG_DAC_DATA1 (0x43002412) </span></div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor">#define REG_DAC_DATABUF0 (0x43002414) </span></div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor">#define REG_DAC_DATABUF1 (0x43002416) </span></div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="preprocessor">#define REG_DAC_DBGCTRL (0x43002418) </span></div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor">#define REG_DAC_RESULT0 (0x4300241C) </span></div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor">#define REG_DAC_RESULT1 (0x4300241E) </span></div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor">#else</span></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#a5699fa7b80f1ae2c4e9611548c1fe3c1"> 53</a></span> <span class="preprocessor">#define REG_DAC_CTRLA (*(RwReg8 *)0x43002400UL) </span></div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#a322393d1d023012f89e4235d7acec17a"> 54</a></span> <span class="preprocessor">#define REG_DAC_CTRLB (*(RwReg8 *)0x43002401UL) </span></div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#a3b1adf492342d95b0e27046e6ebeab9b"> 55</a></span> <span class="preprocessor">#define REG_DAC_EVCTRL (*(RwReg8 *)0x43002402UL) </span></div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#a7aaf07eac55924ef717595282722bced"> 56</a></span> <span class="preprocessor">#define REG_DAC_INTENCLR (*(RwReg8 *)0x43002404UL) </span></div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#ad3964a77af25d3f3f6e6e491b44181af"> 57</a></span> <span class="preprocessor">#define REG_DAC_INTENSET (*(RwReg8 *)0x43002405UL) </span></div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#ab86a1fc63a3458b14273128fcc98207c"> 58</a></span> <span class="preprocessor">#define REG_DAC_INTFLAG (*(RwReg8 *)0x43002406UL) </span></div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#ab18777fc13e36281ca757e4686463406"> 59</a></span> <span class="preprocessor">#define REG_DAC_STATUS (*(RoReg8 *)0x43002407UL) </span></div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#a2e4f6383a3ee511167567dc6ddceb059"> 60</a></span> <span class="preprocessor">#define REG_DAC_SYNCBUSY (*(RoReg *)0x43002408UL) </span></div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#aae12ac3d0074eb9f29237c6438df468e"> 61</a></span> <span class="preprocessor">#define REG_DAC_DACCTRL0 (*(RwReg16*)0x4300240CUL) </span></div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#adadb258625d188e1e1043d24908e6168"> 62</a></span> <span class="preprocessor">#define REG_DAC_DACCTRL1 (*(RwReg16*)0x4300240EUL) </span></div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#a7b5b397c05785c0440c90ee679b96b0f"> 63</a></span> <span class="preprocessor">#define REG_DAC_DATA0 (*(WoReg16*)0x43002410UL) </span></div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#a483b3f4929f0c65e0d0d28ed97047075"> 64</a></span> <span class="preprocessor">#define REG_DAC_DATA1 (*(WoReg16*)0x43002412UL) </span></div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#af64c12f023a2ad2995c2d773a75c5e78"> 65</a></span> <span class="preprocessor">#define REG_DAC_DATABUF0 (*(WoReg16*)0x43002414UL) </span></div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#a2f9713d6a4cf390a50cec15a0f3f0f81"> 66</a></span> <span class="preprocessor">#define REG_DAC_DATABUF1 (*(WoReg16*)0x43002416UL) </span></div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#a05a15d737324974ff86c7fea415406f9"> 67</a></span> <span class="preprocessor">#define REG_DAC_DBGCTRL (*(RwReg8 *)0x43002418UL) </span></div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#a2f7e75215b1564476796b1f6e851b2b6"> 68</a></span> <span class="preprocessor">#define REG_DAC_RESULT0 (*(RoReg16*)0x4300241CUL) </span></div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="instance_2dac_8h.html#a2231e8cbbe682c0dc8e174b0bf29ab32"> 69</a></span> <span class="preprocessor">#define REG_DAC_RESULT1 (*(RoReg16*)0x4300241EUL) </span></div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="preprocessor">#endif </span><span class="comment">/* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */</span><span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  </div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment">/* ========== Instance parameters for DAC peripheral ========== */</span></div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="preprocessor">#define DAC_CHANNEL_SIZE 2 // Number of DACs</span></div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="preprocessor">#define DAC_DATA_SIZE 12 // Number of bits in data</span></div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="preprocessor">#define DAC_DMAC_ID_EMPTY_0 72</span></div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="preprocessor">#define DAC_DMAC_ID_EMPTY_1 73</span></div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="preprocessor">#define DAC_DMAC_ID_EMPTY_LSB 72</span></div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="preprocessor">#define DAC_DMAC_ID_EMPTY_MSB 73</span></div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="preprocessor">#define DAC_DMAC_ID_EMPTY_SIZE 2</span></div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="preprocessor">#define DAC_DMAC_ID_RESRDY_0 74</span></div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="preprocessor">#define DAC_DMAC_ID_RESRDY_1 75</span></div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="preprocessor">#define DAC_DMAC_ID_RESRDY_LSB 74</span></div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="preprocessor">#define DAC_DMAC_ID_RESRDY_MSB 75</span></div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="preprocessor">#define DAC_DMAC_ID_RESRDY_SIZE 2</span></div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="preprocessor">#define DAC_GCLK_ID 42 // Index of Generic Clock</span></div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="preprocessor">#define DAC_STEP 7 // Number of steps to reach full scale</span></div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="preprocessor">#endif </span><span class="comment">/* _SAME54_DAC_INSTANCE_ */</span><span class="preprocessor"></span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
|
|
</small></address>
|
|
</body>
|
|
</html>
|