|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.14"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>uTL: include/utl/com/spi.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="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(document).ready(initResizable);
- /* @license-end */</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">uTL
- </div>
- <div id="projectbrief">micro Template library</div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.14 -->
- <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>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(document).ready(function(){initNavTree('spi_8h_source.html','');});
- /* @license-end */
- </script>
- <div id="doc-content">
- <!-- 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 class="header">
- <div class="headertitle">
- <div class="title">spi.h</div> </div>
- </div><!--header-->
- <div class="contents">
- <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> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifndef _utl_com_spi_h__</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#define _utl_com_spi_h__</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <<a class="code" href="impl_8h.html">utl/core/impl.h</a>></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <<a class="code" href="crtp_8h.html">utl/core/crtp.h</a>></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <<a class="code" href="meta_8h.html">utl/meta/meta.h</a>></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <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> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="namespaceutl_1_1spi.html"> 36</a></span>  <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>  <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>  <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>  <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>  };</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8a"> 47</a></span>  <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>  <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>  <a class="code" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aab89de3b4b81c4facfac906edf29aec8c">HIGH</a> </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  };</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="namespaceutl_1_1spi.html#aa49fe33d495226891cef0a870cba59df"> 54</a></span>  <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>  <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>  <a class="code" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aab89de3b4b81c4facfac906edf29aec8c">HIGH</a> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  };</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  }</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> impl_t></div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i.html"> 67</a></span>  <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>  <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> </div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <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>  <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<impl_t></a>; </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <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>  <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>  <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>&) = <span class="keyword">delete</span>; </div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="classutl_1_1spi__i.html">type</a>& <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>&) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <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>  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>  <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>  <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> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <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>  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>  <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> </div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <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>  <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>  <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>  }</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <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>  <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>  <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>  }</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <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>  };</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keyword">template</span><<span class="keyword">typename</span> _I></div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i.html#af3e303c2982202261700044d31596248"> 152</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1spi__i.html#ac8376d88480a992ac47699637e1a29a5">spi_i<_I>::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>  <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>  *in++ = _tx_data (*out++);</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordflow">return</span> n;</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  }</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keyword">template</span><<span class="keyword">typename</span> _I></div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classutl_1_1spi__i.html#a2053009da5364ead720aebd7cc537c21"> 165</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1spi__i.html#a846dead32b91efcb48eed614daf68e8f">spi_i<_I>::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>  <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>  *in++ = _tx_data (0xFF);</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordflow">return</span> n;</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  }</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keyword">template</span> <></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>  <span class="keyword">class </span><a class="code" href="classutl_1_1spi__i.html">spi_i</a> <<a class="code" href="structutl_1_1virtual__tag.html">virtual_tag</a>> {</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <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>  <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<virtual_tag></a>; </div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <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>  <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>&) = <span class="keyword">delete</span>; </div><div class="line"><a name="l00188"></a><span class="lineno"> 188</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.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>&) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <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> </div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <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>  <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>  <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> </div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <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>  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>  <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> </div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <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>  <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>  <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>  }</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <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>  <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>  <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>  }</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <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> </div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  };</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </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>  <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1spi__i.html#ac8376d88480a992ac47699637e1a29a5">spi_i<virtual_tag>::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>  <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>  *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>  <span class="keywordflow">return</span> n;</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  }</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>  <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1spi__i.html#a846dead32b91efcb48eed614daf68e8f">spi_i<virtual_tag>::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>  <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>  *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>  <span class="keywordflow">return</span> n;</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  }</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span> </div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span> </div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span> <span class="preprocessor">#if defined _utl_have_concepts</span></div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  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>  <span class="comment">// Object type</span></div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  requires not_<std::is_copy_constructible<T>::value>::value;</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  requires not_<std::is_copy_assignable<T>::value>::value;</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="comment">// Methods</span></div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  {ct.clock()} -> uint32_t;</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  {t.clock(0)} -> void;</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  {t.tx_data(1)} -> <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a>;</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  {t.rx_data()} -> <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a>;</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  };</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <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>  <span class="keyword">namespace </span>spi_i_details {</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keyword">using</span> std::declval;</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span> </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>  <span class="keyword">template</span> <<span class="keyword">class</span> _Tp> <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1spi__i__details.html#ae1a4fad6acf8faccc5e85ee9b710c109">try_cclock_t</a>= decltype (declval<const _Tp>().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>  <span class="keyword">template</span> <<span class="keyword">class</span> _Tp> <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1spi__i__details.html#af2f4800aa77af82767a3ac55b9b242a6">try_clock_t</a> = decltype (declval<_Tp>().clock(declval<uint32_t>()));</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>  <span class="keyword">template</span> <<span class="keyword">class</span> _Tp> <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1spi__i__details.html#a755d8f10cfde3f5c3b9900eb11c858bd">try_tx_t</a> = decltype (declval<_Tp>().tx_data(declval<byte_t>()));</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>  <span class="keyword">template</span> <<span class="keyword">class</span> _Tp> <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1spi__i__details.html#a4dcf3c71fddf790e45a3be2c19906c97">try_rx_t</a> = decltype (declval<_Tp>().rx_data());</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span> </div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _Tp, <span class="keyword">typename</span> =<span class="keywordtype">void</span>></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>  <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> </div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _Tp></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>  <span class="keyword">struct </span><a class="code" href="structutl_1_1spi__i__details_1_1is__spi__.html">is_spi_</a> <</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  _Tp,</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  meta::<a class="code" href="group__detection.html#gae7373c997420d16cf37e542eb3cfa3ad">void_t</a> <</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  meta::use_if_same_t <try_cclock_t<_Tp>, uint32_t>,</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  meta::use_if_same_t <try_clock_t<_Tp>, void>,</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  meta::use_if_same_t <try_tx_t<_Tp>, byte_t>,</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  meta::use_if_same_t <try_rx_t<_Tp>, byte_t></div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  ></div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  > : <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>  }</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span> <span class="comment">// template <typename _Tp></span></div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span> <span class="comment">// constexpr bool Spi_i = spi_i_details::is_spi_<_Tp>::value;</span></div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span> </div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span> </div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span> } <span class="comment">// namespace utl</span></div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span> </div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span> <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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_< true > 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>
- <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< virtual_tag >::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>
- <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>
- <div class="ttc" id="crtp_8h_html"><div class="ttname"><a href="crtp_8h.html">crtp.h</a></div></div>
- <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>
- <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< virtual_tag >::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>
- <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>
- <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>
- <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< _Tp >().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>
- <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< virtual_tag ></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>
- <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>
- <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>
- <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_< false > 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>
- <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>
- <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< virtual_tag >::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>
- <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>
- <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< virtual_tag >::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>
- <div class="ttc" id="namespaceutl_html"><div class="ttname"><a href="namespaceutl.html">utl</a></div><div class="ttdoc">STL&#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>
- <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>
- <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>
- <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< _Tp >().tx_data(declval< byte_t >())) try_tx_t</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00300">spi.h:300</a></div></div>
- <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< _Tp >().clock(declval< uint32_t >())) try_clock_t</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00299">spi.h:299</a></div></div>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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< const _Tp >().clock()) try_cclock_t</div><div class="ttdef"><b>Definition:</b> <a href="spi_8h_source.html#l00298">spi.h:298</a></div></div>
- <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 & operator=(const type &)=delete</div></div>
- <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>
- <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>
- </div><!-- fragment --></div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <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>
- <li class="footer">Generated by
- <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
- </ul>
- </div>
- </body>
- </html>
|