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.

604 rindas
26KB

  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: SdioCard Class 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_sdio_card-members.html">List of all members</a> </div>
  85. <div class="headertitle">
  86. <div class="title">SdioCard Class Reference</div> </div>
  87. </div><!--header-->
  88. <div class="contents">
  89. <p>Raw SDIO access to SD and SDHC flash memory cards.
  90. <a href="class_sdio_card.html#details">More...</a></p>
  91. <p><code>#include &lt;SdioCard.h&gt;</code></p>
  92. <div class="dynheader">
  93. Inheritance diagram for SdioCard:</div>
  94. <div class="dyncontent">
  95. <div class="center"><img src="class_sdio_card__inherit__graph.png" border="0" usemap="#_sdio_card_inherit__map" alt="Inheritance graph"/></div>
  96. <map name="_sdio_card_inherit__map" id="_sdio_card_inherit__map">
  97. <area shape="rect" id="node2" href="class_base_block_driver.html" title="Base block driver. " alt="" coords="5,5,123,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 SdioCard:</div>
  102. <div class="dyncontent">
  103. <div class="center"><img src="class_sdio_card__coll__graph.png" border="0" usemap="#_sdio_card_coll__map" alt="Collaboration graph"/></div>
  104. <map name="_sdio_card_coll__map" id="_sdio_card_coll__map">
  105. <area shape="rect" id="node2" href="class_base_block_driver.html" title="Base block driver. " alt="" coords="5,5,123,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:ac749bdad92a4465d062f5d21a7f4faf5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#ac749bdad92a4465d062f5d21a7f4faf5">begin</a> ()</td></tr>
  112. <tr class="separator:ac749bdad92a4465d062f5d21a7f4faf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="memitem:a3d8f9a92f7faec77094ec65e6c41dd45"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#a3d8f9a92f7faec77094ec65e6c41dd45">cardSize</a> ()</td></tr>
  114. <tr class="separator:a3d8f9a92f7faec77094ec65e6c41dd45"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:a9781b9b4f91366a69dd077ad8fb364c5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#a9781b9b4f91366a69dd077ad8fb364c5">dmaBusy</a> ()</td></tr>
  116. <tr class="separator:a9781b9b4f91366a69dd077ad8fb364c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:a1ce82b035257790ed8e4a9be3d966b80"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#a1ce82b035257790ed8e4a9be3d966b80">erase</a> (uint32_t firstBlock, uint32_t lastBlock)</td></tr>
  118. <tr class="separator:a1ce82b035257790ed8e4a9be3d966b80"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:a4ff272009a24fc4078ac87c2d87ccd16"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#a4ff272009a24fc4078ac87c2d87ccd16">errorCode</a> ()</td></tr>
  120. <tr class="separator:a4ff272009a24fc4078ac87c2d87ccd16"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a8251b9aa0d623487e80cf908fc1625b5"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#a8251b9aa0d623487e80cf908fc1625b5">errorData</a> ()</td></tr>
  122. <tr class="separator:a8251b9aa0d623487e80cf908fc1625b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:aafa9feb1b5a90f3cf96456b6b286bfdf"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#aafa9feb1b5a90f3cf96456b6b286bfdf">errorLine</a> ()</td></tr>
  124. <tr class="separator:aafa9feb1b5a90f3cf96456b6b286bfdf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:ac94605c428fa9258106835cceec470d8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#ac94605c428fa9258106835cceec470d8">readBlock</a> (uint32_t lba, uint8_t *dst)</td></tr>
  126. <tr class="separator:ac94605c428fa9258106835cceec470d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:a7de36d26a01dc39b7dc122c54ee03b12"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#a7de36d26a01dc39b7dc122c54ee03b12">readBlocks</a> (uint32_t lba, uint8_t *dst, size_t nb)</td></tr>
  128. <tr class="separator:a7de36d26a01dc39b7dc122c54ee03b12"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:add77777fbcf91cc41e8ec62fda169e79"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#add77777fbcf91cc41e8ec62fda169e79">readCID</a> (void *cid)</td></tr>
  130. <tr class="separator:add77777fbcf91cc41e8ec62fda169e79"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:a1da0ca418c153e24b4e13b4c1e20d450"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#a1da0ca418c153e24b4e13b4c1e20d450">readCSD</a> (void *csd)</td></tr>
  132. <tr class="separator:a1da0ca418c153e24b4e13b4c1e20d450"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. <tr class="memitem:adc583f7a27f57ce55ce474b1379b9303"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#adc583f7a27f57ce55ce474b1379b9303">readOCR</a> (uint32_t *ocr)</td></tr>
  134. <tr class="separator:adc583f7a27f57ce55ce474b1379b9303"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. <tr class="memitem:affcd36a5c3a42042fe24716671f06632"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#affcd36a5c3a42042fe24716671f06632">syncBlocks</a> ()</td></tr>
  136. <tr class="separator:affcd36a5c3a42042fe24716671f06632"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. <tr class="memitem:a2151106a93280ae41bab654428214661"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#a2151106a93280ae41bab654428214661">type</a> ()</td></tr>
  138. <tr class="separator:a2151106a93280ae41bab654428214661"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:ae53e5f72ddf9ace3f47774d968e064ed"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#ae53e5f72ddf9ace3f47774d968e064ed">writeBlock</a> (uint32_t lba, const uint8_t *src)</td></tr>
  140. <tr class="separator:ae53e5f72ddf9ace3f47774d968e064ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:a8b811f875497e90e75fbe6c2d41d89cb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sdio_card.html#a8b811f875497e90e75fbe6c2d41d89cb">writeBlocks</a> (uint32_t lba, const uint8_t *src, size_t nb)</td></tr>
  142. <tr class="separator:a8b811f875497e90e75fbe6c2d41d89cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. </table>
  144. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  145. <div class="textblock"><p>Raw SDIO access to SD and SDHC flash memory cards. </p>
  146. </div><h2 class="groupheader">Member Function Documentation</h2>
  147. <a class="anchor" id="ac749bdad92a4465d062f5d21a7f4faf5"></a>
  148. <div class="memitem">
  149. <div class="memproto">
  150. <table class="memname">
  151. <tr>
  152. <td class="memname">bool SdioCard::begin </td>
  153. <td>(</td>
  154. <td class="paramname"></td><td>)</td>
  155. <td></td>
  156. </tr>
  157. </table>
  158. </div><div class="memdoc">
  159. <p>Initialize the SD card. </p><dl class="section return"><dt>Returns</dt><dd>true for success else false. </dd></dl>
  160. </div>
  161. </div>
  162. <a class="anchor" id="a3d8f9a92f7faec77094ec65e6c41dd45"></a>
  163. <div class="memitem">
  164. <div class="memproto">
  165. <table class="memname">
  166. <tr>
  167. <td class="memname">uint32_t SdioCard::cardSize </td>
  168. <td>(</td>
  169. <td class="paramname"></td><td>)</td>
  170. <td></td>
  171. </tr>
  172. </table>
  173. </div><div class="memdoc">
  174. <p>Determine the size of an SD flash memory card.</p>
  175. <dl class="section return"><dt>Returns</dt><dd>The number of 512 byte data blocks in the card or zero if an error occurs. </dd></dl>
  176. </div>
  177. </div>
  178. <a class="anchor" id="a9781b9b4f91366a69dd077ad8fb364c5"></a>
  179. <div class="memitem">
  180. <div class="memproto">
  181. <table class="memname">
  182. <tr>
  183. <td class="memname">bool SdioCard::dmaBusy </td>
  184. <td>(</td>
  185. <td class="paramname"></td><td>)</td>
  186. <td></td>
  187. </tr>
  188. </table>
  189. </div><div class="memdoc">
  190. <dl class="section return"><dt>Returns</dt><dd>DMA transfer status. </dd></dl>
  191. </div>
  192. </div>
  193. <a class="anchor" id="a1ce82b035257790ed8e4a9be3d966b80"></a>
  194. <div class="memitem">
  195. <div class="memproto">
  196. <table class="memname">
  197. <tr>
  198. <td class="memname">bool SdioCard::erase </td>
  199. <td>(</td>
  200. <td class="paramtype">uint32_t&#160;</td>
  201. <td class="paramname"><em>firstBlock</em>, </td>
  202. </tr>
  203. <tr>
  204. <td class="paramkey"></td>
  205. <td></td>
  206. <td class="paramtype">uint32_t&#160;</td>
  207. <td class="paramname"><em>lastBlock</em>&#160;</td>
  208. </tr>
  209. <tr>
  210. <td></td>
  211. <td>)</td>
  212. <td></td><td></td>
  213. </tr>
  214. </table>
  215. </div><div class="memdoc">
  216. <p>Erase a range of blocks.</p>
  217. <dl class="params"><dt>Parameters</dt><dd>
  218. <table class="params">
  219. <tr><td class="paramdir">[in]</td><td class="paramname">firstBlock</td><td>The address of the first block in the range. </td></tr>
  220. <tr><td class="paramdir">[in]</td><td class="paramname">lastBlock</td><td>The address of the last block in the range.</td></tr>
  221. </table>
  222. </dd>
  223. </dl>
  224. <dl class="section note"><dt>Note</dt><dd>This function requests the SD card to do a flash erase for a range of blocks. The data on the card after an erase operation is either 0 or 1, depends on the card vendor. The card must support single block erase.</dd></dl>
  225. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  226. </div>
  227. </div>
  228. <a class="anchor" id="a4ff272009a24fc4078ac87c2d87ccd16"></a>
  229. <div class="memitem">
  230. <div class="memproto">
  231. <table class="memname">
  232. <tr>
  233. <td class="memname">uint8_t SdioCard::errorCode </td>
  234. <td>(</td>
  235. <td class="paramname"></td><td>)</td>
  236. <td></td>
  237. </tr>
  238. </table>
  239. </div><div class="memdoc">
  240. <dl class="section return"><dt>Returns</dt><dd>code for the last error. See SdInfo.h for a list of error codes. </dd></dl>
  241. </div>
  242. </div>
  243. <a class="anchor" id="a8251b9aa0d623487e80cf908fc1625b5"></a>
  244. <div class="memitem">
  245. <div class="memproto">
  246. <table class="memname">
  247. <tr>
  248. <td class="memname">uint32_t SdioCard::errorData </td>
  249. <td>(</td>
  250. <td class="paramname"></td><td>)</td>
  251. <td></td>
  252. </tr>
  253. </table>
  254. </div><div class="memdoc">
  255. <dl class="section return"><dt>Returns</dt><dd>error data for last error. </dd></dl>
  256. </div>
  257. </div>
  258. <a class="anchor" id="aafa9feb1b5a90f3cf96456b6b286bfdf"></a>
  259. <div class="memitem">
  260. <div class="memproto">
  261. <table class="memname">
  262. <tr>
  263. <td class="memname">uint32_t SdioCard::errorLine </td>
  264. <td>(</td>
  265. <td class="paramname"></td><td>)</td>
  266. <td></td>
  267. </tr>
  268. </table>
  269. </div><div class="memdoc">
  270. <dl class="section return"><dt>Returns</dt><dd>error line for last error. Tmp function for debug. </dd></dl>
  271. </div>
  272. </div>
  273. <a class="anchor" id="ac94605c428fa9258106835cceec470d8"></a>
  274. <div class="memitem">
  275. <div class="memproto">
  276. <table class="mlabels">
  277. <tr>
  278. <td class="mlabels-left">
  279. <table class="memname">
  280. <tr>
  281. <td class="memname">bool SdioCard::readBlock </td>
  282. <td>(</td>
  283. <td class="paramtype">uint32_t&#160;</td>
  284. <td class="paramname"><em>lba</em>, </td>
  285. </tr>
  286. <tr>
  287. <td class="paramkey"></td>
  288. <td></td>
  289. <td class="paramtype">uint8_t *&#160;</td>
  290. <td class="paramname"><em>dst</em>&#160;</td>
  291. </tr>
  292. <tr>
  293. <td></td>
  294. <td>)</td>
  295. <td></td><td></td>
  296. </tr>
  297. </table>
  298. </td>
  299. <td class="mlabels-right">
  300. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  301. </tr>
  302. </table>
  303. </div><div class="memdoc">
  304. <p>Read a 512 byte block from an SD card.</p>
  305. <dl class="params"><dt>Parameters</dt><dd>
  306. <table class="params">
  307. <tr><td class="paramdir">[in]</td><td class="paramname">lba</td><td>Logical block to be read. </td></tr>
  308. <tr><td class="paramdir">[out]</td><td class="paramname">dst</td><td>Pointer to the location that will receive the data. </td></tr>
  309. </table>
  310. </dd>
  311. </dl>
  312. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  313. <p>Implements <a class="el" href="class_base_block_driver.html#a16bb3305f3130253dd7ab6e19aa1b524">BaseBlockDriver</a>.</p>
  314. </div>
  315. </div>
  316. <a class="anchor" id="a7de36d26a01dc39b7dc122c54ee03b12"></a>
  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">bool SdioCard::readBlocks </td>
  325. <td>(</td>
  326. <td class="paramtype">uint32_t&#160;</td>
  327. <td class="paramname"><em>lba</em>, </td>
  328. </tr>
  329. <tr>
  330. <td class="paramkey"></td>
  331. <td></td>
  332. <td class="paramtype">uint8_t *&#160;</td>
  333. <td class="paramname"><em>dst</em>, </td>
  334. </tr>
  335. <tr>
  336. <td class="paramkey"></td>
  337. <td></td>
  338. <td class="paramtype">size_t&#160;</td>
  339. <td class="paramname"><em>nb</em>&#160;</td>
  340. </tr>
  341. <tr>
  342. <td></td>
  343. <td>)</td>
  344. <td></td><td></td>
  345. </tr>
  346. </table>
  347. </td>
  348. <td class="mlabels-right">
  349. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  350. </tr>
  351. </table>
  352. </div><div class="memdoc">
  353. <p>Read multiple 512 byte blocks from an SD card.</p>
  354. <dl class="params"><dt>Parameters</dt><dd>
  355. <table class="params">
  356. <tr><td class="paramdir">[in]</td><td class="paramname">lba</td><td>Logical block to be read. </td></tr>
  357. <tr><td class="paramdir">[in]</td><td class="paramname">nb</td><td>Number of blocks to be read. </td></tr>
  358. <tr><td class="paramdir">[out]</td><td class="paramname">dst</td><td>Pointer to the location that will receive the data. </td></tr>
  359. </table>
  360. </dd>
  361. </dl>
  362. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  363. <p>Implements <a class="el" href="class_base_block_driver.html#a3a029a2d02fc7cbdd7c15c8d622565c4">BaseBlockDriver</a>.</p>
  364. </div>
  365. </div>
  366. <a class="anchor" id="add77777fbcf91cc41e8ec62fda169e79"></a>
  367. <div class="memitem">
  368. <div class="memproto">
  369. <table class="memname">
  370. <tr>
  371. <td class="memname">bool SdioCard::readCID </td>
  372. <td>(</td>
  373. <td class="paramtype">void *&#160;</td>
  374. <td class="paramname"><em>cid</em></td><td>)</td>
  375. <td></td>
  376. </tr>
  377. </table>
  378. </div><div class="memdoc">
  379. <p>Read a card's CID register. The CID contains card identification information such as Manufacturer ID, Product name, Product serial number and Manufacturing date.</p>
  380. <dl class="params"><dt>Parameters</dt><dd>
  381. <table class="params">
  382. <tr><td class="paramdir">[out]</td><td class="paramname">cid</td><td>pointer to area for returned data.</td></tr>
  383. </table>
  384. </dd>
  385. </dl>
  386. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  387. </div>
  388. </div>
  389. <a class="anchor" id="a1da0ca418c153e24b4e13b4c1e20d450"></a>
  390. <div class="memitem">
  391. <div class="memproto">
  392. <table class="memname">
  393. <tr>
  394. <td class="memname">bool SdioCard::readCSD </td>
  395. <td>(</td>
  396. <td class="paramtype">void *&#160;</td>
  397. <td class="paramname"><em>csd</em></td><td>)</td>
  398. <td></td>
  399. </tr>
  400. </table>
  401. </div><div class="memdoc">
  402. <p>Read a card's CSD register. The CSD contains Card-Specific Data that provides information regarding access to the card's contents.</p>
  403. <dl class="params"><dt>Parameters</dt><dd>
  404. <table class="params">
  405. <tr><td class="paramdir">[out]</td><td class="paramname">csd</td><td>pointer to area for returned data.</td></tr>
  406. </table>
  407. </dd>
  408. </dl>
  409. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  410. </div>
  411. </div>
  412. <a class="anchor" id="adc583f7a27f57ce55ce474b1379b9303"></a>
  413. <div class="memitem">
  414. <div class="memproto">
  415. <table class="memname">
  416. <tr>
  417. <td class="memname">bool SdioCard::readOCR </td>
  418. <td>(</td>
  419. <td class="paramtype">uint32_t *&#160;</td>
  420. <td class="paramname"><em>ocr</em></td><td>)</td>
  421. <td></td>
  422. </tr>
  423. </table>
  424. </div><div class="memdoc">
  425. <p>Read OCR register.</p>
  426. <dl class="params"><dt>Parameters</dt><dd>
  427. <table class="params">
  428. <tr><td class="paramdir">[out]</td><td class="paramname">ocr</td><td>Value of OCR register. </td></tr>
  429. </table>
  430. </dd>
  431. </dl>
  432. <dl class="section return"><dt>Returns</dt><dd>true for success else false. </dd></dl>
  433. </div>
  434. </div>
  435. <a class="anchor" id="affcd36a5c3a42042fe24716671f06632"></a>
  436. <div class="memitem">
  437. <div class="memproto">
  438. <table class="mlabels">
  439. <tr>
  440. <td class="mlabels-left">
  441. <table class="memname">
  442. <tr>
  443. <td class="memname">bool SdioCard::syncBlocks </td>
  444. <td>(</td>
  445. <td class="paramname"></td><td>)</td>
  446. <td></td>
  447. </tr>
  448. </table>
  449. </td>
  450. <td class="mlabels-right">
  451. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  452. </tr>
  453. </table>
  454. </div><div class="memdoc">
  455. <dl class="section return"><dt>Returns</dt><dd>success if sync successful. Not for user apps. </dd></dl>
  456. <p>Implements <a class="el" href="class_base_block_driver.html#a5361ff2658d7654bf00b97c54c6aa2aa">BaseBlockDriver</a>.</p>
  457. </div>
  458. </div>
  459. <a class="anchor" id="a2151106a93280ae41bab654428214661"></a>
  460. <div class="memitem">
  461. <div class="memproto">
  462. <table class="memname">
  463. <tr>
  464. <td class="memname">uint8_t SdioCard::type </td>
  465. <td>(</td>
  466. <td class="paramname"></td><td>)</td>
  467. <td></td>
  468. </tr>
  469. </table>
  470. </div><div class="memdoc">
  471. <p>Return the card type: SD V1, SD V2 or SDHC </p><dl class="section return"><dt>Returns</dt><dd>0 - SD V1, 1 - SD V2, or 3 - SDHC. </dd></dl>
  472. </div>
  473. </div>
  474. <a class="anchor" id="ae53e5f72ddf9ace3f47774d968e064ed"></a>
  475. <div class="memitem">
  476. <div class="memproto">
  477. <table class="mlabels">
  478. <tr>
  479. <td class="mlabels-left">
  480. <table class="memname">
  481. <tr>
  482. <td class="memname">bool SdioCard::writeBlock </td>
  483. <td>(</td>
  484. <td class="paramtype">uint32_t&#160;</td>
  485. <td class="paramname"><em>lba</em>, </td>
  486. </tr>
  487. <tr>
  488. <td class="paramkey"></td>
  489. <td></td>
  490. <td class="paramtype">const uint8_t *&#160;</td>
  491. <td class="paramname"><em>src</em>&#160;</td>
  492. </tr>
  493. <tr>
  494. <td></td>
  495. <td>)</td>
  496. <td></td><td></td>
  497. </tr>
  498. </table>
  499. </td>
  500. <td class="mlabels-right">
  501. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  502. </tr>
  503. </table>
  504. </div><div class="memdoc">
  505. <p>Writes a 512 byte block to an SD card.</p>
  506. <dl class="params"><dt>Parameters</dt><dd>
  507. <table class="params">
  508. <tr><td class="paramdir">[in]</td><td class="paramname">lba</td><td>Logical block to be written. </td></tr>
  509. <tr><td class="paramdir">[in]</td><td class="paramname">src</td><td>Pointer to the location of the data to be written. </td></tr>
  510. </table>
  511. </dd>
  512. </dl>
  513. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  514. <p>Implements <a class="el" href="class_base_block_driver.html#a87df3db1b400286883661525441d39fa">BaseBlockDriver</a>.</p>
  515. </div>
  516. </div>
  517. <a class="anchor" id="a8b811f875497e90e75fbe6c2d41d89cb"></a>
  518. <div class="memitem">
  519. <div class="memproto">
  520. <table class="mlabels">
  521. <tr>
  522. <td class="mlabels-left">
  523. <table class="memname">
  524. <tr>
  525. <td class="memname">bool SdioCard::writeBlocks </td>
  526. <td>(</td>
  527. <td class="paramtype">uint32_t&#160;</td>
  528. <td class="paramname"><em>lba</em>, </td>
  529. </tr>
  530. <tr>
  531. <td class="paramkey"></td>
  532. <td></td>
  533. <td class="paramtype">const uint8_t *&#160;</td>
  534. <td class="paramname"><em>src</em>, </td>
  535. </tr>
  536. <tr>
  537. <td class="paramkey"></td>
  538. <td></td>
  539. <td class="paramtype">size_t&#160;</td>
  540. <td class="paramname"><em>nb</em>&#160;</td>
  541. </tr>
  542. <tr>
  543. <td></td>
  544. <td>)</td>
  545. <td></td><td></td>
  546. </tr>
  547. </table>
  548. </td>
  549. <td class="mlabels-right">
  550. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  551. </tr>
  552. </table>
  553. </div><div class="memdoc">
  554. <p>Write multiple 512 byte blocks to an SD card.</p>
  555. <dl class="params"><dt>Parameters</dt><dd>
  556. <table class="params">
  557. <tr><td class="paramdir">[in]</td><td class="paramname">lba</td><td>Logical block to be written. </td></tr>
  558. <tr><td class="paramdir">[in]</td><td class="paramname">nb</td><td>Number of blocks to be written. </td></tr>
  559. <tr><td class="paramdir">[in]</td><td class="paramname">src</td><td>Pointer to the location of the data to be written. </td></tr>
  560. </table>
  561. </dd>
  562. </dl>
  563. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  564. <p>Implements <a class="el" href="class_base_block_driver.html#a3d6520b21252ebfb17b0cac0b87689b1">BaseBlockDriver</a>.</p>
  565. </div>
  566. </div>
  567. <hr/>The documentation for this class was generated from the following file:<ul>
  568. <li>Arduino/libraries/SdFat/src/SdCard/SdioCard.h</li>
  569. </ul>
  570. </div><!-- contents -->
  571. <!-- start footer part -->
  572. <hr class="footer"/><address class="footer"><small>
  573. Generated on Mon Sep 5 2016 10:18:53 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  574. <img class="footer" src="doxygen.png" alt="doxygen"/>
  575. </a> 1.8.10
  576. </small></address>
  577. </body>
  578. </html>