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.

233 lines
40 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/component/trng.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&amp;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&amp;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_2bb2e10400507f879251f0324a0a8c7c.html">component</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">trng.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="component_2trng_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>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#ifndef _SAME54_TRNG_COMPONENT_</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#define _SAME54_TRNG_COMPONENT_</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment">/* ========================================================================== */</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment">/* ========================================================================== */</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">#define TRNG_U2242</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#define REV_TRNG 0x110</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="comment">/* -------- TRNG_CTRLA : (TRNG Offset: 0x00) (R/W 8) Control A -------- */</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="preprocessor">#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="unionTRNG__CTRLA__Type.html"> 44</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">union </span>{</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="unionTRNG__CTRLA__Type.html#a8098a2fe762f5c495edcf29ec4c99636"> 46</a></span>&#160; uint8_t :1; </div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="unionTRNG__CTRLA__Type.html#afbc528ac98ed5ec49e33a8dffd4aba6d"> 47</a></span>&#160; uint8_t <a class="code" href="unionTRNG__CTRLA__Type.html#afbc528ac98ed5ec49e33a8dffd4aba6d">ENABLE</a>:1; </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="unionTRNG__CTRLA__Type.html#a0d6e4656d89f192f77089d91ec9ea124"> 48</a></span>&#160; uint8_t :4; </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="unionTRNG__CTRLA__Type.html#a3426db9420921bb6fb4c5625bd547027"> 49</a></span>&#160; uint8_t <a class="code" href="unionTRNG__CTRLA__Type.html#a3426db9420921bb6fb4c5625bd547027">RUNSTDBY</a>:1; </div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="unionTRNG__CTRLA__Type.html#a54d9df04ee0c50cdc9f5c6ba00fb2257"> 50</a></span>&#160; uint8_t :1; </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="unionTRNG__CTRLA__Type.html#af50a23c9e0e98a3c56873f4099f7123c"> 51</a></span>&#160; } bit; </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="unionTRNG__CTRLA__Type.html#a5660105afd94ceeabe0e23259f09a2b4"> 52</a></span>&#160; uint8_t <a class="code" href="unionTRNG__CTRLA__Type.html#a5660105afd94ceeabe0e23259f09a2b4">reg</a>; </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;} <a class="code" href="unionTRNG__CTRLA__Type.html">TRNG_CTRLA_Type</a>;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<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="l00055"></a><span class="lineno"> 55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a7e9c5fb1c03509a0724580a548412a60"> 56</a></span>&#160;<span class="preprocessor">#define TRNG_CTRLA_OFFSET 0x00 </span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#ae652c07ea33be9d049a2962ed77b1db5"> 57</a></span>&#160;<span class="preprocessor">#define TRNG_CTRLA_RESETVALUE _U_(0x00) </span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a0b64984dc62598c0b9ce9fdebb2154f1"> 59</a></span>&#160;<span class="preprocessor">#define TRNG_CTRLA_ENABLE_Pos 1 </span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;<span class="preprocessor">#define TRNG_CTRLA_ENABLE (_U_(0x1) &lt;&lt; TRNG_CTRLA_ENABLE_Pos)</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a2334f5ecebaf9f297449a40e4261fba0"> 61</a></span>&#160;<span class="preprocessor">#define TRNG_CTRLA_RUNSTDBY_Pos 6 </span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="preprocessor">#define TRNG_CTRLA_RUNSTDBY (_U_(0x1) &lt;&lt; TRNG_CTRLA_RUNSTDBY_Pos)</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a2d98bbfc5f1991d4742bc48223252d3d"> 63</a></span>&#160;<span class="preprocessor">#define TRNG_CTRLA_MASK _U_(0x42) </span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="preprocessor"></span><span class="comment">/* -------- TRNG_EVCTRL : (TRNG Offset: 0x04) (R/W 8) Event Control -------- */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="preprocessor">#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="unionTRNG__EVCTRL__Type.html"> 67</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">union </span>{</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="unionTRNG__EVCTRL__Type.html#a076c09adace9fc1af6e25d42b8b27e00"> 69</a></span>&#160; uint8_t <a class="code" href="unionTRNG__EVCTRL__Type.html#a076c09adace9fc1af6e25d42b8b27e00">DATARDYEO</a>:1; </div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="unionTRNG__EVCTRL__Type.html#a39ee3df011a6d968aee3d4a618327fb1"> 70</a></span>&#160; uint8_t :7; </div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="unionTRNG__EVCTRL__Type.html#a26291adadd561b6571af431584b905bd"> 71</a></span>&#160; } bit; </div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="unionTRNG__EVCTRL__Type.html#a32ea93c7edba4666d65a99d6c67541e9"> 72</a></span>&#160; uint8_t <a class="code" href="unionTRNG__EVCTRL__Type.html#a32ea93c7edba4666d65a99d6c67541e9">reg</a>; </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;} <a class="code" href="unionTRNG__EVCTRL__Type.html">TRNG_EVCTRL_Type</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;<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="l00075"></a><span class="lineno"> 75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#adaefe3b9d37d246fad0c6fc47c1cfa42"> 76</a></span>&#160;<span class="preprocessor">#define TRNG_EVCTRL_OFFSET 0x04 </span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a54cb5b275f86031bc4422cb4f99da9f3"> 77</a></span>&#160;<span class="preprocessor">#define TRNG_EVCTRL_RESETVALUE _U_(0x00) </span></div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#addca7d936ccd5ec3bcdb339ea1131809"> 79</a></span>&#160;<span class="preprocessor">#define TRNG_EVCTRL_DATARDYEO_Pos 0 </span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;<span class="preprocessor">#define TRNG_EVCTRL_DATARDYEO (_U_(0x1) &lt;&lt; TRNG_EVCTRL_DATARDYEO_Pos)</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#aab9f39025f13b4fa6fedd123ec75b40c"> 81</a></span>&#160;<span class="preprocessor">#define TRNG_EVCTRL_MASK _U_(0x01) </span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="preprocessor"></span><span class="comment">/* -------- TRNG_INTENCLR : (TRNG Offset: 0x08) (R/W 8) Interrupt Enable Clear -------- */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;<span class="preprocessor">#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="unionTRNG__INTENCLR__Type.html"> 85</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">union </span>{</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="unionTRNG__INTENCLR__Type.html#a0475477a44d2284f74eb21b4a7dbfea7"> 87</a></span>&#160; uint8_t <a class="code" href="unionTRNG__INTENCLR__Type.html#a0475477a44d2284f74eb21b4a7dbfea7">DATARDY</a>:1; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="unionTRNG__INTENCLR__Type.html#a6b7247a5fc0b510f220b88749c10cd82"> 88</a></span>&#160; uint8_t :7; </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="unionTRNG__INTENCLR__Type.html#a4a9dc4155ecd4c5a8b9503f63ea4dadf"> 89</a></span>&#160; } bit; </div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="unionTRNG__INTENCLR__Type.html#ab5431b1bf72733e6728aa2147aff92f2"> 90</a></span>&#160; uint8_t <a class="code" href="unionTRNG__INTENCLR__Type.html#ab5431b1bf72733e6728aa2147aff92f2">reg</a>; </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;} <a class="code" href="unionTRNG__INTENCLR__Type.html">TRNG_INTENCLR_Type</a>;</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;<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="l00093"></a><span class="lineno"> 93</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a168af6f11b5028346211cb01fa56a35e"> 94</a></span>&#160;<span class="preprocessor">#define TRNG_INTENCLR_OFFSET 0x08 </span></div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a091b467750e4232f5b971b427128da69"> 95</a></span>&#160;<span class="preprocessor">#define TRNG_INTENCLR_RESETVALUE _U_(0x00) </span></div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a834c6df6c8e40b1c0e5215ede8b287ef"> 97</a></span>&#160;<span class="preprocessor">#define TRNG_INTENCLR_DATARDY_Pos 0 </span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;<span class="preprocessor">#define TRNG_INTENCLR_DATARDY (_U_(0x1) &lt;&lt; TRNG_INTENCLR_DATARDY_Pos)</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a1cebdd4a126583db0a87ca4911bf4e6f"> 99</a></span>&#160;<span class="preprocessor">#define TRNG_INTENCLR_MASK _U_(0x01) </span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;<span class="preprocessor"></span><span class="comment">/* -------- TRNG_INTENSET : (TRNG Offset: 0x09) (R/W 8) Interrupt Enable Set -------- */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;<span class="preprocessor">#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="unionTRNG__INTENSET__Type.html"> 103</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">union </span>{</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="unionTRNG__INTENSET__Type.html#a1cdeb648fbcdad804eec1f5060332fe2"> 105</a></span>&#160; uint8_t <a class="code" href="unionTRNG__INTENSET__Type.html#a1cdeb648fbcdad804eec1f5060332fe2">DATARDY</a>:1; </div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="unionTRNG__INTENSET__Type.html#ad09d0e60cff3b2683f305b1d80695ab1"> 106</a></span>&#160; uint8_t :7; </div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="unionTRNG__INTENSET__Type.html#ad11db5effd48068604a42b7e23d88b04"> 107</a></span>&#160; } bit; </div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="unionTRNG__INTENSET__Type.html#a5ad8ef174ff757e8169a89637217d3ce"> 108</a></span>&#160; uint8_t <a class="code" href="unionTRNG__INTENSET__Type.html#a5ad8ef174ff757e8169a89637217d3ce">reg</a>; </div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;} <a class="code" href="unionTRNG__INTENSET__Type.html">TRNG_INTENSET_Type</a>;</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;<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="l00111"></a><span class="lineno"> 111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a82070f96a413cac3cc5f7964171e43ac"> 112</a></span>&#160;<span class="preprocessor">#define TRNG_INTENSET_OFFSET 0x09 </span></div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#ad570f735c53347793ff4007f59fce152"> 113</a></span>&#160;<span class="preprocessor">#define TRNG_INTENSET_RESETVALUE _U_(0x00) </span></div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a620158ff7cc7e38e9c2663237fb16945"> 115</a></span>&#160;<span class="preprocessor">#define TRNG_INTENSET_DATARDY_Pos 0 </span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;<span class="preprocessor">#define TRNG_INTENSET_DATARDY (_U_(0x1) &lt;&lt; TRNG_INTENSET_DATARDY_Pos)</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#af5c80d1bb486f56ab23d106a7bf9f821"> 117</a></span>&#160;<span class="preprocessor">#define TRNG_INTENSET_MASK _U_(0x01) </span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="preprocessor"></span><span class="comment">/* -------- TRNG_INTFLAG : (TRNG Offset: 0x0A) (R/W 8) Interrupt Flag Status and Clear -------- */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;<span class="preprocessor">#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="unionTRNG__INTFLAG__Type.html"> 121</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">union </span>{ <span class="comment">// __I to avoid read-modify-write on write-to-clear register</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="unionTRNG__INTFLAG__Type.html#a491321367e225d6b683c1fb24d7723c3"> 123</a></span>&#160; __I uint8_t <a class="code" href="unionTRNG__INTFLAG__Type.html#a491321367e225d6b683c1fb24d7723c3">DATARDY</a>:1; </div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="unionTRNG__INTFLAG__Type.html#a2522a876d4894e2daf4b0b4012912ce6"> 124</a></span>&#160; __I <a class="code" href="unionTRNG__INTFLAG__Type.html#a2522a876d4894e2daf4b0b4012912ce6">uint8_t</a> :7; </div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="unionTRNG__INTFLAG__Type.html#acbed224b607079f3ba4b480cdbffce8b"> 125</a></span>&#160; } bit; </div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="unionTRNG__INTFLAG__Type.html#ad83fbc208f24cdbfbe30cbeea32bf828"> 126</a></span>&#160; uint8_t <a class="code" href="unionTRNG__INTFLAG__Type.html#ad83fbc208f24cdbfbe30cbeea32bf828">reg</a>; </div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;} <a class="code" href="unionTRNG__INTFLAG__Type.html">TRNG_INTFLAG_Type</a>;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;<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="l00129"></a><span class="lineno"> 129</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a6b6cfdc19ba6bbd017d2fd17a04c880d"> 130</a></span>&#160;<span class="preprocessor">#define TRNG_INTFLAG_OFFSET 0x0A </span></div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#aaf2fb9d6d1b64cb20ca051e83dc0db3b"> 131</a></span>&#160;<span class="preprocessor">#define TRNG_INTFLAG_RESETVALUE _U_(0x00) </span></div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a0087ab9a8864f665defd61186117b33c"> 133</a></span>&#160;<span class="preprocessor">#define TRNG_INTFLAG_DATARDY_Pos 0 </span></div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;<span class="preprocessor">#define TRNG_INTFLAG_DATARDY (_U_(0x1) &lt;&lt; TRNG_INTFLAG_DATARDY_Pos)</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#acd3946436f1cf5b02f455b7b71deca2d"> 135</a></span>&#160;<span class="preprocessor">#define TRNG_INTFLAG_MASK _U_(0x01) </span></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;<span class="preprocessor"></span><span class="comment">/* -------- TRNG_DATA : (TRNG Offset: 0x20) (R/ 32) Output Data -------- */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;<span class="preprocessor">#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="unionTRNG__DATA__Type.html"> 139</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">union </span>{</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="unionTRNG__DATA__Type.html#ae89119099784fd5b1f69c18857b3d52a"> 141</a></span>&#160; uint32_t <a class="code" href="unionTRNG__DATA__Type.html#ae89119099784fd5b1f69c18857b3d52a">DATA</a>:32; </div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="unionTRNG__DATA__Type.html#a0aa855d555bf258e68057eafa27fb4f1"> 142</a></span>&#160; } bit; </div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="unionTRNG__DATA__Type.html#a83ea1be8850e837b3ea06c09f40d5365"> 143</a></span>&#160; uint32_t <a class="code" href="unionTRNG__DATA__Type.html#a83ea1be8850e837b3ea06c09f40d5365">reg</a>; </div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;} <a class="code" href="unionTRNG__DATA__Type.html">TRNG_DATA_Type</a>;</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;<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="l00146"></a><span class="lineno"> 146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a89087d36e2179c6fb853d0aa606bce3e"> 147</a></span>&#160;<span class="preprocessor">#define TRNG_DATA_OFFSET 0x20 </span></div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a44c5f90ae9f0bd898315841e8c6b7077"> 148</a></span>&#160;<span class="preprocessor">#define TRNG_DATA_RESETVALUE _U_(0x00000000) </span></div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#a035698e8396c02da8fc4ea1bcb16df68"> 150</a></span>&#160;<span class="preprocessor">#define TRNG_DATA_DATA_Pos 0 </span></div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;<span class="preprocessor">#define TRNG_DATA_DATA_Msk (_U_(0xFFFFFFFF) &lt;&lt; TRNG_DATA_DATA_Pos)</span></div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;<span class="preprocessor">#define TRNG_DATA_DATA(value) (TRNG_DATA_DATA_Msk &amp; ((value) &lt;&lt; TRNG_DATA_DATA_Pos))</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="component_2trng_8h.html#aa72ae9d237b729be17e4941fdca32a8d"> 153</a></span>&#160;<span class="preprocessor">#define TRNG_DATA_MASK _U_(0xFFFFFFFF) </span></div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;<span class="preprocessor">#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))</span></div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="structTrng.html"> 157</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="structTrng.html#a74235f1e8bd44a01dd6a567ec9df56b9"> 158</a></span>&#160; __IO <a class="code" href="unionTRNG__CTRLA__Type.html">TRNG_CTRLA_Type</a> <a class="code" href="structTrng.html#a74235f1e8bd44a01dd6a567ec9df56b9">CTRLA</a>; </div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <a class="code" href="same54n19a_8h.html#a0d957f1433aaf5d70e4dc2b68288442d">RoReg8</a> Reserved1[0x3];</div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="structTrng.html#ae3b1632c9fa3efb2668f3a1724203f97"> 160</a></span>&#160; __IO <a class="code" href="unionTRNG__EVCTRL__Type.html">TRNG_EVCTRL_Type</a> <a class="code" href="structTrng.html#ae3b1632c9fa3efb2668f3a1724203f97">EVCTRL</a>; </div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <a class="code" href="same54n19a_8h.html#a0d957f1433aaf5d70e4dc2b68288442d">RoReg8</a> Reserved2[0x3];</div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="structTrng.html#a47fc2214eec09b51e756a4aee88821b5"> 162</a></span>&#160; __IO <a class="code" href="unionTRNG__INTENCLR__Type.html">TRNG_INTENCLR_Type</a> <a class="code" href="structTrng.html#a47fc2214eec09b51e756a4aee88821b5">INTENCLR</a>; </div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="structTrng.html#a63ac7661d1ad0e51317a743eeb1631af"> 163</a></span>&#160; __IO <a class="code" href="unionTRNG__INTENSET__Type.html">TRNG_INTENSET_Type</a> <a class="code" href="structTrng.html#a63ac7661d1ad0e51317a743eeb1631af">INTENSET</a>; </div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="structTrng.html#aafe2f63a02191772fc00b73041fa4a1a"> 164</a></span>&#160; __IO <a class="code" href="unionTRNG__INTFLAG__Type.html">TRNG_INTFLAG_Type</a> <a class="code" href="structTrng.html#aafe2f63a02191772fc00b73041fa4a1a">INTFLAG</a>; </div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <a class="code" href="same54n19a_8h.html#a0d957f1433aaf5d70e4dc2b68288442d">RoReg8</a> Reserved3[0x15];</div>
<div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="structTrng.html#a0440bfec684aa5eaf44f4316bd2d4b1b"> 166</a></span>&#160; __I <a class="code" href="unionTRNG__DATA__Type.html">TRNG_DATA_Type</a> <a class="code" href="structTrng.html#a0440bfec684aa5eaf44f4316bd2d4b1b">DATA</a>; </div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;} <a class="code" href="structTrng.html">Trng</a>;</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160;<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="l00169"></a><span class="lineno"> 169</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _SAME54_TRNG_COMPONENT_ */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aunionTRNG__EVCTRL__Type_html_a32ea93c7edba4666d65a99d6c67541e9"><div class="ttname"><a href="unionTRNG__EVCTRL__Type.html#a32ea93c7edba4666d65a99d6c67541e9">TRNG_EVCTRL_Type::reg</a></div><div class="ttdeci">uint8_t reg</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00072">trng.h:72</a></div></div>
<div class="ttc" id="aunionTRNG__INTENSET__Type_html_a5ad8ef174ff757e8169a89637217d3ce"><div class="ttname"><a href="unionTRNG__INTENSET__Type.html#a5ad8ef174ff757e8169a89637217d3ce">TRNG_INTENSET_Type::reg</a></div><div class="ttdeci">uint8_t reg</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00108">trng.h:108</a></div></div>
<div class="ttc" id="astructTrng_html_a74235f1e8bd44a01dd6a567ec9df56b9"><div class="ttname"><a href="structTrng.html#a74235f1e8bd44a01dd6a567ec9df56b9">Trng::CTRLA</a></div><div class="ttdeci">__IO TRNG_CTRLA_Type CTRLA</div><div class="ttdoc">Offset: 0x00 (R/W 8) Control A.</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00158">trng.h:158</a></div></div>
<div class="ttc" id="aunionTRNG__DATA__Type_html"><div class="ttname"><a href="unionTRNG__DATA__Type.html">TRNG_DATA_Type</a></div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00139">trng.h:139</a></div></div>
<div class="ttc" id="aunionTRNG__INTFLAG__Type_html"><div class="ttname"><a href="unionTRNG__INTFLAG__Type.html">TRNG_INTFLAG_Type</a></div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00121">trng.h:121</a></div></div>
<div class="ttc" id="aunionTRNG__INTFLAG__Type_html_ad83fbc208f24cdbfbe30cbeea32bf828"><div class="ttname"><a href="unionTRNG__INTFLAG__Type.html#ad83fbc208f24cdbfbe30cbeea32bf828">TRNG_INTFLAG_Type::reg</a></div><div class="ttdeci">uint8_t reg</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00126">trng.h:126</a></div></div>
<div class="ttc" id="astructTrng_html_a63ac7661d1ad0e51317a743eeb1631af"><div class="ttname"><a href="structTrng.html#a63ac7661d1ad0e51317a743eeb1631af">Trng::INTENSET</a></div><div class="ttdeci">__IO TRNG_INTENSET_Type INTENSET</div><div class="ttdoc">Offset: 0x09 (R/W 8) Interrupt Enable Set.</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00163">trng.h:163</a></div></div>
<div class="ttc" id="aunionTRNG__INTFLAG__Type_html_a491321367e225d6b683c1fb24d7723c3"><div class="ttname"><a href="unionTRNG__INTFLAG__Type.html#a491321367e225d6b683c1fb24d7723c3">TRNG_INTFLAG_Type::DATARDY</a></div><div class="ttdeci">__I uint8_t DATARDY</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00123">trng.h:123</a></div></div>
<div class="ttc" id="aunionTRNG__CTRLA__Type_html"><div class="ttname"><a href="unionTRNG__CTRLA__Type.html">TRNG_CTRLA_Type</a></div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00044">trng.h:44</a></div></div>
<div class="ttc" id="aunionTRNG__INTENCLR__Type_html"><div class="ttname"><a href="unionTRNG__INTENCLR__Type.html">TRNG_INTENCLR_Type</a></div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00085">trng.h:85</a></div></div>
<div class="ttc" id="astructTrng_html"><div class="ttname"><a href="structTrng.html">Trng</a></div><div class="ttdoc">TRNG hardware registers.</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00157">trng.h:157</a></div></div>
<div class="ttc" id="aunionTRNG__EVCTRL__Type_html_a076c09adace9fc1af6e25d42b8b27e00"><div class="ttname"><a href="unionTRNG__EVCTRL__Type.html#a076c09adace9fc1af6e25d42b8b27e00">TRNG_EVCTRL_Type::DATARDYEO</a></div><div class="ttdeci">uint8_t DATARDYEO</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00069">trng.h:69</a></div></div>
<div class="ttc" id="aunionTRNG__EVCTRL__Type_html"><div class="ttname"><a href="unionTRNG__EVCTRL__Type.html">TRNG_EVCTRL_Type</a></div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00067">trng.h:67</a></div></div>
<div class="ttc" id="aunionTRNG__INTENSET__Type_html"><div class="ttname"><a href="unionTRNG__INTENSET__Type.html">TRNG_INTENSET_Type</a></div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00103">trng.h:103</a></div></div>
<div class="ttc" id="astructTrng_html_a47fc2214eec09b51e756a4aee88821b5"><div class="ttname"><a href="structTrng.html#a47fc2214eec09b51e756a4aee88821b5">Trng::INTENCLR</a></div><div class="ttdeci">__IO TRNG_INTENCLR_Type INTENCLR</div><div class="ttdoc">Offset: 0x08 (R/W 8) Interrupt Enable Clear.</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00162">trng.h:162</a></div></div>
<div class="ttc" id="aunionTRNG__INTENCLR__Type_html_ab5431b1bf72733e6728aa2147aff92f2"><div class="ttname"><a href="unionTRNG__INTENCLR__Type.html#ab5431b1bf72733e6728aa2147aff92f2">TRNG_INTENCLR_Type::reg</a></div><div class="ttdeci">uint8_t reg</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00090">trng.h:90</a></div></div>
<div class="ttc" id="aunionTRNG__INTFLAG__Type_html_a2522a876d4894e2daf4b0b4012912ce6"><div class="ttname"><a href="unionTRNG__INTFLAG__Type.html#a2522a876d4894e2daf4b0b4012912ce6">TRNG_INTFLAG_Type::uint8_t</a></div><div class="ttdeci">__I uint8_t</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00124">trng.h:124</a></div></div>
<div class="ttc" id="aunionTRNG__DATA__Type_html_ae89119099784fd5b1f69c18857b3d52a"><div class="ttname"><a href="unionTRNG__DATA__Type.html#ae89119099784fd5b1f69c18857b3d52a">TRNG_DATA_Type::DATA</a></div><div class="ttdeci">uint32_t DATA</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00141">trng.h:141</a></div></div>
<div class="ttc" id="astructTrng_html_a0440bfec684aa5eaf44f4316bd2d4b1b"><div class="ttname"><a href="structTrng.html#a0440bfec684aa5eaf44f4316bd2d4b1b">Trng::DATA</a></div><div class="ttdeci">__I TRNG_DATA_Type DATA</div><div class="ttdoc">Offset: 0x20 (R/ 32) Output Data.</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00166">trng.h:166</a></div></div>
<div class="ttc" id="aunionTRNG__INTENCLR__Type_html_a0475477a44d2284f74eb21b4a7dbfea7"><div class="ttname"><a href="unionTRNG__INTENCLR__Type.html#a0475477a44d2284f74eb21b4a7dbfea7">TRNG_INTENCLR_Type::DATARDY</a></div><div class="ttdeci">uint8_t DATARDY</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00087">trng.h:87</a></div></div>
<div class="ttc" id="astructTrng_html_aafe2f63a02191772fc00b73041fa4a1a"><div class="ttname"><a href="structTrng.html#aafe2f63a02191772fc00b73041fa4a1a">Trng::INTFLAG</a></div><div class="ttdeci">__IO TRNG_INTFLAG_Type INTFLAG</div><div class="ttdoc">Offset: 0x0A (R/W 8) Interrupt Flag Status and Clear.</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00164">trng.h:164</a></div></div>
<div class="ttc" id="asame54n19a_8h_html_a0d957f1433aaf5d70e4dc2b68288442d"><div class="ttname"><a href="same54n19a_8h.html#a0d957f1433aaf5d70e4dc2b68288442d">RoReg8</a></div><div class="ttdeci">volatile const uint8_t RoReg8</div><div class="ttdef"><b>Definition:</b> <a href="same54n19a_8h_source.html#l00053">same54n19a.h:53</a></div></div>
<div class="ttc" id="aunionTRNG__CTRLA__Type_html_afbc528ac98ed5ec49e33a8dffd4aba6d"><div class="ttname"><a href="unionTRNG__CTRLA__Type.html#afbc528ac98ed5ec49e33a8dffd4aba6d">TRNG_CTRLA_Type::ENABLE</a></div><div class="ttdeci">uint8_t ENABLE</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00047">trng.h:47</a></div></div>
<div class="ttc" id="aunionTRNG__CTRLA__Type_html_a3426db9420921bb6fb4c5625bd547027"><div class="ttname"><a href="unionTRNG__CTRLA__Type.html#a3426db9420921bb6fb4c5625bd547027">TRNG_CTRLA_Type::RUNSTDBY</a></div><div class="ttdeci">uint8_t RUNSTDBY</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00049">trng.h:49</a></div></div>
<div class="ttc" id="aunionTRNG__CTRLA__Type_html_a5660105afd94ceeabe0e23259f09a2b4"><div class="ttname"><a href="unionTRNG__CTRLA__Type.html#a5660105afd94ceeabe0e23259f09a2b4">TRNG_CTRLA_Type::reg</a></div><div class="ttdeci">uint8_t reg</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00052">trng.h:52</a></div></div>
<div class="ttc" id="aunionTRNG__INTENSET__Type_html_a1cdeb648fbcdad804eec1f5060332fe2"><div class="ttname"><a href="unionTRNG__INTENSET__Type.html#a1cdeb648fbcdad804eec1f5060332fe2">TRNG_INTENSET_Type::DATARDY</a></div><div class="ttdeci">uint8_t DATARDY</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00105">trng.h:105</a></div></div>
<div class="ttc" id="astructTrng_html_ae3b1632c9fa3efb2668f3a1724203f97"><div class="ttname"><a href="structTrng.html#ae3b1632c9fa3efb2668f3a1724203f97">Trng::EVCTRL</a></div><div class="ttdeci">__IO TRNG_EVCTRL_Type EVCTRL</div><div class="ttdoc">Offset: 0x04 (R/W 8) Event Control.</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00160">trng.h:160</a></div></div>
<div class="ttc" id="aunionTRNG__DATA__Type_html_a83ea1be8850e837b3ea06c09f40d5365"><div class="ttname"><a href="unionTRNG__DATA__Type.html#a83ea1be8850e837b3ea06c09f40d5365">TRNG_DATA_Type::reg</a></div><div class="ttdeci">uint32_t reg</div><div class="ttdef"><b>Definition:</b> <a href="component_2trng_8h_source.html#l00143">trng.h:143</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<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>