You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1280 satır
55KB

  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: FatFileSystem 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><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_fat_file_system-members.html">List of all members</a> </div>
  86. <div class="headertitle">
  87. <div class="title">FatFileSystem Class Reference</div> </div>
  88. </div><!--header-->
  89. <div class="contents">
  90. <p>Integration class for the FatLib library.
  91. <a href="class_fat_file_system.html#details">More...</a></p>
  92. <p><code>#include &lt;FatFileSystem.h&gt;</code></p>
  93. <div class="dynheader">
  94. Inheritance diagram for FatFileSystem:</div>
  95. <div class="dyncontent">
  96. <div class="center"><img src="class_fat_file_system__inherit__graph.png" border="0" usemap="#_fat_file_system_inherit__map" alt="Inheritance graph"/></div>
  97. <map name="_fat_file_system_inherit__map" id="_fat_file_system_inherit__map">
  98. <area shape="rect" id="node3" href="class_sd_fat_base.html" title="Virtual base class for SdFat library. " alt="" coords="91,155,177,181"/>
  99. <area shape="rect" id="node2" href="class_fat_volume.html" title="Access FAT16 and FAT32 volumes on raw file devices. " alt="" coords="91,5,177,32"/>
  100. <area shape="rect" id="node4" href="class_sd_fat.html" title="Main file system class for SdFat library. " alt="" coords="5,237,63,263"/>
  101. <area shape="rect" id="node5" href="class_sd_fat_lib_spi.html" title="SdFat class using the standard Arduino SPI library. " alt="" coords="87,237,181,263"/>
  102. <area shape="rect" id="node6" href="class_sd_fat_soft_spi.html" title="SdFat class using software SPI. " alt="" coords="205,229,367,271"/>
  103. </map>
  104. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  105. <div class="dynheader">
  106. Collaboration diagram for FatFileSystem:</div>
  107. <div class="dyncontent">
  108. <div class="center"><img src="class_fat_file_system__coll__graph.png" border="0" usemap="#_fat_file_system_coll__map" alt="Collaboration graph"/></div>
  109. <map name="_fat_file_system_coll__map" id="_fat_file_system_coll__map">
  110. <area shape="rect" id="node2" href="class_fat_volume.html" title="Access FAT16 and FAT32 volumes on raw file devices. " alt="" coords="16,5,101,32"/>
  111. </map>
  112. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  113. <table class="memberdecls">
  114. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  115. Public Member Functions</h2></td></tr>
  116. <tr class="memitem:a05bd3d358a708efe2f9002d05c3a4139"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#a05bd3d358a708efe2f9002d05c3a4139">begin</a> (uint8_t part=0)</td></tr>
  117. <tr class="separator:a05bd3d358a708efe2f9002d05c3a4139"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:a06beed4cea5e38116b58254a57125442"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a06beed4cea5e38116b58254a57125442">blocksPerCluster</a> () const </td></tr>
  119. <tr class="separator:a06beed4cea5e38116b58254a57125442"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:abc66d856d05198d9ebe7104c8c4155d7"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#abc66d856d05198d9ebe7104c8c4155d7">blocksPerFat</a> () const </td></tr>
  121. <tr class="separator:abc66d856d05198d9ebe7104c8c4155d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. <tr class="memitem:aa1e3b1d0c21d202deb82668068ab00e8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="unioncache__t.html">cache_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#aa1e3b1d0c21d202deb82668068ab00e8">cacheClear</a> ()</td></tr>
  123. <tr class="separator:aa1e3b1d0c21d202deb82668068ab00e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:a5667915e63187a43a71dfada63800865"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#a5667915e63187a43a71dfada63800865">chdir</a> (bool set_cwd=false)</td></tr>
  125. <tr class="separator:a5667915e63187a43a71dfada63800865"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:a44af1b98e8d986d12107b654453acbc4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#a44af1b98e8d986d12107b654453acbc4">chdir</a> (const char *path, bool set_cwd=false)</td></tr>
  127. <tr class="separator:a44af1b98e8d986d12107b654453acbc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:af24917d6e00c8766dab168eb834047ec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#af24917d6e00c8766dab168eb834047ec">chvol</a> ()</td></tr>
  129. <tr class="separator:af24917d6e00c8766dab168eb834047ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. <tr class="memitem:a18446a9c5924304fa7a87d5f03ccaf21"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a18446a9c5924304fa7a87d5f03ccaf21">clusterCount</a> () const </td></tr>
  131. <tr class="separator:a18446a9c5924304fa7a87d5f03ccaf21"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:ac0e63f33d71d5dc95a602834274def6a"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#ac0e63f33d71d5dc95a602834274def6a">clusterSizeShift</a> () const </td></tr>
  133. <tr class="separator:ac0e63f33d71d5dc95a602834274def6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:a443364af257c219f8e908d5b073d8fa3"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a443364af257c219f8e908d5b073d8fa3">dataStartBlock</a> () const </td></tr>
  135. <tr class="separator:a443364af257c219f8e908d5b073d8fa3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:a25c6311b70fa274b3be94ff25fdebba7"><td class="memItemLeft" align="right" valign="top">int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a25c6311b70fa274b3be94ff25fdebba7">dbgFat</a> (uint32_t n, uint32_t *v)</td></tr>
  137. <tr class="separator:a25c6311b70fa274b3be94ff25fdebba7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:aee58c6352652f216577196e32a594b67"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#aee58c6352652f216577196e32a594b67">exists</a> (const char *path)</td></tr>
  139. <tr class="separator:aee58c6352652f216577196e32a594b67"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. <tr class="memitem:acdedc6a200b01e401c9cd9b511eae6ec"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#acdedc6a200b01e401c9cd9b511eae6ec">fatCount</a> ()</td></tr>
  141. <tr class="separator:acdedc6a200b01e401c9cd9b511eae6ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
  142. <tr class="memitem:a0dd0cc689b63ef0702aed1cf36b1722d"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a0dd0cc689b63ef0702aed1cf36b1722d">fatStartBlock</a> () const </td></tr>
  143. <tr class="separator:a0dd0cc689b63ef0702aed1cf36b1722d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. <tr class="memitem:a1364f11fe9bb4717ce0685e2b7b86027"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a1364f11fe9bb4717ce0685e2b7b86027">fatType</a> () const </td></tr>
  145. <tr class="separator:a1364f11fe9bb4717ce0685e2b7b86027"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. <tr class="memitem:a1683b063fc6202ab85470b9610f16f93"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a1683b063fc6202ab85470b9610f16f93">freeClusterCount</a> ()</td></tr>
  147. <tr class="separator:a1683b063fc6202ab85470b9610f16f93"><td class="memSeparator" colspan="2">&#160;</td></tr>
  148. <tr class="memitem:acab819fa25a91dad1cc698a7e1e0eb32"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#acab819fa25a91dad1cc698a7e1e0eb32">init</a> ()</td></tr>
  149. <tr class="separator:acab819fa25a91dad1cc698a7e1e0eb32"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:a034d997a1e7a0b2b664a4357bcccd256"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a034d997a1e7a0b2b664a4357bcccd256">init</a> (uint8_t part)</td></tr>
  151. <tr class="separator:a034d997a1e7a0b2b664a4357bcccd256"><td class="memSeparator" colspan="2">&#160;</td></tr>
  152. <tr class="memitem:a2398fb37a7a9d5e0dc0ffde6a44a993d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#a2398fb37a7a9d5e0dc0ffde6a44a993d">ls</a> (uint8_t flags=0)</td></tr>
  153. <tr class="separator:a2398fb37a7a9d5e0dc0ffde6a44a993d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  154. <tr class="memitem:a122b61dbec5051304bcc81bc08b1b99d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#a122b61dbec5051304bcc81bc08b1b99d">ls</a> (const char *path, uint8_t flags=0)</td></tr>
  155. <tr class="separator:a122b61dbec5051304bcc81bc08b1b99d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  156. <tr class="memitem:ad17f2a0925b34cb3807e4c1677a2872f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#ad17f2a0925b34cb3807e4c1677a2872f">ls</a> (<a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr, uint8_t flags)</td></tr>
  157. <tr class="separator:ad17f2a0925b34cb3807e4c1677a2872f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  158. <tr class="memitem:aa79695db8e910300507210b3067d39fd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#aa79695db8e910300507210b3067d39fd">ls</a> (<a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr, const char *path, uint8_t flags)</td></tr>
  159. <tr class="separator:aa79695db8e910300507210b3067d39fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  160. <tr class="memitem:a231c62c98ba8ac3c2624dc5ad2053ebf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#a231c62c98ba8ac3c2624dc5ad2053ebf">mkdir</a> (const char *path, bool pFlag=true)</td></tr>
  161. <tr class="separator:a231c62c98ba8ac3c2624dc5ad2053ebf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  162. <tr class="memitem:a947e4586077a922892b632edac33b67a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_file.html">File</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#a947e4586077a922892b632edac33b67a">open</a> (const char *path, uint8_t mode=<a class="el" href="_arduino_files_8h.html#ad52d51659a75e25d96fb04d22ff718cb">FILE_READ</a>)</td></tr>
  163. <tr class="separator:a947e4586077a922892b632edac33b67a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  164. <tr class="memitem:abf7d7d0dab43083d5be10d70ff4669e4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#abf7d7d0dab43083d5be10d70ff4669e4">remove</a> (const char *path)</td></tr>
  165. <tr class="separator:abf7d7d0dab43083d5be10d70ff4669e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  166. <tr class="memitem:a0187891a24017b41bd7c5ba63e659e65"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#a0187891a24017b41bd7c5ba63e659e65">rename</a> (const char *oldPath, const char *newPath)</td></tr>
  167. <tr class="separator:a0187891a24017b41bd7c5ba63e659e65"><td class="memSeparator" colspan="2">&#160;</td></tr>
  168. <tr class="memitem:aaed2edc7ff7fedb163458c870bb41b33"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#aaed2edc7ff7fedb163458c870bb41b33">rmdir</a> (const char *path)</td></tr>
  169. <tr class="separator:aaed2edc7ff7fedb163458c870bb41b33"><td class="memSeparator" colspan="2">&#160;</td></tr>
  170. <tr class="memitem:ab2d483670a0a6a6a4754b23614fe11bc"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#ab2d483670a0a6a6a4754b23614fe11bc">rootDirEntryCount</a> () const </td></tr>
  171. <tr class="separator:ab2d483670a0a6a6a4754b23614fe11bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  172. <tr class="memitem:ae9363ebbbae90e895ea56e8fa3f60c13"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#ae9363ebbbae90e895ea56e8fa3f60c13">rootDirStart</a> () const </td></tr>
  173. <tr class="separator:ae9363ebbbae90e895ea56e8fa3f60c13"><td class="memSeparator" colspan="2">&#160;</td></tr>
  174. <tr class="memitem:ad60cb13557f35578f868e03e9ccb8be1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#ad60cb13557f35578f868e03e9ccb8be1">truncate</a> (const char *path, uint32_t length)</td></tr>
  175. <tr class="separator:ad60cb13557f35578f868e03e9ccb8be1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  176. <tr class="memitem:a4ca68fe47bb675df0a80df1ed7a53698"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_fat_volume.html">FatVolume</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#a4ca68fe47bb675df0a80df1ed7a53698">vol</a> ()</td></tr>
  177. <tr class="separator:a4ca68fe47bb675df0a80df1ed7a53698"><td class="memSeparator" colspan="2">&#160;</td></tr>
  178. <tr class="memitem:a07bc98088ce4a9c725700899c184f7fc"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a07bc98088ce4a9c725700899c184f7fc">volumeBlockCount</a> () const </td></tr>
  179. <tr class="separator:a07bc98088ce4a9c725700899c184f7fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  180. <tr class="memitem:acf257d02b7166683bda2abc5058004bf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#acf257d02b7166683bda2abc5058004bf">vwd</a> ()</td></tr>
  181. <tr class="separator:acf257d02b7166683bda2abc5058004bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  182. <tr class="memitem:a36d7831f92acfbfef1c4a24dd7103dc4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file_system.html#a36d7831f92acfbfef1c4a24dd7103dc4">wipe</a> (<a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr=0)</td></tr>
  183. <tr class="separator:a36d7831f92acfbfef1c4a24dd7103dc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  184. </table>
  185. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  186. <div class="textblock"><p>Integration class for the FatLib library. </p>
  187. </div><h2 class="groupheader">Member Function Documentation</h2>
  188. <a class="anchor" id="a05bd3d358a708efe2f9002d05c3a4139"></a>
  189. <div class="memitem">
  190. <div class="memproto">
  191. <table class="mlabels">
  192. <tr>
  193. <td class="mlabels-left">
  194. <table class="memname">
  195. <tr>
  196. <td class="memname">bool FatFileSystem::begin </td>
  197. <td>(</td>
  198. <td class="paramtype">uint8_t&#160;</td>
  199. <td class="paramname"><em>part</em> = <code>0</code></td><td>)</td>
  200. <td></td>
  201. </tr>
  202. </table>
  203. </td>
  204. <td class="mlabels-right">
  205. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  206. </tr>
  207. </table>
  208. </div><div class="memdoc">
  209. <p>Initialize an <a class="el" href="class_fat_file_system.html" title="Integration class for the FatLib library. ">FatFileSystem</a> object. </p><dl class="params"><dt>Parameters</dt><dd>
  210. <table class="params">
  211. <tr><td class="paramdir">[in]</td><td class="paramname">part</td><td>partition to initialize. </td></tr>
  212. </table>
  213. </dd>
  214. </dl>
  215. <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>
  216. </div>
  217. </div>
  218. <a class="anchor" id="a06beed4cea5e38116b58254a57125442"></a>
  219. <div class="memitem">
  220. <div class="memproto">
  221. <table class="mlabels">
  222. <tr>
  223. <td class="mlabels-left">
  224. <table class="memname">
  225. <tr>
  226. <td class="memname">uint8_t FatVolume::blocksPerCluster </td>
  227. <td>(</td>
  228. <td class="paramname"></td><td>)</td>
  229. <td> const</td>
  230. </tr>
  231. </table>
  232. </td>
  233. <td class="mlabels-right">
  234. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  235. </tr>
  236. </table>
  237. </div><div class="memdoc">
  238. <dl class="section return"><dt>Returns</dt><dd>The volume's cluster size in blocks. </dd></dl>
  239. </div>
  240. </div>
  241. <a class="anchor" id="abc66d856d05198d9ebe7104c8c4155d7"></a>
  242. <div class="memitem">
  243. <div class="memproto">
  244. <table class="mlabels">
  245. <tr>
  246. <td class="mlabels-left">
  247. <table class="memname">
  248. <tr>
  249. <td class="memname">uint32_t FatVolume::blocksPerFat </td>
  250. <td>(</td>
  251. <td class="paramname"></td><td>)</td>
  252. <td> const</td>
  253. </tr>
  254. </table>
  255. </td>
  256. <td class="mlabels-right">
  257. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  258. </tr>
  259. </table>
  260. </div><div class="memdoc">
  261. <dl class="section return"><dt>Returns</dt><dd>The number of blocks in one FAT. </dd></dl>
  262. </div>
  263. </div>
  264. <a class="anchor" id="aa1e3b1d0c21d202deb82668068ab00e8"></a>
  265. <div class="memitem">
  266. <div class="memproto">
  267. <table class="mlabels">
  268. <tr>
  269. <td class="mlabels-left">
  270. <table class="memname">
  271. <tr>
  272. <td class="memname"><a class="el" href="unioncache__t.html">cache_t</a>* FatVolume::cacheClear </td>
  273. <td>(</td>
  274. <td class="paramname"></td><td>)</td>
  275. <td></td>
  276. </tr>
  277. </table>
  278. </td>
  279. <td class="mlabels-right">
  280. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  281. </tr>
  282. </table>
  283. </div><div class="memdoc">
  284. <p>Clear the cache and returns a pointer to the cache. Not for normal apps. </p><dl class="section return"><dt>Returns</dt><dd>A pointer to the cache buffer or zero if an error occurs. </dd></dl>
  285. </div>
  286. </div>
  287. <a class="anchor" id="a5667915e63187a43a71dfada63800865"></a>
  288. <div class="memitem">
  289. <div class="memproto">
  290. <table class="mlabels">
  291. <tr>
  292. <td class="mlabels-left">
  293. <table class="memname">
  294. <tr>
  295. <td class="memname">bool FatFileSystem::chdir </td>
  296. <td>(</td>
  297. <td class="paramtype">bool&#160;</td>
  298. <td class="paramname"><em>set_cwd</em> = <code>false</code></td><td>)</td>
  299. <td></td>
  300. </tr>
  301. </table>
  302. </td>
  303. <td class="mlabels-right">
  304. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  305. </tr>
  306. </table>
  307. </div><div class="memdoc">
  308. <p>Change a volume's working directory to root</p>
  309. <p>Changes the volume's working directory to the SD's root directory. Optionally set the current working directory to the volume's working directory.</p>
  310. <dl class="params"><dt>Parameters</dt><dd>
  311. <table class="params">
  312. <tr><td class="paramdir">[in]</td><td class="paramname">set_cwd</td><td>Set the current working directory to this volume's working directory if true.</td></tr>
  313. </table>
  314. </dd>
  315. </dl>
  316. <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>
  317. </div>
  318. </div>
  319. <a class="anchor" id="a44af1b98e8d986d12107b654453acbc4"></a>
  320. <div class="memitem">
  321. <div class="memproto">
  322. <table class="mlabels">
  323. <tr>
  324. <td class="mlabels-left">
  325. <table class="memname">
  326. <tr>
  327. <td class="memname">bool FatFileSystem::chdir </td>
  328. <td>(</td>
  329. <td class="paramtype">const char *&#160;</td>
  330. <td class="paramname"><em>path</em>, </td>
  331. </tr>
  332. <tr>
  333. <td class="paramkey"></td>
  334. <td></td>
  335. <td class="paramtype">bool&#160;</td>
  336. <td class="paramname"><em>set_cwd</em> = <code>false</code>&#160;</td>
  337. </tr>
  338. <tr>
  339. <td></td>
  340. <td>)</td>
  341. <td></td><td></td>
  342. </tr>
  343. </table>
  344. </td>
  345. <td class="mlabels-right">
  346. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  347. </tr>
  348. </table>
  349. </div><div class="memdoc">
  350. <p>Change a volume's working directory</p>
  351. <p>Changes the volume working directory to the <em>path</em> subdirectory. Optionally set the current working directory to the volume's working directory.</p>
  352. <p>Example: If the volume's working directory is "/DIR", chdir("SUB") will change the volume's working directory from "/DIR" to "/DIR/SUB".</p>
  353. <p>If path is "/", the volume's working directory will be changed to the root directory</p>
  354. <dl class="params"><dt>Parameters</dt><dd>
  355. <table class="params">
  356. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>The name of the subdirectory.</td></tr>
  357. <tr><td class="paramdir">[in]</td><td class="paramname">set_cwd</td><td>Set the current working directory to this volume's working directory if true.</td></tr>
  358. </table>
  359. </dd>
  360. </dl>
  361. <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>
  362. </div>
  363. </div>
  364. <a class="anchor" id="af24917d6e00c8766dab168eb834047ec"></a>
  365. <div class="memitem">
  366. <div class="memproto">
  367. <table class="mlabels">
  368. <tr>
  369. <td class="mlabels-left">
  370. <table class="memname">
  371. <tr>
  372. <td class="memname">void FatFileSystem::chvol </td>
  373. <td>(</td>
  374. <td class="paramname"></td><td>)</td>
  375. <td></td>
  376. </tr>
  377. </table>
  378. </td>
  379. <td class="mlabels-right">
  380. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  381. </tr>
  382. </table>
  383. </div><div class="memdoc">
  384. <p>Set the current working directory to a volume's working directory.</p>
  385. <p>This is useful with multiple SD cards.</p>
  386. <p>The current working directory is changed to this volume's working directory.</p>
  387. <p>This is like the Windows/DOS &lt;drive letter&gt;: command. </p>
  388. </div>
  389. </div>
  390. <a class="anchor" id="a18446a9c5924304fa7a87d5f03ccaf21"></a>
  391. <div class="memitem">
  392. <div class="memproto">
  393. <table class="mlabels">
  394. <tr>
  395. <td class="mlabels-left">
  396. <table class="memname">
  397. <tr>
  398. <td class="memname">uint32_t FatVolume::clusterCount </td>
  399. <td>(</td>
  400. <td class="paramname"></td><td>)</td>
  401. <td> const</td>
  402. </tr>
  403. </table>
  404. </td>
  405. <td class="mlabels-right">
  406. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  407. </tr>
  408. </table>
  409. </div><div class="memdoc">
  410. <dl class="section return"><dt>Returns</dt><dd>The total number of clusters in the volume. </dd></dl>
  411. </div>
  412. </div>
  413. <a class="anchor" id="ac0e63f33d71d5dc95a602834274def6a"></a>
  414. <div class="memitem">
  415. <div class="memproto">
  416. <table class="mlabels">
  417. <tr>
  418. <td class="mlabels-left">
  419. <table class="memname">
  420. <tr>
  421. <td class="memname">uint8_t FatVolume::clusterSizeShift </td>
  422. <td>(</td>
  423. <td class="paramname"></td><td>)</td>
  424. <td> const</td>
  425. </tr>
  426. </table>
  427. </td>
  428. <td class="mlabels-right">
  429. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  430. </tr>
  431. </table>
  432. </div><div class="memdoc">
  433. <dl class="section return"><dt>Returns</dt><dd>The shift count required to multiply by blocksPerCluster. </dd></dl>
  434. </div>
  435. </div>
  436. <a class="anchor" id="a443364af257c219f8e908d5b073d8fa3"></a>
  437. <div class="memitem">
  438. <div class="memproto">
  439. <table class="mlabels">
  440. <tr>
  441. <td class="mlabels-left">
  442. <table class="memname">
  443. <tr>
  444. <td class="memname">uint32_t FatVolume::dataStartBlock </td>
  445. <td>(</td>
  446. <td class="paramname"></td><td>)</td>
  447. <td> const</td>
  448. </tr>
  449. </table>
  450. </td>
  451. <td class="mlabels-right">
  452. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  453. </tr>
  454. </table>
  455. </div><div class="memdoc">
  456. <dl class="section return"><dt>Returns</dt><dd>The logical block number for the start of file data. </dd></dl>
  457. </div>
  458. </div>
  459. <a class="anchor" id="a25c6311b70fa274b3be94ff25fdebba7"></a>
  460. <div class="memitem">
  461. <div class="memproto">
  462. <table class="mlabels">
  463. <tr>
  464. <td class="mlabels-left">
  465. <table class="memname">
  466. <tr>
  467. <td class="memname">int8_t FatVolume::dbgFat </td>
  468. <td>(</td>
  469. <td class="paramtype">uint32_t&#160;</td>
  470. <td class="paramname"><em>n</em>, </td>
  471. </tr>
  472. <tr>
  473. <td class="paramkey"></td>
  474. <td></td>
  475. <td class="paramtype">uint32_t *&#160;</td>
  476. <td class="paramname"><em>v</em>&#160;</td>
  477. </tr>
  478. <tr>
  479. <td></td>
  480. <td>)</td>
  481. <td></td><td></td>
  482. </tr>
  483. </table>
  484. </td>
  485. <td class="mlabels-right">
  486. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  487. </tr>
  488. </table>
  489. </div><div class="memdoc">
  490. <p>Debug access to FAT table</p>
  491. <dl class="params"><dt>Parameters</dt><dd>
  492. <table class="params">
  493. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>cluster number. </td></tr>
  494. <tr><td class="paramdir">[out]</td><td class="paramname">v</td><td>value of entry </td></tr>
  495. </table>
  496. </dd>
  497. </dl>
  498. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure </dd></dl>
  499. </div>
  500. </div>
  501. <a class="anchor" id="aee58c6352652f216577196e32a594b67"></a>
  502. <div class="memitem">
  503. <div class="memproto">
  504. <table class="mlabels">
  505. <tr>
  506. <td class="mlabels-left">
  507. <table class="memname">
  508. <tr>
  509. <td class="memname">bool FatFileSystem::exists </td>
  510. <td>(</td>
  511. <td class="paramtype">const char *&#160;</td>
  512. <td class="paramname"><em>path</em></td><td>)</td>
  513. <td></td>
  514. </tr>
  515. </table>
  516. </td>
  517. <td class="mlabels-right">
  518. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  519. </tr>
  520. </table>
  521. </div><div class="memdoc">
  522. <p>Test for the existence of a file.</p>
  523. <dl class="params"><dt>Parameters</dt><dd>
  524. <table class="params">
  525. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>Path of the file to be tested for.</td></tr>
  526. </table>
  527. </dd>
  528. </dl>
  529. <dl class="section return"><dt>Returns</dt><dd>true if the file exists else false. </dd></dl>
  530. </div>
  531. </div>
  532. <a class="anchor" id="acdedc6a200b01e401c9cd9b511eae6ec"></a>
  533. <div class="memitem">
  534. <div class="memproto">
  535. <table class="mlabels">
  536. <tr>
  537. <td class="mlabels-left">
  538. <table class="memname">
  539. <tr>
  540. <td class="memname">uint8_t FatVolume::fatCount </td>
  541. <td>(</td>
  542. <td class="paramname"></td><td>)</td>
  543. <td></td>
  544. </tr>
  545. </table>
  546. </td>
  547. <td class="mlabels-right">
  548. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  549. </tr>
  550. </table>
  551. </div><div class="memdoc">
  552. <dl class="section return"><dt>Returns</dt><dd>The number of <a class="el" href="class_file.html" title="Arduino SD.h style File API. ">File</a> Allocation Tables. </dd></dl>
  553. </div>
  554. </div>
  555. <a class="anchor" id="a0dd0cc689b63ef0702aed1cf36b1722d"></a>
  556. <div class="memitem">
  557. <div class="memproto">
  558. <table class="mlabels">
  559. <tr>
  560. <td class="mlabels-left">
  561. <table class="memname">
  562. <tr>
  563. <td class="memname">uint32_t FatVolume::fatStartBlock </td>
  564. <td>(</td>
  565. <td class="paramname"></td><td>)</td>
  566. <td> const</td>
  567. </tr>
  568. </table>
  569. </td>
  570. <td class="mlabels-right">
  571. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  572. </tr>
  573. </table>
  574. </div><div class="memdoc">
  575. <dl class="section return"><dt>Returns</dt><dd>The logical block number for the start of the first FAT. </dd></dl>
  576. </div>
  577. </div>
  578. <a class="anchor" id="a1364f11fe9bb4717ce0685e2b7b86027"></a>
  579. <div class="memitem">
  580. <div class="memproto">
  581. <table class="mlabels">
  582. <tr>
  583. <td class="mlabels-left">
  584. <table class="memname">
  585. <tr>
  586. <td class="memname">uint8_t FatVolume::fatType </td>
  587. <td>(</td>
  588. <td class="paramname"></td><td>)</td>
  589. <td> const</td>
  590. </tr>
  591. </table>
  592. </td>
  593. <td class="mlabels-right">
  594. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  595. </tr>
  596. </table>
  597. </div><div class="memdoc">
  598. <dl class="section return"><dt>Returns</dt><dd>The FAT type of the volume. Values are 12, 16 or 32. </dd></dl>
  599. </div>
  600. </div>
  601. <a class="anchor" id="a1683b063fc6202ab85470b9610f16f93"></a>
  602. <div class="memitem">
  603. <div class="memproto">
  604. <table class="mlabels">
  605. <tr>
  606. <td class="mlabels-left">
  607. <table class="memname">
  608. <tr>
  609. <td class="memname">int32_t FatVolume::freeClusterCount </td>
  610. <td>(</td>
  611. <td class="paramname"></td><td>)</td>
  612. <td></td>
  613. </tr>
  614. </table>
  615. </td>
  616. <td class="mlabels-right">
  617. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  618. </tr>
  619. </table>
  620. </div><div class="memdoc">
  621. <p>Volume free space in clusters.</p>
  622. <dl class="section return"><dt>Returns</dt><dd>Count of free clusters for success or -1 if an error occurs. </dd></dl>
  623. </div>
  624. </div>
  625. <a class="anchor" id="acab819fa25a91dad1cc698a7e1e0eb32"></a>
  626. <div class="memitem">
  627. <div class="memproto">
  628. <table class="mlabels">
  629. <tr>
  630. <td class="mlabels-left">
  631. <table class="memname">
  632. <tr>
  633. <td class="memname">bool FatVolume::init </td>
  634. <td>(</td>
  635. <td class="paramname"></td><td>)</td>
  636. <td></td>
  637. </tr>
  638. </table>
  639. </td>
  640. <td class="mlabels-right">
  641. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  642. </tr>
  643. </table>
  644. </div><div class="memdoc">
  645. <p>Initialize a FAT volume. Try partition one first then try super floppy format.</p>
  646. <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>
  647. </div>
  648. </div>
  649. <a class="anchor" id="a034d997a1e7a0b2b664a4357bcccd256"></a>
  650. <div class="memitem">
  651. <div class="memproto">
  652. <table class="mlabels">
  653. <tr>
  654. <td class="mlabels-left">
  655. <table class="memname">
  656. <tr>
  657. <td class="memname">bool FatVolume::init </td>
  658. <td>(</td>
  659. <td class="paramtype">uint8_t&#160;</td>
  660. <td class="paramname"><em>part</em></td><td>)</td>
  661. <td></td>
  662. </tr>
  663. </table>
  664. </td>
  665. <td class="mlabels-right">
  666. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  667. </tr>
  668. </table>
  669. </div><div class="memdoc">
  670. <p>Initialize a FAT volume.</p>
  671. <dl class="params"><dt>Parameters</dt><dd>
  672. <table class="params">
  673. <tr><td class="paramdir">[in]</td><td class="paramname">part</td><td>The partition to be used. Legal values for <em>part</em> are 1-4 to use the corresponding partition on a device formatted with a MBR, Master Boot Record, or zero if the device is formatted as a super floppy with the FAT boot sector in block zero.</td></tr>
  674. </table>
  675. </dd>
  676. </dl>
  677. <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>
  678. </div>
  679. </div>
  680. <a class="anchor" id="a2398fb37a7a9d5e0dc0ffde6a44a993d"></a>
  681. <div class="memitem">
  682. <div class="memproto">
  683. <table class="mlabels">
  684. <tr>
  685. <td class="mlabels-left">
  686. <table class="memname">
  687. <tr>
  688. <td class="memname">void FatFileSystem::ls </td>
  689. <td>(</td>
  690. <td class="paramtype">uint8_t&#160;</td>
  691. <td class="paramname"><em>flags</em> = <code>0</code></td><td>)</td>
  692. <td></td>
  693. </tr>
  694. </table>
  695. </td>
  696. <td class="mlabels-right">
  697. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  698. </tr>
  699. </table>
  700. </div><div class="memdoc">
  701. <p>List the directory contents of the volume working directory to Serial.</p>
  702. <dl class="params"><dt>Parameters</dt><dd>
  703. <table class="params">
  704. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The inclusive OR of</td></tr>
  705. </table>
  706. </dd>
  707. </dl>
  708. <p>LS_DATE - Print file modification date</p>
  709. <p>LS_SIZE - Print file size.</p>
  710. <p>LS_R - Recursive list of subdirectories. </p>
  711. </div>
  712. </div>
  713. <a class="anchor" id="a122b61dbec5051304bcc81bc08b1b99d"></a>
  714. <div class="memitem">
  715. <div class="memproto">
  716. <table class="mlabels">
  717. <tr>
  718. <td class="mlabels-left">
  719. <table class="memname">
  720. <tr>
  721. <td class="memname">void FatFileSystem::ls </td>
  722. <td>(</td>
  723. <td class="paramtype">const char *&#160;</td>
  724. <td class="paramname"><em>path</em>, </td>
  725. </tr>
  726. <tr>
  727. <td class="paramkey"></td>
  728. <td></td>
  729. <td class="paramtype">uint8_t&#160;</td>
  730. <td class="paramname"><em>flags</em> = <code>0</code>&#160;</td>
  731. </tr>
  732. <tr>
  733. <td></td>
  734. <td>)</td>
  735. <td></td><td></td>
  736. </tr>
  737. </table>
  738. </td>
  739. <td class="mlabels-right">
  740. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  741. </tr>
  742. </table>
  743. </div><div class="memdoc">
  744. <p>List the directory contents of a directory to Serial.</p>
  745. <dl class="params"><dt>Parameters</dt><dd>
  746. <table class="params">
  747. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>directory to list.</td></tr>
  748. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The inclusive OR of</td></tr>
  749. </table>
  750. </dd>
  751. </dl>
  752. <p>LS_DATE - Print file modification date</p>
  753. <p>LS_SIZE - Print file size.</p>
  754. <p>LS_R - Recursive list of subdirectories. </p>
  755. </div>
  756. </div>
  757. <a class="anchor" id="ad17f2a0925b34cb3807e4c1677a2872f"></a>
  758. <div class="memitem">
  759. <div class="memproto">
  760. <table class="mlabels">
  761. <tr>
  762. <td class="mlabels-left">
  763. <table class="memname">
  764. <tr>
  765. <td class="memname">void FatFileSystem::ls </td>
  766. <td>(</td>
  767. <td class="paramtype"><a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  768. <td class="paramname"><em>pr</em>, </td>
  769. </tr>
  770. <tr>
  771. <td class="paramkey"></td>
  772. <td></td>
  773. <td class="paramtype">uint8_t&#160;</td>
  774. <td class="paramname"><em>flags</em>&#160;</td>
  775. </tr>
  776. <tr>
  777. <td></td>
  778. <td>)</td>
  779. <td></td><td></td>
  780. </tr>
  781. </table>
  782. </td>
  783. <td class="mlabels-right">
  784. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  785. </tr>
  786. </table>
  787. </div><div class="memdoc">
  788. <p>List the directory contents of the volume working directory.</p>
  789. <dl class="params"><dt>Parameters</dt><dd>
  790. <table class="params">
  791. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for list.</td></tr>
  792. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The inclusive OR of</td></tr>
  793. </table>
  794. </dd>
  795. </dl>
  796. <p>LS_DATE - Print file modification date</p>
  797. <p>LS_SIZE - Print file size.</p>
  798. <p>LS_R - Recursive list of subdirectories. </p>
  799. </div>
  800. </div>
  801. <a class="anchor" id="aa79695db8e910300507210b3067d39fd"></a>
  802. <div class="memitem">
  803. <div class="memproto">
  804. <table class="mlabels">
  805. <tr>
  806. <td class="mlabels-left">
  807. <table class="memname">
  808. <tr>
  809. <td class="memname">void FatFileSystem::ls </td>
  810. <td>(</td>
  811. <td class="paramtype"><a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  812. <td class="paramname"><em>pr</em>, </td>
  813. </tr>
  814. <tr>
  815. <td class="paramkey"></td>
  816. <td></td>
  817. <td class="paramtype">const char *&#160;</td>
  818. <td class="paramname"><em>path</em>, </td>
  819. </tr>
  820. <tr>
  821. <td class="paramkey"></td>
  822. <td></td>
  823. <td class="paramtype">uint8_t&#160;</td>
  824. <td class="paramname"><em>flags</em>&#160;</td>
  825. </tr>
  826. <tr>
  827. <td></td>
  828. <td>)</td>
  829. <td></td><td></td>
  830. </tr>
  831. </table>
  832. </td>
  833. <td class="mlabels-right">
  834. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  835. </tr>
  836. </table>
  837. </div><div class="memdoc">
  838. <p>List the directory contents of a directory.</p>
  839. <dl class="params"><dt>Parameters</dt><dd>
  840. <table class="params">
  841. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for list.</td></tr>
  842. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>directory to list.</td></tr>
  843. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The inclusive OR of</td></tr>
  844. </table>
  845. </dd>
  846. </dl>
  847. <p>LS_DATE - Print file modification date</p>
  848. <p>LS_SIZE - Print file size.</p>
  849. <p>LS_R - Recursive list of subdirectories. </p>
  850. </div>
  851. </div>
  852. <a class="anchor" id="a231c62c98ba8ac3c2624dc5ad2053ebf"></a>
  853. <div class="memitem">
  854. <div class="memproto">
  855. <table class="mlabels">
  856. <tr>
  857. <td class="mlabels-left">
  858. <table class="memname">
  859. <tr>
  860. <td class="memname">bool FatFileSystem::mkdir </td>
  861. <td>(</td>
  862. <td class="paramtype">const char *&#160;</td>
  863. <td class="paramname"><em>path</em>, </td>
  864. </tr>
  865. <tr>
  866. <td class="paramkey"></td>
  867. <td></td>
  868. <td class="paramtype">bool&#160;</td>
  869. <td class="paramname"><em>pFlag</em> = <code>true</code>&#160;</td>
  870. </tr>
  871. <tr>
  872. <td></td>
  873. <td>)</td>
  874. <td></td><td></td>
  875. </tr>
  876. </table>
  877. </td>
  878. <td class="mlabels-right">
  879. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  880. </tr>
  881. </table>
  882. </div><div class="memdoc">
  883. <p>Make a subdirectory in the volume working directory.</p>
  884. <dl class="params"><dt>Parameters</dt><dd>
  885. <table class="params">
  886. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid 8.3 DOS name for the subdirectory.</td></tr>
  887. <tr><td class="paramdir">[in]</td><td class="paramname">pFlag</td><td>Create missing parent directories if true.</td></tr>
  888. </table>
  889. </dd>
  890. </dl>
  891. <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>
  892. </div>
  893. </div>
  894. <a class="anchor" id="a947e4586077a922892b632edac33b67a"></a>
  895. <div class="memitem">
  896. <div class="memproto">
  897. <table class="mlabels">
  898. <tr>
  899. <td class="mlabels-left">
  900. <table class="memname">
  901. <tr>
  902. <td class="memname"><a class="el" href="class_file.html">File</a> FatFileSystem::open </td>
  903. <td>(</td>
  904. <td class="paramtype">const char *&#160;</td>
  905. <td class="paramname"><em>path</em>, </td>
  906. </tr>
  907. <tr>
  908. <td class="paramkey"></td>
  909. <td></td>
  910. <td class="paramtype">uint8_t&#160;</td>
  911. <td class="paramname"><em>mode</em> = <code><a class="el" href="_arduino_files_8h.html#ad52d51659a75e25d96fb04d22ff718cb">FILE_READ</a></code>&#160;</td>
  912. </tr>
  913. <tr>
  914. <td></td>
  915. <td>)</td>
  916. <td></td><td></td>
  917. </tr>
  918. </table>
  919. </td>
  920. <td class="mlabels-right">
  921. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  922. </tr>
  923. </table>
  924. </div><div class="memdoc">
  925. <p>open a file</p>
  926. <dl class="params"><dt>Parameters</dt><dd>
  927. <table class="params">
  928. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>location of file to be opened. </td></tr>
  929. <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>open mode flags. </td></tr>
  930. </table>
  931. </dd>
  932. </dl>
  933. <dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="class_file.html" title="Arduino SD.h style File API. ">File</a> object. </dd></dl>
  934. </div>
  935. </div>
  936. <a class="anchor" id="abf7d7d0dab43083d5be10d70ff4669e4"></a>
  937. <div class="memitem">
  938. <div class="memproto">
  939. <table class="mlabels">
  940. <tr>
  941. <td class="mlabels-left">
  942. <table class="memname">
  943. <tr>
  944. <td class="memname">bool FatFileSystem::remove </td>
  945. <td>(</td>
  946. <td class="paramtype">const char *&#160;</td>
  947. <td class="paramname"><em>path</em></td><td>)</td>
  948. <td></td>
  949. </tr>
  950. </table>
  951. </td>
  952. <td class="mlabels-right">
  953. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  954. </tr>
  955. </table>
  956. </div><div class="memdoc">
  957. <p>Remove a file from the volume working directory.</p>
  958. <dl class="params"><dt>Parameters</dt><dd>
  959. <table class="params">
  960. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid 8.3 DOS name for the file.</td></tr>
  961. </table>
  962. </dd>
  963. </dl>
  964. <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>
  965. </div>
  966. </div>
  967. <a class="anchor" id="a0187891a24017b41bd7c5ba63e659e65"></a>
  968. <div class="memitem">
  969. <div class="memproto">
  970. <table class="mlabels">
  971. <tr>
  972. <td class="mlabels-left">
  973. <table class="memname">
  974. <tr>
  975. <td class="memname">bool FatFileSystem::rename </td>
  976. <td>(</td>
  977. <td class="paramtype">const char *&#160;</td>
  978. <td class="paramname"><em>oldPath</em>, </td>
  979. </tr>
  980. <tr>
  981. <td class="paramkey"></td>
  982. <td></td>
  983. <td class="paramtype">const char *&#160;</td>
  984. <td class="paramname"><em>newPath</em>&#160;</td>
  985. </tr>
  986. <tr>
  987. <td></td>
  988. <td>)</td>
  989. <td></td><td></td>
  990. </tr>
  991. </table>
  992. </td>
  993. <td class="mlabels-right">
  994. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  995. </tr>
  996. </table>
  997. </div><div class="memdoc">
  998. <p>Rename a file or subdirectory.</p>
  999. <dl class="params"><dt>Parameters</dt><dd>
  1000. <table class="params">
  1001. <tr><td class="paramdir">[in]</td><td class="paramname">oldPath</td><td>Path name to the file or subdirectory to be renamed.</td></tr>
  1002. <tr><td class="paramdir">[in]</td><td class="paramname">newPath</td><td>New path name of the file or subdirectory.</td></tr>
  1003. </table>
  1004. </dd>
  1005. </dl>
  1006. <p>The <em>newPath</em> object must not exist before the rename call.</p>
  1007. <p>The file to be renamed must not be open. The directory entry may be moved and file system corruption could occur if the file is accessed by a file object that was opened before the <a class="el" href="class_fat_file_system.html#a0187891a24017b41bd7c5ba63e659e65">rename()</a> call.</p>
  1008. <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>
  1009. </div>
  1010. </div>
  1011. <a class="anchor" id="aaed2edc7ff7fedb163458c870bb41b33"></a>
  1012. <div class="memitem">
  1013. <div class="memproto">
  1014. <table class="mlabels">
  1015. <tr>
  1016. <td class="mlabels-left">
  1017. <table class="memname">
  1018. <tr>
  1019. <td class="memname">bool FatFileSystem::rmdir </td>
  1020. <td>(</td>
  1021. <td class="paramtype">const char *&#160;</td>
  1022. <td class="paramname"><em>path</em></td><td>)</td>
  1023. <td></td>
  1024. </tr>
  1025. </table>
  1026. </td>
  1027. <td class="mlabels-right">
  1028. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1029. </tr>
  1030. </table>
  1031. </div><div class="memdoc">
  1032. <p>Remove a subdirectory from the volume's working directory.</p>
  1033. <dl class="params"><dt>Parameters</dt><dd>
  1034. <table class="params">
  1035. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid 8.3 DOS name for the subdirectory.</td></tr>
  1036. </table>
  1037. </dd>
  1038. </dl>
  1039. <p>The subdirectory file will be removed only if it is empty.</p>
  1040. <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>
  1041. </div>
  1042. </div>
  1043. <a class="anchor" id="ab2d483670a0a6a6a4754b23614fe11bc"></a>
  1044. <div class="memitem">
  1045. <div class="memproto">
  1046. <table class="mlabels">
  1047. <tr>
  1048. <td class="mlabels-left">
  1049. <table class="memname">
  1050. <tr>
  1051. <td class="memname">uint16_t FatVolume::rootDirEntryCount </td>
  1052. <td>(</td>
  1053. <td class="paramname"></td><td>)</td>
  1054. <td> const</td>
  1055. </tr>
  1056. </table>
  1057. </td>
  1058. <td class="mlabels-right">
  1059. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1060. </tr>
  1061. </table>
  1062. </div><div class="memdoc">
  1063. <dl class="section return"><dt>Returns</dt><dd>The number of entries in the root directory for FAT16 volumes. </dd></dl>
  1064. </div>
  1065. </div>
  1066. <a class="anchor" id="ae9363ebbbae90e895ea56e8fa3f60c13"></a>
  1067. <div class="memitem">
  1068. <div class="memproto">
  1069. <table class="mlabels">
  1070. <tr>
  1071. <td class="mlabels-left">
  1072. <table class="memname">
  1073. <tr>
  1074. <td class="memname">uint32_t FatVolume::rootDirStart </td>
  1075. <td>(</td>
  1076. <td class="paramname"></td><td>)</td>
  1077. <td> const</td>
  1078. </tr>
  1079. </table>
  1080. </td>
  1081. <td class="mlabels-right">
  1082. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1083. </tr>
  1084. </table>
  1085. </div><div class="memdoc">
  1086. <dl class="section return"><dt>Returns</dt><dd>The logical block number for the start of the root directory on FAT16 volumes or the first cluster number on FAT32 volumes. </dd></dl>
  1087. </div>
  1088. </div>
  1089. <a class="anchor" id="ad60cb13557f35578f868e03e9ccb8be1"></a>
  1090. <div class="memitem">
  1091. <div class="memproto">
  1092. <table class="mlabels">
  1093. <tr>
  1094. <td class="mlabels-left">
  1095. <table class="memname">
  1096. <tr>
  1097. <td class="memname">bool FatFileSystem::truncate </td>
  1098. <td>(</td>
  1099. <td class="paramtype">const char *&#160;</td>
  1100. <td class="paramname"><em>path</em>, </td>
  1101. </tr>
  1102. <tr>
  1103. <td class="paramkey"></td>
  1104. <td></td>
  1105. <td class="paramtype">uint32_t&#160;</td>
  1106. <td class="paramname"><em>length</em>&#160;</td>
  1107. </tr>
  1108. <tr>
  1109. <td></td>
  1110. <td>)</td>
  1111. <td></td><td></td>
  1112. </tr>
  1113. </table>
  1114. </td>
  1115. <td class="mlabels-right">
  1116. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1117. </tr>
  1118. </table>
  1119. </div><div class="memdoc">
  1120. <p>Truncate a file to a specified length. The current file position will be maintained if it is less than or equal to <em>length</em> otherwise it will be set to end of file.</p>
  1121. <dl class="params"><dt>Parameters</dt><dd>
  1122. <table class="params">
  1123. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid 8.3 DOS name for the file. </td></tr>
  1124. <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>The desired length for the file.</td></tr>
  1125. </table>
  1126. </dd>
  1127. </dl>
  1128. <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>
  1129. </div>
  1130. </div>
  1131. <a class="anchor" id="a4ca68fe47bb675df0a80df1ed7a53698"></a>
  1132. <div class="memitem">
  1133. <div class="memproto">
  1134. <table class="mlabels">
  1135. <tr>
  1136. <td class="mlabels-left">
  1137. <table class="memname">
  1138. <tr>
  1139. <td class="memname"><a class="el" href="class_fat_volume.html">FatVolume</a>* FatFileSystem::vol </td>
  1140. <td>(</td>
  1141. <td class="paramname"></td><td>)</td>
  1142. <td></td>
  1143. </tr>
  1144. </table>
  1145. </td>
  1146. <td class="mlabels-right">
  1147. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1148. </tr>
  1149. </table>
  1150. </div><div class="memdoc">
  1151. <dl class="section return"><dt>Returns</dt><dd>a pointer to the <a class="el" href="class_fat_volume.html" title="Access FAT16 and FAT32 volumes on raw file devices. ">FatVolume</a> object. </dd></dl>
  1152. </div>
  1153. </div>
  1154. <a class="anchor" id="a07bc98088ce4a9c725700899c184f7fc"></a>
  1155. <div class="memitem">
  1156. <div class="memproto">
  1157. <table class="mlabels">
  1158. <tr>
  1159. <td class="mlabels-left">
  1160. <table class="memname">
  1161. <tr>
  1162. <td class="memname">uint32_t FatVolume::volumeBlockCount </td>
  1163. <td>(</td>
  1164. <td class="paramname"></td><td>)</td>
  1165. <td> const</td>
  1166. </tr>
  1167. </table>
  1168. </td>
  1169. <td class="mlabels-right">
  1170. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1171. </tr>
  1172. </table>
  1173. </div><div class="memdoc">
  1174. <dl class="section return"><dt>Returns</dt><dd>The number of blocks in the volume </dd></dl>
  1175. </div>
  1176. </div>
  1177. <a class="anchor" id="acf257d02b7166683bda2abc5058004bf"></a>
  1178. <div class="memitem">
  1179. <div class="memproto">
  1180. <table class="mlabels">
  1181. <tr>
  1182. <td class="mlabels-left">
  1183. <table class="memname">
  1184. <tr>
  1185. <td class="memname"><a class="el" href="class_fat_file.html">FatFile</a>* FatFileSystem::vwd </td>
  1186. <td>(</td>
  1187. <td class="paramname"></td><td>)</td>
  1188. <td></td>
  1189. </tr>
  1190. </table>
  1191. </td>
  1192. <td class="mlabels-right">
  1193. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1194. </tr>
  1195. </table>
  1196. </div><div class="memdoc">
  1197. <dl class="section return"><dt>Returns</dt><dd>a pointer to the volume working directory. </dd></dl>
  1198. </div>
  1199. </div>
  1200. <a class="anchor" id="a36d7831f92acfbfef1c4a24dd7103dc4"></a>
  1201. <div class="memitem">
  1202. <div class="memproto">
  1203. <table class="mlabels">
  1204. <tr>
  1205. <td class="mlabels-left">
  1206. <table class="memname">
  1207. <tr>
  1208. <td class="memname">bool FatFileSystem::wipe </td>
  1209. <td>(</td>
  1210. <td class="paramtype"><a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  1211. <td class="paramname"><em>pr</em> = <code>0</code></td><td>)</td>
  1212. <td></td>
  1213. </tr>
  1214. </table>
  1215. </td>
  1216. <td class="mlabels-right">
  1217. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1218. </tr>
  1219. </table>
  1220. </div><div class="memdoc">
  1221. <p>Wipe all data from the volume. You must reinitialize the volume before accessing it again. </p><dl class="params"><dt>Parameters</dt><dd>
  1222. <table class="params">
  1223. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>print stream for status dots. </td></tr>
  1224. </table>
  1225. </dd>
  1226. </dl>
  1227. <dl class="section return"><dt>Returns</dt><dd>true for success else false. </dd></dl>
  1228. </div>
  1229. </div>
  1230. <hr/>The documentation for this class was generated from the following file:<ul>
  1231. <li>Arduino/libraries/SdFat/src/FatLib/<a class="el" href="_fat_file_system_8h.html">FatFileSystem.h</a></li>
  1232. </ul>
  1233. </div><!-- contents -->
  1234. <!-- start footer part -->
  1235. <hr class="footer"/><address class="footer"><small>
  1236. Generated on Fri Feb 12 2016 13:43:49 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  1237. <img class="footer" src="doxygen.png" alt="doxygen"/>
  1238. </a> 1.8.10
  1239. </small></address>
  1240. </body>
  1241. </html>