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.

class_sd_spi_soft_driver.html 21KB

pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  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: SdSpiSoftDriver&lt; MisoPin, MosiPin, SckPin &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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
  42. <li><a href="files.html"><span>Files</span></a></li>
  43. <li>
  44. <div id="MSearchBox" class="MSearchBoxInactive">
  45. <span class="left">
  46. <img id="MSearchSelect" src="search/mag_sel.png"
  47. onmouseover="return searchBox.OnSearchSelectShow()"
  48. onmouseout="return searchBox.OnSearchSelectHide()"
  49. alt=""/>
  50. <input type="text" id="MSearchField" value="Search" accesskey="S"
  51. onfocus="searchBox.OnSearchFieldFocus(true)"
  52. onblur="searchBox.OnSearchFieldFocus(false)"
  53. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  54. </span><span class="right">
  55. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  56. </span>
  57. </div>
  58. </li>
  59. </ul>
  60. </div>
  61. <div id="navrow2" class="tabs2">
  62. <ul class="tablist">
  63. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  64. <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
  65. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  66. </ul>
  67. </div>
  68. <!-- window showing the filter options -->
  69. <div id="MSearchSelectWindow"
  70. onmouseover="return searchBox.OnSearchSelectShow()"
  71. onmouseout="return searchBox.OnSearchSelectHide()"
  72. onkeydown="return searchBox.OnSearchSelectKey(event)">
  73. </div>
  74. <!-- iframe showing the search results (closed by default) -->
  75. <div id="MSearchResultsWindow">
  76. <iframe src="javascript:void(0)" frameborder="0"
  77. name="MSearchResults" id="MSearchResults">
  78. </iframe>
  79. </div>
  80. </div><!-- top -->
  81. <div class="header">
  82. <div class="summary">
  83. <a href="#pub-methods">Public Member Functions</a> &#124;
  84. <a href="class_sd_spi_soft_driver-members.html">List of all members</a> </div>
  85. <div class="headertitle">
  86. <div class="title">SdSpiSoftDriver&lt; MisoPin, MosiPin, SckPin &gt; Class Template Reference</div> </div>
  87. </div><!--header-->
  88. <div class="contents">
  89. <p>Software SPI class for access to SD and SDHC flash memory cards.
  90. <a href="class_sd_spi_soft_driver.html#details">More...</a></p>
  91. <p><code>#include &lt;SdSpiDriver.h&gt;</code></p>
  92. <div class="dynheader">
  93. Inheritance diagram for SdSpiSoftDriver&lt; MisoPin, MosiPin, SckPin &gt;:</div>
  94. <div class="dyncontent">
  95. <div class="center"><img src="class_sd_spi_soft_driver__inherit__graph.png" border="0" usemap="#_sd_spi_soft_driver_3_01_miso_pin_00_01_mosi_pin_00_01_sck_pin_01_4_inherit__map" alt="Inheritance graph"/></div>
  96. <map name="_sd_spi_soft_driver_3_01_miso_pin_00_01_mosi_pin_00_01_sck_pin_01_4_inherit__map" id="_sd_spi_soft_driver_3_01_miso_pin_00_01_mosi_pin_00_01_sck_pin_01_4_inherit__map">
  97. <area shape="rect" id="node2" href="class_sd_spi_base_driver.html" title="SPI base driver. " alt="" coords="33,5,152,32"/>
  98. </map>
  99. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  100. <div class="dynheader">
  101. Collaboration diagram for SdSpiSoftDriver&lt; MisoPin, MosiPin, SckPin &gt;:</div>
  102. <div class="dyncontent">
  103. <div class="center"><img src="class_sd_spi_soft_driver__coll__graph.png" border="0" usemap="#_sd_spi_soft_driver_3_01_miso_pin_00_01_mosi_pin_00_01_sck_pin_01_4_coll__map" alt="Collaboration graph"/></div>
  104. <map name="_sd_spi_soft_driver_3_01_miso_pin_00_01_mosi_pin_00_01_sck_pin_01_4_coll__map" id="_sd_spi_soft_driver_3_01_miso_pin_00_01_mosi_pin_00_01_sck_pin_01_4_coll__map">
  105. <area shape="rect" id="node2" href="class_sd_spi_base_driver.html" title="SPI base driver. " alt="" coords="33,5,152,32"/>
  106. </map>
  107. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  108. <table class="memberdecls">
  109. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  110. Public Member Functions</h2></td></tr>
  111. <tr class="memitem:a10c2eb17cb8b467067bc767a1e59859f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_spi_soft_driver.html#a10c2eb17cb8b467067bc767a1e59859f">activate</a> ()</td></tr>
  112. <tr class="separator:a10c2eb17cb8b467067bc767a1e59859f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="memitem:a0c016f86abca805d8716052bab181660"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_spi_soft_driver.html#a0c016f86abca805d8716052bab181660">begin</a> (uint8_t csPin)</td></tr>
  114. <tr class="separator:a0c016f86abca805d8716052bab181660"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:a03b5da2d9d0196212f17afbbc9bf784a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_spi_soft_driver.html#a03b5da2d9d0196212f17afbbc9bf784a">deactivate</a> ()</td></tr>
  116. <tr class="separator:a03b5da2d9d0196212f17afbbc9bf784a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:a814d39a4eee44bd679801228595893b9"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_spi_soft_driver.html#a814d39a4eee44bd679801228595893b9">receive</a> ()</td></tr>
  118. <tr class="separator:a814d39a4eee44bd679801228595893b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:ab068f18eeb629fe8a8fbeded9f7da760"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_spi_soft_driver.html#ab068f18eeb629fe8a8fbeded9f7da760">receive</a> (uint8_t *buf, size_t n)</td></tr>
  120. <tr class="separator:ab068f18eeb629fe8a8fbeded9f7da760"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a9fc0ff9c851ef7d8cd3cea54827a901c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_spi_soft_driver.html#a9fc0ff9c851ef7d8cd3cea54827a901c">select</a> ()</td></tr>
  122. <tr class="separator:a9fc0ff9c851ef7d8cd3cea54827a901c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:a661b50258ff50405b49c75bca89dfd2d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_spi_soft_driver.html#a661b50258ff50405b49c75bca89dfd2d">send</a> (uint8_t data)</td></tr>
  124. <tr class="separator:a661b50258ff50405b49c75bca89dfd2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:ad0d391da39fb784a211d7607b2ea1480"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_spi_soft_driver.html#ad0d391da39fb784a211d7607b2ea1480">send</a> (const uint8_t *buf, size_t n)</td></tr>
  126. <tr class="separator:ad0d391da39fb784a211d7607b2ea1480"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:a8ea0646dcb016fa23bc192157255da26"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_spi_soft_driver.html#a8ea0646dcb016fa23bc192157255da26">setSpiSettings</a> (SPISettings spiSettings)</td></tr>
  128. <tr class="separator:a8ea0646dcb016fa23bc192157255da26"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:ab2eaea746989c3762e64bb3ef4faeee9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_spi_soft_driver.html#ab2eaea746989c3762e64bb3ef4faeee9">unselect</a> ()</td></tr>
  130. <tr class="separator:ab2eaea746989c3762e64bb3ef4faeee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. </table>
  132. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  133. <div class="textblock"><h3>template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin&gt;<br />
  134. class SdSpiSoftDriver&lt; MisoPin, MosiPin, SckPin &gt;</h3>
  135. <p>Software SPI class for access to SD and SDHC flash memory cards. </p>
  136. </div><h2 class="groupheader">Member Function Documentation</h2>
  137. <a class="anchor" id="a10c2eb17cb8b467067bc767a1e59859f"></a>
  138. <div class="memitem">
  139. <div class="memproto">
  140. <div class="memtemplate">
  141. template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin&gt; </div>
  142. <table class="mlabels">
  143. <tr>
  144. <td class="mlabels-left">
  145. <table class="memname">
  146. <tr>
  147. <td class="memname">void <a class="el" href="class_sd_spi_soft_driver.html">SdSpiSoftDriver</a>&lt; MisoPin, MosiPin, SckPin &gt;::activate </td>
  148. <td>(</td>
  149. <td class="paramname"></td><td>)</td>
  150. <td></td>
  151. </tr>
  152. </table>
  153. </td>
  154. <td class="mlabels-right">
  155. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  156. </tr>
  157. </table>
  158. </div><div class="memdoc">
  159. <p>Dummy activate SPI hardware for software SPI </p>
  160. <p>Implements <a class="el" href="class_sd_spi_base_driver.html#ab7e6974c19d1b1543e242c8a717cfd8f">SdSpiBaseDriver</a>.</p>
  161. </div>
  162. </div>
  163. <a class="anchor" id="a0c016f86abca805d8716052bab181660"></a>
  164. <div class="memitem">
  165. <div class="memproto">
  166. <div class="memtemplate">
  167. template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin&gt; </div>
  168. <table class="mlabels">
  169. <tr>
  170. <td class="mlabels-left">
  171. <table class="memname">
  172. <tr>
  173. <td class="memname">void <a class="el" href="class_sd_spi_soft_driver.html">SdSpiSoftDriver</a>&lt; MisoPin, MosiPin, SckPin &gt;::begin </td>
  174. <td>(</td>
  175. <td class="paramtype">uint8_t&#160;</td>
  176. <td class="paramname"><em>csPin</em></td><td>)</td>
  177. <td></td>
  178. </tr>
  179. </table>
  180. </td>
  181. <td class="mlabels-right">
  182. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  183. </tr>
  184. </table>
  185. </div><div class="memdoc">
  186. <p>Initialize the SPI bus.</p>
  187. <dl class="params"><dt>Parameters</dt><dd>
  188. <table class="params">
  189. <tr><td class="paramdir">[in]</td><td class="paramname">csPin</td><td>SD card chip select pin. </td></tr>
  190. </table>
  191. </dd>
  192. </dl>
  193. <p>Implements <a class="el" href="class_sd_spi_base_driver.html#a287ec377c2a214bdb964f59a25ad7dd4">SdSpiBaseDriver</a>.</p>
  194. </div>
  195. </div>
  196. <a class="anchor" id="a03b5da2d9d0196212f17afbbc9bf784a"></a>
  197. <div class="memitem">
  198. <div class="memproto">
  199. <div class="memtemplate">
  200. template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin&gt; </div>
  201. <table class="mlabels">
  202. <tr>
  203. <td class="mlabels-left">
  204. <table class="memname">
  205. <tr>
  206. <td class="memname">void <a class="el" href="class_sd_spi_soft_driver.html">SdSpiSoftDriver</a>&lt; MisoPin, MosiPin, SckPin &gt;::deactivate </td>
  207. <td>(</td>
  208. <td class="paramname"></td><td>)</td>
  209. <td></td>
  210. </tr>
  211. </table>
  212. </td>
  213. <td class="mlabels-right">
  214. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  215. </tr>
  216. </table>
  217. </div><div class="memdoc">
  218. <p>Dummy deactivate SPI hardware for software SPI </p>
  219. <p>Implements <a class="el" href="class_sd_spi_base_driver.html#a1768309c7ba4f8d78c2ba62383462de2">SdSpiBaseDriver</a>.</p>
  220. </div>
  221. </div>
  222. <a class="anchor" id="a814d39a4eee44bd679801228595893b9"></a>
  223. <div class="memitem">
  224. <div class="memproto">
  225. <div class="memtemplate">
  226. template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin&gt; </div>
  227. <table class="mlabels">
  228. <tr>
  229. <td class="mlabels-left">
  230. <table class="memname">
  231. <tr>
  232. <td class="memname">uint8_t <a class="el" href="class_sd_spi_soft_driver.html">SdSpiSoftDriver</a>&lt; MisoPin, MosiPin, SckPin &gt;::receive </td>
  233. <td>(</td>
  234. <td class="paramname"></td><td>)</td>
  235. <td></td>
  236. </tr>
  237. </table>
  238. </td>
  239. <td class="mlabels-right">
  240. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  241. </tr>
  242. </table>
  243. </div><div class="memdoc">
  244. <p>Receive a byte.</p>
  245. <dl class="section return"><dt>Returns</dt><dd>The byte. </dd></dl>
  246. <p>Implements <a class="el" href="class_sd_spi_base_driver.html#a5f020c62122d020e4603c0ee2c906668">SdSpiBaseDriver</a>.</p>
  247. </div>
  248. </div>
  249. <a class="anchor" id="ab068f18eeb629fe8a8fbeded9f7da760"></a>
  250. <div class="memitem">
  251. <div class="memproto">
  252. <div class="memtemplate">
  253. template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin&gt; </div>
  254. <table class="mlabels">
  255. <tr>
  256. <td class="mlabels-left">
  257. <table class="memname">
  258. <tr>
  259. <td class="memname">uint8_t <a class="el" href="class_sd_spi_soft_driver.html">SdSpiSoftDriver</a>&lt; MisoPin, MosiPin, SckPin &gt;::receive </td>
  260. <td>(</td>
  261. <td class="paramtype">uint8_t *&#160;</td>
  262. <td class="paramname"><em>buf</em>, </td>
  263. </tr>
  264. <tr>
  265. <td class="paramkey"></td>
  266. <td></td>
  267. <td class="paramtype">size_t&#160;</td>
  268. <td class="paramname"><em>n</em>&#160;</td>
  269. </tr>
  270. <tr>
  271. <td></td>
  272. <td>)</td>
  273. <td></td><td></td>
  274. </tr>
  275. </table>
  276. </td>
  277. <td class="mlabels-right">
  278. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  279. </tr>
  280. </table>
  281. </div><div class="memdoc">
  282. <p>Receive multiple bytes.</p>
  283. <dl class="params"><dt>Parameters</dt><dd>
  284. <table class="params">
  285. <tr><td class="paramdir">[out]</td><td class="paramname">buf</td><td>Buffer to receive the data. </td></tr>
  286. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>Number of bytes to receive.</td></tr>
  287. </table>
  288. </dd>
  289. </dl>
  290. <dl class="section return"><dt>Returns</dt><dd>Zero for no error or nonzero error code. </dd></dl>
  291. <p>Implements <a class="el" href="class_sd_spi_base_driver.html#a556cc7d8afb70a7f50c64f212df60f06">SdSpiBaseDriver</a>.</p>
  292. </div>
  293. </div>
  294. <a class="anchor" id="a9fc0ff9c851ef7d8cd3cea54827a901c"></a>
  295. <div class="memitem">
  296. <div class="memproto">
  297. <div class="memtemplate">
  298. template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin&gt; </div>
  299. <table class="mlabels">
  300. <tr>
  301. <td class="mlabels-left">
  302. <table class="memname">
  303. <tr>
  304. <td class="memname">void <a class="el" href="class_sd_spi_soft_driver.html">SdSpiSoftDriver</a>&lt; MisoPin, MosiPin, SckPin &gt;::select </td>
  305. <td>(</td>
  306. <td class="paramname"></td><td>)</td>
  307. <td></td>
  308. </tr>
  309. </table>
  310. </td>
  311. <td class="mlabels-right">
  312. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  313. </tr>
  314. </table>
  315. </div><div class="memdoc">
  316. <p>Set CS low. </p>
  317. <p>Implements <a class="el" href="class_sd_spi_base_driver.html#a3dd831b876fc59747b17a3037085da00">SdSpiBaseDriver</a>.</p>
  318. </div>
  319. </div>
  320. <a class="anchor" id="a661b50258ff50405b49c75bca89dfd2d"></a>
  321. <div class="memitem">
  322. <div class="memproto">
  323. <div class="memtemplate">
  324. template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin&gt; </div>
  325. <table class="mlabels">
  326. <tr>
  327. <td class="mlabels-left">
  328. <table class="memname">
  329. <tr>
  330. <td class="memname">void <a class="el" href="class_sd_spi_soft_driver.html">SdSpiSoftDriver</a>&lt; MisoPin, MosiPin, SckPin &gt;::send </td>
  331. <td>(</td>
  332. <td class="paramtype">uint8_t&#160;</td>
  333. <td class="paramname"><em>data</em></td><td>)</td>
  334. <td></td>
  335. </tr>
  336. </table>
  337. </td>
  338. <td class="mlabels-right">
  339. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  340. </tr>
  341. </table>
  342. </div><div class="memdoc">
  343. <p>Send a byte.</p>
  344. <dl class="params"><dt>Parameters</dt><dd>
  345. <table class="params">
  346. <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>Byte to send </td></tr>
  347. </table>
  348. </dd>
  349. </dl>
  350. <p>Implements <a class="el" href="class_sd_spi_base_driver.html#aa36ce5b4e227ee505ae4eb3e89e7a4e4">SdSpiBaseDriver</a>.</p>
  351. </div>
  352. </div>
  353. <a class="anchor" id="ad0d391da39fb784a211d7607b2ea1480"></a>
  354. <div class="memitem">
  355. <div class="memproto">
  356. <div class="memtemplate">
  357. template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin&gt; </div>
  358. <table class="mlabels">
  359. <tr>
  360. <td class="mlabels-left">
  361. <table class="memname">
  362. <tr>
  363. <td class="memname">void <a class="el" href="class_sd_spi_soft_driver.html">SdSpiSoftDriver</a>&lt; MisoPin, MosiPin, SckPin &gt;::send </td>
  364. <td>(</td>
  365. <td class="paramtype">const uint8_t *&#160;</td>
  366. <td class="paramname"><em>buf</em>, </td>
  367. </tr>
  368. <tr>
  369. <td class="paramkey"></td>
  370. <td></td>
  371. <td class="paramtype">size_t&#160;</td>
  372. <td class="paramname"><em>n</em>&#160;</td>
  373. </tr>
  374. <tr>
  375. <td></td>
  376. <td>)</td>
  377. <td></td><td></td>
  378. </tr>
  379. </table>
  380. </td>
  381. <td class="mlabels-right">
  382. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  383. </tr>
  384. </table>
  385. </div><div class="memdoc">
  386. <p>Send multiple bytes.</p>
  387. <dl class="params"><dt>Parameters</dt><dd>
  388. <table class="params">
  389. <tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>Buffer for data to be sent. </td></tr>
  390. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>Number of bytes to send. </td></tr>
  391. </table>
  392. </dd>
  393. </dl>
  394. <p>Implements <a class="el" href="class_sd_spi_base_driver.html#af7731e0ab36b5f75d917cbdaa8c8cb17">SdSpiBaseDriver</a>.</p>
  395. </div>
  396. </div>
  397. <a class="anchor" id="a8ea0646dcb016fa23bc192157255da26"></a>
  398. <div class="memitem">
  399. <div class="memproto">
  400. <div class="memtemplate">
  401. template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin&gt; </div>
  402. <table class="mlabels">
  403. <tr>
  404. <td class="mlabels-left">
  405. <table class="memname">
  406. <tr>
  407. <td class="memname">void <a class="el" href="class_sd_spi_soft_driver.html">SdSpiSoftDriver</a>&lt; MisoPin, MosiPin, SckPin &gt;::setSpiSettings </td>
  408. <td>(</td>
  409. <td class="paramtype">SPISettings&#160;</td>
  410. <td class="paramname"><em>spiSettings</em></td><td>)</td>
  411. <td></td>
  412. </tr>
  413. </table>
  414. </td>
  415. <td class="mlabels-right">
  416. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  417. </tr>
  418. </table>
  419. </div><div class="memdoc">
  420. <p>Save SPISettings.</p>
  421. <dl class="params"><dt>Parameters</dt><dd>
  422. <table class="params">
  423. <tr><td class="paramdir">[in]</td><td class="paramname">spiSettings</td><td>SPI speed, mode, and byte order. </td></tr>
  424. </table>
  425. </dd>
  426. </dl>
  427. <p>Implements <a class="el" href="class_sd_spi_base_driver.html#ae8bc46d4585ad76587bafa4a49bfd248">SdSpiBaseDriver</a>.</p>
  428. </div>
  429. </div>
  430. <a class="anchor" id="ab2eaea746989c3762e64bb3ef4faeee9"></a>
  431. <div class="memitem">
  432. <div class="memproto">
  433. <div class="memtemplate">
  434. template&lt;uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin&gt; </div>
  435. <table class="mlabels">
  436. <tr>
  437. <td class="mlabels-left">
  438. <table class="memname">
  439. <tr>
  440. <td class="memname">void <a class="el" href="class_sd_spi_soft_driver.html">SdSpiSoftDriver</a>&lt; MisoPin, MosiPin, SckPin &gt;::unselect </td>
  441. <td>(</td>
  442. <td class="paramname"></td><td>)</td>
  443. <td></td>
  444. </tr>
  445. </table>
  446. </td>
  447. <td class="mlabels-right">
  448. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  449. </tr>
  450. </table>
  451. </div><div class="memdoc">
  452. <p>Set CS high. </p>
  453. <p>Implements <a class="el" href="class_sd_spi_base_driver.html#a5210d976ca6b1ef50619cb29054eae71">SdSpiBaseDriver</a>.</p>
  454. </div>
  455. </div>
  456. <hr/>The documentation for this class was generated from the following file:<ul>
  457. <li>Arduino/libraries/SdFat/src/<a class="el" href="_sd_spi_driver_8h.html">SdSpiDriver.h</a></li>
  458. </ul>
  459. </div><!-- contents -->
  460. <!-- start footer part -->
  461. <hr class="footer"/><address class="footer"><small>
  462. Generated on Fri Aug 19 2016 08:28:00 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  463. <img class="footer" src="doxygen.png" alt="doxygen"/>
  464. </a> 1.8.10
  465. </small></address>
  466. </body>
  467. </html>