Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

1273 linhas
56KB

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