|
- <!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/_1wire.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('__1wire_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">_1wire.h</div> </div>
- </div><!--header-->
- <div class="contents">
- <a href="__1wire_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_1wire_h__</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#define __utl_com_1wire_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="__1wire__id_8h.html">utl/com/_1wire_id.h</a>></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <<a class="code" href="meta_8h.html">utl/meta/meta.h</a>></span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="namespaceutl.html"> 30</a></span> <span class="keyword">namespace </span><a class="code" href="namespaceutl.html">utl</a> {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html"> 41</a></span>  <span class="keyword">namespace </span>_1wire_i_det {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494">_touch</a> (_T& obj, <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> out, <span class="keyword">typename</span> _T::Speed s);</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1b07e623a39ce82f1514846169f3a954">_match</a> (_T& obj, <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a>& <span class="keywordtype">id</span>, <span class="keyword">typename</span> _T::Speed s);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1e14f734d5e232c914be6ea97982aa40">_match_n_ovdr</a> (_T& obj, <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a>& <span class="keywordtype">id</span>);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a9ea80f4ef2422a7fd71788c42b228053">_skip</a> (_T& obj, <span class="keyword">typename</span> _T::Speed s);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#ace224a4d329166bfd9f3448e492baf2b">_skip_n_ovdr</a> (_T& obj);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a237719ffa105f988cb175d6720712a4a">_first</a> (_T& obj, <span class="keyword">typename</span> _T::Speed s, <span class="keywordtype">bool</span> alarm);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1f7b692a40769ebe59343613b147e01d">_next</a> (_T& obj, <span class="keyword">typename</span> _T::Speed s, <span class="keywordtype">bool</span> alarm);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  }</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> impl_t></div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html"> 57</a></span>  <span class="keyword">class </span><a class="code" href="classutl_1_1__1wire__i.html">_1wire_i</a> {</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="classutl_1_1__1wire__i.html#ad8858b769d4cd8da78e1cb4669992da2">_CRTP_IMPL</a>(impl_t);</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#afb63e64403924897a8277eb4159ebd44"> 61</a></span>  <span class="keyword">using</span> <a class="code" href="classutl_1_1__1wire__i.html">type</a> = <a class="code" href="classutl_1_1__1wire__i.html#a4839577d00fdcefb51ac8d4cd91f0f1a">_1wire_i</a>; </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc"> 64</a></span>  <span class="keyword">enum class</span> <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> { <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">STD</a> =0, <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cca1cbf38b04c4249d8ec27d1ec96aaff68">OVDR</a> };</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="classutl_1_1__1wire__i.html#a4839577d00fdcefb51ac8d4cd91f0f1a">_1wire_i</a> () = <span class="keywordflow">default</span>; </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="classutl_1_1__1wire__i.html#afb146fda251b25c9fc812718f6c5b3e1">~_1wire_i</a> () = <span class="keywordflow">default</span>; </div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="classutl_1_1__1wire__i.html#a4839577d00fdcefb51ac8d4cd91f0f1a">_1wire_i</a> (<span class="keyword">const</span> <a class="code" href="classutl_1_1__1wire__i.html">_1wire_i</a>&) = <span class="keyword">delete</span>; </div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="classutl_1_1__1wire__i.html">_1wire_i</a>& <a class="code" href="classutl_1_1__1wire__i.html#a96222b5bd731c2b242e428aabda40642">operator= </a>(<span class="keyword">const</span> <a class="code" href="classutl_1_1__1wire__i.html">_1wire_i</a>&) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#ae770650b54374721e04f96994385c570"> 85</a></span>  <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> <a class="code" href="classutl_1_1__1wire__i.html#ae770650b54374721e04f96994385c570">speed</a> ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> impl().speed(); } </div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#adc5c34170794ae99562211faea68a4a6"> 86</a></span>  <span class="keywordtype">void</span> <a class="code" href="classutl_1_1__1wire__i.html#adc5c34170794ae99562211faea68a4a6">speed</a> (<a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s) { <span class="keywordflow">return</span> impl().speed(s); } </div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordtype">bool</span> <a class="code" href="classutl_1_1__1wire__i.html#a197e062037f88871de9205519ec78122">bit</a> (<span class="keywordtype">bool</span> b) { <span class="keywordflow">return</span> impl().bit(b); }</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a39d0afaf58820696acad93cf98a6b321"> 89</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classutl_1_1__1wire__i.html#a39d0afaf58820696acad93cf98a6b321">_reset</a> (<a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s){ <span class="keywordflow">return</span> impl()._reset(s); } </div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614"> 97</a></span>  <span class="keyword">enum</span> <a class="code" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614">Command</a> {</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a07e40db0f36ce4354babe1809f31e20b"> 98</a></span>  <a class="code" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a07e40db0f36ce4354babe1809f31e20b">CMD_READ_ROM</a> = 0x33,</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614af450a6ccd821f0c2e769e67b99df4cc7"> 99</a></span>  <a class="code" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614af450a6ccd821f0c2e769e67b99df4cc7">CMD_OVDR_SKIP</a> = 0x3C,</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a15131061d5cc629dbd1f2b7c2ff1b79b"> 100</a></span>  <a class="code" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a15131061d5cc629dbd1f2b7c2ff1b79b">CMD_MATCH</a> = 0x55,</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a8aba49759413e945e43c6114f60a6617"> 101</a></span>  <a class="code" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a8aba49759413e945e43c6114f60a6617">CMD_OVDR_MATCH</a> = 0x69,</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a440008f9edb49be5eca22c50302dff44"> 102</a></span>  <a class="code" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a440008f9edb49be5eca22c50302dff44">CMD_SKIP</a> = 0xCC,</div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614aab6cb0f1201ca9efeaef8899dab0a637"> 103</a></span>  <a class="code" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614aab6cb0f1201ca9efeaef8899dab0a637">CMD_ALARM_SEARCH</a> = 0xEC,</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a8eb4090d17ac88370c93f3246c146e75"> 104</a></span>  <a class="code" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a8eb4090d17ac88370c93f3246c146e75">CMD_SEARCH_ROM</a> = 0xF0</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  };</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keyword">friend</span> <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494">_1wire_i_det::_touch</a> (_T&, <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a>, <span class="keyword">typename</span> _T::Speed);</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keyword">friend</span> <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1b07e623a39ce82f1514846169f3a954">_1wire_i_det::_match</a> (_T& obj, <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a>& <span class="keywordtype">id</span>, <span class="keyword">typename</span> _T::Speed s);</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keyword">friend</span> <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1e14f734d5e232c914be6ea97982aa40">_1wire_i_det::_match_n_ovdr</a> (_T& obj, <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a>& <span class="keywordtype">id</span>);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keyword">friend</span> <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a9ea80f4ef2422a7fd71788c42b228053">_1wire_i_det::_skip</a> (_T& obj, <span class="keyword">typename</span> _T::Speed s);</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keyword">friend</span> <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#ace224a4d329166bfd9f3448e492baf2b">_1wire_i_det::_skip_n_ovdr</a> (_T& obj);</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keyword">friend</span> <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a237719ffa105f988cb175d6720712a4a">_1wire_i_det::_first</a> (_T&, <span class="keyword">typename</span> _T::Speed, <span class="keywordtype">bool</span>);</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keyword">friend</span> <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1f7b692a40769ebe59343613b147e01d">_1wire_i_det::_next</a> (_T&, <span class="keyword">typename</span> _T::Speed, <span class="keywordtype">bool</span>);</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a0a7ef731162e81e0e2e07ae9cb9e6ffa"> 128</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classutl_1_1__1wire__i.html#a0a7ef731162e81e0e2e07ae9cb9e6ffa">reset</a> (<a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>) {</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">return</span> <a class="code" href="classutl_1_1__1wire__i.html#a39d0afaf58820696acad93cf98a6b321">_reset</a> (s);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  }</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a59e7196e10e53467b62ed369ff78f07d"> 138</a></span>  <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="code" href="classutl_1_1__1wire__i.html#a59e7196e10e53467b62ed369ff78f07d">tx_data</a> (<a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> out, <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>) {</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494">_1wire_i_det::_touch</a> (*<span class="keyword">this</span>, out, s);</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  }</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1__1wire__i.html#a59e7196e10e53467b62ed369ff78f07d">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, <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>);</div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a2585e7166d14b7f36bd47db2e43cc0b1"> 156</a></span>  <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="code" href="classutl_1_1__1wire__i.html#a2585e7166d14b7f36bd47db2e43cc0b1">rx_data</a> (<a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>) {</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494">_1wire_i_det::_touch</a> (*<span class="keyword">this</span>, 0xFF, s);</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  }</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1__1wire__i.html#a2585e7166d14b7f36bd47db2e43cc0b1">rx_data</a> (<a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *in, <span class="keywordtype">size_t</span> n, <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>);</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#aa2d87a149c4e5dcfefc5a8cde6eaefb2"> 173</a></span>  <span class="keywordtype">void</span> <a class="code" href="classutl_1_1__1wire__i.html#aa2d87a149c4e5dcfefc5a8cde6eaefb2">match</a> (<a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a>& <span class="keywordtype">id</span>, <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>) {</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1b07e623a39ce82f1514846169f3a954">_1wire_i_det::_match</a> (*<span class="keyword">this</span>, <span class="keywordtype">id</span>, s);</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  }</div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#ac88f67dd75dc23d39123ac584dce6b40"> 181</a></span>  <span class="keywordtype">void</span> <a class="code" href="classutl_1_1__1wire__i.html#ac88f67dd75dc23d39123ac584dce6b40">match_n_ovdr</a> (<a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a>& <span class="keywordtype">id</span>) {</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1e14f734d5e232c914be6ea97982aa40">_1wire_i_det::_match_n_ovdr</a> (*<span class="keyword">this</span>, <span class="keywordtype">id</span>);</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  }</div><div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a0a405f818fd45eb2799e6b4477021a0a"> 188</a></span>  <span class="keywordtype">void</span> <a class="code" href="classutl_1_1__1wire__i.html#a0a405f818fd45eb2799e6b4477021a0a">skip</a> (<a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>) {</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a9ea80f4ef2422a7fd71788c42b228053">_1wire_i_det::_skip</a> (*<span class="keyword">this</span>, s);</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  }</div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a8b0b0ea95c02a40721f1e159119b3506"> 194</a></span>  <span class="keywordtype">void</span> <a class="code" href="classutl_1_1__1wire__i.html#a8b0b0ea95c02a40721f1e159119b3506">skip_n_ovdr</a> () {</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <a class="code" href="namespaceutl_1_1__1wire__i__det.html#ace224a4d329166bfd9f3448e492baf2b">_1wire_i_det::_skip_n_ovdr</a> (*<span class="keyword">this</span>);</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  }</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div><div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a4b6d225963095d36eda832a1e0adba55"> 207</a></span>  <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="classutl_1_1__1wire__i.html#a4b6d225963095d36eda832a1e0adba55">first</a> (<a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>, <span class="keywordtype">bool</span> alarm =<span class="keyword">false</span>) {</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a237719ffa105f988cb175d6720712a4a">_1wire_i_det::_first</a> (*<span class="keyword">this</span>, s, alarm);</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  }</div><div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a3e302085f12a39fef8a378e1dac42f45"> 220</a></span>  <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="classutl_1_1__1wire__i.html#a3e302085f12a39fef8a378e1dac42f45">next</a> (<a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>, <span class="keywordtype">bool</span> alarm =<span class="keyword">false</span>) {</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1f7b692a40769ebe59343613b147e01d">_1wire_i_det::_next</a> (*<span class="keyword">this</span>, s, alarm);</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  }</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span> </div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#acb00f6ded645dffafe56ea5e8502511a"> 226</a></span>  <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="classutl_1_1__1wire__i.html#acb00f6ded645dffafe56ea5e8502511a">dec_</a> {<a class="code" href="classutl_1_1__1wire__id__t.html#adad08aa5ce38e1a87800de57a91db81b">_1wire_id_t::nullDev</a>()}; </div><div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#a51ed80ef816ea8a4f5a3cdb4d87b0875"> 232</a></span>  <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="classutl_1_1__1wire__i.html#a51ed80ef816ea8a4f5a3cdb4d87b0875">pos_</a> {<a class="code" href="classutl_1_1__1wire__id__t.html#adad08aa5ce38e1a87800de57a91db81b">_1wire_id_t::nullDev</a>()}; </div><div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#af9adb646cdda935d9a5a26656669e785"> 237</a></span>  <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="classutl_1_1__1wire__i.html#af9adb646cdda935d9a5a26656669e785">cur_</a> {<a class="code" href="classutl_1_1__1wire__id__t.html#adad08aa5ce38e1a87800de57a91db81b">_1wire_id_t::nullDev</a>()}; </div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  };</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> </div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _I></div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#ab3bd112ff66074bdaf7357b91ca692a8"> 241</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1__1wire__i.html#a59e7196e10e53467b62ed369ff78f07d">_1wire_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, <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s){</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> nn {n} ; nn ; --nn)</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  *in++ = tx_data (*out++, s);</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordflow">return</span> n;</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  }</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span> </div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _I></div><div class="line"><a name="l00248"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i.html#ad20382d5d50ee7d457bc4079b9c38a2a"> 248</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1__1wire__i.html#a2585e7166d14b7f36bd47db2e43cc0b1">_1wire_i<_I>::rx_data</a>(<a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *in, <span class="keywordtype">size_t</span> n, <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s) {</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> nn {n} ; nn ; --nn)</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  *in++ = tx_data (0xFF, s);</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="keywordflow">return</span> n;</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  }</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span> </div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keyword">template</span> <></div><div class="line"><a name="l00260"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html"> 260</a></span>  <span class="keyword">class </span><a class="code" href="classutl_1_1__1wire__i.html">_1wire_i</a> <<a class="code" href="structutl_1_1virtual__tag.html">virtual_tag</a>> {</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00262"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a1b2fa0f5a2946723cd29e689bd38359d"> 262</a></span>  <span class="keyword">using</span> <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html">type</a> = <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html">_1wire_i<virtual_tag></a>; </div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span> </div><div class="line"><a name="l00265"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a2abb8c6344d17269c55ae0cba63ec512"> 265</a></span>  <span class="keyword">enum class</span> <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a2abb8c6344d17269c55ae0cba63ec512">Speed</a> { <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">STD</a> =0, <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cca1cbf38b04c4249d8ec27d1ec96aaff68">OVDR</a> };</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span> </div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <a class="code" href="classutl_1_1__1wire__i.html#a4839577d00fdcefb51ac8d4cd91f0f1a">_1wire_i</a> () = <span class="keywordflow">default</span>; </div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <a class="code" href="classutl_1_1__1wire__i.html#a4839577d00fdcefb51ac8d4cd91f0f1a">_1wire_i</a> (<span class="keyword">const</span> <a class="code" href="classutl_1_1__1wire__i.html#afb63e64403924897a8277eb4159ebd44">type</a>&) = <span class="keyword">delete</span>; </div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <a class="code" href="classutl_1_1__1wire__i.html#afb63e64403924897a8277eb4159ebd44">type</a>& <a class="code" href="classutl_1_1__1wire__i.html#a96222b5bd731c2b242e428aabda40642">operator= </a>(<span class="keyword">const</span> <a class="code" href="classutl_1_1__1wire__i.html#afb63e64403924897a8277eb4159ebd44">type</a>&) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keyword">virtual</span> <a class="code" href="classutl_1_1__1wire__i.html#afb146fda251b25c9fc812718f6c5b3e1">~_1wire_i</a> () = <span class="keywordflow">default</span>; </div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keyword">virtual</span> <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> <a class="code" href="classutl_1_1__1wire__i.html#ae770650b54374721e04f96994385c570">speed</a> () <span class="keyword">const</span> =0; </div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classutl_1_1__1wire__i.html#ae770650b54374721e04f96994385c570">speed</a> (<a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a>) =0; </div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classutl_1_1__1wire__i.html#a197e062037f88871de9205519ec78122">bit</a> () =0; </div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classutl_1_1__1wire__i.html#a197e062037f88871de9205519ec78122">bit</a> (<span class="keywordtype">bool</span>) =0; </div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classutl_1_1__1wire__i.html#a39d0afaf58820696acad93cf98a6b321">_reset</a> (<a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a>) =0; </div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span> </div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00296"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a8b35a329e022c103b9fac49711bfb268"> 296</a></span>  <span class="keyword">enum</span> <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a8b35a329e022c103b9fac49711bfb268">Command</a> {</div><div class="line"><a name="l00297"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a8b35a329e022c103b9fac49711bfb268a48f3ede59d1cfc441475717e5d7a7524"> 297</a></span>  <a class="code" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a07e40db0f36ce4354babe1809f31e20b">CMD_READ_ROM</a> = 0x33,</div><div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a8b35a329e022c103b9fac49711bfb268a6e4b8f1ad455eed7b241df4ae5a82610"> 298</a></span>  <a class="code" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614af450a6ccd821f0c2e769e67b99df4cc7">CMD_OVDR_SKIP</a> = 0x3C,</div><div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a8b35a329e022c103b9fac49711bfb268a21d20824a61b5ff144fe098447e16fe0"> 299</a></span>  <a class="code" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a15131061d5cc629dbd1f2b7c2ff1b79b">CMD_MATCH</a> = 0x55,</div><div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a8b35a329e022c103b9fac49711bfb268afb3bb5319151b723cc9f84cc79fe8243"> 300</a></span>  <a class="code" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a8aba49759413e945e43c6114f60a6617">CMD_OVDR_MATCH</a> = 0x69,</div><div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a8b35a329e022c103b9fac49711bfb268acaf6f1b98add4a78888c1a6df8888c29"> 301</a></span>  <a class="code" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a440008f9edb49be5eca22c50302dff44">CMD_SKIP</a> = 0xCC,</div><div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a8b35a329e022c103b9fac49711bfb268a93bb90282121f6cda0ebff1b0444daff"> 302</a></span>  <a class="code" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614aab6cb0f1201ca9efeaef8899dab0a637">CMD_ALARM_SEARCH</a> = 0xEC,</div><div class="line"><a name="l00303"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a8b35a329e022c103b9fac49711bfb268abe017fdaf8516b58894a146229de14de"> 303</a></span>  <a class="code" href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a8eb4090d17ac88370c93f3246c146e75">CMD_SEARCH_ROM</a> = 0xF0</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  };</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keyword">friend</span> <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494">_1wire_i_det::_touch</a> (_T&, <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a>, <span class="keyword">typename</span> _T::Speed);</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keyword">friend</span> <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1b07e623a39ce82f1514846169f3a954">_1wire_i_det::_match</a> (_T& obj, <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a>& <span class="keywordtype">id</span>, <span class="keyword">typename</span> _T::Speed s);</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keyword">friend</span> <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1e14f734d5e232c914be6ea97982aa40">_1wire_i_det::_match_n_ovdr</a> (_T& obj, <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a>& <span class="keywordtype">id</span>);</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keyword">friend</span> <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a9ea80f4ef2422a7fd71788c42b228053">_1wire_i_det::_skip</a> (_T& obj, <span class="keyword">typename</span> _T::Speed s);</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keyword">friend</span> <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#ace224a4d329166bfd9f3448e492baf2b">_1wire_i_det::_skip_n_ovdr</a> (_T& obj);</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keyword">friend</span> <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a237719ffa105f988cb175d6720712a4a">_1wire_i_det::_first</a> (_T&, <span class="keyword">typename</span> _T::Speed, <span class="keywordtype">bool</span>);</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T> <span class="keyword">friend</span> <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1f7b692a40769ebe59343613b147e01d">_1wire_i_det::_next</a> (_T&, <span class="keyword">typename</span> _T::Speed, <span class="keywordtype">bool</span>);</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span> </div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a735ed5cb622a1478c57537c131ede7a7"> 327</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a735ed5cb622a1478c57537c131ede7a7">reset</a> (<a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a2abb8c6344d17269c55ae0cba63ec512">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>) {</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <span class="keywordflow">return</span> <a class="code" href="classutl_1_1__1wire__i.html#a39d0afaf58820696acad93cf98a6b321">_reset</a> (s);</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  }</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span> </div><div class="line"><a name="l00337"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a9fbf69bafc3b697d3cf5ab09055540c8"> 337</a></span>  <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a9fbf69bafc3b697d3cf5ab09055540c8">tx_data</a> (<a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> out, <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a2abb8c6344d17269c55ae0cba63ec512">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>) {</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494">_1wire_i_det::_touch</a> (*<span class="keyword">this</span>, out, s);</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  }</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span> </div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1__1wire__i.html#a59e7196e10e53467b62ed369ff78f07d">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, <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>);</div><div class="line"><a name="l00355"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a525b58c7a1110d39f1eb594f12edb16c"> 355</a></span>  <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a525b58c7a1110d39f1eb594f12edb16c">rx_data</a> (<a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a2abb8c6344d17269c55ae0cba63ec512">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>) {</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494">_1wire_i_det::_touch</a> (*<span class="keyword">this</span>, 0xFF, s);</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  }</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1__1wire__i.html#a2585e7166d14b7f36bd47db2e43cc0b1">rx_data</a> (<a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *in, <span class="keywordtype">size_t</span> n, <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>);</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span> </div><div class="line"><a name="l00372"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#ac9c4e6123eee9b0af8d94fc8b22af04a"> 372</a></span>  <span class="keywordtype">void</span> <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#ac9c4e6123eee9b0af8d94fc8b22af04a">match</a> (<a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a>& <span class="keywordtype">id</span>, <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a2abb8c6344d17269c55ae0cba63ec512">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>) {</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1b07e623a39ce82f1514846169f3a954">_1wire_i_det::_match</a> (*<span class="keyword">this</span>, <span class="keywordtype">id</span>, s);</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  }</div><div class="line"><a name="l00380"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a9a3e64459e7fddc89d160a3a379552b6"> 380</a></span>  <span class="keywordtype">void</span> <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a9a3e64459e7fddc89d160a3a379552b6">match_n_ovdr</a> (<a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a>& <span class="keywordtype">id</span>) {</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1e14f734d5e232c914be6ea97982aa40">_1wire_i_det::_match_n_ovdr</a> (*<span class="keyword">this</span>, <span class="keywordtype">id</span>);</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  }</div><div class="line"><a name="l00387"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#ad480b5053884e51e8089cdc691017e4d"> 387</a></span>  <span class="keywordtype">void</span> <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#ad480b5053884e51e8089cdc691017e4d">skip</a> (<a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a2abb8c6344d17269c55ae0cba63ec512">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>) {</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a9ea80f4ef2422a7fd71788c42b228053">_1wire_i_det::_skip</a> (*<span class="keyword">this</span>, s);</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  }</div><div class="line"><a name="l00393"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a8d45e55f347c35e77ec55b905516f8fd"> 393</a></span>  <span class="keywordtype">void</span> <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a8d45e55f347c35e77ec55b905516f8fd">skip_n_ovdr</a> () {</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <a class="code" href="namespaceutl_1_1__1wire__i__det.html#ace224a4d329166bfd9f3448e492baf2b">_1wire_i_det::_skip_n_ovdr</a> (*<span class="keyword">this</span>);</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  }</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span> </div><div class="line"><a name="l00406"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a0fb2e35eb9c244640014f69808ae2758"> 406</a></span>  <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a0fb2e35eb9c244640014f69808ae2758">first</a> (<a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a2abb8c6344d17269c55ae0cba63ec512">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>, <span class="keywordtype">bool</span> alarm =<span class="keyword">false</span>) {</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a237719ffa105f988cb175d6720712a4a">_1wire_i_det::_first</a> (*<span class="keyword">this</span>, s, alarm);</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  }</div><div class="line"><a name="l00419"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a6a3b511a6f7c20bae1e8c7af9f50a0ff"> 419</a></span>  <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a6a3b511a6f7c20bae1e8c7af9f50a0ff">next</a> (<a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a2abb8c6344d17269c55ae0cba63ec512">Speed</a> s = <a class="code" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>, <span class="keywordtype">bool</span> alarm =<span class="keyword">false</span>) {</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1f7b692a40769ebe59343613b147e01d">_1wire_i_det::_next</a> (*<span class="keyword">this</span>, s, alarm);</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  }</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span> </div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00425"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a6afd1b2d7901b29ed686d7fdeaee5d58"> 425</a></span>  <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="classutl_1_1__1wire__i.html#acb00f6ded645dffafe56ea5e8502511a">dec_</a> {<a class="code" href="classutl_1_1__1wire__id__t.html#adad08aa5ce38e1a87800de57a91db81b">_1wire_id_t::nullDev</a>()}; </div><div class="line"><a name="l00431"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#aaa7389458c2969170dc0678f27b9ea83"> 431</a></span>  <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="classutl_1_1__1wire__i.html#a51ed80ef816ea8a4f5a3cdb4d87b0875">pos_</a> {<a class="code" href="classutl_1_1__1wire__id__t.html#adad08aa5ce38e1a87800de57a91db81b">_1wire_id_t::nullDev</a>()}; </div><div class="line"><a name="l00436"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a36d3c8a53b0759d8578a9065914f8d28"> 436</a></span>  <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="classutl_1_1__1wire__i.html#af9adb646cdda935d9a5a26656669e785">cur_</a> {<a class="code" href="classutl_1_1__1wire__id__t.html#adad08aa5ce38e1a87800de57a91db81b">_1wire_id_t::nullDev</a>()}; </div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  };</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span> </div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span> </div><div class="line"><a name="l00440"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a2fe8eabe2f67410123913b240f039b33"> 440</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1__1wire__i.html#a59e7196e10e53467b62ed369ff78f07d">_1wire_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, <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a2abb8c6344d17269c55ae0cba63ec512">Speed</a> s){</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> nn {n} ; nn ; --nn)</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  *in++ = <a class="code" href="classutl_1_1__1wire__i.html#a59e7196e10e53467b62ed369ff78f07d">tx_data</a> (*out++, s);</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  <span class="keywordflow">return</span> n;</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  }</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span> </div><div class="line"><a name="l00446"></a><span class="lineno"><a class="line" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a5f3c707157c571d07a8a3d882900de95"> 446</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classutl_1_1__1wire__i.html#a2585e7166d14b7f36bd47db2e43cc0b1">_1wire_i<virtual_tag>::rx_data</a>(<a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *in, <span class="keywordtype">size_t</span> n, <a class="code" href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a2abb8c6344d17269c55ae0cba63ec512">Speed</a> s) {</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> nn {n} ; nn ; --nn)</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  *in++ = <a class="code" href="classutl_1_1__1wire__i.html#a59e7196e10e53467b62ed369ff78f07d">tx_data</a> (0xFF, s);</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  <span class="keywordflow">return</span> n;</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  }</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span> </div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span> <span class="keyword">namespace </span>_1wire_i_det {</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span> </div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T></div><div class="line"><a name="l00467"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494"> 467</a></span>  <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494">_touch</a> (_T& obj, <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> out, <span class="keyword">typename</span> _T::Speed s) {</div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> ret {0};</div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span> </div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  <span class="comment">// Select speed once</span></div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  <span class="keywordflow">if</span> (obj.speed () != s)</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  obj.speed (s);</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  <span class="keywordflow">for</span> (uint8_t i =8; i>0 ; --i) {</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  ret >>= 1;</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  ret |= (obj.bit (out & 0x01)) ? 0x80 : 0x00;</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  out >>= 1;</div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  <span class="comment">/*^</span></div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span> <span class="comment"> * We shift bits to right as LSB comes first and mask it to MSB</span></div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span> <span class="comment"> * If we need to read we have to write 1</span></div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span> <span class="comment"> */</span></div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  }</div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  }</div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span> </div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span> </div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T></div><div class="line"><a name="l00493"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#a1b07e623a39ce82f1514846169f3a954"> 493</a></span>  <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1b07e623a39ce82f1514846169f3a954">_match</a> (_T& obj, <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a>& <span class="keywordtype">id</span>, <span class="keyword">typename</span> _T::Speed s) {</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494">_touch</a> (obj, (s == _T::Speed::STD) ? _T::CMD_MATCH : _T::CMD_OVDR_MATCH, s);</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  <span class="keywordflow">for</span> (uint8_t& b : <span class="keywordtype">id</span>)</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494">_touch</a> (obj, b, s);</div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  }</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span> </div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T></div><div class="line"><a name="l00505"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#a1e14f734d5e232c914be6ea97982aa40"> 505</a></span>  <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1e14f734d5e232c914be6ea97982aa40">_match_n_ovdr</a> (_T& obj, <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a>& <span class="keywordtype">id</span>) {</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494">_touch</a> (obj, _T::CMD_MATCH, _T::Speed::STD);</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  <span class="keywordflow">for</span> (uint8_t& b : <span class="keywordtype">id</span>)</div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494">_touch</a> (obj, b, _T::Speed::OVDR);</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  }</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span> </div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T></div><div class="line"><a name="l00517"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#a9ea80f4ef2422a7fd71788c42b228053"> 517</a></span>  <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a9ea80f4ef2422a7fd71788c42b228053">_skip</a> (_T& obj, <span class="keyword">typename</span> _T::Speed s) {</div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494">_touch</a> (obj, (s == _T::Speed::STD) ? _T::CMD_SKIP : _T::CMD_SKIP, s);</div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  }</div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span> </div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T></div><div class="line"><a name="l00526"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#ace224a4d329166bfd9f3448e492baf2b"> 526</a></span>  <span class="keywordtype">void</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#ace224a4d329166bfd9f3448e492baf2b">_skip_n_ovdr</a> (_T& obj) {</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494">_touch</a> (obj, _T::CMD_OVDR_SKIP, _T::Speed::STD);</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  }</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span> </div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T></div><div class="line"><a name="l00540"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#a237719ffa105f988cb175d6720712a4a"> 540</a></span>  <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a237719ffa105f988cb175d6720712a4a">_first</a> (_T& obj, <span class="keyword">typename</span> _T::Speed s, <span class="keywordtype">bool</span> alarm) {</div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  obj.dec_ = obj.pos_ = obj.cur_ = <a class="code" href="classutl_1_1__1wire__id__t.html#adad08aa5ce38e1a87800de57a91db81b">_1wire_id_t::nullDev</a>();</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1f7b692a40769ebe59343613b147e01d">_next</a> (obj, s, alarm);</div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  }</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span> </div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _T></div><div class="line"><a name="l00556"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#a1f7b692a40769ebe59343613b147e01d"> 556</a></span>  <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a1f7b692a40769ebe59343613b147e01d">_next</a> (_T& obj, <span class="keyword">typename</span> _T::Speed s, <span class="keywordtype">bool</span> alarm) {</div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  uint8_t b, bxx; <span class="comment">// bit helper vars</span></div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  uint8_t i;</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span>  <a class="code" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> ID;</div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span> </div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  <span class="keywordflow">do</span> {</div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  <span class="keywordflow">if</span> ((obj.pos_ != <a class="code" href="classutl_1_1__1wire__id__t.html#adad08aa5ce38e1a87800de57a91db81b">_1wire_id_t::nullDev</a>()) && (obj.dec_ >= obj.pos_)) {</div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  <span class="comment">// dec_ == pos_: We have found all the leafs, already</span></div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  <span class="comment">// dec_ > pos_ : Error</span></div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  ID = <a class="code" href="classutl_1_1__1wire__id__t.html#adad08aa5ce38e1a87800de57a91db81b">_1wire_id_t::nullDev</a>();</div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  }</div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  <span class="keywordflow">if</span> (!obj.reset (s)) {</div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  ID = <a class="code" href="classutl_1_1__1wire__id__t.html#adad08aa5ce38e1a87800de57a91db81b">_1wire_id_t::nullDev</a>();</div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  }</div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  <span class="comment">// Issue search command</span></div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  <span class="keywordflow">if</span> (alarm) obj.tx_data (_T::CMD_ALARM_SEARCH, s);</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  <span class="keywordflow">else</span> obj.tx_data (_T::CMD_SEARCH_ROM, s);</div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span> </div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  <span class="comment">// Select speed once</span></div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  <span class="keywordflow">if</span> (obj.speed () != s)</div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  obj.speed (s);</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span> </div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  <span class="comment">// traverse entire RomID from LSB to MSB</span></div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  <span class="keywordflow">for</span> (i =0 ; i<64 ; ++i) {</div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  <span class="comment">// Get response pair bits</span></div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  bxx = obj.bit (1); <span class="comment">// bit</span></div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  bxx <<= 1;</div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  bxx |= obj.bit (1); <span class="comment">// complementary bit</span></div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span> </div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  <span class="keywordflow">if</span> (bxx == 0x00) {</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  <span class="comment">// 00 - We have discrepancy</span></div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  obj.cur_.bit (i, 1);</div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  <span class="keywordflow">switch</span> (<a class="code" href="classutl_1_1__1wire__id__t.html#aef89950aeb9d40ca058fabcc5532e01d">_1wire_id_t::compare</a> (obj.pos_, obj.cur_)) {</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  <span class="keywordflow">case</span> -1:</div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  <span class="comment">// pos_ < cur_: This discrepancy is the most far for now. Mark position and select 0.</span></div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  b = 0;</div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span>  <span class="comment">//dec_.bit (i, (b = 0)); //<-- Its already 0</span></div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  obj.pos_.bit (i, 1);</div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  <span class="keywordflow">case</span> 0:</div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  <span class="comment">// pos_ == cur_: This was the last discrepancy in the last pass.</span></div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span>  <span class="comment">// Select the other branch this time (1)</span></div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  obj.dec_.bit (i, (b = 1));</div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span>  <span class="keywordflow">case</span> 1:</div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span>  <span class="comment">// pos_ > cur_: We had a discrepancy in a MSB than that, in a previous pass.</span></div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span>  <span class="comment">// Continue with the last pass decision.</span></div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  b = obj.dec_.bit (i);</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  }</div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  <span class="comment">// Send selection and update romid</span></div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span>  obj.bit (b);</div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  ID.<a class="code" href="structutl_1_1id__t.html#a870b1c8cc468c8b9d7e76fd4d4fb8b2d">bit</a> (i, b);</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  }</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (bxx == 0x01) {</div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span>  <span class="comment">// 01 - All bits of all ROMs are 0s</span></div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  obj.bit (0);</div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span>  ID.<a class="code" href="structutl_1_1id__t.html#a870b1c8cc468c8b9d7e76fd4d4fb8b2d">bit</a> (i, 0);</div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span> </div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  }</div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (bxx == 0x02) {</div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  <span class="comment">// 10 - All bits of all ROMs are 1s</span></div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  obj.bit (1);</div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span>  ID.<a class="code" href="structutl_1_1id__t.html#a870b1c8cc468c8b9d7e76fd4d4fb8b2d">bit</a> (i, 1);</div><div class="line"><a name="l00623"></a><span class="lineno"> 623</span>  }</div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00625"></a><span class="lineno"> 625</span>  <span class="comment">// 11 - No device on the bus</span></div><div class="line"><a name="l00626"></a><span class="lineno"> 626</span>  ID = <a class="code" href="classutl_1_1__1wire__id__t.html#adad08aa5ce38e1a87800de57a91db81b">_1wire_id_t::nullDev</a>();</div><div class="line"><a name="l00627"></a><span class="lineno"> 627</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00628"></a><span class="lineno"> 628</span>  }</div><div class="line"><a name="l00629"></a><span class="lineno"> 629</span>  } <span class="comment">// for</span></div><div class="line"><a name="l00630"></a><span class="lineno"> 630</span> </div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span>  <span class="keywordflow">if</span> (i == 64 && obj.pos_ == <a class="code" href="classutl_1_1__1wire__id__t.html#adad08aa5ce38e1a87800de57a91db81b">_1wire_id_t::nullDev</a>()) {</div><div class="line"><a name="l00632"></a><span class="lineno"> 632</span>  <span class="comment">// Mark done with only one device</span></div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span>  obj.pos_.bit (0, 1);</div><div class="line"><a name="l00634"></a><span class="lineno"> 634</span>  obj.dec_.bit (0, 1);</div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span>  }</div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  } <span class="keywordflow">while</span> (0);</div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span> </div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span>  <span class="keywordflow">return</span> ID;</div><div class="line"><a name="l00639"></a><span class="lineno"> 639</span>  }</div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span> } <span class="comment">// namespace _1wire_i_det</span></div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span> <span class="comment"></span></div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span> </div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span> <span class="preprocessor">#if defined _utl_have_concepts</span></div><div class="line"><a name="l00645"></a><span class="lineno"> 645</span> </div><div class="line"><a name="l00648"></a><span class="lineno"> 648</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div><div class="line"><a name="l00649"></a><span class="lineno"> 649</span>  concept <span class="keywordtype">bool</span> _1Wire_i = requires (T t, <span class="keyword">typename</span> T::Speed s, _1wire_id_t <span class="keywordtype">id</span>) {</div><div class="line"><a name="l00650"></a><span class="lineno"> 650</span>  <span class="comment">// Object type</span></div><div class="line"><a name="l00651"></a><span class="lineno"> 651</span>  requires not_<std::is_copy_constructible<T>::value>::value;</div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  requires not_<std::is_copy_assignable<T>::value>::value;</div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span>  <span class="comment">// Members</span></div><div class="line"><a name="l00654"></a><span class="lineno"> 654</span> <span class="comment">// typename T::Speed;</span></div><div class="line"><a name="l00655"></a><span class="lineno"> 655</span> <span class="comment">// typename T::Command;</span></div><div class="line"><a name="l00656"></a><span class="lineno"> 656</span>  <span class="comment">// Methods</span></div><div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  {t.reset(s)} -> bool;</div><div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  {t.tx_data(1)} -> <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a>;</div><div class="line"><a name="l00659"></a><span class="lineno"> 659</span>  {t.rx_data(s)} -> <a class="code" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a>;</div><div class="line"><a name="l00660"></a><span class="lineno"> 660</span>  t.match(<span class="keywordtype">id</span>, s);</div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  t.match_n_ovdr(<span class="keywordtype">id</span>);</div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  t.skip(s);</div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span>  t.skip_n_ovdr();</div><div class="line"><a name="l00664"></a><span class="lineno"> 664</span>  {t.first(s)} -> _1wire_id_t;</div><div class="line"><a name="l00665"></a><span class="lineno"> 665</span>  {t.next(s)} -> _1wire_id_t;</div><div class="line"><a name="l00666"></a><span class="lineno"> 666</span>  };</div><div class="line"><a name="l00667"></a><span class="lineno"> 667</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00668"></a><span class="lineno"> 668</span>  <span class="keyword">namespace </span>_1wire_i_det {</div><div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  <span class="keyword">using</span> std::declval;</div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span> </div><div class="line"><a name="l00671"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#a502fff2c967d26334aa3c2fcf0b037ba"> 671</a></span>  <span class="keyword">template</span> <<span class="keyword">class</span> _Tp> <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a502fff2c967d26334aa3c2fcf0b037ba">try_reset_t</a> = decltype (declval<_Tp>().reset (declval<typename _Tp::Speed>()));</div><div class="line"><a name="l00672"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#a303cf58468da38ceeaa2477570f82948"> 672</a></span>  <span class="keyword">template</span> <<span class="keyword">class</span> _Tp> <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a303cf58468da38ceeaa2477570f82948">try_rx1_t</a> = decltype (declval<_Tp>().rx_data (declval<typename _Tp::Speed>()));</div><div class="line"><a name="l00673"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#ac6a2b551bcf51b426c2e8506ab2473fe"> 673</a></span>  <span class="keyword">template</span> <<span class="keyword">class</span> _Tp> <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#ac6a2b551bcf51b426c2e8506ab2473fe">try_tx1_t</a> = decltype (declval<_Tp>().tx_data (declval<byte_t>(), declval<typename _Tp::Speed>()));</div><div class="line"><a name="l00674"></a><span class="lineno"> 674</span> </div><div class="line"><a name="l00675"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#a3416ddb06e089a5c191d356dd358ff00"> 675</a></span>  <span class="keyword">template</span> <<span class="keyword">class</span> _Tp> <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a3416ddb06e089a5c191d356dd358ff00">try_match_t</a> = decltype (declval<_Tp>().match (declval<_1wire_id_t&>(), declval<typename _Tp::Speed>()));</div><div class="line"><a name="l00676"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#aa85f59a97c388dc259589cb517824233"> 676</a></span>  <span class="keyword">template</span> <<span class="keyword">class</span> _Tp> <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#aa85f59a97c388dc259589cb517824233">try_match_n_ovdr_t</a> = decltype (declval<_Tp>().match_n_ovdr (declval<_1wire_id_t&>()));</div><div class="line"><a name="l00677"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#a9d0825a40484e7868bf41fc4825b4f7d"> 677</a></span>  <span class="keyword">template</span> <<span class="keyword">class</span> _Tp> <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a9d0825a40484e7868bf41fc4825b4f7d">try_skip_t</a> = decltype (declval<_Tp>().skip (declval<typename _Tp::Speed>()));</div><div class="line"><a name="l00678"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#af6c9df3cb6bf2479e8d30a5d36ab71cb"> 678</a></span>  <span class="keyword">template</span> <<span class="keyword">class</span> _Tp> <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#af6c9df3cb6bf2479e8d30a5d36ab71cb">try_skip_n_ovdr_t</a> = decltype (declval<_Tp>().skip_n_ovdr ());</div><div class="line"><a name="l00679"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#a3dc7b4df37cebf753556ba527306cf9f"> 679</a></span>  <span class="keyword">template</span> <<span class="keyword">class</span> _Tp> <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a3dc7b4df37cebf753556ba527306cf9f">try_first_t</a> = decltype (declval<_Tp>().first (declval<typename _Tp::Speed>()));</div><div class="line"><a name="l00680"></a><span class="lineno"><a class="line" href="namespaceutl_1_1__1wire__i__det.html#a67a086b8e4e3ee051ccb0351e6456630"> 680</a></span>  <span class="keyword">template</span> <<span class="keyword">class</span> _Tp> <span class="keyword">using</span> <a class="code" href="namespaceutl_1_1__1wire__i__det.html#a67a086b8e4e3ee051ccb0351e6456630">try_next_t</a> = decltype (declval<_Tp>().next (declval<typename _Tp::Speed>()));</div><div class="line"><a name="l00681"></a><span class="lineno"> 681</span> </div><div class="line"><a name="l00683"></a><span class="lineno"> 683</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="l00684"></a><span class="lineno"><a class="line" href="structutl_1_1__1wire__i__det_1_1is__1wire__.html"> 684</a></span>  <span class="keyword">struct </span><a class="code" href="structutl_1_1__1wire__i__det_1_1is__1wire__.html">is_1wire_</a> : <a class="code" href="namespaceutl_1_1meta.html#a55511dbaa0adb605ce22dcec11f8d22d">meta::false_</a> {};</div><div class="line"><a name="l00685"></a><span class="lineno"> 685</span> </div><div class="line"><a name="l00687"></a><span class="lineno"> 687</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> _Tp></div><div class="line"><a name="l00688"></a><span class="lineno"><a class="line" href="structutl_1_1__1wire__i__det_1_1is__1wire___3_01___tp_00_01meta_1_1void__t_3_01void_01_4_01_4.html"> 688</a></span>  <span class="keyword">struct </span><a class="code" href="structutl_1_1__1wire__i__det_1_1is__1wire__.html">is_1wire_</a> <_Tp,</div><div class="line"><a name="l00689"></a><span class="lineno"> 689</span>  meta::<a class="code" href="group__detection.html#gae7373c997420d16cf37e542eb3cfa3ad">void_t</a> <</div><div class="line"><a name="l00690"></a><span class="lineno"> 690</span> <span class="comment">// typename _Tp::Speed,</span></div><div class="line"><a name="l00691"></a><span class="lineno"> 691</span> <span class="comment">// typename _Tp::Command,</span></div><div class="line"><a name="l00692"></a><span class="lineno"> 692</span> <span class="comment">// meta::use_if_same_t <try_reset_t <_Tp>, bool>,</span></div><div class="line"><a name="l00693"></a><span class="lineno"> 693</span> <span class="comment">// meta::use_if_same_t <try_rx1_t <_Tp>, byte_t>,</span></div><div class="line"><a name="l00694"></a><span class="lineno"> 694</span> <span class="comment">// //meta::use_if_same_t <try_rx2_t <_Tp>, size_t>,</span></div><div class="line"><a name="l00695"></a><span class="lineno"> 695</span> <span class="comment">// meta::use_if_same_t <try_tx1_t <_Tp>, byte_t>,</span></div><div class="line"><a name="l00696"></a><span class="lineno"> 696</span> <span class="comment">// //meta::use_if_same_t <try_tx2_t <_Tp>, size_t>,</span></div><div class="line"><a name="l00697"></a><span class="lineno"> 697</span> <span class="comment">// meta::use_if_same_t <try_match_t<_Tp>, void>,</span></div><div class="line"><a name="l00698"></a><span class="lineno"> 698</span> <span class="comment">// meta::use_if_same_t <try_match_n_ovdr_t<_Tp>, void>,</span></div><div class="line"><a name="l00699"></a><span class="lineno"> 699</span> <span class="comment">// meta::use_if_same_t <try_skip_t<_Tp>, void>,</span></div><div class="line"><a name="l00700"></a><span class="lineno"> 700</span> <span class="comment">// meta::use_if_same_t <try_skip_n_ovdr_t<_Tp>, void>,</span></div><div class="line"><a name="l00701"></a><span class="lineno"> 701</span> <span class="comment">// meta::use_if_same_t <try_first_t <_Tp>, _1wire_id_t>,</span></div><div class="line"><a name="l00702"></a><span class="lineno"> 702</span> <span class="comment">// meta::use_if_same_t <try_next_t <_Tp>, _1wire_id_t></span></div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span>  void</div><div class="line"><a name="l00704"></a><span class="lineno"> 704</span>  > </div><div class="line"><a name="l00705"></a><span class="lineno"> 705</span>  > : <a class="code" href="namespaceutl_1_1meta.html#ae9a5a8fbe8202785f059935af219fb97">meta::true_</a> {};</div><div class="line"><a name="l00706"></a><span class="lineno"> 706</span>  } <span class="comment">// namespace _1wire_i_det</span></div><div class="line"><a name="l00707"></a><span class="lineno"> 707</span> </div><div class="line"><a name="l00713"></a><span class="lineno"> 713</span> <span class="comment">// template <typename _Tp></span></div><div class="line"><a name="l00714"></a><span class="lineno"> 714</span> <span class="comment">// constexpr bool _1Wire_i = _1wire_i_det::is_1wire_<_Tp>::value;</span></div><div class="line"><a name="l00715"></a><span class="lineno"> 715</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00716"></a><span class="lineno"> 716</span> </div><div class="line"><a name="l00718"></a><span class="lineno"> 718</span> } <span class="comment">//namespace utl</span></div><div class="line"><a name="l00719"></a><span class="lineno"> 719</span> </div><div class="line"><a name="l00720"></a><span class="lineno"> 720</span> <span class="preprocessor">#endif </span><span class="comment">/* __utl_com_1wire_h__ */</span><span class="preprocessor"></span></div><div class="ttc" id="classutl_1_1__1wire__i_html_a4b6d225963095d36eda832a1e0adba55"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a4b6d225963095d36eda832a1e0adba55">utl::_1wire_i::first</a></div><div class="ttdeci">_1wire_id_t first(Speed s=Speed::STD, bool alarm=false)</div><div class="ttdoc">&#39;first&#39; operation, to search on the 1-Wire for the first device. This is performed by setting dec_...</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00207">_1wire.h:207</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a915f13cf9dbb891eeac73b527a5b9614aab6cb0f1201ca9efeaef8899dab0a637"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614aab6cb0f1201ca9efeaef8899dab0a637">utl::_1wire_i::CMD_ALARM_SEARCH</a></div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00103">_1wire.h:103</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a915f13cf9dbb891eeac73b527a5b9614a07e40db0f36ce4354babe1809f31e20b"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a07e40db0f36ce4354babe1809f31e20b">utl::_1wire_i::CMD_READ_ROM</a></div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00098">_1wire.h:98</a></div></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="classutl_1_1__1wire__i_html_a197e062037f88871de9205519ec78122"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a197e062037f88871de9205519ec78122">utl::_1wire_i::bit</a></div><div class="ttdeci">bool bit(bool b)</div><div class="ttdoc">Write a bit to the 1-Wire bus, return response/write status and provide the recovery time...</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00088">_1wire.h:88</a></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_1__1wire__i_html_ac88f67dd75dc23d39123ac584dce6b40"><div class="ttname"><a href="classutl_1_1__1wire__i.html#ac88f67dd75dc23d39123ac584dce6b40">utl::_1wire_i::match_n_ovdr</a></div><div class="ttdeci">void match_n_ovdr(_1wire_id_t &id)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00181">_1wire.h:181</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_aa85f59a97c388dc259589cb517824233"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#aa85f59a97c388dc259589cb517824233">utl::_1wire_i_det::try_match_n_ovdr_t</a></div><div class="ttdeci">decltype(declval< _Tp >().match_n_ovdr(declval< _1wire_id_t & >())) try_match_n_ovdr_t</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00676">_1wire.h:676</a></div></div>
- <div class="ttc" id="structutl_1_1__1wire__i__det_1_1is__1wire___html"><div class="ttname"><a href="structutl_1_1__1wire__i__det_1_1is__1wire__.html">utl::_1wire_i_det::is_1wire_</a></div><div class="ttdoc">Primary template to catch any non 1-wire interface types. </div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00684">_1wire.h:684</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_aa2d87a149c4e5dcfefc5a8cde6eaefb2"><div class="ttname"><a href="classutl_1_1__1wire__i.html#aa2d87a149c4e5dcfefc5a8cde6eaefb2">utl::_1wire_i::match</a></div><div class="ttdeci">void match(_1wire_id_t &id, Speed s=Speed::STD)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00173">_1wire.h:173</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a39d0afaf58820696acad93cf98a6b321"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a39d0afaf58820696acad93cf98a6b321">utl::_1wire_i::_reset</a></div><div class="ttdeci">bool _reset(Speed s)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00089">_1wire.h:89</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_1__1wire__id__t_html_aef89950aeb9d40ca058fabcc5532e01d"><div class="ttname"><a href="classutl_1_1__1wire__id__t.html#aef89950aeb9d40ca058fabcc5532e01d">utl::_1wire_id_t::compare</a></div><div class="ttdeci">static int compare(const _1wire_id_t &lhs, const _1wire_id_t &rhs) noexcept</div><div class="ttdoc">Full compare two dev_ids. </div><div class="ttdef"><b>Definition:</b> <a href="__1wire__id_8h_source.html#l00072">_1wire_id.h:72</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_1__1wire__i_html_a915f13cf9dbb891eeac73b527a5b9614a15131061d5cc629dbd1f2b7c2ff1b79b"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a15131061d5cc629dbd1f2b7c2ff1b79b">utl::_1wire_i::CMD_MATCH</a></div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00100">_1wire.h:100</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a56bb736aa3620d7795b5914cac5f25cca1cbf38b04c4249d8ec27d1ec96aaff68"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cca1cbf38b04c4249d8ec27d1ec96aaff68">utl::_1wire_i::Speed::OVDR</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_a3416ddb06e089a5c191d356dd358ff00"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#a3416ddb06e089a5c191d356dd358ff00">utl::_1wire_i_det::try_match_t</a></div><div class="ttdeci">decltype(declval< _Tp >().match(declval< _1wire_id_t & >(), declval< typename _Tp::Speed >())) try_match_t</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00675">_1wire.h:675</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_3_01virtual__tag_01_4_html_ac9c4e6123eee9b0af8d94fc8b22af04a"><div class="ttname"><a href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#ac9c4e6123eee9b0af8d94fc8b22af04a">utl::_1wire_i< virtual_tag >::match</a></div><div class="ttdeci">void match(_1wire_id_t &id, Speed s=Speed::STD)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00372">_1wire.h:372</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_adc5c34170794ae99562211faea68a4a6"><div class="ttname"><a href="classutl_1_1__1wire__i.html#adc5c34170794ae99562211faea68a4a6">utl::_1wire_i::speed</a></div><div class="ttdeci">void speed(Speed s)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00086">_1wire.h:86</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_a1e14f734d5e232c914be6ea97982aa40"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#a1e14f734d5e232c914be6ea97982aa40">utl::_1wire_i_det::_match_n_ovdr</a></div><div class="ttdeci">void _match_n_ovdr(_T &obj, _1wire_id_t &id)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00505">_1wire.h:505</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a56bb736aa3620d7795b5914cac5f25cc"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">utl::_1wire_i< type >::Speed</a></div><div class="ttdeci">Speed</div><div class="ttdoc">1-wire bus speed </div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00064">_1wire.h:64</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a59e7196e10e53467b62ed369ff78f07d"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a59e7196e10e53467b62ed369ff78f07d">utl::_1wire_i::tx_data</a></div><div class="ttdeci">byte_t tx_data(byte_t out, Speed s=Speed::STD)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00138">_1wire.h:138</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a2585e7166d14b7f36bd47db2e43cc0b1"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a2585e7166d14b7f36bd47db2e43cc0b1">utl::_1wire_i::rx_data</a></div><div class="ttdeci">byte_t rx_data(Speed s=Speed::STD)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00156">_1wire.h:156</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_a237719ffa105f988cb175d6720712a4a"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#a237719ffa105f988cb175d6720712a4a">utl::_1wire_i_det::_first</a></div><div class="ttdeci">_1wire_id_t _first(_T &obj, typename _T::Speed s, bool alarm)</div><div class="ttdoc">&#39;first&#39; operation, to search on the 1-Wire for the first device. This is performed by setting dec_...</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00540">_1wire.h:540</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a915f13cf9dbb891eeac73b527a5b9614a8aba49759413e945e43c6114f60a6617"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a8aba49759413e945e43c6114f60a6617">utl::_1wire_i::CMD_OVDR_MATCH</a></div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00101">_1wire.h:101</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a0a7ef731162e81e0e2e07ae9cb9e6ffa"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a0a7ef731162e81e0e2e07ae9cb9e6ffa">utl::_1wire_i::reset</a></div><div class="ttdeci">bool reset(Speed s=Speed::STD)</div><div class="ttdoc">Generate a 1-wire reset. </div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00128">_1wire.h:128</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_ad8858b769d4cd8da78e1cb4669992da2"><div class="ttname"><a href="classutl_1_1__1wire__i.html#ad8858b769d4cd8da78e1cb4669992da2">utl::_1wire_i::_CRTP_IMPL</a></div><div class="ttdeci">_CRTP_IMPL(impl_t)</div></div>
- <div class="ttc" id="classutl_1_1__1wire__id__t_html"><div class="ttname"><a href="classutl_1_1__1wire__id__t.html">utl::_1wire_id_t</a></div><div class="ttdef"><b>Definition:</b> <a href="__1wire__id_8h_source.html#l00032">_1wire_id.h:32</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_a1f7b692a40769ebe59343613b147e01d"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#a1f7b692a40769ebe59343613b147e01d">utl::_1wire_i_det::_next</a></div><div class="ttdeci">_1wire_id_t _next(_T &obj, typename _T::Speed s, bool alarm)</div><div class="ttdoc">&#39;next&#39; operation, to search on the 1-Wire for the next device. This search is usually performed after...</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00556">_1wire.h:556</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_3_01virtual__tag_01_4_html_a6a3b511a6f7c20bae1e8c7af9f50a0ff"><div class="ttname"><a href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a6a3b511a6f7c20bae1e8c7af9f50a0ff">utl::_1wire_i< virtual_tag >::next</a></div><div class="ttdeci">_1wire_id_t next(Speed s=Speed::STD, bool alarm=false)</div><div class="ttdoc">&#39;next&#39; operation, to search on the 1-Wire for the next device. This search is usually performed after...</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00419">_1wire.h:419</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="__1wire__id_8h_html"><div class="ttname"><a href="__1wire__id_8h.html">_1wire_id.h</a></div><div class="ttdoc">An 1-wire Rom ID type. </div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_3_01virtual__tag_01_4_html"><div class="ttname"><a href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html">utl::_1wire_i< virtual_tag ></a></div><div class="ttdoc">A virtual base class implementation. </div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00260">_1wire.h:260</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_3_01virtual__tag_01_4_html_a735ed5cb622a1478c57537c131ede7a7"><div class="ttname"><a href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a735ed5cb622a1478c57537c131ede7a7">utl::_1wire_i< virtual_tag >::reset</a></div><div class="ttdeci">bool reset(Speed s=Speed::STD)</div><div class="ttdoc">Generate a 1-wire reset. </div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00327">_1wire.h:327</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_3_01virtual__tag_01_4_html_a0fb2e35eb9c244640014f69808ae2758"><div class="ttname"><a href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a0fb2e35eb9c244640014f69808ae2758">utl::_1wire_i< virtual_tag >::first</a></div><div class="ttdeci">_1wire_id_t first(Speed s=Speed::STD, bool alarm=false)</div><div class="ttdoc">&#39;first&#39; operation, to search on the 1-Wire for the first device. This is performed by setting dec_...</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00406">_1wire.h:406</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="classutl_1_1__1wire__i_3_01virtual__tag_01_4_html_a8d45e55f347c35e77ec55b905516f8fd"><div class="ttname"><a href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a8d45e55f347c35e77ec55b905516f8fd">utl::_1wire_i< virtual_tag >::skip_n_ovdr</a></div><div class="ttdeci">void skip_n_ovdr()</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00393">_1wire.h:393</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_a9d0825a40484e7868bf41fc4825b4f7d"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#a9d0825a40484e7868bf41fc4825b4f7d">utl::_1wire_i_det::try_skip_t</a></div><div class="ttdeci">decltype(declval< _Tp >().skip(declval< typename _Tp::Speed >())) try_skip_t</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00677">_1wire.h:677</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_3_01virtual__tag_01_4_html_a9a3e64459e7fddc89d160a3a379552b6"><div class="ttname"><a href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a9a3e64459e7fddc89d160a3a379552b6">utl::_1wire_i< virtual_tag >::match_n_ovdr</a></div><div class="ttdeci">void match_n_ovdr(_1wire_id_t &id)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00380">_1wire.h:380</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a51ed80ef816ea8a4f5a3cdb4d87b0875"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a51ed80ef816ea8a4f5a3cdb4d87b0875">utl::_1wire_i::pos_</a></div><div class="ttdeci">_1wire_id_t pos_</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00232">_1wire.h:232</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_3_01virtual__tag_01_4_html_a525b58c7a1110d39f1eb594f12edb16c"><div class="ttname"><a href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a525b58c7a1110d39f1eb594f12edb16c">utl::_1wire_i< virtual_tag >::rx_data</a></div><div class="ttdeci">byte_t rx_data(Speed s=Speed::STD)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00355">_1wire.h:355</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_ac6a2b551bcf51b426c2e8506ab2473fe"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#ac6a2b551bcf51b426c2e8506ab2473fe">utl::_1wire_i_det::try_tx1_t</a></div><div class="ttdeci">decltype(declval< _Tp >().tx_data(declval< byte_t >(), declval< typename _Tp::Speed >())) try_tx1_t</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00673">_1wire.h:673</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_ace224a4d329166bfd9f3448e492baf2b"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#ace224a4d329166bfd9f3448e492baf2b">utl::_1wire_i_det::_skip_n_ovdr</a></div><div class="ttdeci">void _skip_n_ovdr(_T &obj)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00526">_1wire.h:526</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_afb63e64403924897a8277eb4159ebd44"><div class="ttname"><a href="classutl_1_1__1wire__i.html#afb63e64403924897a8277eb4159ebd44">utl::_1wire_i::type</a></div><div class="ttdeci">_1wire_i type</div><div class="ttdoc">Export type as identity meta-function. </div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00061">_1wire.h:61</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a0a405f818fd45eb2799e6b4477021a0a"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a0a405f818fd45eb2799e6b4477021a0a">utl::_1wire_i::skip</a></div><div class="ttdeci">void skip(Speed s=Speed::STD)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00188">_1wire.h:188</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_af6c9df3cb6bf2479e8d30a5d36ab71cb"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#af6c9df3cb6bf2479e8d30a5d36ab71cb">utl::_1wire_i_det::try_skip_n_ovdr_t</a></div><div class="ttdeci">decltype(declval< _Tp >().skip_n_ovdr()) try_skip_n_ovdr_t</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00678">_1wire.h:678</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_ae770650b54374721e04f96994385c570"><div class="ttname"><a href="classutl_1_1__1wire__i.html#ae770650b54374721e04f96994385c570">utl::_1wire_i::speed</a></div><div class="ttdeci">Speed speed() const</div><div class="ttdoc">Get the 1-wire bus speed. </div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00085">_1wire.h:85</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_a3dc7b4df37cebf753556ba527306cf9f"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#a3dc7b4df37cebf753556ba527306cf9f">utl::_1wire_i_det::try_first_t</a></div><div class="ttdeci">decltype(declval< _Tp >().first(declval< typename _Tp::Speed >())) try_first_t</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00679">_1wire.h:679</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_3_01virtual__tag_01_4_html_a9fbf69bafc3b697d3cf5ab09055540c8"><div class="ttname"><a href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a9fbf69bafc3b697d3cf5ab09055540c8">utl::_1wire_i< virtual_tag >::tx_data</a></div><div class="ttdeci">byte_t tx_data(byte_t out, Speed s=Speed::STD)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00337">_1wire.h:337</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a96222b5bd731c2b242e428aabda40642"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a96222b5bd731c2b242e428aabda40642">utl::_1wire_i::operator=</a></div><div class="ttdeci">_1wire_i & operator=(const _1wire_i &)=delete</div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_3_01virtual__tag_01_4_html_ad480b5053884e51e8089cdc691017e4d"><div class="ttname"><a href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#ad480b5053884e51e8089cdc691017e4d">utl::_1wire_i< virtual_tag >::skip</a></div><div class="ttdeci">void skip(Speed s=Speed::STD)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00387">_1wire.h:387</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__id__t_html_adad08aa5ce38e1a87800de57a91db81b"><div class="ttname"><a href="classutl_1_1__1wire__id__t.html#adad08aa5ce38e1a87800de57a91db81b">utl::_1wire_id_t::nullDev</a></div><div class="ttdeci">static constexpr const _1wire_id_t & nullDev()</div><div class="ttdoc">Return nullDev reference. </div><div class="ttdef"><b>Definition:</b> <a href="__1wire__id_8h_source.html#l00050">_1wire_id.h:50</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_afb146fda251b25c9fc812718f6c5b3e1"><div class="ttname"><a href="classutl_1_1__1wire__i.html#afb146fda251b25c9fc812718f6c5b3e1">utl::_1wire_i::~_1wire_i</a></div><div class="ttdeci">~_1wire_i()=default</div><div class="ttdoc">Allow destructor from derived only. </div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a915f13cf9dbb891eeac73b527a5b9614a440008f9edb49be5eca22c50302dff44"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a440008f9edb49be5eca22c50302dff44">utl::_1wire_i::CMD_SKIP</a></div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00102">_1wire.h:102</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a3e302085f12a39fef8a378e1dac42f45"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a3e302085f12a39fef8a378e1dac42f45">utl::_1wire_i::next</a></div><div class="ttdeci">_1wire_id_t next(Speed s=Speed::STD, bool alarm=false)</div><div class="ttdoc">&#39;next&#39; operation, to search on the 1-Wire for the next device. This search is usually performed after...</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00220">_1wire.h:220</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">utl::_1wire_i::Speed::STD</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a915f13cf9dbb891eeac73b527a5b9614"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614">utl::_1wire_i< type >::Command</a></div><div class="ttdeci">Command</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00097">_1wire.h:97</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a915f13cf9dbb891eeac73b527a5b9614af450a6ccd821f0c2e769e67b99df4cc7"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614af450a6ccd821f0c2e769e67b99df4cc7">utl::_1wire_i::CMD_OVDR_SKIP</a></div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00099">_1wire.h:99</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_a303cf58468da38ceeaa2477570f82948"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#a303cf58468da38ceeaa2477570f82948">utl::_1wire_i_det::try_rx1_t</a></div><div class="ttdeci">decltype(declval< _Tp >().rx_data(declval< typename _Tp::Speed >())) try_rx1_t</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00672">_1wire.h:672</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html"><div class="ttname"><a href="classutl_1_1__1wire__i.html">utl::_1wire_i</a></div><div class="ttdoc">Template base class for 1-wire communication interface using CRTP. </div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00057">_1wire.h:57</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_1__1wire__i_html_a8b0b0ea95c02a40721f1e159119b3506"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a8b0b0ea95c02a40721f1e159119b3506">utl::_1wire_i::skip_n_ovdr</a></div><div class="ttdeci">void skip_n_ovdr()</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00194">_1wire.h:194</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_a502fff2c967d26334aa3c2fcf0b037ba"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#a502fff2c967d26334aa3c2fcf0b037ba">utl::_1wire_i_det::try_reset_t</a></div><div class="ttdeci">decltype(declval< _Tp >().reset(declval< typename _Tp::Speed >())) try_reset_t</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00671">_1wire.h:671</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_a9ea80f4ef2422a7fd71788c42b228053"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#a9ea80f4ef2422a7fd71788c42b228053">utl::_1wire_i_det::_skip</a></div><div class="ttdeci">void _skip(_T &obj, typename _T::Speed s)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00517">_1wire.h:517</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_3_01virtual__tag_01_4_html_a8b35a329e022c103b9fac49711bfb268"><div class="ttname"><a href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a8b35a329e022c103b9fac49711bfb268">utl::_1wire_i< virtual_tag >::Command</a></div><div class="ttdeci">Command</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00296">_1wire.h:296</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_a67a086b8e4e3ee051ccb0351e6456630"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#a67a086b8e4e3ee051ccb0351e6456630">utl::_1wire_i_det::try_next_t</a></div><div class="ttdeci">decltype(declval< _Tp >().next(declval< typename _Tp::Speed >())) try_next_t</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00680">_1wire.h:680</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a915f13cf9dbb891eeac73b527a5b9614a8eb4090d17ac88370c93f3246c146e75"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a915f13cf9dbb891eeac73b527a5b9614a8eb4090d17ac88370c93f3246c146e75">utl::_1wire_i::CMD_SEARCH_ROM</a></div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00104">_1wire.h:104</a></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="classutl_1_1__1wire__i_html_af9adb646cdda935d9a5a26656669e785"><div class="ttname"><a href="classutl_1_1__1wire__i.html#af9adb646cdda935d9a5a26656669e785">utl::_1wire_i::cur_</a></div><div class="ttdeci">_1wire_id_t cur_</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00237">_1wire.h:237</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_a1b07e623a39ce82f1514846169f3a954"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#a1b07e623a39ce82f1514846169f3a954">utl::_1wire_i_det::_match</a></div><div class="ttdeci">void _match(_T &obj, _1wire_id_t &id, typename _T::Speed s)</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00493">_1wire.h:493</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_acb00f6ded645dffafe56ea5e8502511a"><div class="ttname"><a href="classutl_1_1__1wire__i.html#acb00f6ded645dffafe56ea5e8502511a">utl::_1wire_i::dec_</a></div><div class="ttdeci">_1wire_id_t dec_</div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00226">_1wire.h:226</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_3_01virtual__tag_01_4_html_a2abb8c6344d17269c55ae0cba63ec512"><div class="ttname"><a href="classutl_1_1__1wire__i_3_01virtual__tag_01_4.html#a2abb8c6344d17269c55ae0cba63ec512">utl::_1wire_i< virtual_tag >::Speed</a></div><div class="ttdeci">Speed</div><div class="ttdoc">1-wire bus speed </div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00265">_1wire.h:265</a></div></div>
- <div class="ttc" id="classutl_1_1__1wire__i_html_a4839577d00fdcefb51ac8d4cd91f0f1a"><div class="ttname"><a href="classutl_1_1__1wire__i.html#a4839577d00fdcefb51ac8d4cd91f0f1a">utl::_1wire_i::_1wire_i</a></div><div class="ttdeci">_1wire_i()=default</div><div class="ttdoc">Allow constructor from derived only. </div></div>
- <div class="ttc" id="structutl_1_1id__t_html_a870b1c8cc468c8b9d7e76fd4d4fb8b2d"><div class="ttname"><a href="structutl_1_1id__t.html#a870b1c8cc468c8b9d7e76fd4d4fb8b2d">utl::id_t::bit</a></div><div class="ttdeci">constexpr bool bit(uint8_t bit) const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="id_8h_source.html#l00159">id.h:159</a></div></div>
- <div class="ttc" id="namespaceutl_1_1__1wire__i__det_html_a85a3a19778edb037f6341f37135a5494"><div class="ttname"><a href="namespaceutl_1_1__1wire__i__det.html#a85a3a19778edb037f6341f37135a5494">utl::_1wire_i_det::_touch</a></div><div class="ttdeci">byte_t _touch(_T &obj, byte_t out, typename _T::Speed s)</div><div class="ttdoc">Write a byte to 1-Wire bus and read the response. </div><div class="ttdef"><b>Definition:</b> <a href="__1wire_8h_source.html#l00467">_1wire.h:467</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="__1wire_8h.html">_1wire.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>
|