Micro template library A library for building device drivers
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

spi_8h_source.html 49 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>uTL: include/utl/com/spi.h Source File</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript">
  17. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  18. $(document).ready(initResizable);
  19. /* @license-end */</script>
  20. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  21. <script type="text/javascript" src="search/searchdata.js"></script>
  22. <script type="text/javascript" src="search/search.js"></script>
  23. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  24. </head>
  25. <body>
  26. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  27. <div id="titlearea">
  28. <table cellspacing="0" cellpadding="0">
  29. <tbody>
  30. <tr style="height: 56px;">
  31. <td id="projectalign" style="padding-left: 0.5em;">
  32. <div id="projectname">uTL
  33. </div>
  34. <div id="projectbrief">micro Template library</div>
  35. </td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. <!-- end header part -->
  41. <!-- Generated by Doxygen 1.8.14 -->
  42. <script type="text/javascript">
  43. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  44. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  45. /* @license-end */
  46. </script>
  47. <script type="text/javascript" src="menudata.js"></script>
  48. <script type="text/javascript" src="menu.js"></script>
  49. <script type="text/javascript">
  50. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  51. $(function() {
  52. initMenu('',true,false,'search.php','Search');
  53. $(document).ready(function() { init_search(); });
  54. });
  55. /* @license-end */</script>
  56. <div id="main-nav"></div>
  57. </div><!-- top -->
  58. <div id="side-nav" class="ui-resizable side-nav-resizable">
  59. <div id="nav-tree">
  60. <div id="nav-tree-contents">
  61. <div id="nav-sync" class="sync"></div>
  62. </div>
  63. </div>
  64. <div id="splitbar" style="-moz-user-select:none;"
  65. class="ui-resizable-handle">
  66. </div>
  67. </div>
  68. <script type="text/javascript">
  69. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  70. $(document).ready(function(){initNavTree('spi_8h_source.html','');});
  71. /* @license-end */
  72. </script>
  73. <div id="doc-content">
  74. <!-- window showing the filter options -->
  75. <div id="MSearchSelectWindow"
  76. onmouseover="return searchBox.OnSearchSelectShow()"
  77. onmouseout="return searchBox.OnSearchSelectHide()"
  78. onkeydown="return searchBox.OnSearchSelectKey(event)">
  79. </div>
  80. <!-- iframe showing the search results (closed by default) -->
  81. <div id="MSearchResultsWindow">
  82. <iframe src="javascript:void(0)" frameborder="0"
  83. name="MSearchResults" id="MSearchResults">
  84. </iframe>
  85. </div>
  86. <div class="header">
  87. <div class="headertitle">
  88. <div class="title">spi.h</div> </div>
  89. </div><!--header-->
  90. <div class="contents">
  91. <a href="spi_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="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#ifndef _utl_com_spi_h__</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#define _utl_com_spi_h__</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="impl_8h.html">utl/core/impl.h</a>&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="crtp_8h.html">utl/core/crtp.h</a>&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="meta_8h.html">utl/meta/meta.h</a>&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceutl.html">utl</a> {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="namespaceutl_1_1spi.html"> 36</a></span>&#160; <span class="keyword">namespace </span>spi {</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="namespaceutl_1_1spi.html#aed6b713381c193c598572ebac0b284cc"> 40</a></span>&#160; <span class="keyword">enum class</span> <a class="code" href="namespaceutl_1_1spi.html#aed6b713381c193c598572ebac0b284cc">bitOrder</a> {</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <a class="code" href="namespaceutl_1_1spi.html#aed6b713381c193c598572ebac0b284cca6db67adee32c3bd4ff03acf3244e1b4b">LSB_First</a> =0x01, </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <a class="code" href="namespaceutl_1_1spi.html#aed6b713381c193c598572ebac0b284cca47bde70fdcc82c8363d16c7137641b79">MSB_First</a> =0x80 </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; };</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8a"> 47</a></span>&#160; <span class="keyword">enum class</span> <a class="code" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8a">cpol</a> {</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="code" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aa41bc94cbd8eebea13ce0491b2ac11b88">LOW</a> =0, </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <a class="code" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aab89de3b4b81c4facfac906edf29aec8c">HIGH</a> </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; };</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="namespaceutl_1_1spi.html#aa49fe33d495226891cef0a870cba59df"> 54</a></span>&#160; <span class="keyword">enum class</span> <a class="code" href="namespaceutl_1_1spi.html#aa49fe33d495226891cef0a870cba59df">cpha</a> {</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <a class="code" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aa41bc94cbd8eebea13ce0491b2ac11b88">LOW</a> =0, </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <a class="code" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aab89de3b4b81c4facfac906edf29aec8c">HIGH</a> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; };</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; }</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> impl_t&gt;</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i.html"> 67</a></span>&#160; <span class="keyword">class </span><a class="code" href="classutl_1_1spi__i.html">spi_i</a> {</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="code" href="classutl_1_1spi__i.html#adfab771b0e399b9f482e42aaa5e9db11">_CRTP_IMPL</a>(impl_t); </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i.html#aff8ee0a2160cddbb52fce46611a6108f"> 71</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1spi__i.html">type</a> = <a class="code" href="classutl_1_1spi__i.html">spi_i&lt;impl_t&gt;</a>; </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="code" href="classutl_1_1spi__i.html#ad66605cdf90f6d24cad3dc5ecda94b77">spi_i</a> () = <span class="keywordflow">default</span>; </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <a class="code" href="classutl_1_1spi__i.html#ae77cb8be7d648a62a1ad252d829eccfb">~spi_i</a> () = <span class="keywordflow">default</span>; </div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="classutl_1_1spi__i.html#ad66605cdf90f6d24cad3dc5ecda94b77">spi_i</a> (<span class="keyword">const</span> <a class="code" href="classutl_1_1spi__i.html">type</a>&amp;) = <span class="keyword">delete</span>; </div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <a class="code" href="classutl_1_1spi__i.html">type</a>&amp; <a class="code" href="classutl_1_1spi__i.html#aa5cf05ce005cb23e6317b3eef70bf4b0">operator= </a>(<span class="keyword">const</span> <a class="code" href="classutl_1_1spi__i.html">type</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i.html#a68a21ac9727eed3802ce7d1181ac4f8c"> 92</a></span>&#160; uint32_t <a class="code" href="classutl_1_1spi__i.html#a68a21ac9727eed3802ce7d1181ac4f8c">_clock</a> ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> impl()._clock (); } </div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i.html#af0a9bfc5d02ccd2bfbe8044132884578"> 93</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classutl_1_1spi__i.html#af0a9bfc5d02ccd2bfbe8044132884578">_clock</a> (uint32_t c) { impl()._clock (c); } </div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i.html#acf3ffd9c79d4cdeac100cf3273120689"> 94</a></span>&#160; <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="code" href="classutl_1_1spi__i.html#acf3ffd9c79d4cdeac100cf3273120689">_tx_data</a> (<a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> b) { <span class="keywordflow">return</span> impl()._tx_data (b); } </div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i.html#a24cdd0c5ce4ed45a6c1b88ea43328634"> 102</a></span>&#160; uint32_t <a class="code" href="classutl_1_1spi__i.html#a24cdd0c5ce4ed45a6c1b88ea43328634">clock</a> ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classutl_1_1spi__i.html#a68a21ac9727eed3802ce7d1181ac4f8c">_clock</a> (); } </div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i.html#a0ebb46a523ace45fd69950f90f9b3af4"> 103</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classutl_1_1spi__i.html#a0ebb46a523ace45fd69950f90f9b3af4">clock</a> (uint32_t c) { <a class="code" href="classutl_1_1spi__i.html#a68a21ac9727eed3802ce7d1181ac4f8c">_clock</a> (c); } </div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i.html#ac8376d88480a992ac47699637e1a29a5"> 114</a></span>&#160; <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="code" href="classutl_1_1spi__i.html#ac8376d88480a992ac47699637e1a29a5">tx_data</a> (<a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> out) {</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classutl_1_1spi__i.html#acf3ffd9c79d4cdeac100cf3273120689">_tx_data</a> (out);</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; }</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1spi__i.html#ac8376d88480a992ac47699637e1a29a5">tx_data</a> (<span class="keyword">const</span> <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *out, <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *in, <span class="keywordtype">size_t</span> n);</div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i.html#a846dead32b91efcb48eed614daf68e8f"> 129</a></span>&#160; <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="code" href="classutl_1_1spi__i.html#a846dead32b91efcb48eed614daf68e8f">rx_data</a> () {</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classutl_1_1spi__i.html#acf3ffd9c79d4cdeac100cf3273120689">_tx_data</a>(0xFF);</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; }</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1spi__i.html#a846dead32b91efcb48eed614daf68e8f">rx_data</a> (<a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *in, <span class="keywordtype">size_t</span> n);</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; };</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _I&gt;</div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i.html#af3e303c2982202261700044d31596248"> 152</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1spi__i.html#ac8376d88480a992ac47699637e1a29a5">spi_i&lt;_I&gt;::tx_data</a> (<span class="keyword">const</span> <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *out, <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *in, <span class="keywordtype">size_t</span> n) {</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> nn {n} ; nn ; --nn)</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; *in++ = _tx_data (*out++);</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="keywordflow">return</span> n;</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; }</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _I&gt;</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i.html#a2053009da5364ead720aebd7cc537c21"> 165</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1spi__i.html#a846dead32b91efcb48eed614daf68e8f">spi_i&lt;_I&gt;::rx_data</a> (<a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *in, <span class="keywordtype">size_t</span> n) {</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> nn {n} ; nn ; --nn)</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; *in++ = _tx_data (0xFF);</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="keywordflow">return</span> n;</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; }</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="keyword">template</span> &lt;&gt;</div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html"> 177</a></span>&#160; <span class="keyword">class </span><a class="code" href="classutl_1_1spi__i.html">spi_i</a> &lt;<a class="code" href="structutl_1_1virtual__tag.html">virtual_tag</a>&gt; {</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html#ab539774624977f1f86b98269d01d56ba"> 179</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html">type</a> = <a class="code" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html">spi_i&lt;virtual_tag&gt;</a>; </div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <a class="code" href="classutl_1_1spi__i.html#ad66605cdf90f6d24cad3dc5ecda94b77">spi_i</a> () = <span class="keywordflow">default</span>; </div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <a class="code" href="classutl_1_1spi__i.html#ad66605cdf90f6d24cad3dc5ecda94b77">spi_i</a> (<span class="keyword">const</span> <a class="code" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html">type</a>&amp;) = <span class="keyword">delete</span>; </div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; <a class="code" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html">type</a>&amp; <a class="code" href="classutl_1_1spi__i.html#aa5cf05ce005cb23e6317b3eef70bf4b0">operator= </a>(<span class="keyword">const</span> <a class="code" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html">type</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; <span class="keyword">virtual</span> <a class="code" href="classutl_1_1spi__i.html#ae77cb8be7d648a62a1ad252d829eccfb">~spi_i</a> () = <span class="keywordflow">default</span>; </div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; <span class="keyword">virtual</span> uint32_t <a class="code" href="classutl_1_1spi__i.html#a68a21ac9727eed3802ce7d1181ac4f8c">_clock</a> () <span class="keyword">const</span> =0; </div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classutl_1_1spi__i.html#a68a21ac9727eed3802ce7d1181ac4f8c">_clock</a> (uint32_t) =0; </div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="keyword">virtual</span> <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="code" href="classutl_1_1spi__i.html#acf3ffd9c79d4cdeac100cf3273120689">_tx_data</a> (<a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a>) =0; </div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html#a92a9350f72d3fca45b0900bf2bf5e8d9"> 208</a></span>&#160; uint32_t <a class="code" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html#a92a9350f72d3fca45b0900bf2bf5e8d9">clock</a> ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classutl_1_1spi__i.html#a68a21ac9727eed3802ce7d1181ac4f8c">_clock</a> (); } </div><div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html#af168fba0d949aade779a63abf9f4bad2"> 209</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html#af168fba0d949aade779a63abf9f4bad2">clock</a> (uint32_t c) { <a class="code" href="classutl_1_1spi__i.html#a68a21ac9727eed3802ce7d1181ac4f8c">_clock</a> (c); } </div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160;</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html#ac7b587521c1fdc83d32164dcee3c7b40"> 220</a></span>&#160; <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="code" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html#ac7b587521c1fdc83d32164dcee3c7b40">tx_data</a> (<a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> out) {</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classutl_1_1spi__i.html#acf3ffd9c79d4cdeac100cf3273120689">_tx_data</a> (out);</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; }</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1spi__i.html#ac8376d88480a992ac47699637e1a29a5">tx_data</a> (<span class="keyword">const</span> <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *out, <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *in, <span class="keywordtype">size_t</span> n);</div><div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html#a8ccd44f6fa97bbfe8cda5595436eb3a7"> 235</a></span>&#160; <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="code" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html#a8ccd44f6fa97bbfe8cda5595436eb3a7">rx_data</a> () {</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classutl_1_1spi__i.html#acf3ffd9c79d4cdeac100cf3273120689">_tx_data</a> (0xFF);</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; }</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1spi__i.html#a846dead32b91efcb48eed614daf68e8f">rx_data</a> (<a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *in, <span class="keywordtype">size_t</span> n);</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160;</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; };</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160;</div><div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html#a2777c812eb27d7b3d106c55b31819d10"> 258</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1spi__i.html#ac8376d88480a992ac47699637e1a29a5">spi_i&lt;virtual_tag&gt;::tx_data</a> (<span class="keyword">const</span> <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *out, <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *in, <span class="keywordtype">size_t</span> n) {</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> nn {n} ; nn ; --nn)</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; *in++ = <a class="code" href="classutl_1_1spi__i.html#acf3ffd9c79d4cdeac100cf3273120689">_tx_data</a> (*out++);</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; <span class="keywordflow">return</span> n;</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; }</div><div class="line"><a name="l00270"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i_3_01virtual__tag_01_4.html#a59245cc0d924d160268b6813975a7c5f"> 270</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1spi__i.html#a846dead32b91efcb48eed614daf68e8f">spi_i&lt;virtual_tag&gt;::rx_data</a> (<a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *in, <span class="keywordtype">size_t</span> n) {</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> nn {n} ; nn ; --nn)</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; *in++ = <a class="code" href="classutl_1_1spi__i.html#acf3ffd9c79d4cdeac100cf3273120689">_tx_data</a> (0xFF);</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; <span class="keywordflow">return</span> n;</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; }</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160;</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160;</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160;</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160;<span class="preprocessor">#if defined _utl_have_concepts</span></div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; concept <span class="keywordtype">bool</span> Spi_i = requires (T t, <span class="keyword">const</span> T ct, <span class="keyword">typename</span> T::Sequence s) {</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; <span class="comment">// Object type</span></div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; requires not_&lt;std::is_copy_constructible&lt;T&gt;::value&gt;::value;</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; requires not_&lt;std::is_copy_assignable&lt;T&gt;::value&gt;::value;</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160; <span class="comment">// Methods</span></div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; {ct.clock()} -&gt; uint32_t;</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; {t.clock(0)} -&gt; void;</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; {t.tx_data(1)} -&gt; <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a>;</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160; {t.rx_data()} -&gt; <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a>;</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160; };</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00295"></a><span class="lineno"><a class="line" href="namespaceutl_1_1spi__i__details.html"> 295</a></span>&#160; <span class="keyword">namespace </span>spi_i_details {</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160; <span class="keyword">using</span> std::declval;</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160;</div><div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="namespaceutl_1_1spi__i__details.html#ae1a4fad6acf8faccc5e85ee9b710c109"> 298</a></span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Tp&gt; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1spi__i__details.html#ae1a4fad6acf8faccc5e85ee9b710c109">try_cclock_t</a>= decltype (declval&lt;const _Tp&gt;().clock());</div><div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="namespaceutl_1_1spi__i__details.html#af2f4800aa77af82767a3ac55b9b242a6"> 299</a></span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Tp&gt; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1spi__i__details.html#af2f4800aa77af82767a3ac55b9b242a6">try_clock_t</a> = decltype (declval&lt;_Tp&gt;().clock(declval&lt;uint32_t&gt;()));</div><div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="namespaceutl_1_1spi__i__details.html#a755d8f10cfde3f5c3b9900eb11c858bd"> 300</a></span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Tp&gt; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1spi__i__details.html#a755d8f10cfde3f5c3b9900eb11c858bd">try_tx_t</a> = decltype (declval&lt;_Tp&gt;().tx_data(declval&lt;byte_t&gt;()));</div><div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="namespaceutl_1_1spi__i__details.html#a4dcf3c71fddf790e45a3be2c19906c97"> 301</a></span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Tp&gt; <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1spi__i__details.html#a4dcf3c71fddf790e45a3be2c19906c97">try_rx_t</a> = decltype (declval&lt;_Tp&gt;().rx_data());</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160;</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _Tp, <span class="keyword">typename</span> =<span class="keywordtype">void</span>&gt;</div><div class="line"><a name="l00305"></a><span class="lineno"><a class="line" href="structutl_1_1spi__i__details_1_1is__spi__.html"> 305</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structutl_1_1spi__i__details_1_1is__spi__.html">is_spi_</a> : <a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">meta::false_</a> {};</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160;</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _Tp&gt;</div><div class="line"><a name="l00309"></a><span class="lineno"><a class="line" href="structutl_1_1spi__i__details_1_1is__spi___3_01___tp_00_01meta_1_1void__t_3_01meta_1_1use__if__sa2db29f6d65d34ecf5e49ec30b6600d78.html"> 309</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structutl_1_1spi__i__details_1_1is__spi__.html">is_spi_</a> &lt;</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160; _Tp,</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160; meta::<a class="code" href="group__detection.html#gae7373c997420d16cf37e542eb3cfa3ad">void_t</a> &lt;</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160; meta::use_if_same_t &lt;try_cclock_t&lt;_Tp&gt;, uint32_t&gt;,</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160; meta::use_if_same_t &lt;try_clock_t&lt;_Tp&gt;, void&gt;,</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160; meta::use_if_same_t &lt;try_tx_t&lt;_Tp&gt;, byte_t&gt;,</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; meta::use_if_same_t &lt;try_rx_t&lt;_Tp&gt;, byte_t&gt;</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160; &gt;</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160; &gt; : <a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">meta::true_</a> {};</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160; }</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160;<span class="comment">// template &lt;typename _Tp&gt;</span></div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160;<span class="comment">// constexpr bool Spi_i = spi_i_details::is_spi_&lt;_Tp&gt;::value;</span></div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160;</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160;</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160;} <span class="comment">// namespace utl</span></div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160;</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* #ifndef _utl_com_spi_h__ */</span><span class="preprocessor"></span></div><div class="ttc" id="meta_8h_html"><div class="ttname"><a href="meta_8h.html">meta.h</a></div><div class="ttdoc">Include all meta library. </div></div>
  92. <div class="ttc" id="namespaceutl_1_1spi_html_a89e3e1af5df0b6c37239f7e336969f8a"><div class="ttname"><a href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8a">utl::spi::cpol</a></div><div class="ttdeci">cpol</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00047">spi.h:47</a></div></div>
  93. <div class="ttc" id="namespaceutl_1_1spi_html_aed6b713381c193c598572ebac0b284cca47bde70fdcc82c8363d16c7137641b79"><div class="ttname"><a href="namespaceutl_1_1spi.html#aed6b713381c193c598572ebac0b284cca47bde70fdcc82c8363d16c7137641b79">utl::spi::bitOrder::MSB_First</a></div><div class="ttdoc">Less significant first. </div></div>
  94. <div class="ttc" id="group__detection_html_gae7373c997420d16cf37e542eb3cfa3ad"><div class="ttname"><a href="group__detection.html#gae7373c997420d16cf37e542eb3cfa3ad">utl::meta::void_t</a></div><div class="ttdeci">void void_t</div><div class="ttdoc">void_t type alias </div><div class="ttdef"><b>Definition:</b> <a href="detection_8h_source.html#l00055">detection.h:55</a></div></div>
  95. <div class="ttc" id="classutl_1_1spi__i_html_ad66605cdf90f6d24cad3dc5ecda94b77"><div class="ttname"><a href="classutl_1_1spi__i.html#ad66605cdf90f6d24cad3dc5ecda94b77">utl::spi_i::spi_i</a></div><div class="ttdeci">spi_i()=default</div><div class="ttdoc">Allow constructor from derived only. </div></div>
  96. <div class="ttc" id="namespaceutl_1_1spi_html_aed6b713381c193c598572ebac0b284cca6db67adee32c3bd4ff03acf3244e1b4b"><div class="ttname"><a href="namespaceutl_1_1spi.html#aed6b713381c193c598572ebac0b284cca6db67adee32c3bd4ff03acf3244e1b4b">utl::spi::bitOrder::LSB_First</a></div><div class="ttdoc">Most significant first. </div></div>
  97. <div class="ttc" id="classutl_1_1spi__i_html_a24cdd0c5ce4ed45a6c1b88ea43328634"><div class="ttname"><a href="classutl_1_1spi__i.html#a24cdd0c5ce4ed45a6c1b88ea43328634">utl::spi_i::clock</a></div><div class="ttdeci">uint32_t clock() const</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00102">spi.h:102</a></div></div>
  98. <div class="ttc" id="namespaceutl_1_1meta_html_ae9a5a8fbe8202785f059935af219fb97"><div class="ttname"><a href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">utl::meta::true_</a></div><div class="ttdeci">bool_&lt; true &gt; true_</div><div class="ttdoc">The type used as a compile-time boolean with true value. </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00068">integral.h:68</a></div></div>
  99. <div class="ttc" id="classutl_1_1spi__i_3_01virtual__tag_01_4_html_a92a9350f72d3fca45b0900bf2bf5e8d9"><div class="ttname"><a href="classutl_1_1spi__i_3_01virtual__tag_01_4.html#a92a9350f72d3fca45b0900bf2bf5e8d9">utl::spi_i&lt; virtual_tag &gt;::clock</a></div><div class="ttdeci">uint32_t clock() const</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00208">spi.h:208</a></div></div>
  100. <div class="ttc" id="namespaceutl_1_1spi_html_aed6b713381c193c598572ebac0b284cc"><div class="ttname"><a href="namespaceutl_1_1spi.html#aed6b713381c193c598572ebac0b284cc">utl::spi::bitOrder</a></div><div class="ttdeci">bitOrder</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00040">spi.h:40</a></div></div>
  101. <div class="ttc" id="crtp_8h_html"><div class="ttname"><a href="crtp_8h.html">crtp.h</a></div></div>
  102. <div class="ttc" id="classutl_1_1spi__i_html_ae77cb8be7d648a62a1ad252d829eccfb"><div class="ttname"><a href="classutl_1_1spi__i.html#ae77cb8be7d648a62a1ad252d829eccfb">utl::spi_i::~spi_i</a></div><div class="ttdeci">~spi_i()=default</div><div class="ttdoc">Allow destructor from derived only. </div></div>
  103. <div class="ttc" id="classutl_1_1spi__i_3_01virtual__tag_01_4_html_af168fba0d949aade779a63abf9f4bad2"><div class="ttname"><a href="classutl_1_1spi__i_3_01virtual__tag_01_4.html#af168fba0d949aade779a63abf9f4bad2">utl::spi_i&lt; virtual_tag &gt;::clock</a></div><div class="ttdeci">void clock(uint32_t c)</div><div class="ttdoc">set clock frequency of the bus </div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00209">spi.h:209</a></div></div>
  104. <div class="ttc" id="classutl_1_1spi__i_html_a0ebb46a523ace45fd69950f90f9b3af4"><div class="ttname"><a href="classutl_1_1spi__i.html#a0ebb46a523ace45fd69950f90f9b3af4">utl::spi_i::clock</a></div><div class="ttdeci">void clock(uint32_t c)</div><div class="ttdoc">set clock frequency of the bus </div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00103">spi.h:103</a></div></div>
  105. <div class="ttc" id="namespaceutl_1_1spi_html_a89e3e1af5df0b6c37239f7e336969f8aa41bc94cbd8eebea13ce0491b2ac11b88"><div class="ttname"><a href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aa41bc94cbd8eebea13ce0491b2ac11b88">utl::spi::cpol::LOW</a></div><div class="ttdoc">LOW. </div></div>
  106. <div class="ttc" id="namespaceutl_1_1spi__i__details_html_a4dcf3c71fddf790e45a3be2c19906c97"><div class="ttname"><a href="namespaceutl_1_1spi__i__details.html#a4dcf3c71fddf790e45a3be2c19906c97">utl::spi_i_details::try_rx_t</a></div><div class="ttdeci">decltype(declval&lt; _Tp &gt;().rx_data()) try_rx_t</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00301">spi.h:301</a></div></div>
  107. <div class="ttc" id="classutl_1_1spi__i_3_01virtual__tag_01_4_html"><div class="ttname"><a href="classutl_1_1spi__i_3_01virtual__tag_01_4.html">utl::spi_i&lt; virtual_tag &gt;</a></div><div class="ttdoc">A virtual base class implementation. </div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00177">spi.h:177</a></div></div>
  108. <div class="ttc" id="classutl_1_1spi__i_html_adfab771b0e399b9f482e42aaa5e9db11"><div class="ttname"><a href="classutl_1_1spi__i.html#adfab771b0e399b9f482e42aaa5e9db11">utl::spi_i::_CRTP_IMPL</a></div><div class="ttdeci">_CRTP_IMPL(impl_t)</div></div>
  109. <div class="ttc" id="classutl_1_1spi__i_html_a846dead32b91efcb48eed614daf68e8f"><div class="ttname"><a href="classutl_1_1spi__i.html#a846dead32b91efcb48eed614daf68e8f">utl::spi_i::rx_data</a></div><div class="ttdeci">byte_t rx_data()</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00129">spi.h:129</a></div></div>
  110. <div class="ttc" id="namespaceutl_1_1meta_html_a55511dbaa0adb605ce22dcec11f8d22d"><div class="ttname"><a href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">utl::meta::false_</a></div><div class="ttdeci">bool_&lt; false &gt; false_</div><div class="ttdoc">The type used as a compile-time boolean with false value. </div><div class="ttdef"><b>Definition:</b> <a href="integral_8h_source.html#l00069">integral.h:69</a></div></div>
  111. <div class="ttc" id="classutl_1_1spi__i_html_ac8376d88480a992ac47699637e1a29a5"><div class="ttname"><a href="classutl_1_1spi__i.html#ac8376d88480a992ac47699637e1a29a5">utl::spi_i::tx_data</a></div><div class="ttdeci">byte_t tx_data(byte_t out)</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00114">spi.h:114</a></div></div>
  112. <div class="ttc" id="classutl_1_1spi__i_3_01virtual__tag_01_4_html_a8ccd44f6fa97bbfe8cda5595436eb3a7"><div class="ttname"><a href="classutl_1_1spi__i_3_01virtual__tag_01_4.html#a8ccd44f6fa97bbfe8cda5595436eb3a7">utl::spi_i&lt; virtual_tag &gt;::rx_data</a></div><div class="ttdeci">byte_t rx_data()</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00235">spi.h:235</a></div></div>
  113. <div class="ttc" id="namespaceutl_1_1spi_html_aa49fe33d495226891cef0a870cba59df"><div class="ttname"><a href="namespaceutl_1_1spi.html#aa49fe33d495226891cef0a870cba59df">utl::spi::cpha</a></div><div class="ttdeci">cpha</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00054">spi.h:54</a></div></div>
  114. <div class="ttc" id="classutl_1_1spi__i_3_01virtual__tag_01_4_html_ac7b587521c1fdc83d32164dcee3c7b40"><div class="ttname"><a href="classutl_1_1spi__i_3_01virtual__tag_01_4.html#ac7b587521c1fdc83d32164dcee3c7b40">utl::spi_i&lt; virtual_tag &gt;::tx_data</a></div><div class="ttdeci">byte_t tx_data(byte_t out)</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00220">spi.h:220</a></div></div>
  115. <div class="ttc" id="namespaceutl_html"><div class="ttname"><a href="namespaceutl.html">utl</a></div><div class="ttdoc">STL&amp;#39;s core language concepts. </div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00030">_1wire.h:30</a></div></div>
  116. <div class="ttc" id="namespaceutl_1_1spi_html_a89e3e1af5df0b6c37239f7e336969f8aab89de3b4b81c4facfac906edf29aec8c"><div class="ttname"><a href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aab89de3b4b81c4facfac906edf29aec8c">utl::spi::cpol::HIGH</a></div><div class="ttdoc">HIGH. </div></div>
  117. <div class="ttc" id="classutl_1_1spi__i_html_acf3ffd9c79d4cdeac100cf3273120689"><div class="ttname"><a href="classutl_1_1spi__i.html#acf3ffd9c79d4cdeac100cf3273120689">utl::spi_i::_tx_data</a></div><div class="ttdeci">byte_t _tx_data(byte_t b)</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00094">spi.h:94</a></div></div>
  118. <div class="ttc" id="namespaceutl_1_1spi__i__details_html_a755d8f10cfde3f5c3b9900eb11c858bd"><div class="ttname"><a href="namespaceutl_1_1spi__i__details.html#a755d8f10cfde3f5c3b9900eb11c858bd">utl::spi_i_details::try_tx_t</a></div><div class="ttdeci">decltype(declval&lt; _Tp &gt;().tx_data(declval&lt; byte_t &gt;())) try_tx_t</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00300">spi.h:300</a></div></div>
  119. <div class="ttc" id="namespaceutl_1_1spi__i__details_html_af2f4800aa77af82767a3ac55b9b242a6"><div class="ttname"><a href="namespaceutl_1_1spi__i__details.html#af2f4800aa77af82767a3ac55b9b242a6">utl::spi_i_details::try_clock_t</a></div><div class="ttdeci">decltype(declval&lt; _Tp &gt;().clock(declval&lt; uint32_t &gt;())) try_clock_t</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00299">spi.h:299</a></div></div>
  120. <div class="ttc" id="classutl_1_1spi__i_html"><div class="ttname"><a href="classutl_1_1spi__i.html">utl::spi_i</a></div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00067">spi.h:67</a></div></div>
  121. <div class="ttc" id="classutl_1_1spi__i_html_a68a21ac9727eed3802ce7d1181ac4f8c"><div class="ttname"><a href="classutl_1_1spi__i.html#a68a21ac9727eed3802ce7d1181ac4f8c">utl::spi_i::_clock</a></div><div class="ttdeci">uint32_t _clock() const</div><div class="ttdoc">clock frequency of the bus [Hz] </div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00092">spi.h:92</a></div></div>
  122. <div class="ttc" id="namespaceutl_html_a1427cb5a2b13313147a902173b91e3c1"><div class="ttname"><a href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">utl::byte_t</a></div><div class="ttdeci">uint8_t byte_t</div><div class="ttdoc">8 bits wide </div><div class="ttdef"><b>Definition:</b> <a href="types_8h_source.html#l00031">types.h:31</a></div></div>
  123. <div class="ttc" id="structutl_1_1virtual__tag_html"><div class="ttname"><a href="structutl_1_1virtual__tag.html">utl::virtual_tag</a></div><div class="ttdoc">virtual support tag type </div><div class="ttdef"><b>Definition:</b> <a href="crtp_8h_source.html#l00040">crtp.h:40</a></div></div>
  124. <div class="ttc" id="classutl_1_1spi__i_html_af0a9bfc5d02ccd2bfbe8044132884578"><div class="ttname"><a href="classutl_1_1spi__i.html#af0a9bfc5d02ccd2bfbe8044132884578">utl::spi_i::_clock</a></div><div class="ttdeci">void _clock(uint32_t c)</div><div class="ttdoc">set clock frequency of the bus [Hz] </div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00093">spi.h:93</a></div></div>
  125. <div class="ttc" id="namespaceutl_1_1spi__i__details_html_ae1a4fad6acf8faccc5e85ee9b710c109"><div class="ttname"><a href="namespaceutl_1_1spi__i__details.html#ae1a4fad6acf8faccc5e85ee9b710c109">utl::spi_i_details::try_cclock_t</a></div><div class="ttdeci">decltype(declval&lt; const _Tp &gt;().clock()) try_cclock_t</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00298">spi.h:298</a></div></div>
  126. <div class="ttc" id="classutl_1_1spi__i_html_aa5cf05ce005cb23e6317b3eef70bf4b0"><div class="ttname"><a href="classutl_1_1spi__i.html#aa5cf05ce005cb23e6317b3eef70bf4b0">utl::spi_i::operator=</a></div><div class="ttdeci">type &amp; operator=(const type &amp;)=delete</div></div>
  127. <div class="ttc" id="impl_8h_html"><div class="ttname"><a href="impl_8h.html">impl.h</a></div><div class="ttdoc">Implementation detail main forward header. </div></div>
  128. <div class="ttc" id="structutl_1_1spi__i__details_1_1is__spi___html"><div class="ttname"><a href="structutl_1_1spi__i__details_1_1is__spi__.html">utl::spi_i_details::is_spi_</a></div><div class="ttdoc">Primary template to catch any non SPI interface types. </div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00305">spi.h:305</a></div></div>
  129. </div><!-- fragment --></div><!-- contents -->
  130. </div><!-- doc-content -->
  131. <!-- start footer part -->
  132. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  133. <ul>
  134. <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_82754f54d9380477ef02477185c1f103.html">utl</a></li><li class="navelem"><a class="el" href="dir_b2ad3c1a6521a4924fa9194d98c323e2.html">com</a></li><li class="navelem"><a class="el" href="spi_8h.html">spi.h</a></li>
  135. <li class="footer">Generated by
  136. <a href="http://www.doxygen.org/index.html">
  137. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  138. </ul>
  139. </div>
  140. </body>
  141. </html>