No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

378 líneas
15KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.16"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>SdFat: SdSoftSpiDriver Class 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="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">SdFat
  25. </div>
  26. </td>
  27. </tr>
  28. </tbody>
  29. </table>
  30. </div>
  31. <!-- end header part -->
  32. <!-- Generated by Doxygen 1.8.16 -->
  33. <script type="text/javascript">
  34. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  35. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  36. /* @license-end */
  37. </script>
  38. <script type="text/javascript" src="menudata.js"></script>
  39. <script type="text/javascript" src="menu.js"></script>
  40. <script type="text/javascript">
  41. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  42. $(function() {
  43. initMenu('',true,false,'search.php','Search');
  44. $(document).ready(function() { init_search(); });
  45. });
  46. /* @license-end */</script>
  47. <div id="main-nav"></div>
  48. <!-- window showing the filter options -->
  49. <div id="MSearchSelectWindow"
  50. onmouseover="return searchBox.OnSearchSelectShow()"
  51. onmouseout="return searchBox.OnSearchSelectHide()"
  52. onkeydown="return searchBox.OnSearchSelectKey(event)">
  53. </div>
  54. <!-- iframe showing the search results (closed by default) -->
  55. <div id="MSearchResultsWindow">
  56. <iframe src="javascript:void(0)" frameborder="0"
  57. name="MSearchResults" id="MSearchResults">
  58. </iframe>
  59. </div>
  60. </div><!-- top -->
  61. <div class="header">
  62. <div class="summary">
  63. <a href="#pub-methods">Public Member Functions</a> &#124;
  64. <a href="class_sd_soft_spi_driver-members.html">List of all members</a> </div>
  65. <div class="headertitle">
  66. <div class="title">SdSoftSpiDriver Class Reference</div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <p>Class for <a class="el" href="class_sd_soft_spi_driver.html" title="Class for SdSoftSpiDriver.">SdSoftSpiDriver</a>.
  70. <a href="class_sd_soft_spi_driver.html#details">More...</a></p>
  71. <p><code>#include &lt;SdSpiSoftDriver.h&gt;</code></p>
  72. <table class="memberdecls">
  73. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  74. Public Member Functions</h2></td></tr>
  75. <tr class="memitem:a00c83e2e447cf1dc9545f086eec3eec7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#a00c83e2e447cf1dc9545f086eec3eec7">activate</a> ()</td></tr>
  76. <tr class="separator:a00c83e2e447cf1dc9545f086eec3eec7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  77. <tr class="memitem:ac06e39dad19de460becc8db68fafabe8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#ac06e39dad19de460becc8db68fafabe8">begin</a> (<a class="el" href="class_sd_spi_config.html">SdSpiConfig</a> spiConfig)</td></tr>
  78. <tr class="separator:ac06e39dad19de460becc8db68fafabe8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  79. <tr class="memitem:a0966b91ab325a2e8d63f0d83b49d2bde"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#a0966b91ab325a2e8d63f0d83b49d2bde">deactivate</a> ()</td></tr>
  80. <tr class="separator:a0966b91ab325a2e8d63f0d83b49d2bde"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:a6087777d4ba85d35bf0dad85a6863e9a"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#a6087777d4ba85d35bf0dad85a6863e9a">receive</a> ()</td></tr>
  82. <tr class="separator:a6087777d4ba85d35bf0dad85a6863e9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  83. <tr class="memitem:a732a060b0755ab03c46e29ce6d615df3"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#a732a060b0755ab03c46e29ce6d615df3">receive</a> (uint8_t *buf, size_t count)</td></tr>
  84. <tr class="separator:a732a060b0755ab03c46e29ce6d615df3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  85. <tr class="memitem:a88323135368f9cb967b62db70a9edd0c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#a88323135368f9cb967b62db70a9edd0c">send</a> (const uint8_t *buf, size_t count)</td></tr>
  86. <tr class="separator:a88323135368f9cb967b62db70a9edd0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:a93bf852d7334dd61b48b7d89e72556d9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#a93bf852d7334dd61b48b7d89e72556d9">send</a> (uint8_t data)</td></tr>
  88. <tr class="separator:a93bf852d7334dd61b48b7d89e72556d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  89. <tr class="memitem:a698ce9d995a0067dff811ccecf05aea5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#a698ce9d995a0067dff811ccecf05aea5">setSckSpeed</a> (uint32_t maxSck)</td></tr>
  90. <tr class="separator:a698ce9d995a0067dff811ccecf05aea5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. </table>
  92. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  93. <div class="textblock"><p>Class for <a class="el" href="class_sd_soft_spi_driver.html" title="Class for SdSoftSpiDriver.">SdSoftSpiDriver</a>. </p>
  94. </div><h2 class="groupheader">Member Function Documentation</h2>
  95. <a id="a00c83e2e447cf1dc9545f086eec3eec7"></a>
  96. <h2 class="memtitle"><span class="permalink"><a href="#a00c83e2e447cf1dc9545f086eec3eec7">&#9670;&nbsp;</a></span>activate()</h2>
  97. <div class="memitem">
  98. <div class="memproto">
  99. <table class="mlabels">
  100. <tr>
  101. <td class="mlabels-left">
  102. <table class="memname">
  103. <tr>
  104. <td class="memname">void SdSoftSpiDriver::activate </td>
  105. <td>(</td>
  106. <td class="paramname"></td><td>)</td>
  107. <td></td>
  108. </tr>
  109. </table>
  110. </td>
  111. <td class="mlabels-right">
  112. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  113. </tr>
  114. </table>
  115. </div><div class="memdoc">
  116. <p>Activate SPI hardware. </p>
  117. </div>
  118. </div>
  119. <a id="ac06e39dad19de460becc8db68fafabe8"></a>
  120. <h2 class="memtitle"><span class="permalink"><a href="#ac06e39dad19de460becc8db68fafabe8">&#9670;&nbsp;</a></span>begin()</h2>
  121. <div class="memitem">
  122. <div class="memproto">
  123. <table class="mlabels">
  124. <tr>
  125. <td class="mlabels-left">
  126. <table class="memname">
  127. <tr>
  128. <td class="memname">void SdSoftSpiDriver::begin </td>
  129. <td>(</td>
  130. <td class="paramtype"><a class="el" href="class_sd_spi_config.html">SdSpiConfig</a>&#160;</td>
  131. <td class="paramname"><em>spiConfig</em></td><td>)</td>
  132. <td></td>
  133. </tr>
  134. </table>
  135. </td>
  136. <td class="mlabels-right">
  137. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  138. </tr>
  139. </table>
  140. </div><div class="memdoc">
  141. <p>Initialize the SPI bus.</p>
  142. <dl class="params"><dt>Parameters</dt><dd>
  143. <table class="params">
  144. <tr><td class="paramdir">[in]</td><td class="paramname">spiConfig</td><td>SD card configuration. </td></tr>
  145. </table>
  146. </dd>
  147. </dl>
  148. </div>
  149. </div>
  150. <a id="a0966b91ab325a2e8d63f0d83b49d2bde"></a>
  151. <h2 class="memtitle"><span class="permalink"><a href="#a0966b91ab325a2e8d63f0d83b49d2bde">&#9670;&nbsp;</a></span>deactivate()</h2>
  152. <div class="memitem">
  153. <div class="memproto">
  154. <table class="mlabels">
  155. <tr>
  156. <td class="mlabels-left">
  157. <table class="memname">
  158. <tr>
  159. <td class="memname">void SdSoftSpiDriver::deactivate </td>
  160. <td>(</td>
  161. <td class="paramname"></td><td>)</td>
  162. <td></td>
  163. </tr>
  164. </table>
  165. </td>
  166. <td class="mlabels-right">
  167. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  168. </tr>
  169. </table>
  170. </div><div class="memdoc">
  171. <p>Deactivate SPI hardware. </p>
  172. </div>
  173. </div>
  174. <a id="a6087777d4ba85d35bf0dad85a6863e9a"></a>
  175. <h2 class="memtitle"><span class="permalink"><a href="#a6087777d4ba85d35bf0dad85a6863e9a">&#9670;&nbsp;</a></span>receive() <span class="overload">[1/2]</span></h2>
  176. <div class="memitem">
  177. <div class="memproto">
  178. <table class="mlabels">
  179. <tr>
  180. <td class="mlabels-left">
  181. <table class="memname">
  182. <tr>
  183. <td class="memname">uint8_t SdSoftSpiDriver::receive </td>
  184. <td>(</td>
  185. <td class="paramname"></td><td>)</td>
  186. <td></td>
  187. </tr>
  188. </table>
  189. </td>
  190. <td class="mlabels-right">
  191. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  192. </tr>
  193. </table>
  194. </div><div class="memdoc">
  195. <p>Receive a byte.</p>
  196. <dl class="section return"><dt>Returns</dt><dd>The byte. </dd></dl>
  197. </div>
  198. </div>
  199. <a id="a732a060b0755ab03c46e29ce6d615df3"></a>
  200. <h2 class="memtitle"><span class="permalink"><a href="#a732a060b0755ab03c46e29ce6d615df3">&#9670;&nbsp;</a></span>receive() <span class="overload">[2/2]</span></h2>
  201. <div class="memitem">
  202. <div class="memproto">
  203. <table class="mlabels">
  204. <tr>
  205. <td class="mlabels-left">
  206. <table class="memname">
  207. <tr>
  208. <td class="memname">uint8_t SdSoftSpiDriver::receive </td>
  209. <td>(</td>
  210. <td class="paramtype">uint8_t *&#160;</td>
  211. <td class="paramname"><em>buf</em>, </td>
  212. </tr>
  213. <tr>
  214. <td class="paramkey"></td>
  215. <td></td>
  216. <td class="paramtype">size_t&#160;</td>
  217. <td class="paramname"><em>count</em>&#160;</td>
  218. </tr>
  219. <tr>
  220. <td></td>
  221. <td>)</td>
  222. <td></td><td></td>
  223. </tr>
  224. </table>
  225. </td>
  226. <td class="mlabels-right">
  227. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  228. </tr>
  229. </table>
  230. </div><div class="memdoc">
  231. <p>Receive multiple bytes.</p>
  232. <dl class="params"><dt>Parameters</dt><dd>
  233. <table class="params">
  234. <tr><td class="paramdir">[out]</td><td class="paramname">buf</td><td>Buffer to receive the data. </td></tr>
  235. <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>Number of bytes to receive.</td></tr>
  236. </table>
  237. </dd>
  238. </dl>
  239. <dl class="section return"><dt>Returns</dt><dd>Zero for no error or nonzero error code. </dd></dl>
  240. </div>
  241. </div>
  242. <a id="a88323135368f9cb967b62db70a9edd0c"></a>
  243. <h2 class="memtitle"><span class="permalink"><a href="#a88323135368f9cb967b62db70a9edd0c">&#9670;&nbsp;</a></span>send() <span class="overload">[1/2]</span></h2>
  244. <div class="memitem">
  245. <div class="memproto">
  246. <table class="mlabels">
  247. <tr>
  248. <td class="mlabels-left">
  249. <table class="memname">
  250. <tr>
  251. <td class="memname">void SdSoftSpiDriver::send </td>
  252. <td>(</td>
  253. <td class="paramtype">const uint8_t *&#160;</td>
  254. <td class="paramname"><em>buf</em>, </td>
  255. </tr>
  256. <tr>
  257. <td class="paramkey"></td>
  258. <td></td>
  259. <td class="paramtype">size_t&#160;</td>
  260. <td class="paramname"><em>count</em>&#160;</td>
  261. </tr>
  262. <tr>
  263. <td></td>
  264. <td>)</td>
  265. <td></td><td></td>
  266. </tr>
  267. </table>
  268. </td>
  269. <td class="mlabels-right">
  270. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  271. </tr>
  272. </table>
  273. </div><div class="memdoc">
  274. <p>Send multiple bytes.</p>
  275. <dl class="params"><dt>Parameters</dt><dd>
  276. <table class="params">
  277. <tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>Buffer for data to be sent. </td></tr>
  278. <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>Number of bytes to send. </td></tr>
  279. </table>
  280. </dd>
  281. </dl>
  282. </div>
  283. </div>
  284. <a id="a93bf852d7334dd61b48b7d89e72556d9"></a>
  285. <h2 class="memtitle"><span class="permalink"><a href="#a93bf852d7334dd61b48b7d89e72556d9">&#9670;&nbsp;</a></span>send() <span class="overload">[2/2]</span></h2>
  286. <div class="memitem">
  287. <div class="memproto">
  288. <table class="mlabels">
  289. <tr>
  290. <td class="mlabels-left">
  291. <table class="memname">
  292. <tr>
  293. <td class="memname">void SdSoftSpiDriver::send </td>
  294. <td>(</td>
  295. <td class="paramtype">uint8_t&#160;</td>
  296. <td class="paramname"><em>data</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> </td>
  303. </tr>
  304. </table>
  305. </div><div class="memdoc">
  306. <p>Send a byte.</p>
  307. <dl class="params"><dt>Parameters</dt><dd>
  308. <table class="params">
  309. <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>Byte to send </td></tr>
  310. </table>
  311. </dd>
  312. </dl>
  313. </div>
  314. </div>
  315. <a id="a698ce9d995a0067dff811ccecf05aea5"></a>
  316. <h2 class="memtitle"><span class="permalink"><a href="#a698ce9d995a0067dff811ccecf05aea5">&#9670;&nbsp;</a></span>setSckSpeed()</h2>
  317. <div class="memitem">
  318. <div class="memproto">
  319. <table class="mlabels">
  320. <tr>
  321. <td class="mlabels-left">
  322. <table class="memname">
  323. <tr>
  324. <td class="memname">void SdSoftSpiDriver::setSckSpeed </td>
  325. <td>(</td>
  326. <td class="paramtype">uint32_t&#160;</td>
  327. <td class="paramname"><em>maxSck</em></td><td>)</td>
  328. <td></td>
  329. </tr>
  330. </table>
  331. </td>
  332. <td class="mlabels-right">
  333. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  334. </tr>
  335. </table>
  336. </div><div class="memdoc">
  337. <p>Save high speed SPISettings after SD initialization.</p>
  338. <dl class="params"><dt>Parameters</dt><dd>
  339. <table class="params">
  340. <tr><td class="paramdir">[in]</td><td class="paramname">maxSck</td><td>Maximum SCK frequency. </td></tr>
  341. </table>
  342. </dd>
  343. </dl>
  344. </div>
  345. </div>
  346. <hr/>The documentation for this class was generated from the following file:<ul>
  347. <li>ArduinoSdFat/libraries/SdFat/src/SpiDriver/<a class="el" href="_sd_spi_soft_driver_8h.html">SdSpiSoftDriver.h</a></li>
  348. </ul>
  349. </div><!-- contents -->
  350. <!-- start footer part -->
  351. <hr class="footer"/><address class="footer"><small>
  352. Generated on Fri Dec 6 2019 09:45:12 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  353. <img class="footer" src="doxygen.png" alt="doxygen"/>
  354. </a> 1.8.16
  355. </small></address>
  356. </body>
  357. </html>