|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901 |
- <!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::spi_bb_i< impl_t, CPOL, CPHA, BitOrder > 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_1spi__bb__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_1spi__bb__i-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">utl::spi_bb_i< impl_t, CPOL, CPHA, BitOrder > Class Template Reference</div> </div>
- </div><!--header-->
- <div class="contents">
-
- <p>A bit banking implementation of spi bus inherited from <a class="el" href="classutl_1_1spi__i.html">spi_i</a> base class.
- <a href="classutl_1_1spi__bb__i.html#details">More...</a></p>
-
- <p><code>#include <<a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>></code></p>
- <div class="dynheader">
- Inheritance diagram for utl::spi_bb_i< impl_t, CPOL, CPHA, BitOrder >:</div>
- <div class="dyncontent">
- <div class="center">
- <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=""/>
- <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">
- <area href="classutl_1_1spi__i.html" alt="utl::spi_i< spi_bb_i< impl_t, CPOL, CPHA, BitOrder > >" shape="rect" coords="0,0,328,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:a86ccf004bf5ccc8b7c73bd0f9e8dbaa7"><td class="memItemLeft" align="right" valign="top">using </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>< impl_t, CPOL, CPHA, BitOrder ></td></tr>
- <tr class="memdesc:a86ccf004bf5ccc8b7c73bd0f9e8dbaa7"><td class="mdescLeft"> </td><td class="mdescRight">Export type as identity meta-function. <a href="#a86ccf004bf5ccc8b7c73bd0f9e8dbaa7">More...</a><br /></td></tr>
- <tr class="separator:a86ccf004bf5ccc8b7c73bd0f9e8dbaa7"><td class="memSeparator" colspan="2"> </td></tr>
- <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="-"/> Public Types inherited from <a class="el" href="classutl_1_1spi__i.html">utl::spi_i< spi_bb_i< impl_t, CPOL, CPHA, BitOrder > ></a></td></tr>
- <tr class="memitem:aff8ee0a2160cddbb52fce46611a6108f inherit pub_types_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top">using </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>< <a class="el" href="classutl_1_1spi__bb__i.html">spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder > ></td></tr>
- <tr class="memdesc:aff8ee0a2160cddbb52fce46611a6108f inherit pub_types_classutl_1_1spi__i"><td class="mdescLeft"> </td><td class="mdescRight">Export type as identity meta-function. <a href="classutl_1_1spi__i.html#aff8ee0a2160cddbb52fce46611a6108f">More...</a><br /></td></tr>
- <tr class="separator:aff8ee0a2160cddbb52fce46611a6108f inherit pub_types_classutl_1_1spi__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:aeac57567cb7db5ebb73bdd8e1f00cb82"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#aeac57567cb7db5ebb73bdd8e1f00cb82">~spi_bb_i</a> ()=default</td></tr>
- <tr class="separator:aeac57567cb7db5ebb73bdd8e1f00cb82"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a49a61ba9a8e140e45d73e1f634061c6a"><td class="memItemLeft" align="right" valign="top"> </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>
- <tr class="memdesc:a49a61ba9a8e140e45d73e1f634061c6a"><td class="mdescLeft"> </td><td class="mdescRight">A default constructor. <a href="#a49a61ba9a8e140e45d73e1f634061c6a">More...</a><br /></td></tr>
- <tr class="separator:a49a61ba9a8e140e45d73e1f634061c6a"><td class="memSeparator" colspan="2"> </td></tr>
- <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="-"/> Protected Member Functions inherited from <a class="el" href="classutl_1_1spi__i.html">utl::spi_i< spi_bb_i< impl_t, CPOL, CPHA, BitOrder > ></a></td></tr>
- <tr class="memitem:ad66605cdf90f6d24cad3dc5ecda94b77 inherit pro_methods_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#ad66605cdf90f6d24cad3dc5ecda94b77">spi_i</a> ()=default</td></tr>
- <tr class="memdesc:ad66605cdf90f6d24cad3dc5ecda94b77 inherit pro_methods_classutl_1_1spi__i"><td class="mdescLeft"> </td><td class="mdescRight">Allow constructor from derived only. <a href="classutl_1_1spi__i.html#ad66605cdf90f6d24cad3dc5ecda94b77">More...</a><br /></td></tr>
- <tr class="separator:ad66605cdf90f6d24cad3dc5ecda94b77 inherit pro_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1d6facb9b9adf91a6589fe029325bd55 inherit pro_methods_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top"> </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> &)=delete</td></tr>
- <tr class="memdesc:a1d6facb9b9adf91a6589fe029325bd55 inherit pro_methods_classutl_1_1spi__i"><td class="mdescLeft"> </td><td class="mdescRight">No copies. <a href="classutl_1_1spi__i.html#a1d6facb9b9adf91a6589fe029325bd55">More...</a><br /></td></tr>
- <tr class="separator:a1d6facb9b9adf91a6589fe029325bd55 inherit pro_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae77cb8be7d648a62a1ad252d829eccfb inherit pro_methods_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#ae77cb8be7d648a62a1ad252d829eccfb">~spi_i</a> ()=default</td></tr>
- <tr class="memdesc:ae77cb8be7d648a62a1ad252d829eccfb inherit pro_methods_classutl_1_1spi__i"><td class="mdescLeft"> </td><td class="mdescRight">Allow destructor from derived only. <a href="classutl_1_1spi__i.html#ae77cb8be7d648a62a1ad252d829eccfb">More...</a><br /></td></tr>
- <tr class="separator:ae77cb8be7d648a62a1ad252d829eccfb inherit pro_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2"> </td></tr>
- <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> & </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> &)=delete</td></tr>
- <tr class="separator:aa5cf05ce005cb23e6317b3eef70bf4b0 inherit pro_methods_classutl_1_1spi__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:a33b6ef2f4c26b16ee4e28425ab20e852"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a33b6ef2f4c26b16ee4e28425ab20e852">_CRTP_IMPL</a> (impl_t)</td></tr>
- <tr class="separator:a33b6ef2f4c26b16ee4e28425ab20e852"><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"><p>}</p>
- <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:a3051a59aaeb5b176a175b352cf5f578e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a3051a59aaeb5b176a175b352cf5f578e">MOSI</a> (bool st)</td></tr>
- <tr class="memdesc:a3051a59aaeb5b176a175b352cf5f578e"><td class="mdescLeft"> </td><td class="mdescRight">Implementers's MOSI pin function. <a href="#a3051a59aaeb5b176a175b352cf5f578e">More...</a><br /></td></tr>
- <tr class="separator:a3051a59aaeb5b176a175b352cf5f578e"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a9a7b908a8976f6efed9dd6e2b294415b"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a9a7b908a8976f6efed9dd6e2b294415b">MISO</a> ()</td></tr>
- <tr class="memdesc:a9a7b908a8976f6efed9dd6e2b294415b"><td class="mdescLeft"> </td><td class="mdescRight">Implementers's MISO pin function. <a href="#a9a7b908a8976f6efed9dd6e2b294415b">More...</a><br /></td></tr>
- <tr class="separator:a9a7b908a8976f6efed9dd6e2b294415b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af7afcca54b5ab9871caccb38794bd9d1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#af7afcca54b5ab9871caccb38794bd9d1">SCLK</a> (bool st)</td></tr>
- <tr class="memdesc:af7afcca54b5ab9871caccb38794bd9d1"><td class="mdescLeft"> </td><td class="mdescRight">Implementers's SCLK pin function. <a href="#af7afcca54b5ab9871caccb38794bd9d1">More...</a><br /></td></tr>
- <tr class="separator:af7afcca54b5ab9871caccb38794bd9d1"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a49c41f82754a6e8fa4209423a33a1762"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a49c41f82754a6e8fa4209423a33a1762">delay</a> (uint32_t nsec)</td></tr>
- <tr class="separator:a49c41f82754a6e8fa4209423a33a1762"><td class="memSeparator" colspan="2"> </td></tr>
- <tr><td colspan="2"><div class="groupHeader">Implementation of base requirements</div></td></tr>
- <tr class="memitem:a4338d3dc65ebe3aff1ec08d0413b3440"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a4338d3dc65ebe3aff1ec08d0413b3440">_clock</a> () const</td></tr>
- <tr class="separator:a4338d3dc65ebe3aff1ec08d0413b3440"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a90960d777886658afd42243743b3f61a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a90960d777886658afd42243743b3f61a">_clock</a> (uint32_t c)</td></tr>
- <tr class="separator:a90960d777886658afd42243743b3f61a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a7431ab56033d58e34ee847d825c99658"><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_1spi__bb__i.html#a7431ab56033d58e34ee847d825c99658">_tx_data</a> (<a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> out)</td></tr>
- <tr class="separator:a7431ab56033d58e34ee847d825c99658"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a9010a066edb4cfa4c549174c87eaf368"><td class="memTemplParams" colspan="2">template<spi::cpha C = CPHA> </td></tr>
- <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><(C==<a class="el" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aa41bc94cbd8eebea13ce0491b2ac11b88">spi::cpha::LOW</a>), <a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> > </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>
- <tr class="memdesc:a9010a066edb4cfa4c549174c87eaf368"><td class="mdescLeft"> </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>
- <tr class="separator:a9010a066edb4cfa4c549174c87eaf368"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8e00f788f8ef1a31dfd3b1ca130aa16d"><td class="memTemplParams" colspan="2">template<spi::cpha C = CPHA> </td></tr>
- <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><(C==<a class="el" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aab89de3b4b81c4facfac906edf29aec8c">spi::cpha::HIGH</a>), <a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> > </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>
- <tr class="memdesc:a8e00f788f8ef1a31dfd3b1ca130aa16d"><td class="mdescLeft"> </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>
- <tr class="separator:a8e00f788f8ef1a31dfd3b1ca130aa16d"><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:aa82efc45adc590f33164edacc1783c20"><td class="memItemLeft" align="right" valign="top">friend </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#aa82efc45adc590f33164edacc1783c20">spi_i< spi_bb_i< impl_t, CPOL, CPHA, BitOrder > ></a></td></tr>
- <tr class="memdesc:aa82efc45adc590f33164edacc1783c20"><td class="mdescLeft"> </td><td class="mdescRight">Syntactic sugar to CRTP casting. <a href="#aa82efc45adc590f33164edacc1783c20">More...</a><br /></td></tr>
- <tr class="separator:aa82efc45adc590f33164edacc1783c20"><td class="memSeparator" colspan="2"> </td></tr>
- <tr><td colspan="2"><div class="groupHeader"></div></td></tr>
- <tr class="memitem:a863bf592b1df8f74bcc3b8d76f40c173"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a863bf592b1df8f74bcc3b8d76f40c173">nsec_</a></td></tr>
- <tr class="separator:a863bf592b1df8f74bcc3b8d76f40c173"><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>
- SPI implementation specific functions</h2></td></tr>
- <tr class="memitem:a3a9b68907304114573bc7321006fa539"><td class="memItemLeft" align="right" valign="top">static constexpr bool </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>
- <tr class="separator:a3a9b68907304114573bc7321006fa539"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a509a5828018f62e2627af67e8c6a32d5"><td class="memItemLeft" align="right" valign="top">static constexpr bool </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>
- <tr class="separator:a509a5828018f62e2627af67e8c6a32d5"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a0d017c3bc5c583ad802027914e492b3a"><td class="memTemplParams" colspan="2">template<spi::bitOrder B = BitOrder> </td></tr>
- <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><(B==<a class="el" href="namespaceutl_1_1spi.html#aed6b713381c193c598572ebac0b284cca6db67adee32c3bd4ff03acf3244e1b4b">spi::bitOrder::LSB_First</a>), void > </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> &b)</td></tr>
- <tr class="separator:a0d017c3bc5c583ad802027914e492b3a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a93d43e3fa8e2112757281e0c20070eb4"><td class="memTemplParams" colspan="2">template<spi::bitOrder B = BitOrder> </td></tr>
- <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><(B==<a class="el" href="namespaceutl_1_1spi.html#aed6b713381c193c598572ebac0b284cca47bde70fdcc82c8363d16c7137641b79">spi::bitOrder::MSB_First</a>), void > </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> &b)</td></tr>
- <tr class="separator:a93d43e3fa8e2112757281e0c20070eb4"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8fa5b901ced4ce734409ab4c20a1c1d2"><td class="memTemplParams" colspan="2">template<spi::cpol C = CPOL> </td></tr>
- <tr class="memitem:a8fa5b901ced4ce734409ab4c20a1c1d2"><td class="memTemplItemLeft" align="right" valign="top">static constexpr bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#a8fa5b901ced4ce734409ab4c20a1c1d2">clkHigh</a> ()</td></tr>
- <tr class="separator:a8fa5b901ced4ce734409ab4c20a1c1d2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae0a17d5879099f6ac92eee4dee59ab0f"><td class="memTemplParams" colspan="2">template<spi::cpol C = CPOL> </td></tr>
- <tr class="memitem:ae0a17d5879099f6ac92eee4dee59ab0f"><td class="memTemplItemLeft" align="right" valign="top">static constexpr bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__bb__i.html#ae0a17d5879099f6ac92eee4dee59ab0f">clkLow</a> ()</td></tr>
- <tr class="separator:ae0a17d5879099f6ac92eee4dee59ab0f"><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_1spi__i"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classutl_1_1spi__i')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classutl_1_1spi__i.html">utl::spi_i< spi_bb_i< impl_t, CPOL, CPHA, BitOrder > ></a></td></tr>
- <tr class="memitem:a24cdd0c5ce4ed45a6c1b88ea43328634 inherit pub_methods_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#a24cdd0c5ce4ed45a6c1b88ea43328634">clock</a> () const</td></tr>
- <tr class="separator:a24cdd0c5ce4ed45a6c1b88ea43328634 inherit pub_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a0ebb46a523ace45fd69950f90f9b3af4 inherit pub_methods_classutl_1_1spi__i"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#a0ebb46a523ace45fd69950f90f9b3af4">clock</a> (uint32_t c)</td></tr>
- <tr class="memdesc:a0ebb46a523ace45fd69950f90f9b3af4 inherit pub_methods_classutl_1_1spi__i"><td class="mdescLeft"> </td><td class="mdescRight">set clock frequency of the bus <a href="classutl_1_1spi__i.html#a0ebb46a523ace45fd69950f90f9b3af4">More...</a><br /></td></tr>
- <tr class="separator:a0ebb46a523ace45fd69950f90f9b3af4 inherit pub_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2"> </td></tr>
- <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> </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>
- <tr class="separator:ac8376d88480a992ac47699637e1a29a5 inherit pub_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2"> </td></tr>
- <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> </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>
- <tr class="memdesc:af3e303c2982202261700044d31596248 inherit pub_methods_classutl_1_1spi__i"><td class="mdescLeft"> </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>
- <tr class="separator:af3e303c2982202261700044d31596248 inherit pub_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2"> </td></tr>
- <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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1spi__i.html#a846dead32b91efcb48eed614daf68e8f">rx_data</a> ()</td></tr>
- <tr class="separator:a846dead32b91efcb48eed614daf68e8f inherit pub_methods_classutl_1_1spi__i"><td class="memSeparator" colspan="2"> </td></tr>
- <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> </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>
- <tr class="memdesc:a2053009da5364ead720aebd7cc537c21 inherit pub_methods_classutl_1_1spi__i"><td class="mdescLeft"> </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>
- <tr class="separator:a2053009da5364ead720aebd7cc537c21 inherit pub_methods_classutl_1_1spi__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, spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First><br />
- class utl::spi_bb_i< impl_t, CPOL, CPHA, BitOrder ></h3>
-
- <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>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="classutl_1_1spi__i.html">spi_i</a></dd></dl>
- <p>SPI bit banking interface template class using CRTP. Using the private interface we provide the interface from spi_i<impl_t></p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">impl_t</td><td>The CRTP type (the derived/implementation class typename). </td></tr>
- <tr><td class="paramname">CPOL</td><td>Clock polarity </td></tr>
- <tr><td class="paramname">CPHA</td><td>Clock phase </td></tr>
- <tr><td class="paramname">BitOrder</td><td>Data transfer bit order </td></tr>
- </table>
- </dd>
- </dl>
-
- <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>
- </div><h2 class="groupheader">Member Typedef Documentation</h2>
- <a id="a86ccf004bf5ccc8b7c73bd0f9e8dbaa7"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a86ccf004bf5ccc8b7c73bd0f9e8dbaa7">◆ </a></span>type</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <table class="memname">
- <tr>
- <td class="memname">using <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::<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><impl_t, CPOL, CPHA, BitOrder></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="spi__bb_8h_source.html#l00060">60</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.h</a>.</p>
-
- </div>
- </div>
- <h2 class="groupheader">Constructor & Destructor Documentation</h2>
- <a id="aeac57567cb7db5ebb73bdd8e1f00cb82"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aeac57567cb7db5ebb73bdd8e1f00cb82">◆ </a></span>~spi_bb_i()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::~<a class="el" href="classutl_1_1spi__bb__i.html">spi_bb_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>A default destructor, allow destructor from derived only </p>
-
- </div>
- </div>
- <a id="a49a61ba9a8e140e45d73e1f634061c6a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a49a61ba9a8e140e45d73e1f634061c6a">◆ </a></span>spi_bb_i()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::<a class="el" href="classutl_1_1spi__bb__i.html">spi_bb_i</a> </td>
- <td>(</td>
- <td class="paramtype">uint32_t </td>
- <td class="paramname"><em>clk</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">noexcept</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>A default constructor. </p>
-
- <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>
-
- </div>
- </div>
- <h2 class="groupheader">Member Function Documentation</h2>
- <a id="a4338d3dc65ebe3aff1ec08d0413b3440"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a4338d3dc65ebe3aff1ec08d0413b3440">◆ </a></span>_clock() <span class="overload">[1/2]</span></h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">uint32_t <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::_clock </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 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>
-
- </div>
- </div>
- <a id="a90960d777886658afd42243743b3f61a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a90960d777886658afd42243743b3f61a">◆ </a></span>_clock() <span class="overload">[2/2]</span></h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::_clock </td>
- <td>(</td>
- <td class="paramtype">uint32_t </td>
- <td class="paramname"><em>c</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 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>
-
- </div>
- </div>
- <a id="a33b6ef2f4c26b16ee4e28425ab20e852"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a33b6ef2f4c26b16ee4e28425ab20e852">◆ </a></span>_CRTP_IMPL()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::_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="a7431ab56033d58e34ee847d825c99658"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a7431ab56033d58e34ee847d825c99658">◆ </a></span>_tx_data()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </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_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::_tx_data </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> </td>
- <td class="paramname"><em>out</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 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>
-
- </div>
- </div>
- <a id="a9010a066edb4cfa4c549174c87eaf368"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a9010a066edb4cfa4c549174c87eaf368">◆ </a></span>_tx_data_impl() <span class="overload">[1/2]</span></h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder> </div>
- <div class="memtemplate">
- template<spi::cpha C> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="namespaceutl_1_1meta.html#a372fe391d9567f66a81091f581e1fa01">meta::enable_if_t</a><(C==<a class="el" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aa41bc94cbd8eebea13ce0491b2ac11b88">spi::cpha::LOW</a>), <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>< impl_t, CPOL, CPHA, BitOrder >::_tx_data_impl </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> </td>
- <td class="paramname"><em>out</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>_tx_data implementation for CPHA == LOW Out at preceding clock trailing edge, In at leading clock edge </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">out</td><td>The byte to send to SPI bus </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>The byte read from the bus </dd></dl>
-
- <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>
-
- </div>
- </div>
- <a id="a8e00f788f8ef1a31dfd3b1ca130aa16d"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a8e00f788f8ef1a31dfd3b1ca130aa16d">◆ </a></span>_tx_data_impl() <span class="overload">[2/2]</span></h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder> </div>
- <div class="memtemplate">
- template<spi::cpha C> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="namespaceutl_1_1meta.html#a372fe391d9567f66a81091f581e1fa01">meta::enable_if_t</a><(C==<a class="el" href="namespaceutl_1_1spi.html#a89e3e1af5df0b6c37239f7e336969f8aab89de3b4b81c4facfac906edf29aec8c">spi::cpha::HIGH</a>), <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>< impl_t, CPOL, CPHA, BitOrder >::_tx_data_impl </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> </td>
- <td class="paramname"><em>out</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>_tx_data implementation CPHA == HIGH Out at leading clock edge, In at trailing clock edge </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">out</td><td>The byte to send to SPI bus </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>The byte read from the bus </dd></dl>
-
- <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>
-
- </div>
- </div>
- <a id="a8fa5b901ced4ce734409ab4c20a1c1d2"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a8fa5b901ced4ce734409ab4c20a1c1d2">◆ </a></span>clkHigh()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <div class="memtemplate">
- template<spi::cpol C = CPOL> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">static constexpr bool <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::clkHigh </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">private</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <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>
-
- </div>
- </div>
- <a id="ae0a17d5879099f6ac92eee4dee59ab0f"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ae0a17d5879099f6ac92eee4dee59ab0f">◆ </a></span>clkLow()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <div class="memtemplate">
- template<spi::cpol C = CPOL> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">static constexpr bool <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::clkLow </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">private</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <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>
-
- </div>
- </div>
- <a id="a49c41f82754a6e8fa4209423a33a1762"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a49c41f82754a6e8fa4209423a33a1762">◆ </a></span>delay()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::delay </td>
- <td>(</td>
- <td class="paramtype">uint32_t </td>
- <td class="paramname"><em>nsec</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 half period delay function </p>
-
- <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>
-
- </div>
- </div>
- <a id="a9a7b908a8976f6efed9dd6e2b294415b"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a9a7b908a8976f6efed9dd6e2b294415b">◆ </a></span>MISO()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">bool <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::MISO </td>
- <td>(</td>
- <td class="paramname"></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 MISO pin function. </p>
-
- <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>
-
- </div>
- </div>
- <a id="a3051a59aaeb5b176a175b352cf5f578e"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a3051a59aaeb5b176a175b352cf5f578e">◆ </a></span>MOSI()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::MOSI </td>
- <td>(</td>
- <td class="paramtype">bool </td>
- <td class="paramname"><em>st</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 MOSI pin function. </p>
-
- <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>
-
- </div>
- </div>
- <a id="af7afcca54b5ab9871caccb38794bd9d1"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#af7afcca54b5ab9871caccb38794bd9d1">◆ </a></span>SCLK()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::SCLK </td>
- <td>(</td>
- <td class="paramtype">bool </td>
- <td class="paramname"><em>st</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 SCLK pin function. </p>
-
- <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>
-
- </div>
- </div>
- <a id="a0d017c3bc5c583ad802027914e492b3a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a0d017c3bc5c583ad802027914e492b3a">◆ </a></span>shift() <span class="overload">[1/2]</span></h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <div class="memtemplate">
- template<spi::bitOrder B = BitOrder> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">constexpr <a class="el" href="namespaceutl_1_1meta.html#a372fe391d9567f66a81091f581e1fa01">meta::enable_if_t</a><(B == <a class="el" href="namespaceutl_1_1spi.html#aed6b713381c193c598572ebac0b284cca6db67adee32c3bd4ff03acf3244e1b4b">spi::bitOrder::LSB_First</a>), void> <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::shift </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> & </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 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>
-
- </div>
- </div>
- <a id="a93d43e3fa8e2112757281e0c20070eb4"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a93d43e3fa8e2112757281e0c20070eb4">◆ </a></span>shift() <span class="overload">[2/2]</span></h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <div class="memtemplate">
- template<spi::bitOrder B = BitOrder> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">constexpr <a class="el" href="namespaceutl_1_1meta.html#a372fe391d9567f66a81091f581e1fa01">meta::enable_if_t</a><(B == <a class="el" href="namespaceutl_1_1spi.html#aed6b713381c193c598572ebac0b284cca47bde70fdcc82c8363d16c7137641b79">spi::bitOrder::MSB_First</a>), void> <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::shift </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="namespaceutl.html#a1427cb5a2b13313147a902173b91e3c1">byte_t</a> & </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 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>
-
- </div>
- </div>
- <h2 class="groupheader">Member Data Documentation</h2>
- <a id="a3a9b68907304114573bc7321006fa539"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a3a9b68907304114573bc7321006fa539">◆ </a></span>clkH_</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">constexpr bool <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::clkH_ {<a class="el" href="classutl_1_1spi__bb__i.html#a8fa5b901ced4ce734409ab4c20a1c1d2">clkHigh</a>()}</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <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>
-
- </div>
- </div>
- <a id="a509a5828018f62e2627af67e8c6a32d5"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a509a5828018f62e2627af67e8c6a32d5">◆ </a></span>clkL_</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">constexpr bool <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::clkL_ {<a class="el" href="classutl_1_1spi__bb__i.html#ae0a17d5879099f6ac92eee4dee59ab0f">clkLow</a>()}</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <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>
-
- </div>
- </div>
- <a id="a863bf592b1df8f74bcc3b8d76f40c173"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a863bf592b1df8f74bcc3b8d76f40c173">◆ </a></span>nsec_</h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">uint32_t <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::nsec_</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>Data membershalf period of SPI bus </p>
-
- <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>
-
- </div>
- </div>
- <a id="aa82efc45adc590f33164edacc1783c20"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aa82efc45adc590f33164edacc1783c20">◆ </a></span>spi_i< spi_bb_i< impl_t, CPOL, CPHA, BitOrder > ></h2>
-
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename impl_t , spi::cpol CPOL, spi::cpha CPHA, spi::bitOrder BitOrder = spi::bitOrder::MSB_First> </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">friend <a class="el" href="classutl_1_1spi__bb__i.html">utl::spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder >::<a class="el" href="classutl_1_1spi__i.html">spi_i</a>< <a class="el" href="classutl_1_1spi__bb__i.html">spi_bb_i</a>< impl_t, CPOL, CPHA, BitOrder > ></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="spi__bb_8h_source.html#l00058">58</a> of file <a class="el" href="spi__bb_8h_source.html">spi_bb.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="spi__bb_8h_source.html">spi_bb.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_1spi__bb__i.html">spi_bb_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>
|