|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710 |
- <!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: utl::_1wire_uart_i< Impl_t > Class Template Reference</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('classutl_1_1__1wire__uart__i.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="summary">
- <a href="#pub-types">Public Types</a> |
- <a href="#pri-methods">Private Member Functions</a> |
- <a href="#pri-attribs">Private Attributes</a> |
- <a href="classutl_1_1__1wire__uart__i-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">utl::_1wire_uart_i< Impl_t > Class Template Reference</div> </div>
- </div><!--header-->
- <div class="contents">
-
- <p>1-wire UART interface template class using CRTP Using the private virtual interface we provide the interface from _1wire_i<>
- <a href="classutl_1_1__1wire__uart__i.html#details">More...</a></p>
-
- <p><code>#include <<a class="el" href="__1wire__uart_8h_source.html">_1wire_uart.h</a>></code></p>
- <div class="dynheader">
- Inheritance diagram for utl::_1wire_uart_i< Impl_t >:</div>
- <div class="dyncontent">
- <div class="center">
- <img src="classutl_1_1__1wire__uart__i.png" usemap="#utl::_5F1wire_5Fuart_5Fi_3C_20Impl_5Ft_20_3E_map" alt=""/>
- <map id="utl::_5F1wire_5Fuart_5Fi_3C_20Impl_5Ft_20_3E_map" name="utl::_5F1wire_5Fuart_5Fi_3C_20Impl_5Ft_20_3E_map">
- <area href="classutl_1_1__1wire__i.html" title="Template base class for 1-wire communication interface using CRTP. " alt="utl::_1wire_i< impl_t >" shape="rect" coords="0,0,236,24"/>
- </map>
- </div></div>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
- Public Types</h2></td></tr>
- <tr class="memitem:acc885c6ec2395ad20409b01aa4d5f546"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__uart__i.html#acc885c6ec2395ad20409b01aa4d5f546">type</a> = <a class="el" href="classutl_1_1__1wire__uart__i.html">_1wire_uart_i</a>< Impl_t ></td></tr>
- <tr class="memdesc:acc885c6ec2395ad20409b01aa4d5f546"><td class="mdescLeft"> </td><td class="mdescRight">Export type as identity meta-function. <a href="#acc885c6ec2395ad20409b01aa4d5f546">More...</a><br /></td></tr>
- <tr class="separator:acc885c6ec2395ad20409b01aa4d5f546"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:acc4364e3aa029405a9b2b25e1fea83ac"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__uart__i.html#acc4364e3aa029405a9b2b25e1fea83ac">Speed</a> = typename <a class="el" href="classutl_1_1__1wire__i.html">_1wire_i</a>< <a class="el" href="classutl_1_1__1wire__i.html#afb63e64403924897a8277eb4159ebd44">type</a> >::<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a></td></tr>
- <tr class="memdesc:acc4364e3aa029405a9b2b25e1fea83ac"><td class="mdescLeft"> </td><td class="mdescRight">Bring bus speed. <a href="#acc4364e3aa029405a9b2b25e1fea83ac">More...</a><br /></td></tr>
- <tr class="separator:acc4364e3aa029405a9b2b25e1fea83ac"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="inherit_header pub_types_classutl_1_1__1wire__i"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classutl_1_1__1wire__i')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="classutl_1_1__1wire__i.html">utl::_1wire_i< impl_t ></a></td></tr>
- <tr class="memitem:a56bb736aa3620d7795b5914cac5f25cc inherit pub_types_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> { <a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a> =0,
- <a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cca1cbf38b04c4249d8ec27d1ec96aaff68">Speed::OVDR</a>
- }</td></tr>
- <tr class="memdesc:a56bb736aa3620d7795b5914cac5f25cc"><td class="mdescLeft"> </td><td class="mdescRight">1-wire bus speed <a href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">More...</a><br /></td></tr>
- <tr class="separator:a56bb736aa3620d7795b5914cac5f25cc inherit pub_types_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:afb63e64403924897a8277eb4159ebd44 inherit pub_types_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#afb63e64403924897a8277eb4159ebd44">type</a> = <a class="el" href="classutl_1_1__1wire__i.html">_1wire_i</a></td></tr>
- <tr class="memdesc:afb63e64403924897a8277eb4159ebd44 inherit pub_types_classutl_1_1__1wire__i"><td class="mdescLeft"> </td><td class="mdescRight">Export type as identity meta-function. <a href="classutl_1_1__1wire__i.html#afb63e64403924897a8277eb4159ebd44">More...</a><br /></td></tr>
- <tr class="separator:afb63e64403924897a8277eb4159ebd44 inherit pub_types_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
- Protected Member Functions</h2></td></tr>
- <tr><td colspan="2"><div class="groupHeader">Object lifetime</div></td></tr>
- <tr class="memitem:ae14ed1ce068d5601c5623c410a0dbc0c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__uart__i.html#ae14ed1ce068d5601c5623c410a0dbc0c">_1wire_uart_i</a> ()=default</td></tr>
- <tr class="memdesc:ae14ed1ce068d5601c5623c410a0dbc0c"><td class="mdescLeft"> </td><td class="mdescRight">Allow constructor from derived only. <a href="#ae14ed1ce068d5601c5623c410a0dbc0c">More...</a><br /></td></tr>
- <tr class="separator:ae14ed1ce068d5601c5623c410a0dbc0c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:afe64da15b5eaf61cd54f357f3ea8b3ea"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__uart__i.html#afe64da15b5eaf61cd54f357f3ea8b3ea">~_1wire_uart_i</a> ()=default</td></tr>
- <tr class="separator:afe64da15b5eaf61cd54f357f3ea8b3ea"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="inherit_header pro_methods_classutl_1_1__1wire__i"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classutl_1_1__1wire__i')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classutl_1_1__1wire__i.html">utl::_1wire_i< impl_t ></a></td></tr>
- <tr class="memitem:a4839577d00fdcefb51ac8d4cd91f0f1a inherit pro_methods_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#a4839577d00fdcefb51ac8d4cd91f0f1a">_1wire_i</a> ()=default</td></tr>
- <tr class="memdesc:a4839577d00fdcefb51ac8d4cd91f0f1a inherit pro_methods_classutl_1_1__1wire__i"><td class="mdescLeft"> </td><td class="mdescRight">Allow constructor from derived only. <a href="classutl_1_1__1wire__i.html#a4839577d00fdcefb51ac8d4cd91f0f1a">More...</a><br /></td></tr>
- <tr class="separator:a4839577d00fdcefb51ac8d4cd91f0f1a inherit pro_methods_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:afb146fda251b25c9fc812718f6c5b3e1 inherit pro_methods_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#afb146fda251b25c9fc812718f6c5b3e1">~_1wire_i</a> ()=default</td></tr>
- <tr class="memdesc:afb146fda251b25c9fc812718f6c5b3e1 inherit pro_methods_classutl_1_1__1wire__i"><td class="mdescLeft"> </td><td class="mdescRight">Allow destructor from derived only. <a href="classutl_1_1__1wire__i.html#afb146fda251b25c9fc812718f6c5b3e1">More...</a><br /></td></tr>
- <tr class="separator:afb146fda251b25c9fc812718f6c5b3e1 inherit pro_methods_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:adc539ccd0e41f8f830bd96c362094c14 inherit pro_methods_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#adc539ccd0e41f8f830bd96c362094c14">_1wire_i</a> (const <a class="el" href="classutl_1_1__1wire__i.html">_1wire_i</a> &)=delete</td></tr>
- <tr class="memdesc:adc539ccd0e41f8f830bd96c362094c14 inherit pro_methods_classutl_1_1__1wire__i"><td class="mdescLeft"> </td><td class="mdescRight">No copies. <a href="classutl_1_1__1wire__i.html#adc539ccd0e41f8f830bd96c362094c14">More...</a><br /></td></tr>
- <tr class="separator:adc539ccd0e41f8f830bd96c362094c14 inherit pro_methods_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a96222b5bd731c2b242e428aabda40642 inherit pro_methods_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classutl_1_1__1wire__i.html">_1wire_i</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#a96222b5bd731c2b242e428aabda40642">operator=</a> (const <a class="el" href="classutl_1_1__1wire__i.html">_1wire_i</a> &)=delete</td></tr>
- <tr class="separator:a96222b5bd731c2b242e428aabda40642 inherit pro_methods_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
- Private Member Functions</h2></td></tr>
- <tr class="memitem:a95ab6c8cc60417090b2cc4e5afc62e77"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__uart__i.html#a95ab6c8cc60417090b2cc4e5afc62e77">_CRTP_IMPL</a> (Impl_t)</td></tr>
- <tr class="separator:a95ab6c8cc60417090b2cc4e5afc62e77"><td class="memSeparator" colspan="2"> </td></tr>
- <tr><td colspan="2"><div class="groupHeader">Implementation requirements</div></td></tr>
- <tr><td colspan="2"><div class="groupText"><dl class="section note"><dt>Note</dt><dd>In order for the implementation to have the following as private members it also need to declare this class as friend </dd></dl>
- </div></td></tr>
- <tr class="memitem:a02e0069f537ae7e8cccdf8563537952a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__uart__i.html#a02e0069f537ae7e8cccdf8563537952a">UART_RW</a> (<a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> byte)</td></tr>
- <tr class="memdesc:a02e0069f537ae7e8cccdf8563537952a"><td class="mdescLeft"> </td><td class="mdescRight">Implementers's (driver) read-write function. We expect the following USART configuration: <a href="#a02e0069f537ae7e8cccdf8563537952a">More...</a><br /></td></tr>
- <tr class="separator:a02e0069f537ae7e8cccdf8563537952a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a4379f74ee196e6b8422a74143642004f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__uart__i.html#a4379f74ee196e6b8422a74143642004f">UART_BR</a> (uint32_t br)</td></tr>
- <tr class="memdesc:a4379f74ee196e6b8422a74143642004f"><td class="mdescLeft"> </td><td class="mdescRight">Implementers's (driver) baudrate function. <a href="#a4379f74ee196e6b8422a74143642004f">More...</a><br /></td></tr>
- <tr class="separator:a4379f74ee196e6b8422a74143642004f"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
- Private Attributes</h2></td></tr>
- <tr class="memitem:a6ab0ec4032cad68333590f159da83871"><td class="memItemLeft" align="right" valign="top">friend </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__uart__i.html#a6ab0ec4032cad68333590f159da83871">_1wire_i< _1wire_uart_i< Impl_t > ></a></td></tr>
- <tr class="memdesc:a6ab0ec4032cad68333590f159da83871"><td class="mdescLeft"> </td><td class="mdescRight">Syntactic sugar to CRTP casting. <a href="#a6ab0ec4032cad68333590f159da83871">More...</a><br /></td></tr>
- <tr class="separator:a6ab0ec4032cad68333590f159da83871"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
- Implementation of base requirements</h2></td></tr>
- <tr class="memitem:a3a2efd9546f298b920011b3c6f933051"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__uart__i.html#a3a2efd9546f298b920011b3c6f933051">BR</a> { <a class="el" href="classutl_1_1__1wire__uart__i.html#a3a2efd9546f298b920011b3c6f933051adf1980b5eb0dee83ef1f76ba38671a43">BR_STD_RST</a> =9600,
- <a class="el" href="classutl_1_1__1wire__uart__i.html#a3a2efd9546f298b920011b3c6f933051a6ea7cba754551a703cc94658e151f073">BR_OVR_RST</a> =57600,
- <a class="el" href="classutl_1_1__1wire__uart__i.html#a3a2efd9546f298b920011b3c6f933051a7ea7463824fb1b6bd5c31e1976351fb0">BR_STD</a> =115200,
- <a class="el" href="classutl_1_1__1wire__uart__i.html#a3a2efd9546f298b920011b3c6f933051a4919b1e0ad524b6d6a791ff6c7f96af7">BR_OVR</a> =921600
- }</td></tr>
- <tr class="memdesc:a3a2efd9546f298b920011b3c6f933051"><td class="mdescLeft"> </td><td class="mdescRight">1-wire UART baudrates <a href="classutl_1_1__1wire__uart__i.html#a3a2efd9546f298b920011b3c6f933051">More...</a><br /></td></tr>
- <tr class="separator:a3a2efd9546f298b920011b3c6f933051"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a14e342fac3c10b66d82d154f47b9db26"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__uart__i.html#a14e342fac3c10b66d82d154f47b9db26">_speed</a> {Speed::STD}</td></tr>
- <tr class="separator:a14e342fac3c10b66d82d154f47b9db26"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1b807cfc2a67eee08efa48ef36b99f74"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__uart__i.html#a1b807cfc2a67eee08efa48ef36b99f74">speed</a> () const</td></tr>
- <tr class="memdesc:a1b807cfc2a67eee08efa48ef36b99f74"><td class="mdescLeft"> </td><td class="mdescRight">Get the 1-wire bus speed. <a href="#a1b807cfc2a67eee08efa48ef36b99f74">More...</a><br /></td></tr>
- <tr class="separator:a1b807cfc2a67eee08efa48ef36b99f74"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa56f7a1497c540397bebf008416118b6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__uart__i.html#aa56f7a1497c540397bebf008416118b6">speed</a> (<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s)</td></tr>
- <tr class="memdesc:aa56f7a1497c540397bebf008416118b6"><td class="mdescLeft"> </td><td class="mdescRight">Set the 1-wire bus speed. <a href="#aa56f7a1497c540397bebf008416118b6">More...</a><br /></td></tr>
- <tr class="separator:aa56f7a1497c540397bebf008416118b6"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a7bd53d23f567a31177f29fcbda4da09c"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__uart__i.html#a7bd53d23f567a31177f29fcbda4da09c">bit</a> (bool b)</td></tr>
- <tr class="memdesc:a7bd53d23f567a31177f29fcbda4da09c"><td class="mdescLeft"> </td><td class="mdescRight">Send a 1-Wire write bit and read the response. <a href="#a7bd53d23f567a31177f29fcbda4da09c">More...</a><br /></td></tr>
- <tr class="separator:a7bd53d23f567a31177f29fcbda4da09c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad40f5180bddd8cd5a55e77f2bfa66ac1"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__uart__i.html#ad40f5180bddd8cd5a55e77f2bfa66ac1">_reset</a> (<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s)</td></tr>
- <tr class="memdesc:ad40f5180bddd8cd5a55e77f2bfa66ac1"><td class="mdescLeft"> </td><td class="mdescRight">Generate a 1-wire reset </p><hr/>
- <p> Reset \ / \ X X X / </p><hr/>
- <p> RS: | | | | | | | | | | | bit: ST 0 1 2 3 4 5 6 7 SP < -------— 1024/174 usec ----------—> <a href="#ad40f5180bddd8cd5a55e77f2bfa66ac1">More...</a><br /></td></tr>
- <tr class="separator:ad40f5180bddd8cd5a55e77f2bfa66ac1"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
- Additional Inherited Members</h2></td></tr>
- <tr class="inherit_header pub_methods_classutl_1_1__1wire__i"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classutl_1_1__1wire__i')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classutl_1_1__1wire__i.html">utl::_1wire_i< impl_t ></a></td></tr>
- <tr class="memitem:a0a7ef731162e81e0e2e07ae9cb9e6ffa inherit pub_methods_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#a0a7ef731162e81e0e2e07ae9cb9e6ffa">reset</a> (<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s=<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>)</td></tr>
- <tr class="memdesc:a0a7ef731162e81e0e2e07ae9cb9e6ffa inherit pub_methods_classutl_1_1__1wire__i"><td class="mdescLeft"> </td><td class="mdescRight">Generate a 1-wire reset. <a href="classutl_1_1__1wire__i.html#a0a7ef731162e81e0e2e07ae9cb9e6ffa">More...</a><br /></td></tr>
- <tr class="separator:a0a7ef731162e81e0e2e07ae9cb9e6ffa inherit pub_methods_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a59e7196e10e53467b62ed369ff78f07d inherit pub_methods_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#a59e7196e10e53467b62ed369ff78f07d">tx_data</a> (<a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> out, <a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s=<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>)</td></tr>
- <tr class="separator:a59e7196e10e53467b62ed369ff78f07d inherit pub_methods_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab3bd112ff66074bdaf7357b91ca692a8 inherit pub_methods_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceutl.html#a22cbecb50ee5c1032de66133e96cbac6">size_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#ab3bd112ff66074bdaf7357b91ca692a8">tx_data</a> (const <a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *out, <a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *in, <a class="el" href="namespaceutl.html#a22cbecb50ee5c1032de66133e96cbac6">size_t</a> n, <a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s=<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>)</td></tr>
- <tr class="separator:ab3bd112ff66074bdaf7357b91ca692a8 inherit pub_methods_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a2585e7166d14b7f36bd47db2e43cc0b1 inherit pub_methods_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#a2585e7166d14b7f36bd47db2e43cc0b1">rx_data</a> (<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s=<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>)</td></tr>
- <tr class="separator:a2585e7166d14b7f36bd47db2e43cc0b1 inherit pub_methods_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad20382d5d50ee7d457bc4079b9c38a2a inherit pub_methods_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceutl.html#a22cbecb50ee5c1032de66133e96cbac6">size_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#ad20382d5d50ee7d457bc4079b9c38a2a">rx_data</a> (<a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> *in, <a class="el" href="namespaceutl.html#a22cbecb50ee5c1032de66133e96cbac6">size_t</a> n, <a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s=<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>)</td></tr>
- <tr class="separator:ad20382d5d50ee7d457bc4079b9c38a2a inherit pub_methods_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa2d87a149c4e5dcfefc5a8cde6eaefb2 inherit pub_methods_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#aa2d87a149c4e5dcfefc5a8cde6eaefb2">match</a> (<a class="el" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> &id, <a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s=<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>)</td></tr>
- <tr class="separator:aa2d87a149c4e5dcfefc5a8cde6eaefb2 inherit pub_methods_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ac88f67dd75dc23d39123ac584dce6b40 inherit pub_methods_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#ac88f67dd75dc23d39123ac584dce6b40">match_n_ovdr</a> (<a class="el" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> &id)</td></tr>
- <tr class="separator:ac88f67dd75dc23d39123ac584dce6b40 inherit pub_methods_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a0a405f818fd45eb2799e6b4477021a0a inherit pub_methods_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#a0a405f818fd45eb2799e6b4477021a0a">skip</a> (<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s=<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>)</td></tr>
- <tr class="separator:a0a405f818fd45eb2799e6b4477021a0a inherit pub_methods_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8b0b0ea95c02a40721f1e159119b3506 inherit pub_methods_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#a8b0b0ea95c02a40721f1e159119b3506">skip_n_ovdr</a> ()</td></tr>
- <tr class="separator:a8b0b0ea95c02a40721f1e159119b3506 inherit pub_methods_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a4b6d225963095d36eda832a1e0adba55 inherit pub_methods_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#a4b6d225963095d36eda832a1e0adba55">first</a> (<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s=<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>, bool alarm=false)</td></tr>
- <tr class="memdesc:a4b6d225963095d36eda832a1e0adba55 inherit pub_methods_classutl_1_1__1wire__i"><td class="mdescLeft"> </td><td class="mdescRight">'first' operation, to search on the 1-Wire for the first device. This is performed by setting dec_, pos_ and cur_ to zero and then doing the search. <a href="classutl_1_1__1wire__i.html#a4b6d225963095d36eda832a1e0adba55">More...</a><br /></td></tr>
- <tr class="separator:a4b6d225963095d36eda832a1e0adba55 inherit pub_methods_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a3e302085f12a39fef8a378e1dac42f45 inherit pub_methods_classutl_1_1__1wire__i"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classutl_1_1__1wire__id__t.html">_1wire_id_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1__1wire__i.html#a3e302085f12a39fef8a378e1dac42f45">next</a> (<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> s=<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25ccac6ce23be5d350ce18a665427d2d950f7">Speed::STD</a>, bool alarm=false)</td></tr>
- <tr class="memdesc:a3e302085f12a39fef8a378e1dac42f45 inherit pub_methods_classutl_1_1__1wire__i"><td class="mdescLeft"> </td><td class="mdescRight">'next' operation, to search on the 1-Wire for the next device. This search is usually performed after a 'first' operation or another 'next' operation. Based on maxim-ic application note 187. <a href="classutl_1_1__1wire__i.html#a3e302085f12a39fef8a378e1dac42f45">More...</a><br /></td></tr>
- <tr class="separator:a3e302085f12a39fef8a378e1dac42f45 inherit pub_methods_classutl_1_1__1wire__i"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><h3>template<typename Impl_t><br />
- class utl::_1wire_uart_i< Impl_t ></h3>
-
- <p>1-wire UART interface template class using CRTP Using the private virtual interface we provide the interface from _1wire_i<> </p>
- <p>A 1-wire implementation using a microprocessor's uart for bit timing inherited from <a class="el" href="classutl_1_1__1wire__i.html">_1wire_i</a> base class. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classutl_1_1__1wire__i.html" title="Template base class for 1-wire communication interface using CRTP. ">_1wire_i</a> </dd></dl>
-
- <p class="definition">Definition at line <a class="el" href="__1wire__uart_8h_source.html#l00052">52</a> of file <a class="el" href="__1wire__uart_8h_source.html">_1wire_uart.h</a>.</p>
- </div><h2 class="groupheader">Member Typedef Documentation</h2>
- <a id="acc4364e3aa029405a9b2b25e1fea83ac"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#acc4364e3aa029405a9b2b25e1fea83ac">◆ </a></span>Speed</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename Impl_t > </div>
- <table class="memname">
- <tr>
- <td class="memname">using <a class="el" href="classutl_1_1__1wire__uart__i.html">utl::_1wire_uart_i</a>< Impl_t >::<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> = typename <a class="el" href="classutl_1_1__1wire__i.html">_1wire_i</a><<a class="el" href="classutl_1_1__1wire__i.html#afb63e64403924897a8277eb4159ebd44">type</a>>::<a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a></td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Bring bus speed. </p>
-
- <p class="definition">Definition at line <a class="el" href="__1wire__uart_8h_source.html#l00057">57</a> of file <a class="el" href="__1wire__uart_8h_source.html">_1wire_uart.h</a>.</p>
-
- </div>
- </div>
- <a id="acc885c6ec2395ad20409b01aa4d5f546"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#acc885c6ec2395ad20409b01aa4d5f546">◆ </a></span>type</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename Impl_t > </div>
- <table class="memname">
- <tr>
- <td class="memname">using <a class="el" href="classutl_1_1__1wire__uart__i.html">utl::_1wire_uart_i</a>< Impl_t >::<a class="el" href="classutl_1_1__1wire__i.html#afb63e64403924897a8277eb4159ebd44">type</a> = <a class="el" href="classutl_1_1__1wire__uart__i.html">_1wire_uart_i</a><Impl_t></td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Export type as identity meta-function. </p>
-
- <p class="definition">Definition at line <a class="el" href="__1wire__uart_8h_source.html#l00056">56</a> of file <a class="el" href="__1wire__uart_8h_source.html">_1wire_uart.h</a>.</p>
-
- </div>
- </div>
- <h2 class="groupheader">Member Enumeration Documentation</h2>
- <a id="a3a2efd9546f298b920011b3c6f933051"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a3a2efd9546f298b920011b3c6f933051">◆ </a></span>BR</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename Impl_t > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">enum <a class="el" href="classutl_1_1__1wire__uart__i.html#a3a2efd9546f298b920011b3c6f933051">utl::_1wire_uart_i::BR</a></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">private</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>1-wire UART baudrates </p>
- <table class="fieldtable">
- <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a3a2efd9546f298b920011b3c6f933051adf1980b5eb0dee83ef1f76ba38671a43"></a>BR_STD_RST </td><td class="fielddoc"></td></tr>
- <tr><td class="fieldname"><a id="a3a2efd9546f298b920011b3c6f933051a6ea7cba754551a703cc94658e151f073"></a>BR_OVR_RST </td><td class="fielddoc"></td></tr>
- <tr><td class="fieldname"><a id="a3a2efd9546f298b920011b3c6f933051a7ea7463824fb1b6bd5c31e1976351fb0"></a>BR_STD </td><td class="fielddoc"></td></tr>
- <tr><td class="fieldname"><a id="a3a2efd9546f298b920011b3c6f933051a4919b1e0ad524b6d6a791ff6c7f96af7"></a>BR_OVR </td><td class="fielddoc"></td></tr>
- </table>
-
- <p class="definition">Definition at line <a class="el" href="__1wire__uart_8h_source.html#l00103">103</a> of file <a class="el" href="__1wire__uart_8h_source.html">_1wire_uart.h</a>.</p>
-
- </div>
- </div>
- <h2 class="groupheader">Constructor & Destructor Documentation</h2>
- <a id="ae14ed1ce068d5601c5623c410a0dbc0c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ae14ed1ce068d5601c5623c410a0dbc0c">◆ </a></span>_1wire_uart_i()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename Impl_t > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classutl_1_1__1wire__uart__i.html">utl::_1wire_uart_i</a>< Impl_t >::<a class="el" href="classutl_1_1__1wire__uart__i.html">_1wire_uart_i</a> </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">default</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Allow constructor from derived only. </p>
-
- </div>
- </div>
- <a id="afe64da15b5eaf61cd54f357f3ea8b3ea"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#afe64da15b5eaf61cd54f357f3ea8b3ea">◆ </a></span>~_1wire_uart_i()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename Impl_t > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classutl_1_1__1wire__uart__i.html">utl::_1wire_uart_i</a>< Impl_t >::~<a class="el" href="classutl_1_1__1wire__uart__i.html">_1wire_uart_i</a> </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">default</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Allow destructor from derived only </p>
-
- </div>
- </div>
- <h2 class="groupheader">Member Function Documentation</h2>
- <a id="a95ab6c8cc60417090b2cc4e5afc62e77"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a95ab6c8cc60417090b2cc4e5afc62e77">◆ </a></span>_CRTP_IMPL()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename Impl_t > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classutl_1_1__1wire__uart__i.html">utl::_1wire_uart_i</a>< Impl_t >::_CRTP_IMPL </td>
- <td>(</td>
- <td class="paramtype">Impl_t </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">private</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- </div>
- </div>
- <a id="ad40f5180bddd8cd5a55e77f2bfa66ac1"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ad40f5180bddd8cd5a55e77f2bfa66ac1">◆ </a></span>_reset()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename Impl_t > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">bool <a class="el" href="classutl_1_1__1wire__uart__i.html">utl::_1wire_uart_i</a>< Impl_t >::_reset </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> </td>
- <td class="paramname"><em>s</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">private</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Generate a 1-wire reset </p><hr/>
- <p> Reset \ / \ X X X / </p><hr/>
- <p> RS: | | | | | | | | | | | bit: ST 0 1 2 3 4 5 6 7 SP < -------— 1024/174 usec ----------—> </p>
- <p>TX: (STD)0xF0, (OVDR)0xF8 RX: less if present</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">t</td><td>Timing </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>The status of the operation <ul>
- <li>0 Fail </li>
- <li>1 Success </li>
- </ul>
- </dd></dl>
-
- <p class="definition">Definition at line <a class="el" href="__1wire__uart_8h_source.html#l00181">181</a> of file <a class="el" href="__1wire__uart_8h_source.html">_1wire_uart.h</a>.</p>
-
- </div>
- </div>
- <a id="a7bd53d23f567a31177f29fcbda4da09c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a7bd53d23f567a31177f29fcbda4da09c">◆ </a></span>bit()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename Impl_t > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">bool <a class="el" href="classutl_1_1__1wire__uart__i.html">utl::_1wire_uart_i</a>< Impl_t >::bit </td>
- <td>(</td>
- <td class="paramtype">bool </td>
- <td class="paramname"><em>b</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Send a 1-Wire write bit and read the response. </p>
- <p>Write 1 — -----------------------------------— </p><h2>Read 0/1 \ / </h2>
- <p>RS: | | | | | | | | | | | bit: ST 0 1 2 3 4 5 6 7 SP TX: 0xFF RX: 0xFF->1, less->0</p>
- <p>Write 0 — ---— </p><h2>Read 0 \ / </h2>
- <p>RS: | | | | | | | | | | | bit: ST 0 1 2 3 4 5 6 7 SP < ----------— 87/11 usec ----------—> TX: 0x00 RX: 0x00</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">b</td><td>The bit to send </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>The response </dd></dl>
-
- <p class="definition">Definition at line <a class="el" href="__1wire__uart_8h_source.html#l00136">136</a> of file <a class="el" href="__1wire__uart_8h_source.html">_1wire_uart.h</a>.</p>
-
- </div>
- </div>
- <a id="a1b807cfc2a67eee08efa48ef36b99f74"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a1b807cfc2a67eee08efa48ef36b99f74">◆ </a></span>speed() <span class="overload">[1/2]</span></h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename Impl_t > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> <a class="el" href="classutl_1_1__1wire__uart__i.html">utl::_1wire_uart_i</a>< Impl_t >::speed </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Get the 1-wire bus speed. </p>
-
- <p class="definition">Definition at line <a class="el" href="__1wire__uart_8h_source.html#l00111">111</a> of file <a class="el" href="__1wire__uart_8h_source.html">_1wire_uart.h</a>.</p>
-
- </div>
- </div>
- <a id="aa56f7a1497c540397bebf008416118b6"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aa56f7a1497c540397bebf008416118b6">◆ </a></span>speed() <span class="overload">[2/2]</span></h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename Impl_t > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void <a class="el" href="classutl_1_1__1wire__uart__i.html">utl::_1wire_uart_i</a>< Impl_t >::speed </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> </td>
- <td class="paramname"><em>s</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">private</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Set the 1-wire bus speed. </p>
- <p>Set the 1-wire bus speed for normal operation only </p><dl class="section note"><dt>Note</dt><dd>We have moved the BR set functionality here to reduce the code inside <a class="el" href="classutl_1_1__1wire__uart__i.html#a7bd53d23f567a31177f29fcbda4da09c" title="Send a 1-Wire write bit and read the response. ">bit()</a>. This is OK as long as the _1wire_i<> always check speed. </dd></dl>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">s</td><td>The desired speed </td></tr>
- </table>
- </dd>
- </dl>
-
- <p class="definition">Definition at line <a class="el" href="__1wire__uart_8h_source.html#l00156">156</a> of file <a class="el" href="__1wire__uart_8h_source.html">_1wire_uart.h</a>.</p>
-
- </div>
- </div>
- <a id="a4379f74ee196e6b8422a74143642004f"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a4379f74ee196e6b8422a74143642004f">◆ </a></span>UART_BR()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename Impl_t > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void <a class="el" href="classutl_1_1__1wire__uart__i.html">utl::_1wire_uart_i</a>< Impl_t >::UART_BR </td>
- <td>(</td>
- <td class="paramtype">uint32_t </td>
- <td class="paramname"><em>br</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Implementers's (driver) baudrate function. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">The</td><td>desired Baudrate </td></tr>
- </table>
- </dd>
- </dl>
-
- <p class="definition">Definition at line <a class="el" href="__1wire__uart_8h_source.html#l00096">96</a> of file <a class="el" href="__1wire__uart_8h_source.html">_1wire_uart.h</a>.</p>
-
- </div>
- </div>
- <a id="a02e0069f537ae7e8cccdf8563537952a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a02e0069f537ae7e8cccdf8563537952a">◆ </a></span>UART_RW()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename Impl_t > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="el" href="classutl_1_1__1wire__uart__i.html">utl::_1wire_uart_i</a>< Impl_t >::UART_RW </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> </td>
- <td class="paramname"><em>byte</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Implementers's (driver) read-write function. We expect the following USART configuration: </p>
- <ul>
- <li>Word Length = 8 Bits</li>
- <li>Stop Bit = One Stop bit</li>
- <li>Parity = No parity <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">The</td><td>byte to send </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>The byte received. </dd></dl>
- <dl class="section note"><dt>Note</dt><dd>Due to the nature of the technique, the received byte is the actual bus condition during the communication frame (time slot) </dd></dl>
- </li>
- </ul>
-
- <p class="definition">Definition at line <a class="el" href="__1wire__uart_8h_source.html#l00089">89</a> of file <a class="el" href="__1wire__uart_8h_source.html">_1wire_uart.h</a>.</p>
-
- </div>
- </div>
- <h2 class="groupheader">Member Data Documentation</h2>
- <a id="a6ab0ec4032cad68333590f159da83871"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a6ab0ec4032cad68333590f159da83871">◆ </a></span>_1wire_i< _1wire_uart_i< Impl_t > ></h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename Impl_t > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">friend <a class="el" href="classutl_1_1__1wire__uart__i.html">utl::_1wire_uart_i</a>< Impl_t >::<a class="el" href="classutl_1_1__1wire__i.html">_1wire_i</a>< <a class="el" href="classutl_1_1__1wire__uart__i.html">_1wire_uart_i</a>< Impl_t > ></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">private</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Syntactic sugar to CRTP casting. </p>
-
- <p class="definition">Definition at line <a class="el" href="__1wire__uart_8h_source.html#l00054">54</a> of file <a class="el" href="__1wire__uart_8h_source.html">_1wire_uart.h</a>.</p>
-
- </div>
- </div>
- <a id="a14e342fac3c10b66d82d154f47b9db26"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a14e342fac3c10b66d82d154f47b9db26">◆ </a></span>_speed</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename Impl_t > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classutl_1_1__1wire__i.html#a56bb736aa3620d7795b5914cac5f25cc">Speed</a> <a class="el" href="classutl_1_1__1wire__uart__i.html">utl::_1wire_uart_i</a>< Impl_t >::_speed {Speed::STD}</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">private</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p class="definition">Definition at line <a class="el" href="__1wire__uart_8h_source.html#l00109">109</a> of file <a class="el" href="__1wire__uart_8h_source.html">_1wire_uart.h</a>.</p>
-
- </div>
- </div>
- <hr/>The documentation for this class was generated from the following file:<ul>
- <li>include/utl/com/<a class="el" href="__1wire__uart_8h_source.html">_1wire_uart.h</a></li>
- </ul>
- </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="namespaceutl.html">utl</a></li><li class="navelem"><a class="el" href="classutl_1_1__1wire__uart__i.html">_1wire_uart_i</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>
|