Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

class_soft_s_p_i.html 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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.10"/>
  7. <title>SdFat: SoftSPI&lt; MisoPin, MosiPin, SckPin, Mode &gt; Class Template Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td id="projectalign" style="padding-left: 0.5em;">
  26. <div id="projectname">SdFat
  27. </div>
  28. </td>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </div>
  33. <!-- end header part -->
  34. <!-- Generated by Doxygen 1.8.10 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  41. <li><a href="modules.html"><span>Modules</span></a></li>
  42. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  43. <li><a href="files.html"><span>Files</span></a></li>
  44. <li>
  45. <div id="MSearchBox" class="MSearchBoxInactive">
  46. <span class="left">
  47. <img id="MSearchSelect" src="search/mag_sel.png"
  48. onmouseover="return searchBox.OnSearchSelectShow()"
  49. onmouseout="return searchBox.OnSearchSelectHide()"
  50. alt=""/>
  51. <input type="text" id="MSearchField" value="Search" accesskey="S"
  52. onfocus="searchBox.OnSearchFieldFocus(true)"
  53. onblur="searchBox.OnSearchFieldFocus(false)"
  54. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  55. </span><span class="right">
  56. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  57. </span>
  58. </div>
  59. </li>
  60. </ul>
  61. </div>
  62. <div id="navrow2" class="tabs2">
  63. <ul class="tablist">
  64. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  65. <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
  66. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  67. </ul>
  68. </div>
  69. <!-- window showing the filter options -->
  70. <div id="MSearchSelectWindow"
  71. onmouseover="return searchBox.OnSearchSelectShow()"
  72. onmouseout="return searchBox.OnSearchSelectHide()"
  73. onkeydown="return searchBox.OnSearchSelectKey(event)">
  74. </div>
  75. <!-- iframe showing the search results (closed by default) -->
  76. <div id="MSearchResultsWindow">
  77. <iframe src="javascript:void(0)" frameborder="0"
  78. name="MSearchResults" id="MSearchResults">
  79. </iframe>
  80. </div>
  81. </div><!-- top -->
  82. <div class="header">
  83. <div class="summary">
  84. <a href="#pub-methods">Public Member Functions</a> &#124;
  85. <a href="class_soft_s_p_i-members.html">List of all members</a> </div>
  86. <div class="headertitle">
  87. <div class="title">SoftSPI&lt; MisoPin, MosiPin, SckPin, Mode &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__soft_s_p_i.html">Software SPI</a></div></div> </div>
  88. </div><!--header-->
  89. <div class="contents">
  90. <p>Fast software SPI.
  91. <a href="class_soft_s_p_i.html#details">More...</a></p>
  92. <p><code>#include &lt;SoftSPI.h&gt;</code></p>
  93. <table class="memberdecls">
  94. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  95. Public Member Functions</h2></td></tr>
  96. <tr class="memitem:a8086e47eeb663d943e2281c814af67eb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_soft_s_p_i.html#a8086e47eeb663d943e2281c814af67eb">begin</a> ()</td></tr>
  97. <tr class="separator:a8086e47eeb663d943e2281c814af67eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  98. <tr class="memitem:a30b92c11ed923e4b39bb3492c9a5428d"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_soft_s_p_i.html#a30b92c11ed923e4b39bb3492c9a5428d">receive</a> ()</td></tr>
  99. <tr class="separator:a30b92c11ed923e4b39bb3492c9a5428d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:aec803c1e30f66ccfdf2ca885964e49f1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_soft_s_p_i.html#aec803c1e30f66ccfdf2ca885964e49f1">send</a> (uint8_t data)</td></tr>
  101. <tr class="separator:aec803c1e30f66ccfdf2ca885964e49f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:a519d107f7d6aabfe78260504a6ac6bf5"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_soft_s_p_i.html#a519d107f7d6aabfe78260504a6ac6bf5">transfer</a> (uint8_t txData)</td></tr>
  103. <tr class="separator:a519d107f7d6aabfe78260504a6ac6bf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. </table>
  105. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  106. <div class="textblock"><h3>template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin, uint8_t Mode = 0&gt;<br />
  107. class SoftSPI&lt; MisoPin, MosiPin, SckPin, Mode &gt;</h3>
  108. <p>Fast software SPI. </p>
  109. </div><h2 class="groupheader">Member Function Documentation</h2>
  110. <a class="anchor" id="a8086e47eeb663d943e2281c814af67eb"></a>
  111. <div class="memitem">
  112. <div class="memproto">
  113. <div class="memtemplate">
  114. template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin, uint8_t Mode = 0&gt; </div>
  115. <table class="mlabels">
  116. <tr>
  117. <td class="mlabels-left">
  118. <table class="memname">
  119. <tr>
  120. <td class="memname">void <a class="el" href="class_soft_s_p_i.html">SoftSPI</a>&lt; MisoPin, MosiPin, SckPin, Mode &gt;::begin </td>
  121. <td>(</td>
  122. <td class="paramname"></td><td>)</td>
  123. <td></td>
  124. </tr>
  125. </table>
  126. </td>
  127. <td class="mlabels-right">
  128. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  129. </tr>
  130. </table>
  131. </div><div class="memdoc">
  132. <p>Initialize <a class="el" href="class_soft_s_p_i.html" title="Fast software SPI. ">SoftSPI</a> pins. </p>
  133. </div>
  134. </div>
  135. <a class="anchor" id="a30b92c11ed923e4b39bb3492c9a5428d"></a>
  136. <div class="memitem">
  137. <div class="memproto">
  138. <div class="memtemplate">
  139. template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin, uint8_t Mode = 0&gt; </div>
  140. <table class="mlabels">
  141. <tr>
  142. <td class="mlabels-left">
  143. <table class="memname">
  144. <tr>
  145. <td class="memname">uint8_t <a class="el" href="class_soft_s_p_i.html">SoftSPI</a>&lt; MisoPin, MosiPin, SckPin, Mode &gt;::receive </td>
  146. <td>(</td>
  147. <td class="paramname"></td><td>)</td>
  148. <td></td>
  149. </tr>
  150. </table>
  151. </td>
  152. <td class="mlabels-right">
  153. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  154. </tr>
  155. </table>
  156. </div><div class="memdoc">
  157. <p>Soft SPI receive byte. </p><dl class="section return"><dt>Returns</dt><dd>Data byte received. </dd></dl>
  158. </div>
  159. </div>
  160. <a class="anchor" id="aec803c1e30f66ccfdf2ca885964e49f1"></a>
  161. <div class="memitem">
  162. <div class="memproto">
  163. <div class="memtemplate">
  164. template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin, uint8_t Mode = 0&gt; </div>
  165. <table class="mlabels">
  166. <tr>
  167. <td class="mlabels-left">
  168. <table class="memname">
  169. <tr>
  170. <td class="memname">void <a class="el" href="class_soft_s_p_i.html">SoftSPI</a>&lt; MisoPin, MosiPin, SckPin, Mode &gt;::send </td>
  171. <td>(</td>
  172. <td class="paramtype">uint8_t&#160;</td>
  173. <td class="paramname"><em>data</em></td><td>)</td>
  174. <td></td>
  175. </tr>
  176. </table>
  177. </td>
  178. <td class="mlabels-right">
  179. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  180. </tr>
  181. </table>
  182. </div><div class="memdoc">
  183. <p>Soft SPI send byte. </p><dl class="params"><dt>Parameters</dt><dd>
  184. <table class="params">
  185. <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>Data byte to send. </td></tr>
  186. </table>
  187. </dd>
  188. </dl>
  189. </div>
  190. </div>
  191. <a class="anchor" id="a519d107f7d6aabfe78260504a6ac6bf5"></a>
  192. <div class="memitem">
  193. <div class="memproto">
  194. <div class="memtemplate">
  195. template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin, uint8_t Mode = 0&gt; </div>
  196. <table class="mlabels">
  197. <tr>
  198. <td class="mlabels-left">
  199. <table class="memname">
  200. <tr>
  201. <td class="memname">uint8_t <a class="el" href="class_soft_s_p_i.html">SoftSPI</a>&lt; MisoPin, MosiPin, SckPin, Mode &gt;::transfer </td>
  202. <td>(</td>
  203. <td class="paramtype">uint8_t&#160;</td>
  204. <td class="paramname"><em>txData</em></td><td>)</td>
  205. <td></td>
  206. </tr>
  207. </table>
  208. </td>
  209. <td class="mlabels-right">
  210. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  211. </tr>
  212. </table>
  213. </div><div class="memdoc">
  214. <p>Soft SPI transfer byte. </p><dl class="params"><dt>Parameters</dt><dd>
  215. <table class="params">
  216. <tr><td class="paramdir">[in]</td><td class="paramname">txData</td><td>Data byte to send. </td></tr>
  217. </table>
  218. </dd>
  219. </dl>
  220. <dl class="section return"><dt>Returns</dt><dd>Data byte received. </dd></dl>
  221. </div>
  222. </div>
  223. <hr/>The documentation for this class was generated from the following file:<ul>
  224. <li>Arduino/libraries/SdFat/src/SdSpiCard/<a class="el" href="_soft_s_p_i_8h.html">SoftSPI.h</a></li>
  225. </ul>
  226. </div><!-- contents -->
  227. <!-- start footer part -->
  228. <hr class="footer"/><address class="footer"><small>
  229. Generated on Fri Feb 12 2016 13:43:49 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  230. <img class="footer" src="doxygen.png" alt="doxygen"/>
  231. </a> 1.8.10
  232. </small></address>
  233. </body>
  234. </html>