Micro template library A library for building device drivers
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 5 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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: include/utl/com/i2c.h File 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('i2c_8h.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="#nested-classes">Classes</a> &#124;
  89. <a href="#namespaces">Namespaces</a> &#124;
  90. <a href="#typedef-members">Typedefs</a> </div>
  91. <div class="headertitle">
  92. <div class="title">i2c.h File Reference</div> </div>
  93. </div><!--header-->
  94. <div class="contents">
  95. <p>An Abstract base class interface for the i2c bus.
  96. <a href="#details">More...</a></p>
  97. <div class="textblock"><code>#include &lt;<a class="el" href="impl_8h_source.html">utl/core/impl.h</a>&gt;</code><br />
  98. <code>#include &lt;<a class="el" href="crtp_8h_source.html">utl/core/crtp.h</a>&gt;</code><br />
  99. <code>#include &lt;<a class="el" href="meta_8h_source.html">utl/meta/meta.h</a>&gt;</code><br />
  100. </div>
  101. <p><a href="i2c_8h_source.html">Go to the source code of this file.</a></p>
  102. <table class="memberdecls">
  103. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
  104. Classes</h2></td></tr>
  105. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1i2c__i.html">utl::i2c_i&lt; impl_t &gt;</a></td></tr>
  106. <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Abstract base class for i2c bus. <a href="classutl_1_1i2c__i.html#details">More...</a><br /></td></tr>
  107. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classutl_1_1i2c__i_3_01virtual__tag_01_4.html">utl::i2c_i&lt; virtual_tag &gt;</a></td></tr>
  109. <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A virtual base class specialization. <a href="classutl_1_1i2c__i_3_01virtual__tag_01_4.html#details">More...</a><br /></td></tr>
  110. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structutl_1_1i2c__i__details_1_1is__i2c__.html">utl::i2c_i_details::is_i2c_&lt; _Tp, typename &gt;</a></td></tr>
  112. <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Primary template to catch any non I2C interface types. <a href="structutl_1_1i2c__i__details_1_1is__i2c__.html#details">More...</a><br /></td></tr>
  113. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structutl_1_1i2c__i__details_1_1is__i2c___3_01___tp_00_01meta_1_1void__t_3_01typename_01___tp_1_1_sequence_00_01void_01_4_01_4.html">utl::i2c_i_details::is_i2c_&lt; _Tp, meta::void_t&lt; typename _Tp::Sequence, void &gt; &gt;</a></td></tr>
  115. <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">template to catch a proper I2C interface type <a href="structutl_1_1i2c__i__details_1_1is__i2c___3_01___tp_00_01meta_1_1void__t_3_01typename_01___tp_1_1_sequence_00_01void_01_4_01_4.html#details">More...</a><br /></td></tr>
  116. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. </table><table class="memberdecls">
  118. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
  119. Namespaces</h2></td></tr>
  120. <tr class="memitem:namespaceutl"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceutl.html">utl</a></td></tr>
  121. <tr class="memdesc:namespaceutl"><td class="mdescLeft">&#160;</td><td class="mdescRight">STL's core language concepts. <br /></td></tr>
  122. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:namespaceutl_1_1i2c__i__details"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1i2c__i__details.html">utl::i2c_i_details</a></td></tr>
  124. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. </table><table class="memberdecls">
  126. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
  127. Typedefs</h2></td></tr>
  128. <tr class="memitem:a81c12a06fe9cf6f643718f9175da8769"><td class="memTemplParams" colspan="2">template&lt;class _Tp &gt; </td></tr>
  129. <tr class="memitem:a81c12a06fe9cf6f643718f9175da8769"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1i2c__i__details.html#a81c12a06fe9cf6f643718f9175da8769">utl::i2c_i_details::try_cclk_t</a> = decltype(declval&lt; const _Tp &gt;().clock())</td></tr>
  130. <tr class="separator:a81c12a06fe9cf6f643718f9175da8769"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:adaf6b9dbc57caeda1a6a85bd17ac6317"><td class="memTemplParams" colspan="2">template&lt;class _Tp &gt; </td></tr>
  132. <tr class="memitem:adaf6b9dbc57caeda1a6a85bd17ac6317"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1i2c__i__details.html#adaf6b9dbc57caeda1a6a85bd17ac6317">utl::i2c_i_details::try_clk_t</a> = decltype(declval&lt; _Tp &gt;().clock(declval&lt; uint32_t &gt;()))</td></tr>
  133. <tr class="separator:adaf6b9dbc57caeda1a6a85bd17ac6317"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:a173335d0a45cba1b159bf33bcefb3a46"><td class="memTemplParams" colspan="2">template&lt;class _Tp &gt; </td></tr>
  135. <tr class="memitem:a173335d0a45cba1b159bf33bcefb3a46"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1i2c__i__details.html#a173335d0a45cba1b159bf33bcefb3a46">utl::i2c_i_details::try_start_t</a> = decltype(declval&lt; _Tp &gt;().start())</td></tr>
  136. <tr class="separator:a173335d0a45cba1b159bf33bcefb3a46"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. <tr class="memitem:a25cbce342478441f05d3a101fcafc02c"><td class="memTemplParams" colspan="2">template&lt;class _Tp &gt; </td></tr>
  138. <tr class="memitem:a25cbce342478441f05d3a101fcafc02c"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1i2c__i__details.html#a25cbce342478441f05d3a101fcafc02c">utl::i2c_i_details::try_stop_t</a> = decltype(declval&lt; _Tp &gt;().stop())</td></tr>
  139. <tr class="separator:a25cbce342478441f05d3a101fcafc02c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. <tr class="memitem:a10de1b351bd683c5435e2db3d682819c"><td class="memTemplParams" colspan="2">template&lt;class _Tp &gt; </td></tr>
  141. <tr class="memitem:a10de1b351bd683c5435e2db3d682819c"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1i2c__i__details.html#a10de1b351bd683c5435e2db3d682819c">utl::i2c_i_details::try_rx_data_t</a> = decltype(declval&lt; _Tp &gt;().rx_data(declval&lt; bool &gt;(), declval&lt; typename _Tp::Sequence &gt;()))</td></tr>
  142. <tr class="separator:a10de1b351bd683c5435e2db3d682819c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. <tr class="memitem:ad8d87a56b12244ba8060f8d27207083f"><td class="memTemplParams" colspan="2">template&lt;class _Tp &gt; </td></tr>
  144. <tr class="memitem:ad8d87a56b12244ba8060f8d27207083f"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1i2c__i__details.html#ad8d87a56b12244ba8060f8d27207083f">utl::i2c_i_details::try_tx_data_t</a> = decltype(declval&lt; _Tp &gt;().tx_data(declval&lt; byte_t &gt;(), declval&lt; typename _Tp::Sequence &gt;()))</td></tr>
  145. <tr class="separator:ad8d87a56b12244ba8060f8d27207083f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. </table>
  147. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  148. <div class="textblock"><p>An Abstract base class interface for the i2c bus. </p>
  149. <p>Copyright (C) 2018 Christos Choutouridis</p>
  150. <p>This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
  151. <p>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</p>
  152. <p>You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </p>
  153. <p class="definition">Definition in file <a class="el" href="i2c_8h_source.html">i2c.h</a>.</p>
  154. </div></div><!-- contents -->
  155. </div><!-- doc-content -->
  156. <!-- start footer part -->
  157. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  158. <ul>
  159. <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_82754f54d9380477ef02477185c1f103.html">utl</a></li><li class="navelem"><a class="el" href="dir_b2ad3c1a6521a4924fa9194d98c323e2.html">com</a></li><li class="navelem"><a class="el" href="i2c_8h.html">i2c.h</a></li>
  160. <li class="footer">Generated by
  161. <a href="http://www.doxygen.org/index.html">
  162. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  163. </ul>
  164. </div>
  165. </body>
  166. </html>