Micro template library A library for building device drivers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

classutl_1_1spi__bb__i.html 57 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>uTL: utl::spi_bb_i&lt; impl_t, CPOL, CPHA, BitOrder &gt; Class Template Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript">
  17. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  18. $(document).ready(initResizable);
  19. /* @license-end */</script>
  20. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  21. <script type="text/javascript" src="search/searchdata.js"></script>
  22. <script type="text/javascript" src="search/search.js"></script>
  23. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  24. </head>
  25. <body>
  26. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  27. <div id="titlearea">
  28. <table cellspacing="0" cellpadding="0">
  29. <tbody>
  30. <tr style="height: 56px;">
  31. <td id="projectalign" style="padding-left: 0.5em;">
  32. <div id="projectname">uTL
  33. </div>
  34. <div id="projectbrief">micro Template library</div>
  35. </td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. <!-- end header part -->
  41. <!-- Generated by Doxygen 1.8.14 -->
  42. <script type="text/javascript">
  43. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  44. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  45. /* @license-end */
  46. </script>
  47. <script type="text/javascript" src="menudata.js"></script>
  48. <script type="text/javascript" src="menu.js"></script>
  49. <script type="text/javascript">
  50. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  51. $(function() {
  52. initMenu('',true,false,'search.php','Search');
  53. $(document).ready(function() { init_search(); });
  54. });
  55. /* @license-end */</script>
  56. <div id="main-nav"></div>
  57. </div><!-- top -->
  58. <div id="side-nav" class="ui-resizable side-nav-resizable">
  59. <div id="nav-tree">
  60. <div id="nav-tree-contents">
  61. <div id="nav-sync" class="sync"></div>
  62. </div>
  63. </div>
  64. <div id="splitbar" style="-moz-user-select:none;"
  65. class="ui-resizable-handle">
  66. </div>
  67. </div>
  68. <script type="text/javascript">
  69. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  70. $(document).ready(function(){initNavTree('classutl_1_1spi__bb__i.html','');});
  71. /* @license-end */
  72. </script>
  73. <div id="doc-content">
  74. <!-- window showing the filter options -->
  75. <div id="MSearchSelectWindow"
  76. onmouseover="return searchBox.OnSearchSelectShow()"
  77. onmouseout="return searchBox.OnSearchSelectHide()"
  78. onkeydown="return searchBox.OnSearchSelectKey(event)">
  79. </div>
  80. <!-- iframe showing the search results (closed by default) -->
  81. <div id="MSearchResultsWindow">
  82. <iframe src="javascript:void(0)" frameborder="0"
  83. name="MSearchResults" id="MSearchResults">
  84. </iframe>
  85. </div>
  86. <div class="header">
  87. <div class="summary">
  88. <a href="#pub-types">Public Types</a> &#124;
  89. <a href="#pri-methods">Private Member Functions</a> &#124;
  90. <a href="#pri-attribs">Private Attributes</a> &#124;
  91. <a href="classutl_1_1spi__bb__i-members.html">List of all members</a> </div>
  92. <div class="headertitle">
  93. <div class="title">utl::spi_bb_i&lt; impl_t, CPOL, CPHA, BitOrder &gt; Class Template Reference</div> </div>
  94. </div><!--header-->
  95. <div class="contents">
  96. <p>A bit banking implementation of spi bus inherited from <a class="el" href="classutl_1_1spi__i.html">spi_i</a> base class.
  97. <a href="classutl_1_1spi__bb__i.html#details">More...</a></p>
  98. <p><code>#include &lt;<a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>&gt;</code></p>
  99. <div class="dynheader">
  100. Inheritance diagram for utl::spi_bb_i&lt; impl_t, CPOL, CPHA, BitOrder &gt;:</div>
  101. <div class="dyncontent">
  102. <div class="center">
  103. <img src="classutl_1_1spi__bb__i.png" usemap="#utl::spi_5Fbb_5Fi_3C_20impl_5Ft_2C_20CPOL_2C_20CPHA_2C_20BitOrder_20_3E_map" alt=""/>
  104. <map id="utl::spi_5Fbb_5Fi_3C_20impl_5Ft_2C_20CPOL_2C_20CPHA_2C_20BitOrder_20_3E_map" name="utl::spi_5Fbb_5Fi_3C_20impl_5Ft_2C_20CPOL_2C_20CPHA_2C_20BitOrder_20_3E_map">
  105. <area href="classutl_1_1spi__i.html" alt="utl::spi_i&lt; spi_bb_i&lt; impl_t, CPOL, CPHA, BitOrder &gt; &gt;" shape="rect" coords="0,0,328,24"/>
  106. </map>
  107. </div></div>
  108. <table class="memberdecls">
  109. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  110. Public Types</h2></td></tr>
  111. <tr class="memitem:a86ccf004bf5ccc8b7c73bd0f9e8dbaa7"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a86ccf004bf5ccc8b7c73bd0f9e8dbaa7">type</a> = <a class="el" href="classutl_1_1spi__bb__i.html">spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;</td></tr>
  112. <tr class="memdesc:a86ccf004bf5ccc8b7c73bd0f9e8dbaa7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Export type as identity meta-function. <a href="#a86ccf004bf5ccc8b7c73bd0f9e8dbaa7">More...</a><br /></td></tr>
  113. <tr class="separator:a86ccf004bf5ccc8b7c73bd0f9e8dbaa7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="inherit_header pub_types_classutl_1_1spi__i"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classutl_1_1spi__i')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classutl_1_1spi__i.html">utl::spi_i&lt; spi_bb_i&lt; impl_t, CPOL, CPHA, BitOrder &gt; &gt;</a></td></tr>
  115. <tr class="memitem:aff8ee0a2160cddbb52fce46611a6108f inherit pub_types_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#aff8ee0a2160cddbb52fce46611a6108f">type</a> = <a class="el" href="classutl_1_1spi__i.html">spi_i</a>&lt; <a class="el" href="classutl_1_1spi__bb__i.html">spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt; &gt;</td></tr>
  116. <tr class="memdesc:aff8ee0a2160cddbb52fce46611a6108f inherit pub_types_classutl_1_1spi__i"><td class="mdescLeft">&#160;</td><td class="mdescRight">Export type as identity meta-function. <a href="classutl_1_1spi__i.html#aff8ee0a2160cddbb52fce46611a6108f">More...</a><br /></td></tr>
  117. <tr class="separator:aff8ee0a2160cddbb52fce46611a6108f inherit pub_types_classutl_1_1spi__i"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. </table><table class="memberdecls">
  119. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  120. Protected Member Functions</h2></td></tr>
  121. <tr><td colspan="2"><div class="groupHeader">Object lifetime</div></td></tr>
  122. <tr class="memitem:aeac57567cb7db5ebb73bdd8e1f00cb82"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#aeac57567cb7db5ebb73bdd8e1f00cb82">~spi_bb_i</a> ()=default</td></tr>
  123. <tr class="separator:aeac57567cb7db5ebb73bdd8e1f00cb82"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:a49a61ba9a8e140e45d73e1f634061c6a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a49a61ba9a8e140e45d73e1f634061c6a">spi_bb_i</a> (uint32_t clk) noexcept</td></tr>
  125. <tr class="memdesc:a49a61ba9a8e140e45d73e1f634061c6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">A default constructor. <a href="#a49a61ba9a8e140e45d73e1f634061c6a">More...</a><br /></td></tr>
  126. <tr class="separator:a49a61ba9a8e140e45d73e1f634061c6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="inherit_header pro_methods_classutl_1_1spi__i"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classutl_1_1spi__i')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classutl_1_1spi__i.html">utl::spi_i&lt; spi_bb_i&lt; impl_t, CPOL, CPHA, BitOrder &gt; &gt;</a></td></tr>
  128. <tr class="memitem:ad66605cdf90f6d24cad3dc5ecda94b77 inherit pro_methods_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#ad66605cdf90f6d24cad3dc5ecda94b77">spi_i</a> ()=default</td></tr>
  129. <tr class="memdesc:ad66605cdf90f6d24cad3dc5ecda94b77 inherit pro_methods_classutl_1_1spi__i"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow constructor from derived only. <a href="classutl_1_1spi__i.html#ad66605cdf90f6d24cad3dc5ecda94b77">More...</a><br /></td></tr>
  130. <tr class="separator:ad66605cdf90f6d24cad3dc5ecda94b77 inherit pro_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:a1d6facb9b9adf91a6589fe029325bd55 inherit pro_methods_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#a1d6facb9b9adf91a6589fe029325bd55">spi_i</a> (const <a class="el" href="classutl_1_1spi__i.html#aff8ee0a2160cddbb52fce46611a6108f">type</a> &amp;)=delete</td></tr>
  132. <tr class="memdesc:a1d6facb9b9adf91a6589fe029325bd55 inherit pro_methods_classutl_1_1spi__i"><td class="mdescLeft">&#160;</td><td class="mdescRight">No copies. <a href="classutl_1_1spi__i.html#a1d6facb9b9adf91a6589fe029325bd55">More...</a><br /></td></tr>
  133. <tr class="separator:a1d6facb9b9adf91a6589fe029325bd55 inherit pro_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:ae77cb8be7d648a62a1ad252d829eccfb inherit pro_methods_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#ae77cb8be7d648a62a1ad252d829eccfb">~spi_i</a> ()=default</td></tr>
  135. <tr class="memdesc:ae77cb8be7d648a62a1ad252d829eccfb inherit pro_methods_classutl_1_1spi__i"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow destructor from derived only. <a href="classutl_1_1spi__i.html#ae77cb8be7d648a62a1ad252d829eccfb">More...</a><br /></td></tr>
  136. <tr class="separator:ae77cb8be7d648a62a1ad252d829eccfb inherit pro_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. <tr class="memitem:aa5cf05ce005cb23e6317b3eef70bf4b0 inherit pro_methods_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classutl_1_1spi__i.html#aff8ee0a2160cddbb52fce46611a6108f">type</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#aa5cf05ce005cb23e6317b3eef70bf4b0">operator=</a> (const <a class="el" href="classutl_1_1spi__i.html#aff8ee0a2160cddbb52fce46611a6108f">type</a> &amp;)=delete</td></tr>
  138. <tr class="separator:aa5cf05ce005cb23e6317b3eef70bf4b0 inherit pro_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. </table><table class="memberdecls">
  140. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
  141. Private Member Functions</h2></td></tr>
  142. <tr class="memitem:a33b6ef2f4c26b16ee4e28425ab20e852"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a33b6ef2f4c26b16ee4e28425ab20e852">_CRTP_IMPL</a> (impl_t)</td></tr>
  143. <tr class="separator:a33b6ef2f4c26b16ee4e28425ab20e852"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. <tr><td colspan="2"><div class="groupHeader">Implementation requirements</div></td></tr>
  145. <tr><td colspan="2"><div class="groupText"><p>}</p>
  146. <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>
  147. </div></td></tr>
  148. <tr class="memitem:a3051a59aaeb5b176a175b352cf5f578e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a3051a59aaeb5b176a175b352cf5f578e">MOSI</a> (bool st)</td></tr>
  149. <tr class="memdesc:a3051a59aaeb5b176a175b352cf5f578e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implementers's MOSI pin function. <a href="#a3051a59aaeb5b176a175b352cf5f578e">More...</a><br /></td></tr>
  150. <tr class="separator:a3051a59aaeb5b176a175b352cf5f578e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="memitem:a9a7b908a8976f6efed9dd6e2b294415b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a9a7b908a8976f6efed9dd6e2b294415b">MISO</a> ()</td></tr>
  152. <tr class="memdesc:a9a7b908a8976f6efed9dd6e2b294415b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implementers's MISO pin function. <a href="#a9a7b908a8976f6efed9dd6e2b294415b">More...</a><br /></td></tr>
  153. <tr class="separator:a9a7b908a8976f6efed9dd6e2b294415b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  154. <tr class="memitem:af7afcca54b5ab9871caccb38794bd9d1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#af7afcca54b5ab9871caccb38794bd9d1">SCLK</a> (bool st)</td></tr>
  155. <tr class="memdesc:af7afcca54b5ab9871caccb38794bd9d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implementers's SCLK pin function. <a href="#af7afcca54b5ab9871caccb38794bd9d1">More...</a><br /></td></tr>
  156. <tr class="separator:af7afcca54b5ab9871caccb38794bd9d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  157. <tr class="memitem:a49c41f82754a6e8fa4209423a33a1762"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a49c41f82754a6e8fa4209423a33a1762">delay</a> (uint32_t nsec)</td></tr>
  158. <tr class="separator:a49c41f82754a6e8fa4209423a33a1762"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <tr><td colspan="2"><div class="groupHeader">Implementation of base requirements</div></td></tr>
  160. <tr class="memitem:a4338d3dc65ebe3aff1ec08d0413b3440"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a4338d3dc65ebe3aff1ec08d0413b3440">_clock</a> () const</td></tr>
  161. <tr class="separator:a4338d3dc65ebe3aff1ec08d0413b3440"><td class="memSeparator" colspan="2">&#160;</td></tr>
  162. <tr class="memitem:a90960d777886658afd42243743b3f61a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a90960d777886658afd42243743b3f61a">_clock</a> (uint32_t c)</td></tr>
  163. <tr class="separator:a90960d777886658afd42243743b3f61a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  164. <tr class="memitem:a7431ab56033d58e34ee847d825c99658"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a7431ab56033d58e34ee847d825c99658">_tx_data</a> (<a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> out)</td></tr>
  165. <tr class="separator:a7431ab56033d58e34ee847d825c99658"><td class="memSeparator" colspan="2">&#160;</td></tr>
  166. <tr class="memitem:a9010a066edb4cfa4c549174c87eaf368"><td class="memTemplParams" colspan="2">template&lt;spi::cpha C = CPHA&gt; </td></tr>
  167. <tr class="memitem:a9010a066edb4cfa4c549174c87eaf368"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="namespaceutl_1_1meta.html#a372fe391d9567f66a81091f581e1fa01">meta::enable_if_t</a>&lt;(C==<a class="el" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aa41bc94cbd8eebea13ce0491b2ac11b88">spi::cpha::LOW</a>), <a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a9010a066edb4cfa4c549174c87eaf368">_tx_data_impl</a> (<a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> out)</td></tr>
  168. <tr class="memdesc:a9010a066edb4cfa4c549174c87eaf368"><td class="mdescLeft">&#160;</td><td class="mdescRight">_tx_data implementation for CPHA == LOW Out at preceding clock trailing edge, In at leading clock edge <a href="#a9010a066edb4cfa4c549174c87eaf368">More...</a><br /></td></tr>
  169. <tr class="separator:a9010a066edb4cfa4c549174c87eaf368"><td class="memSeparator" colspan="2">&#160;</td></tr>
  170. <tr class="memitem:a8e00f788f8ef1a31dfd3b1ca130aa16d"><td class="memTemplParams" colspan="2">template&lt;spi::cpha C = CPHA&gt; </td></tr>
  171. <tr class="memitem:a8e00f788f8ef1a31dfd3b1ca130aa16d"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="namespaceutl_1_1meta.html#a372fe391d9567f66a81091f581e1fa01">meta::enable_if_t</a>&lt;(C==<a class="el" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aab89de3b4b81c4facfac906edf29aec8c">spi::cpha::HIGH</a>), <a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a8e00f788f8ef1a31dfd3b1ca130aa16d">_tx_data_impl</a> (<a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> out)</td></tr>
  172. <tr class="memdesc:a8e00f788f8ef1a31dfd3b1ca130aa16d"><td class="mdescLeft">&#160;</td><td class="mdescRight">_tx_data implementation CPHA == HIGH Out at leading clock edge, In at trailing clock edge <a href="#a8e00f788f8ef1a31dfd3b1ca130aa16d">More...</a><br /></td></tr>
  173. <tr class="separator:a8e00f788f8ef1a31dfd3b1ca130aa16d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  174. </table><table class="memberdecls">
  175. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
  176. Private Attributes</h2></td></tr>
  177. <tr class="memitem:aa82efc45adc590f33164edacc1783c20"><td class="memItemLeft" align="right" valign="top">friend&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#aa82efc45adc590f33164edacc1783c20">spi_i&lt; spi_bb_i&lt; impl_t, CPOL, CPHA, BitOrder &gt; &gt;</a></td></tr>
  178. <tr class="memdesc:aa82efc45adc590f33164edacc1783c20"><td class="mdescLeft">&#160;</td><td class="mdescRight">Syntactic sugar to CRTP casting. <a href="#aa82efc45adc590f33164edacc1783c20">More...</a><br /></td></tr>
  179. <tr class="separator:aa82efc45adc590f33164edacc1783c20"><td class="memSeparator" colspan="2">&#160;</td></tr>
  180. <tr><td colspan="2"><div class="groupHeader"></div></td></tr>
  181. <tr class="memitem:a863bf592b1df8f74bcc3b8d76f40c173"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a863bf592b1df8f74bcc3b8d76f40c173">nsec_</a></td></tr>
  182. <tr class="separator:a863bf592b1df8f74bcc3b8d76f40c173"><td class="memSeparator" colspan="2">&#160;</td></tr>
  183. </table><table class="memberdecls">
  184. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
  185. SPI implementation specific functions</h2></td></tr>
  186. <tr class="memitem:a3a9b68907304114573bc7321006fa539"><td class="memItemLeft" align="right" valign="top">static constexpr bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a3a9b68907304114573bc7321006fa539">clkH_</a> {<a class="el" href="classutl_1_1spi__bb__i.html#a8fa5b901ced4ce734409ab4c20a1c1d2">clkHigh</a>()}</td></tr>
  187. <tr class="separator:a3a9b68907304114573bc7321006fa539"><td class="memSeparator" colspan="2">&#160;</td></tr>
  188. <tr class="memitem:a509a5828018f62e2627af67e8c6a32d5"><td class="memItemLeft" align="right" valign="top">static constexpr bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a509a5828018f62e2627af67e8c6a32d5">clkL_</a> {<a class="el" href="classutl_1_1spi__bb__i.html#ae0a17d5879099f6ac92eee4dee59ab0f">clkLow</a>()}</td></tr>
  189. <tr class="separator:a509a5828018f62e2627af67e8c6a32d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  190. <tr class="memitem:a0d017c3bc5c583ad802027914e492b3a"><td class="memTemplParams" colspan="2">template&lt;spi::bitOrder B = BitOrder&gt; </td></tr>
  191. <tr class="memitem:a0d017c3bc5c583ad802027914e492b3a"><td class="memTemplItemLeft" align="right" valign="top">constexpr <a class="el" href="namespaceutl_1_1meta.html#a372fe391d9567f66a81091f581e1fa01">meta::enable_if_t</a>&lt;(B==<a class="el" href="namespaceutl_1_1spi.html#aed6b713381c193c598572ebac0b284cca6db67adee32c3bd4ff03acf3244e1b4b">spi::bitOrder::LSB_First</a>), void &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a0d017c3bc5c583ad802027914e492b3a">shift</a> (<a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> &amp;b)</td></tr>
  192. <tr class="separator:a0d017c3bc5c583ad802027914e492b3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  193. <tr class="memitem:a93d43e3fa8e2112757281e0c20070eb4"><td class="memTemplParams" colspan="2">template&lt;spi::bitOrder B = BitOrder&gt; </td></tr>
  194. <tr class="memitem:a93d43e3fa8e2112757281e0c20070eb4"><td class="memTemplItemLeft" align="right" valign="top">constexpr <a class="el" href="namespaceutl_1_1meta.html#a372fe391d9567f66a81091f581e1fa01">meta::enable_if_t</a>&lt;(B==<a class="el" href="namespaceutl_1_1spi.html#aed6b713381c193c598572ebac0b284cca47bde70fdcc82c8363d16c7137641b79">spi::bitOrder::MSB_First</a>), void &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a93d43e3fa8e2112757281e0c20070eb4">shift</a> (<a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> &amp;b)</td></tr>
  195. <tr class="separator:a93d43e3fa8e2112757281e0c20070eb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  196. <tr class="memitem:a8fa5b901ced4ce734409ab4c20a1c1d2"><td class="memTemplParams" colspan="2">template&lt;spi::cpol C = CPOL&gt; </td></tr>
  197. <tr class="memitem:a8fa5b901ced4ce734409ab4c20a1c1d2"><td class="memTemplItemLeft" align="right" valign="top">static constexpr bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a8fa5b901ced4ce734409ab4c20a1c1d2">clkHigh</a> ()</td></tr>
  198. <tr class="separator:a8fa5b901ced4ce734409ab4c20a1c1d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  199. <tr class="memitem:ae0a17d5879099f6ac92eee4dee59ab0f"><td class="memTemplParams" colspan="2">template&lt;spi::cpol C = CPOL&gt; </td></tr>
  200. <tr class="memitem:ae0a17d5879099f6ac92eee4dee59ab0f"><td class="memTemplItemLeft" align="right" valign="top">static constexpr bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#ae0a17d5879099f6ac92eee4dee59ab0f">clkLow</a> ()</td></tr>
  201. <tr class="separator:ae0a17d5879099f6ac92eee4dee59ab0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  202. </table><table class="memberdecls">
  203. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
  204. Additional Inherited Members</h2></td></tr>
  205. <tr class="inherit_header pub_methods_classutl_1_1spi__i"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classutl_1_1spi__i')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classutl_1_1spi__i.html">utl::spi_i&lt; spi_bb_i&lt; impl_t, CPOL, CPHA, BitOrder &gt; &gt;</a></td></tr>
  206. <tr class="memitem:a24cdd0c5ce4ed45a6c1b88ea43328634 inherit pub_methods_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#a24cdd0c5ce4ed45a6c1b88ea43328634">clock</a> () const</td></tr>
  207. <tr class="separator:a24cdd0c5ce4ed45a6c1b88ea43328634 inherit pub_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2">&#160;</td></tr>
  208. <tr class="memitem:a0ebb46a523ace45fd69950f90f9b3af4 inherit pub_methods_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#a0ebb46a523ace45fd69950f90f9b3af4">clock</a> (uint32_t c)</td></tr>
  209. <tr class="memdesc:a0ebb46a523ace45fd69950f90f9b3af4 inherit pub_methods_classutl_1_1spi__i"><td class="mdescLeft">&#160;</td><td class="mdescRight">set clock frequency of the bus <a href="classutl_1_1spi__i.html#a0ebb46a523ace45fd69950f90f9b3af4">More...</a><br /></td></tr>
  210. <tr class="separator:a0ebb46a523ace45fd69950f90f9b3af4 inherit pub_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2">&#160;</td></tr>
  211. <tr class="memitem:ac8376d88480a992ac47699637e1a29a5 inherit pub_methods_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#ac8376d88480a992ac47699637e1a29a5">tx_data</a> (<a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> out)</td></tr>
  212. <tr class="separator:ac8376d88480a992ac47699637e1a29a5 inherit pub_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2">&#160;</td></tr>
  213. <tr class="memitem:af3e303c2982202261700044d31596248 inherit pub_methods_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceutl.html#a22cbecb50ee5c1032de66133e96cbac6">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#af3e303c2982202261700044d31596248">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)</td></tr>
  214. <tr class="memdesc:af3e303c2982202261700044d31596248 inherit pub_methods_classutl_1_1spi__i"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transmit a number of bytes to the spi bus and read the response. <a href="classutl_1_1spi__i.html#af3e303c2982202261700044d31596248">More...</a><br /></td></tr>
  215. <tr class="separator:af3e303c2982202261700044d31596248 inherit pub_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2">&#160;</td></tr>
  216. <tr class="memitem:a846dead32b91efcb48eed614daf68e8f inherit pub_methods_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#a846dead32b91efcb48eed614daf68e8f">rx_data</a> ()</td></tr>
  217. <tr class="separator:a846dead32b91efcb48eed614daf68e8f inherit pub_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2">&#160;</td></tr>
  218. <tr class="memitem:a2053009da5364ead720aebd7cc537c21 inherit pub_methods_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceutl.html#a22cbecb50ee5c1032de66133e96cbac6">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#a2053009da5364ead720aebd7cc537c21">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)</td></tr>
  219. <tr class="memdesc:a2053009da5364ead720aebd7cc537c21 inherit pub_methods_classutl_1_1spi__i"><td class="mdescLeft">&#160;</td><td class="mdescRight">Receive a number of bytes from the spi bus while transmitting 0xFFs. <a href="classutl_1_1spi__i.html#a2053009da5364ead720aebd7cc537c21">More...</a><br /></td></tr>
  220. <tr class="separator:a2053009da5364ead720aebd7cc537c21 inherit pub_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2">&#160;</td></tr>
  221. </table>
  222. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  223. <div class="textblock"><h3>template&lt;typename impl_t, spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt;<br />
  224. class utl::spi_bb_i&lt; impl_t, CPOL, CPHA, BitOrder &gt;</h3>
  225. <p>A bit banking implementation of spi bus inherited from <a class="el" href="classutl_1_1spi__i.html">spi_i</a> base class. </p>
  226. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classutl_1_1spi__i.html">spi_i</a></dd></dl>
  227. <p>SPI bit banking interface template class using CRTP. Using the private interface we provide the interface from spi_i&lt;impl_t&gt;</p>
  228. <dl class="params"><dt>Parameters</dt><dd>
  229. <table class="params">
  230. <tr><td class="paramname">impl_t</td><td>The CRTP type (the derived/implementation class typename). </td></tr>
  231. <tr><td class="paramname">CPOL</td><td>Clock polarity </td></tr>
  232. <tr><td class="paramname">CPHA</td><td>Clock phase </td></tr>
  233. <tr><td class="paramname">BitOrder</td><td>Data transfer bit order </td></tr>
  234. </table>
  235. </dd>
  236. </dl>
  237. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00056">56</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  238. </div><h2 class="groupheader">Member Typedef Documentation</h2>
  239. <a id="a86ccf004bf5ccc8b7c73bd0f9e8dbaa7"></a>
  240. <h2 class="memtitle"><span class="permalink"><a href="#a86ccf004bf5ccc8b7c73bd0f9e8dbaa7">&#9670;&nbsp;</a></span>type</h2>
  241. <div class="memitem">
  242. <div class="memproto">
  243. <div class="memtemplate">
  244. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  245. <table class="memname">
  246. <tr>
  247. <td class="memname">using <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::<a class="el" href="classutl_1_1spi__bb__i.html#a86ccf004bf5ccc8b7c73bd0f9e8dbaa7">type</a> = <a class="el" href="classutl_1_1spi__bb__i.html">spi_bb_i</a>&lt;impl_t, CPOL, CPHA, BitOrder&gt;</td>
  248. </tr>
  249. </table>
  250. </div><div class="memdoc">
  251. <p>Export type as identity meta-function. </p>
  252. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00060">60</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  253. </div>
  254. </div>
  255. <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  256. <a id="aeac57567cb7db5ebb73bdd8e1f00cb82"></a>
  257. <h2 class="memtitle"><span class="permalink"><a href="#aeac57567cb7db5ebb73bdd8e1f00cb82">&#9670;&nbsp;</a></span>~spi_bb_i()</h2>
  258. <div class="memitem">
  259. <div class="memproto">
  260. <div class="memtemplate">
  261. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  262. <table class="mlabels">
  263. <tr>
  264. <td class="mlabels-left">
  265. <table class="memname">
  266. <tr>
  267. <td class="memname"><a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::~<a class="el" href="classutl_1_1spi__bb__i.html">spi_bb_i</a> </td>
  268. <td>(</td>
  269. <td class="paramname"></td><td>)</td>
  270. <td></td>
  271. </tr>
  272. </table>
  273. </td>
  274. <td class="mlabels-right">
  275. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">default</span></span> </td>
  276. </tr>
  277. </table>
  278. </div><div class="memdoc">
  279. <p>A default destructor, allow destructor from derived only </p>
  280. </div>
  281. </div>
  282. <a id="a49a61ba9a8e140e45d73e1f634061c6a"></a>
  283. <h2 class="memtitle"><span class="permalink"><a href="#a49a61ba9a8e140e45d73e1f634061c6a">&#9670;&nbsp;</a></span>spi_bb_i()</h2>
  284. <div class="memitem">
  285. <div class="memproto">
  286. <div class="memtemplate">
  287. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  288. <table class="mlabels">
  289. <tr>
  290. <td class="mlabels-left">
  291. <table class="memname">
  292. <tr>
  293. <td class="memname"><a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::<a class="el" href="classutl_1_1spi__bb__i.html">spi_bb_i</a> </td>
  294. <td>(</td>
  295. <td class="paramtype">uint32_t&#160;</td>
  296. <td class="paramname"><em>clk</em></td><td>)</td>
  297. <td></td>
  298. </tr>
  299. </table>
  300. </td>
  301. <td class="mlabels-right">
  302. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">noexcept</span></span> </td>
  303. </tr>
  304. </table>
  305. </div><div class="memdoc">
  306. <p>A default constructor. </p>
  307. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00069">69</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  308. </div>
  309. </div>
  310. <h2 class="groupheader">Member Function Documentation</h2>
  311. <a id="a4338d3dc65ebe3aff1ec08d0413b3440"></a>
  312. <h2 class="memtitle"><span class="permalink"><a href="#a4338d3dc65ebe3aff1ec08d0413b3440">&#9670;&nbsp;</a></span>_clock() <span class="overload">[1/2]</span></h2>
  313. <div class="memitem">
  314. <div class="memproto">
  315. <div class="memtemplate">
  316. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  317. <table class="mlabels">
  318. <tr>
  319. <td class="mlabels-left">
  320. <table class="memname">
  321. <tr>
  322. <td class="memname">uint32_t <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::_clock </td>
  323. <td>(</td>
  324. <td class="paramname"></td><td>)</td>
  325. <td> const</td>
  326. </tr>
  327. </table>
  328. </td>
  329. <td class="mlabels-right">
  330. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
  331. </tr>
  332. </table>
  333. </div><div class="memdoc">
  334. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00111">111</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  335. </div>
  336. </div>
  337. <a id="a90960d777886658afd42243743b3f61a"></a>
  338. <h2 class="memtitle"><span class="permalink"><a href="#a90960d777886658afd42243743b3f61a">&#9670;&nbsp;</a></span>_clock() <span class="overload">[2/2]</span></h2>
  339. <div class="memitem">
  340. <div class="memproto">
  341. <div class="memtemplate">
  342. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  343. <table class="mlabels">
  344. <tr>
  345. <td class="mlabels-left">
  346. <table class="memname">
  347. <tr>
  348. <td class="memname">void <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::_clock </td>
  349. <td>(</td>
  350. <td class="paramtype">uint32_t&#160;</td>
  351. <td class="paramname"><em>c</em></td><td>)</td>
  352. <td></td>
  353. </tr>
  354. </table>
  355. </td>
  356. <td class="mlabels-right">
  357. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
  358. </tr>
  359. </table>
  360. </div><div class="memdoc">
  361. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00112">112</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  362. </div>
  363. </div>
  364. <a id="a33b6ef2f4c26b16ee4e28425ab20e852"></a>
  365. <h2 class="memtitle"><span class="permalink"><a href="#a33b6ef2f4c26b16ee4e28425ab20e852">&#9670;&nbsp;</a></span>_CRTP_IMPL()</h2>
  366. <div class="memitem">
  367. <div class="memproto">
  368. <div class="memtemplate">
  369. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  370. <table class="mlabels">
  371. <tr>
  372. <td class="mlabels-left">
  373. <table class="memname">
  374. <tr>
  375. <td class="memname"><a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::_CRTP_IMPL </td>
  376. <td>(</td>
  377. <td class="paramtype">impl_t&#160;</td>
  378. <td class="paramname"></td><td>)</td>
  379. <td></td>
  380. </tr>
  381. </table>
  382. </td>
  383. <td class="mlabels-right">
  384. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  385. </tr>
  386. </table>
  387. </div><div class="memdoc">
  388. </div>
  389. </div>
  390. <a id="a7431ab56033d58e34ee847d825c99658"></a>
  391. <h2 class="memtitle"><span class="permalink"><a href="#a7431ab56033d58e34ee847d825c99658">&#9670;&nbsp;</a></span>_tx_data()</h2>
  392. <div class="memitem">
  393. <div class="memproto">
  394. <div class="memtemplate">
  395. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  396. <table class="mlabels">
  397. <tr>
  398. <td class="mlabels-left">
  399. <table class="memname">
  400. <tr>
  401. <td class="memname"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::_tx_data </td>
  402. <td>(</td>
  403. <td class="paramtype"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a>&#160;</td>
  404. <td class="paramname"><em>out</em></td><td>)</td>
  405. <td></td>
  406. </tr>
  407. </table>
  408. </td>
  409. <td class="mlabels-right">
  410. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
  411. </tr>
  412. </table>
  413. </div><div class="memdoc">
  414. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00113">113</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  415. </div>
  416. </div>
  417. <a id="a9010a066edb4cfa4c549174c87eaf368"></a>
  418. <h2 class="memtitle"><span class="permalink"><a href="#a9010a066edb4cfa4c549174c87eaf368">&#9670;&nbsp;</a></span>_tx_data_impl() <span class="overload">[1/2]</span></h2>
  419. <div class="memitem">
  420. <div class="memproto">
  421. <div class="memtemplate">
  422. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder&gt; </div>
  423. <div class="memtemplate">
  424. template&lt;spi::cpha C&gt; </div>
  425. <table class="mlabels">
  426. <tr>
  427. <td class="mlabels-left">
  428. <table class="memname">
  429. <tr>
  430. <td class="memname"><a class="el" href="namespaceutl_1_1meta.html#a372fe391d9567f66a81091f581e1fa01">meta::enable_if_t</a>&lt;(C==<a class="el" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aa41bc94cbd8eebea13ce0491b2ac11b88">spi::cpha::LOW</a>), <a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> &gt; <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::_tx_data_impl </td>
  431. <td>(</td>
  432. <td class="paramtype"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a>&#160;</td>
  433. <td class="paramname"><em>out</em></td><td>)</td>
  434. <td></td>
  435. </tr>
  436. </table>
  437. </td>
  438. <td class="mlabels-right">
  439. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  440. </tr>
  441. </table>
  442. </div><div class="memdoc">
  443. <p>_tx_data implementation for CPHA == LOW Out at preceding clock trailing edge, In at leading clock edge </p>
  444. <dl class="params"><dt>Parameters</dt><dd>
  445. <table class="params">
  446. <tr><td class="paramname">out</td><td>The byte to send to SPI bus </td></tr>
  447. </table>
  448. </dd>
  449. </dl>
  450. <dl class="section return"><dt>Returns</dt><dd>The byte read from the bus </dd></dl>
  451. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00138">138</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  452. </div>
  453. </div>
  454. <a id="a8e00f788f8ef1a31dfd3b1ca130aa16d"></a>
  455. <h2 class="memtitle"><span class="permalink"><a href="#a8e00f788f8ef1a31dfd3b1ca130aa16d">&#9670;&nbsp;</a></span>_tx_data_impl() <span class="overload">[2/2]</span></h2>
  456. <div class="memitem">
  457. <div class="memproto">
  458. <div class="memtemplate">
  459. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder&gt; </div>
  460. <div class="memtemplate">
  461. template&lt;spi::cpha C&gt; </div>
  462. <table class="mlabels">
  463. <tr>
  464. <td class="mlabels-left">
  465. <table class="memname">
  466. <tr>
  467. <td class="memname"><a class="el" href="namespaceutl_1_1meta.html#a372fe391d9567f66a81091f581e1fa01">meta::enable_if_t</a>&lt;(C==<a class="el" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aab89de3b4b81c4facfac906edf29aec8c">spi::cpha::HIGH</a>), <a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> &gt; <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::_tx_data_impl </td>
  468. <td>(</td>
  469. <td class="paramtype"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a>&#160;</td>
  470. <td class="paramname"><em>out</em></td><td>)</td>
  471. <td></td>
  472. </tr>
  473. </table>
  474. </td>
  475. <td class="mlabels-right">
  476. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  477. </tr>
  478. </table>
  479. </div><div class="memdoc">
  480. <p>_tx_data implementation CPHA == HIGH Out at leading clock edge, In at trailing clock edge </p>
  481. <dl class="params"><dt>Parameters</dt><dd>
  482. <table class="params">
  483. <tr><td class="paramname">out</td><td>The byte to send to SPI bus </td></tr>
  484. </table>
  485. </dd>
  486. </dl>
  487. <dl class="section return"><dt>Returns</dt><dd>The byte read from the bus </dd></dl>
  488. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00162">162</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  489. </div>
  490. </div>
  491. <a id="a8fa5b901ced4ce734409ab4c20a1c1d2"></a>
  492. <h2 class="memtitle"><span class="permalink"><a href="#a8fa5b901ced4ce734409ab4c20a1c1d2">&#9670;&nbsp;</a></span>clkHigh()</h2>
  493. <div class="memitem">
  494. <div class="memproto">
  495. <div class="memtemplate">
  496. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  497. <div class="memtemplate">
  498. template&lt;spi::cpol C = CPOL&gt; </div>
  499. <table class="mlabels">
  500. <tr>
  501. <td class="mlabels-left">
  502. <table class="memname">
  503. <tr>
  504. <td class="memname">static constexpr bool <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::clkHigh </td>
  505. <td>(</td>
  506. <td class="paramname"></td><td>)</td>
  507. <td></td>
  508. </tr>
  509. </table>
  510. </td>
  511. <td class="mlabels-right">
  512. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">private</span></span> </td>
  513. </tr>
  514. </table>
  515. </div><div class="memdoc">
  516. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00081">81</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  517. </div>
  518. </div>
  519. <a id="ae0a17d5879099f6ac92eee4dee59ab0f"></a>
  520. <h2 class="memtitle"><span class="permalink"><a href="#ae0a17d5879099f6ac92eee4dee59ab0f">&#9670;&nbsp;</a></span>clkLow()</h2>
  521. <div class="memitem">
  522. <div class="memproto">
  523. <div class="memtemplate">
  524. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  525. <div class="memtemplate">
  526. template&lt;spi::cpol C = CPOL&gt; </div>
  527. <table class="mlabels">
  528. <tr>
  529. <td class="mlabels-left">
  530. <table class="memname">
  531. <tr>
  532. <td class="memname">static constexpr bool <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::clkLow </td>
  533. <td>(</td>
  534. <td class="paramname"></td><td>)</td>
  535. <td></td>
  536. </tr>
  537. </table>
  538. </td>
  539. <td class="mlabels-right">
  540. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">private</span></span> </td>
  541. </tr>
  542. </table>
  543. </div><div class="memdoc">
  544. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00084">84</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  545. </div>
  546. </div>
  547. <a id="a49c41f82754a6e8fa4209423a33a1762"></a>
  548. <h2 class="memtitle"><span class="permalink"><a href="#a49c41f82754a6e8fa4209423a33a1762">&#9670;&nbsp;</a></span>delay()</h2>
  549. <div class="memitem">
  550. <div class="memproto">
  551. <div class="memtemplate">
  552. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  553. <table class="mlabels">
  554. <tr>
  555. <td class="mlabels-left">
  556. <table class="memname">
  557. <tr>
  558. <td class="memname">void <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::delay </td>
  559. <td>(</td>
  560. <td class="paramtype">uint32_t&#160;</td>
  561. <td class="paramname"><em>nsec</em></td><td>)</td>
  562. <td></td>
  563. </tr>
  564. </table>
  565. </td>
  566. <td class="mlabels-right">
  567. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
  568. </tr>
  569. </table>
  570. </div><div class="memdoc">
  571. <p>Implementers's half period delay function </p>
  572. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00102">102</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  573. </div>
  574. </div>
  575. <a id="a9a7b908a8976f6efed9dd6e2b294415b"></a>
  576. <h2 class="memtitle"><span class="permalink"><a href="#a9a7b908a8976f6efed9dd6e2b294415b">&#9670;&nbsp;</a></span>MISO()</h2>
  577. <div class="memitem">
  578. <div class="memproto">
  579. <div class="memtemplate">
  580. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  581. <table class="mlabels">
  582. <tr>
  583. <td class="mlabels-left">
  584. <table class="memname">
  585. <tr>
  586. <td class="memname">bool <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::MISO </td>
  587. <td>(</td>
  588. <td class="paramname"></td><td>)</td>
  589. <td></td>
  590. </tr>
  591. </table>
  592. </td>
  593. <td class="mlabels-right">
  594. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
  595. </tr>
  596. </table>
  597. </div><div class="memdoc">
  598. <p>Implementers's MISO pin function. </p>
  599. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00100">100</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  600. </div>
  601. </div>
  602. <a id="a3051a59aaeb5b176a175b352cf5f578e"></a>
  603. <h2 class="memtitle"><span class="permalink"><a href="#a3051a59aaeb5b176a175b352cf5f578e">&#9670;&nbsp;</a></span>MOSI()</h2>
  604. <div class="memitem">
  605. <div class="memproto">
  606. <div class="memtemplate">
  607. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  608. <table class="mlabels">
  609. <tr>
  610. <td class="mlabels-left">
  611. <table class="memname">
  612. <tr>
  613. <td class="memname">void <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::MOSI </td>
  614. <td>(</td>
  615. <td class="paramtype">bool&#160;</td>
  616. <td class="paramname"><em>st</em></td><td>)</td>
  617. <td></td>
  618. </tr>
  619. </table>
  620. </td>
  621. <td class="mlabels-right">
  622. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
  623. </tr>
  624. </table>
  625. </div><div class="memdoc">
  626. <p>Implementers's MOSI pin function. </p>
  627. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00099">99</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  628. </div>
  629. </div>
  630. <a id="af7afcca54b5ab9871caccb38794bd9d1"></a>
  631. <h2 class="memtitle"><span class="permalink"><a href="#af7afcca54b5ab9871caccb38794bd9d1">&#9670;&nbsp;</a></span>SCLK()</h2>
  632. <div class="memitem">
  633. <div class="memproto">
  634. <div class="memtemplate">
  635. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  636. <table class="mlabels">
  637. <tr>
  638. <td class="mlabels-left">
  639. <table class="memname">
  640. <tr>
  641. <td class="memname">void <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::SCLK </td>
  642. <td>(</td>
  643. <td class="paramtype">bool&#160;</td>
  644. <td class="paramname"><em>st</em></td><td>)</td>
  645. <td></td>
  646. </tr>
  647. </table>
  648. </td>
  649. <td class="mlabels-right">
  650. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
  651. </tr>
  652. </table>
  653. </div><div class="memdoc">
  654. <p>Implementers's SCLK pin function. </p>
  655. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00101">101</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  656. </div>
  657. </div>
  658. <a id="a0d017c3bc5c583ad802027914e492b3a"></a>
  659. <h2 class="memtitle"><span class="permalink"><a href="#a0d017c3bc5c583ad802027914e492b3a">&#9670;&nbsp;</a></span>shift() <span class="overload">[1/2]</span></h2>
  660. <div class="memitem">
  661. <div class="memproto">
  662. <div class="memtemplate">
  663. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  664. <div class="memtemplate">
  665. template&lt;spi::bitOrder B = BitOrder&gt; </div>
  666. <table class="mlabels">
  667. <tr>
  668. <td class="mlabels-left">
  669. <table class="memname">
  670. <tr>
  671. <td class="memname">constexpr <a class="el" href="namespaceutl_1_1meta.html#a372fe391d9567f66a81091f581e1fa01">meta::enable_if_t</a>&lt;(B == <a class="el" href="namespaceutl_1_1spi.html#aed6b713381c193c598572ebac0b284cca6db67adee32c3bd4ff03acf3244e1b4b">spi::bitOrder::LSB_First</a>), void&gt; <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::shift </td>
  672. <td>(</td>
  673. <td class="paramtype"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> &amp;&#160;</td>
  674. <td class="paramname"><em>b</em></td><td>)</td>
  675. <td></td>
  676. </tr>
  677. </table>
  678. </td>
  679. <td class="mlabels-right">
  680. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
  681. </tr>
  682. </table>
  683. </div><div class="memdoc">
  684. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00078">78</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  685. </div>
  686. </div>
  687. <a id="a93d43e3fa8e2112757281e0c20070eb4"></a>
  688. <h2 class="memtitle"><span class="permalink"><a href="#a93d43e3fa8e2112757281e0c20070eb4">&#9670;&nbsp;</a></span>shift() <span class="overload">[2/2]</span></h2>
  689. <div class="memitem">
  690. <div class="memproto">
  691. <div class="memtemplate">
  692. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  693. <div class="memtemplate">
  694. template&lt;spi::bitOrder B = BitOrder&gt; </div>
  695. <table class="mlabels">
  696. <tr>
  697. <td class="mlabels-left">
  698. <table class="memname">
  699. <tr>
  700. <td class="memname">constexpr <a class="el" href="namespaceutl_1_1meta.html#a372fe391d9567f66a81091f581e1fa01">meta::enable_if_t</a>&lt;(B == <a class="el" href="namespaceutl_1_1spi.html#aed6b713381c193c598572ebac0b284cca47bde70fdcc82c8363d16c7137641b79">spi::bitOrder::MSB_First</a>), void&gt; <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::shift </td>
  701. <td>(</td>
  702. <td class="paramtype"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> &amp;&#160;</td>
  703. <td class="paramname"><em>b</em></td><td>)</td>
  704. <td></td>
  705. </tr>
  706. </table>
  707. </td>
  708. <td class="mlabels-right">
  709. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
  710. </tr>
  711. </table>
  712. </div><div class="memdoc">
  713. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00080">80</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  714. </div>
  715. </div>
  716. <h2 class="groupheader">Member Data Documentation</h2>
  717. <a id="a3a9b68907304114573bc7321006fa539"></a>
  718. <h2 class="memtitle"><span class="permalink"><a href="#a3a9b68907304114573bc7321006fa539">&#9670;&nbsp;</a></span>clkH_</h2>
  719. <div class="memitem">
  720. <div class="memproto">
  721. <div class="memtemplate">
  722. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  723. <table class="mlabels">
  724. <tr>
  725. <td class="mlabels-left">
  726. <table class="memname">
  727. <tr>
  728. <td class="memname">constexpr bool <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::clkH_ {<a class="el" href="classutl_1_1spi__bb__i.html#a8fa5b901ced4ce734409ab4c20a1c1d2">clkHigh</a>()}</td>
  729. </tr>
  730. </table>
  731. </td>
  732. <td class="mlabels-right">
  733. <span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span> </td>
  734. </tr>
  735. </table>
  736. </div><div class="memdoc">
  737. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00087">87</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  738. </div>
  739. </div>
  740. <a id="a509a5828018f62e2627af67e8c6a32d5"></a>
  741. <h2 class="memtitle"><span class="permalink"><a href="#a509a5828018f62e2627af67e8c6a32d5">&#9670;&nbsp;</a></span>clkL_</h2>
  742. <div class="memitem">
  743. <div class="memproto">
  744. <div class="memtemplate">
  745. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  746. <table class="mlabels">
  747. <tr>
  748. <td class="mlabels-left">
  749. <table class="memname">
  750. <tr>
  751. <td class="memname">constexpr bool <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::clkL_ {<a class="el" href="classutl_1_1spi__bb__i.html#ae0a17d5879099f6ac92eee4dee59ab0f">clkLow</a>()}</td>
  752. </tr>
  753. </table>
  754. </td>
  755. <td class="mlabels-right">
  756. <span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span> </td>
  757. </tr>
  758. </table>
  759. </div><div class="memdoc">
  760. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00088">88</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  761. </div>
  762. </div>
  763. <a id="a863bf592b1df8f74bcc3b8d76f40c173"></a>
  764. <h2 class="memtitle"><span class="permalink"><a href="#a863bf592b1df8f74bcc3b8d76f40c173">&#9670;&nbsp;</a></span>nsec_</h2>
  765. <div class="memitem">
  766. <div class="memproto">
  767. <div class="memtemplate">
  768. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  769. <table class="mlabels">
  770. <tr>
  771. <td class="mlabels-left">
  772. <table class="memname">
  773. <tr>
  774. <td class="memname">uint32_t <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::nsec_</td>
  775. </tr>
  776. </table>
  777. </td>
  778. <td class="mlabels-right">
  779. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  780. </tr>
  781. </table>
  782. </div><div class="memdoc">
  783. <p>Data membershalf period of SPI bus </p>
  784. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00124">124</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  785. </div>
  786. </div>
  787. <a id="aa82efc45adc590f33164edacc1783c20"></a>
  788. <h2 class="memtitle"><span class="permalink"><a href="#aa82efc45adc590f33164edacc1783c20">&#9670;&nbsp;</a></span>spi_i&lt; spi_bb_i&lt; impl_t, CPOL, CPHA, BitOrder &gt; &gt;</h2>
  789. <div class="memitem">
  790. <div class="memproto">
  791. <div class="memtemplate">
  792. template&lt;typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First&gt; </div>
  793. <table class="mlabels">
  794. <tr>
  795. <td class="mlabels-left">
  796. <table class="memname">
  797. <tr>
  798. <td class="memname">friend <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt;::<a class="el" href="classutl_1_1spi__i.html">spi_i</a>&lt; <a class="el" href="classutl_1_1spi__bb__i.html">spi_bb_i</a>&lt; impl_t, CPOL, CPHA, BitOrder &gt; &gt;</td>
  799. </tr>
  800. </table>
  801. </td>
  802. <td class="mlabels-right">
  803. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  804. </tr>
  805. </table>
  806. </div><div class="memdoc">
  807. <p>Syntactic sugar to CRTP casting. </p>
  808. <p class="definition">Definition at line <a class="el" href="spi__bb_8h_source.html#l00058">58</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
  809. </div>
  810. </div>
  811. <hr/>The documentation for this class was generated from the following file:<ul>
  812. <li>include/utl/com/<a class="el" href="spi__bb_8h_source.html">spi_bb.h</a></li>
  813. </ul>
  814. </div><!-- contents -->
  815. </div><!-- doc-content -->
  816. <!-- start footer part -->
  817. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  818. <ul>
  819. <li class="navelem"><a class="el" href="namespaceutl.html">utl</a></li><li class="navelem"><a class="el" href="classutl_1_1spi__bb__i.html">spi_bb_i</a></li>
  820. <li class="footer">Generated by
  821. <a href="http://www.doxygen.org/index.html">
  822. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  823. </ul>
  824. </div>
  825. </body>
  826. </html>