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

1712 líneas
73KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.16"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>SdFat: FatVolume Class Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">SdFat
  25. </div>
  26. </td>
  27. </tr>
  28. </tbody>
  29. </table>
  30. </div>
  31. <!-- end header part -->
  32. <!-- Generated by Doxygen 1.8.16 -->
  33. <script type="text/javascript">
  34. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  35. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  36. /* @license-end */
  37. </script>
  38. <script type="text/javascript" src="menudata.js"></script>
  39. <script type="text/javascript" src="menu.js"></script>
  40. <script type="text/javascript">
  41. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  42. $(function() {
  43. initMenu('',true,false,'search.php','Search');
  44. $(document).ready(function() { init_search(); });
  45. });
  46. /* @license-end */</script>
  47. <div id="main-nav"></div>
  48. <!-- window showing the filter options -->
  49. <div id="MSearchSelectWindow"
  50. onmouseover="return searchBox.OnSearchSelectShow()"
  51. onmouseout="return searchBox.OnSearchSelectHide()"
  52. onkeydown="return searchBox.OnSearchSelectKey(event)">
  53. </div>
  54. <!-- iframe showing the search results (closed by default) -->
  55. <div id="MSearchResultsWindow">
  56. <iframe src="javascript:void(0)" frameborder="0"
  57. name="MSearchResults" id="MSearchResults">
  58. </iframe>
  59. </div>
  60. </div><!-- top -->
  61. <div class="header">
  62. <div class="summary">
  63. <a href="#pub-methods">Public Member Functions</a> &#124;
  64. <a href="#pub-static-methods">Static Public Member Functions</a> &#124;
  65. <a href="class_fat_volume-members.html">List of all members</a> </div>
  66. <div class="headertitle">
  67. <div class="title">FatVolume Class Reference</div> </div>
  68. </div><!--header-->
  69. <div class="contents">
  70. <p>Integration class for the FatLib library.
  71. <a href="class_fat_volume.html#details">More...</a></p>
  72. <p><code>#include &lt;FatVolume.h&gt;</code></p>
  73. <div class="dynheader">
  74. Inheritance diagram for FatVolume:</div>
  75. <div class="dyncontent">
  76. <div class="center"><img src="class_fat_volume__inherit__graph.png" border="0" usemap="#_fat_volume_inherit__map" alt="Inheritance graph"/></div>
  77. <map name="_fat_volume_inherit__map" id="_fat_volume_inherit__map">
  78. <area shape="rect" title="Integration class for the FatLib library." alt="" coords="40,80,125,107"/>
  79. <area shape="rect" href="class_sd_base.html" title=" " alt="" coords="5,155,160,181"/>
  80. <area shape="rect" href="class_fat_partition.html" title="Access FAT16 and FAT32 partitions on raw file devices." alt="" coords="38,5,127,32"/>
  81. <area shape="rect" href="class_sd_fat32.html" title="SD file system class for FAT volumes." alt="" coords="47,229,118,256"/>
  82. </map>
  83. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  84. <div class="dynheader">
  85. Collaboration diagram for FatVolume:</div>
  86. <div class="dyncontent">
  87. <div class="center"><img src="class_fat_volume__coll__graph.png" border="0" usemap="#_fat_volume_coll__map" alt="Collaboration graph"/></div>
  88. <map name="_fat_volume_coll__map" id="_fat_volume_coll__map">
  89. <area shape="rect" title="Integration class for the FatLib library." alt="" coords="7,80,93,107"/>
  90. <area shape="rect" href="class_fat_partition.html" title="Access FAT16 and FAT32 partitions on raw file devices." alt="" coords="5,5,95,32"/>
  91. </map>
  92. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  93. <table class="memberdecls">
  94. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  95. Public Member Functions</h2></td></tr>
  96. <tr class="memitem:af3a219ea89bbbf310a61115c9a3d221a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#af3a219ea89bbbf310a61115c9a3d221a">begin</a> (<a class="el" href="class_sd_spi_card.html">BlockDevice</a> *dev, bool setCwv=true, uint8_t part=1)</td></tr>
  97. <tr class="separator:af3a219ea89bbbf310a61115c9a3d221a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  98. <tr class="memitem:a1c3ab374b425c27bb6b6ddd55752c056"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#a1c3ab374b425c27bb6b6ddd55752c056">bytesPerCluster</a> ()</td></tr>
  99. <tr class="separator:a1c3ab374b425c27bb6b6ddd55752c056"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:aaf43a09e71689c257f4b189ee307db4f"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#aaf43a09e71689c257f4b189ee307db4f">bytesPerClusterShift</a> ()</td></tr>
  101. <tr class="separator:aaf43a09e71689c257f4b189ee307db4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:a1eba03c763bab44263735488435731f8"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#a1eba03c763bab44263735488435731f8">bytesPerSector</a> ()</td></tr>
  103. <tr class="separator:a1eba03c763bab44263735488435731f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:a4e513ab3fcfb95583092793116aa4df5"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#a4e513ab3fcfb95583092793116aa4df5">bytesPerSectorShift</a> ()</td></tr>
  105. <tr class="separator:a4e513ab3fcfb95583092793116aa4df5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:abf74c1e3c714b396e6271aee304c2448"><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_partition.html#abf74c1e3c714b396e6271aee304c2448">cacheClear</a> ()</td></tr>
  107. <tr class="separator:abf74c1e3c714b396e6271aee304c2448"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:a659d921b3efd52d310a33cba69eff18b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a659d921b3efd52d310a33cba69eff18b">chdir</a> ()</td></tr>
  109. <tr class="separator:a659d921b3efd52d310a33cba69eff18b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:ac0f6cf6ece2285af777c1fdf5cf8c219"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#ac0f6cf6ece2285af777c1fdf5cf8c219">chdir</a> (const char *path)</td></tr>
  111. <tr class="separator:ac0f6cf6ece2285af777c1fdf5cf8c219"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:ac591520e33ff8ba51e80782a87423872"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#ac591520e33ff8ba51e80782a87423872">chdir</a> (const String &amp;path)</td></tr>
  113. <tr class="separator:ac591520e33ff8ba51e80782a87423872"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:a36fbc19755b066068cac7c4ca578b27b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a36fbc19755b066068cac7c4ca578b27b">chvol</a> ()</td></tr>
  115. <tr class="separator:a36fbc19755b066068cac7c4ca578b27b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:aba35645c23735c4833c07bc2b3adcd1f"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#aba35645c23735c4833c07bc2b3adcd1f">clusterCount</a> () const</td></tr>
  117. <tr class="separator:aba35645c23735c4833c07bc2b3adcd1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:a7e89ec91780f7dfa060b261c605bf2e5"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#a7e89ec91780f7dfa060b261c605bf2e5">dataStartSector</a> () const</td></tr>
  119. <tr class="separator:a7e89ec91780f7dfa060b261c605bf2e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:a0af1e91a311180119b4a2c85d7e6e87e"><td class="memItemLeft" align="right" valign="top">int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#a0af1e91a311180119b4a2c85d7e6e87e">dbgFat</a> (uint32_t n, uint32_t *v)</td></tr>
  121. <tr class="separator:a0af1e91a311180119b4a2c85d7e6e87e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. <tr class="memitem:a21541734ad76f64ea24b9f45e2bd6117"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a21541734ad76f64ea24b9f45e2bd6117">exists</a> (const char *path)</td></tr>
  123. <tr class="separator:a21541734ad76f64ea24b9f45e2bd6117"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:afb7709e5b9e04265467305b43adf7cef"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#afb7709e5b9e04265467305b43adf7cef">exists</a> (const String &amp;path)</td></tr>
  125. <tr class="separator:afb7709e5b9e04265467305b43adf7cef"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:a56b37c3230818b9ae8e0a25c01a370a3"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#a56b37c3230818b9ae8e0a25c01a370a3">fatCount</a> ()</td></tr>
  127. <tr class="separator:a56b37c3230818b9ae8e0a25c01a370a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:a6a1ce7d707cf15bea08b63216413e055"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#a6a1ce7d707cf15bea08b63216413e055">fatStartSector</a> () const</td></tr>
  129. <tr class="separator:a6a1ce7d707cf15bea08b63216413e055"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. <tr class="memitem:ad45c276232d7093b82f1075e8c488bac"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#ad45c276232d7093b82f1075e8c488bac">fatType</a> () const</td></tr>
  131. <tr class="separator:ad45c276232d7093b82f1075e8c488bac"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:ac9689f1e11f59acc5f1b21ed9bb71174"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#ac9689f1e11f59acc5f1b21ed9bb71174">freeClusterCount</a> ()</td></tr>
  133. <tr class="separator:ac9689f1e11f59acc5f1b21ed9bb71174"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:ab827224f30eec57255d21cae589911ef"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#ab827224f30eec57255d21cae589911ef">init</a> (<a class="el" href="class_sd_spi_card.html">BlockDevice</a> *dev, uint8_t part=1)</td></tr>
  135. <tr class="separator:ab827224f30eec57255d21cae589911ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:a455ad7b2a5b6b31551dca08087a3c404"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a455ad7b2a5b6b31551dca08087a3c404">ls</a> (const char *path, uint8_t flags=0)</td></tr>
  137. <tr class="separator:a455ad7b2a5b6b31551dca08087a3c404"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:ac5fc83cac7fd3af0b140a7986b9472f8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#ac5fc83cac7fd3af0b140a7986b9472f8">ls</a> (<a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr, const char *path, uint8_t flags)</td></tr>
  139. <tr class="separator:ac5fc83cac7fd3af0b140a7986b9472f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. <tr class="memitem:ae40964f357cfff4208812344a0e6f26f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#ae40964f357cfff4208812344a0e6f26f">ls</a> (<a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr, uint8_t flags=0)</td></tr>
  141. <tr class="separator:ae40964f357cfff4208812344a0e6f26f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  142. <tr class="memitem:ad455ad05551329865c659cc4676f2d18"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#ad455ad05551329865c659cc4676f2d18">ls</a> (uint8_t flags=0)</td></tr>
  143. <tr class="separator:ad455ad05551329865c659cc4676f2d18"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. <tr class="memitem:ad80bccf8f24ff001a7b9277effc2cc52"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#ad80bccf8f24ff001a7b9277effc2cc52">mkdir</a> (const char *path, bool pFlag=true)</td></tr>
  145. <tr class="separator:ad80bccf8f24ff001a7b9277effc2cc52"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. <tr class="memitem:ab423ec4f7e5b58a6d454f328f61fd864"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#ab423ec4f7e5b58a6d454f328f61fd864">mkdir</a> (const String &amp;path, bool pFlag=true)</td></tr>
  147. <tr class="separator:ab423ec4f7e5b58a6d454f328f61fd864"><td class="memSeparator" colspan="2">&#160;</td></tr>
  148. <tr class="memitem:a22923b86de9c797ce5e19f206dd4ce1f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_file32.html">File32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a22923b86de9c797ce5e19f206dd4ce1f">open</a> (const char *path, oflag_t oflag=0X00)</td></tr>
  149. <tr class="separator:a22923b86de9c797ce5e19f206dd4ce1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:af7178b7f13eeae7748640b6268a34812"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_file32.html">File32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#af7178b7f13eeae7748640b6268a34812">open</a> (const String &amp;path, oflag_t oflag=0X00)</td></tr>
  151. <tr class="separator:af7178b7f13eeae7748640b6268a34812"><td class="memSeparator" colspan="2">&#160;</td></tr>
  152. <tr class="memitem:abb11d05ef407775bcdb9b14a6c608433"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#abb11d05ef407775bcdb9b14a6c608433">remove</a> (const char *path)</td></tr>
  153. <tr class="separator:abb11d05ef407775bcdb9b14a6c608433"><td class="memSeparator" colspan="2">&#160;</td></tr>
  154. <tr class="memitem:a994411f55df474be6be87f06100c2c39"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a994411f55df474be6be87f06100c2c39">remove</a> (const String &amp;path)</td></tr>
  155. <tr class="separator:a994411f55df474be6be87f06100c2c39"><td class="memSeparator" colspan="2">&#160;</td></tr>
  156. <tr class="memitem:a5e4ea6c91569dc435c7aacd7ba704911"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a5e4ea6c91569dc435c7aacd7ba704911">rename</a> (const char *oldPath, const char *newPath)</td></tr>
  157. <tr class="separator:a5e4ea6c91569dc435c7aacd7ba704911"><td class="memSeparator" colspan="2">&#160;</td></tr>
  158. <tr class="memitem:aa7015c0f694261780081c79c05d0882d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#aa7015c0f694261780081c79c05d0882d">rename</a> (const String &amp;oldPath, const String &amp;newPath)</td></tr>
  159. <tr class="separator:aa7015c0f694261780081c79c05d0882d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  160. <tr class="memitem:af1181990bcece7dbb7d19293dd4fe11a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#af1181990bcece7dbb7d19293dd4fe11a">rmdir</a> (const char *path)</td></tr>
  161. <tr class="separator:af1181990bcece7dbb7d19293dd4fe11a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  162. <tr class="memitem:a105f437fb649b57ed3823f8ff1a2f37e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a105f437fb649b57ed3823f8ff1a2f37e">rmdir</a> (const String &amp;path)</td></tr>
  163. <tr class="separator:a105f437fb649b57ed3823f8ff1a2f37e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  164. <tr class="memitem:a6ba99b9711269b5ab6ca091b88e81288"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#a6ba99b9711269b5ab6ca091b88e81288">rootDirEntryCount</a> () const</td></tr>
  165. <tr class="separator:a6ba99b9711269b5ab6ca091b88e81288"><td class="memSeparator" colspan="2">&#160;</td></tr>
  166. <tr class="memitem:a5d005e0f6fd4b84da8a5ebdea03aaf85"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#a5d005e0f6fd4b84da8a5ebdea03aaf85">rootDirStart</a> () const</td></tr>
  167. <tr class="separator:a5d005e0f6fd4b84da8a5ebdea03aaf85"><td class="memSeparator" colspan="2">&#160;</td></tr>
  168. <tr class="memitem:a6b970fa2e06de1a826b09e251dc3119b"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#a6b970fa2e06de1a826b09e251dc3119b">sectorMask</a> ()</td></tr>
  169. <tr class="separator:a6b970fa2e06de1a826b09e251dc3119b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  170. <tr class="memitem:a836546c368e6ffe117e6ab8775d23eba"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#a836546c368e6ffe117e6ab8775d23eba">sectorsPerCluster</a> () const</td></tr>
  171. <tr class="separator:a836546c368e6ffe117e6ab8775d23eba"><td class="memSeparator" colspan="2">&#160;</td></tr>
  172. <tr class="memitem:a593a27482ff8d993542d6f82bd92e26c"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#a593a27482ff8d993542d6f82bd92e26c">sectorsPerClusterShift</a> () const</td></tr>
  173. <tr class="separator:a593a27482ff8d993542d6f82bd92e26c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  174. <tr class="memitem:a1f5c7599333dbe152a3cdd60623ce6d1"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#a1f5c7599333dbe152a3cdd60623ce6d1">sectorsPerFat</a> () const</td></tr>
  175. <tr class="separator:a1f5c7599333dbe152a3cdd60623ce6d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  176. <tr class="memitem:a86a08bf789e33567418465b9b12751e2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a86a08bf789e33567418465b9b12751e2">truncate</a> (const char *path, uint32_t length)</td></tr>
  177. <tr class="separator:a86a08bf789e33567418465b9b12751e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  178. <tr class="memitem:a97ef39ec02c38c0772f0029d42edcb46"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a97ef39ec02c38c0772f0029d42edcb46">truncate</a> (const String &amp;path, uint32_t length)</td></tr>
  179. <tr class="separator:a97ef39ec02c38c0772f0029d42edcb46"><td class="memSeparator" colspan="2">&#160;</td></tr>
  180. <tr class="memitem:a916ba7d67711bb62daf12ecd47ca4b8e"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_partition.html#a916ba7d67711bb62daf12ecd47ca4b8e">volumeSectorCount</a> () const</td></tr>
  181. <tr class="separator:a916ba7d67711bb62daf12ecd47ca4b8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  182. </table><table class="memberdecls">
  183. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
  184. Static Public Member Functions</h2></td></tr>
  185. <tr class="memitem:a06acd4a434456b6a4644ff79a0bf0a24"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_fat_volume.html">FatVolume</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_volume.html#a06acd4a434456b6a4644ff79a0bf0a24">cwv</a> ()</td></tr>
  186. <tr class="separator:a06acd4a434456b6a4644ff79a0bf0a24"><td class="memSeparator" colspan="2">&#160;</td></tr>
  187. </table>
  188. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  189. <div class="textblock"><p>Integration class for the FatLib library. </p>
  190. </div><h2 class="groupheader">Member Function Documentation</h2>
  191. <a id="af3a219ea89bbbf310a61115c9a3d221a"></a>
  192. <h2 class="memtitle"><span class="permalink"><a href="#af3a219ea89bbbf310a61115c9a3d221a">&#9670;&nbsp;</a></span>begin()</h2>
  193. <div class="memitem">
  194. <div class="memproto">
  195. <table class="mlabels">
  196. <tr>
  197. <td class="mlabels-left">
  198. <table class="memname">
  199. <tr>
  200. <td class="memname">bool FatVolume::begin </td>
  201. <td>(</td>
  202. <td class="paramtype"><a class="el" href="class_sd_spi_card.html">BlockDevice</a> *&#160;</td>
  203. <td class="paramname"><em>dev</em>, </td>
  204. </tr>
  205. <tr>
  206. <td class="paramkey"></td>
  207. <td></td>
  208. <td class="paramtype">bool&#160;</td>
  209. <td class="paramname"><em>setCwv</em> = <code>true</code>, </td>
  210. </tr>
  211. <tr>
  212. <td class="paramkey"></td>
  213. <td></td>
  214. <td class="paramtype">uint8_t&#160;</td>
  215. <td class="paramname"><em>part</em> = <code>1</code>&#160;</td>
  216. </tr>
  217. <tr>
  218. <td></td>
  219. <td>)</td>
  220. <td></td><td></td>
  221. </tr>
  222. </table>
  223. </td>
  224. <td class="mlabels-right">
  225. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  226. </tr>
  227. </table>
  228. </div><div class="memdoc">
  229. <p>Initialize an <a class="el" href="class_fat_volume.html" title="Integration class for the FatLib library.">FatVolume</a> object. </p><dl class="params"><dt>Parameters</dt><dd>
  230. <table class="params">
  231. <tr><td class="paramdir">[in]</td><td class="paramname">dev</td><td>Device block driver. </td></tr>
  232. <tr><td class="paramdir">[in]</td><td class="paramname">setCwv</td><td>Set current working volume if true. </td></tr>
  233. <tr><td class="paramdir">[in]</td><td class="paramname">part</td><td>partition to initialize. </td></tr>
  234. </table>
  235. </dd>
  236. </dl>
  237. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  238. </div>
  239. </div>
  240. <a id="a1c3ab374b425c27bb6b6ddd55752c056"></a>
  241. <h2 class="memtitle"><span class="permalink"><a href="#a1c3ab374b425c27bb6b6ddd55752c056">&#9670;&nbsp;</a></span>bytesPerCluster()</h2>
  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">uint16_t FatPartition::bytesPerCluster </td>
  250. <td>(</td>
  251. <td class="paramname"></td><td>)</td>
  252. <td></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>Number of bytes in a cluster. </dd></dl>
  262. </div>
  263. </div>
  264. <a id="aaf43a09e71689c257f4b189ee307db4f"></a>
  265. <h2 class="memtitle"><span class="permalink"><a href="#aaf43a09e71689c257f4b189ee307db4f">&#9670;&nbsp;</a></span>bytesPerClusterShift()</h2>
  266. <div class="memitem">
  267. <div class="memproto">
  268. <table class="mlabels">
  269. <tr>
  270. <td class="mlabels-left">
  271. <table class="memname">
  272. <tr>
  273. <td class="memname">uint8_t FatPartition::bytesPerClusterShift </td>
  274. <td>(</td>
  275. <td class="paramname"></td><td>)</td>
  276. <td></td>
  277. </tr>
  278. </table>
  279. </td>
  280. <td class="mlabels-right">
  281. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  282. </tr>
  283. </table>
  284. </div><div class="memdoc">
  285. <dl class="section return"><dt>Returns</dt><dd>The shift count required to multiply by bytesPerCluster. </dd></dl>
  286. </div>
  287. </div>
  288. <a id="a1eba03c763bab44263735488435731f8"></a>
  289. <h2 class="memtitle"><span class="permalink"><a href="#a1eba03c763bab44263735488435731f8">&#9670;&nbsp;</a></span>bytesPerSector()</h2>
  290. <div class="memitem">
  291. <div class="memproto">
  292. <table class="mlabels">
  293. <tr>
  294. <td class="mlabels-left">
  295. <table class="memname">
  296. <tr>
  297. <td class="memname">uint16_t FatPartition::bytesPerSector </td>
  298. <td>(</td>
  299. <td class="paramname"></td><td>)</td>
  300. <td></td>
  301. </tr>
  302. </table>
  303. </td>
  304. <td class="mlabels-right">
  305. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  306. </tr>
  307. </table>
  308. </div><div class="memdoc">
  309. <dl class="section return"><dt>Returns</dt><dd>Number of bytes per sector. </dd></dl>
  310. </div>
  311. </div>
  312. <a id="a4e513ab3fcfb95583092793116aa4df5"></a>
  313. <h2 class="memtitle"><span class="permalink"><a href="#a4e513ab3fcfb95583092793116aa4df5">&#9670;&nbsp;</a></span>bytesPerSectorShift()</h2>
  314. <div class="memitem">
  315. <div class="memproto">
  316. <table class="mlabels">
  317. <tr>
  318. <td class="mlabels-left">
  319. <table class="memname">
  320. <tr>
  321. <td class="memname">uint8_t FatPartition::bytesPerSectorShift </td>
  322. <td>(</td>
  323. <td class="paramname"></td><td>)</td>
  324. <td></td>
  325. </tr>
  326. </table>
  327. </td>
  328. <td class="mlabels-right">
  329. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  330. </tr>
  331. </table>
  332. </div><div class="memdoc">
  333. <dl class="section return"><dt>Returns</dt><dd>The shift count required to multiply by bytesPerCluster. </dd></dl>
  334. </div>
  335. </div>
  336. <a id="abf74c1e3c714b396e6271aee304c2448"></a>
  337. <h2 class="memtitle"><span class="permalink"><a href="#abf74c1e3c714b396e6271aee304c2448">&#9670;&nbsp;</a></span>cacheClear()</h2>
  338. <div class="memitem">
  339. <div class="memproto">
  340. <table class="mlabels">
  341. <tr>
  342. <td class="mlabels-left">
  343. <table class="memname">
  344. <tr>
  345. <td class="memname"><a class="el" href="unioncache__t.html">cache_t</a>* FatPartition::cacheClear </td>
  346. <td>(</td>
  347. <td class="paramname"></td><td>)</td>
  348. <td></td>
  349. </tr>
  350. </table>
  351. </td>
  352. <td class="mlabels-right">
  353. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  354. </tr>
  355. </table>
  356. </div><div class="memdoc">
  357. <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>
  358. </div>
  359. </div>
  360. <a id="a659d921b3efd52d310a33cba69eff18b"></a>
  361. <h2 class="memtitle"><span class="permalink"><a href="#a659d921b3efd52d310a33cba69eff18b">&#9670;&nbsp;</a></span>chdir() <span class="overload">[1/3]</span></h2>
  362. <div class="memitem">
  363. <div class="memproto">
  364. <table class="mlabels">
  365. <tr>
  366. <td class="mlabels-left">
  367. <table class="memname">
  368. <tr>
  369. <td class="memname">bool FatVolume::chdir </td>
  370. <td>(</td>
  371. <td class="paramname"></td><td>)</td>
  372. <td></td>
  373. </tr>
  374. </table>
  375. </td>
  376. <td class="mlabels-right">
  377. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  378. </tr>
  379. </table>
  380. </div><div class="memdoc">
  381. <p>Set volume working directory to root. </p><dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  382. </div>
  383. </div>
  384. <a id="ac0f6cf6ece2285af777c1fdf5cf8c219"></a>
  385. <h2 class="memtitle"><span class="permalink"><a href="#ac0f6cf6ece2285af777c1fdf5cf8c219">&#9670;&nbsp;</a></span>chdir() <span class="overload">[2/3]</span></h2>
  386. <div class="memitem">
  387. <div class="memproto">
  388. <table class="memname">
  389. <tr>
  390. <td class="memname">bool FatVolume::chdir </td>
  391. <td>(</td>
  392. <td class="paramtype">const char *&#160;</td>
  393. <td class="paramname"><em>path</em></td><td>)</td>
  394. <td></td>
  395. </tr>
  396. </table>
  397. </div><div class="memdoc">
  398. <p>Set volume working directory. </p><dl class="params"><dt>Parameters</dt><dd>
  399. <table class="params">
  400. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>Path for volume working directory. </td></tr>
  401. </table>
  402. </dd>
  403. </dl>
  404. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  405. </div>
  406. </div>
  407. <a id="ac591520e33ff8ba51e80782a87423872"></a>
  408. <h2 class="memtitle"><span class="permalink"><a href="#ac591520e33ff8ba51e80782a87423872">&#9670;&nbsp;</a></span>chdir() <span class="overload">[3/3]</span></h2>
  409. <div class="memitem">
  410. <div class="memproto">
  411. <table class="mlabels">
  412. <tr>
  413. <td class="mlabels-left">
  414. <table class="memname">
  415. <tr>
  416. <td class="memname">bool FatVolume::chdir </td>
  417. <td>(</td>
  418. <td class="paramtype">const String &amp;&#160;</td>
  419. <td class="paramname"><em>path</em></td><td>)</td>
  420. <td></td>
  421. </tr>
  422. </table>
  423. </td>
  424. <td class="mlabels-right">
  425. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  426. </tr>
  427. </table>
  428. </div><div class="memdoc">
  429. <p>Set volume working directory. </p><dl class="params"><dt>Parameters</dt><dd>
  430. <table class="params">
  431. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>Path for volume working directory. </td></tr>
  432. </table>
  433. </dd>
  434. </dl>
  435. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  436. </div>
  437. </div>
  438. <a id="a36fbc19755b066068cac7c4ca578b27b"></a>
  439. <h2 class="memtitle"><span class="permalink"><a href="#a36fbc19755b066068cac7c4ca578b27b">&#9670;&nbsp;</a></span>chvol()</h2>
  440. <div class="memitem">
  441. <div class="memproto">
  442. <table class="mlabels">
  443. <tr>
  444. <td class="mlabels-left">
  445. <table class="memname">
  446. <tr>
  447. <td class="memname">void FatVolume::chvol </td>
  448. <td>(</td>
  449. <td class="paramname"></td><td>)</td>
  450. <td></td>
  451. </tr>
  452. </table>
  453. </td>
  454. <td class="mlabels-right">
  455. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  456. </tr>
  457. </table>
  458. </div><div class="memdoc">
  459. <p>Change global current working volume to this volume. </p>
  460. </div>
  461. </div>
  462. <a id="aba35645c23735c4833c07bc2b3adcd1f"></a>
  463. <h2 class="memtitle"><span class="permalink"><a href="#aba35645c23735c4833c07bc2b3adcd1f">&#9670;&nbsp;</a></span>clusterCount()</h2>
  464. <div class="memitem">
  465. <div class="memproto">
  466. <table class="mlabels">
  467. <tr>
  468. <td class="mlabels-left">
  469. <table class="memname">
  470. <tr>
  471. <td class="memname">uint32_t FatPartition::clusterCount </td>
  472. <td>(</td>
  473. <td class="paramname"></td><td>)</td>
  474. <td> const</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. <dl class="section return"><dt>Returns</dt><dd>The total number of clusters in the volume. </dd></dl>
  484. </div>
  485. </div>
  486. <a id="a06acd4a434456b6a4644ff79a0bf0a24"></a>
  487. <h2 class="memtitle"><span class="permalink"><a href="#a06acd4a434456b6a4644ff79a0bf0a24">&#9670;&nbsp;</a></span>cwv()</h2>
  488. <div class="memitem">
  489. <div class="memproto">
  490. <table class="mlabels">
  491. <tr>
  492. <td class="mlabels-left">
  493. <table class="memname">
  494. <tr>
  495. <td class="memname">static <a class="el" href="class_fat_volume.html">FatVolume</a>* FatVolume::cwv </td>
  496. <td>(</td>
  497. <td class="paramname"></td><td>)</td>
  498. <td></td>
  499. </tr>
  500. </table>
  501. </td>
  502. <td class="mlabels-right">
  503. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
  504. </tr>
  505. </table>
  506. </div><div class="memdoc">
  507. <dl class="section return"><dt>Returns</dt><dd>current working volume. </dd></dl>
  508. </div>
  509. </div>
  510. <a id="a7e89ec91780f7dfa060b261c605bf2e5"></a>
  511. <h2 class="memtitle"><span class="permalink"><a href="#a7e89ec91780f7dfa060b261c605bf2e5">&#9670;&nbsp;</a></span>dataStartSector()</h2>
  512. <div class="memitem">
  513. <div class="memproto">
  514. <table class="mlabels">
  515. <tr>
  516. <td class="mlabels-left">
  517. <table class="memname">
  518. <tr>
  519. <td class="memname">uint32_t FatPartition::dataStartSector </td>
  520. <td>(</td>
  521. <td class="paramname"></td><td>)</td>
  522. <td> const</td>
  523. </tr>
  524. </table>
  525. </td>
  526. <td class="mlabels-right">
  527. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  528. </tr>
  529. </table>
  530. </div><div class="memdoc">
  531. <dl class="section return"><dt>Returns</dt><dd>The logical sector number for the start of file data. </dd></dl>
  532. </div>
  533. </div>
  534. <a id="a0af1e91a311180119b4a2c85d7e6e87e"></a>
  535. <h2 class="memtitle"><span class="permalink"><a href="#a0af1e91a311180119b4a2c85d7e6e87e">&#9670;&nbsp;</a></span>dbgFat()</h2>
  536. <div class="memitem">
  537. <div class="memproto">
  538. <table class="mlabels">
  539. <tr>
  540. <td class="mlabels-left">
  541. <table class="memname">
  542. <tr>
  543. <td class="memname">int8_t FatPartition::dbgFat </td>
  544. <td>(</td>
  545. <td class="paramtype">uint32_t&#160;</td>
  546. <td class="paramname"><em>n</em>, </td>
  547. </tr>
  548. <tr>
  549. <td class="paramkey"></td>
  550. <td></td>
  551. <td class="paramtype">uint32_t *&#160;</td>
  552. <td class="paramname"><em>v</em>&#160;</td>
  553. </tr>
  554. <tr>
  555. <td></td>
  556. <td>)</td>
  557. <td></td><td></td>
  558. </tr>
  559. </table>
  560. </td>
  561. <td class="mlabels-right">
  562. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  563. </tr>
  564. </table>
  565. </div><div class="memdoc">
  566. <p>Debug access to FAT table</p>
  567. <dl class="params"><dt>Parameters</dt><dd>
  568. <table class="params">
  569. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>cluster number. </td></tr>
  570. <tr><td class="paramdir">[out]</td><td class="paramname">v</td><td>value of entry </td></tr>
  571. </table>
  572. </dd>
  573. </dl>
  574. <dl class="section return"><dt>Returns</dt><dd>-1 error, 0 EOC, else 1. </dd></dl>
  575. </div>
  576. </div>
  577. <a id="a21541734ad76f64ea24b9f45e2bd6117"></a>
  578. <h2 class="memtitle"><span class="permalink"><a href="#a21541734ad76f64ea24b9f45e2bd6117">&#9670;&nbsp;</a></span>exists() <span class="overload">[1/2]</span></h2>
  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">bool FatVolume::exists </td>
  587. <td>(</td>
  588. <td class="paramtype">const char *&#160;</td>
  589. <td class="paramname"><em>path</em></td><td>)</td>
  590. <td></td>
  591. </tr>
  592. </table>
  593. </td>
  594. <td class="mlabels-right">
  595. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  596. </tr>
  597. </table>
  598. </div><div class="memdoc">
  599. <p>Test for the existence of a file.</p>
  600. <dl class="params"><dt>Parameters</dt><dd>
  601. <table class="params">
  602. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>Path of the file to be tested for.</td></tr>
  603. </table>
  604. </dd>
  605. </dl>
  606. <dl class="section return"><dt>Returns</dt><dd>true if the file exists else false. </dd></dl>
  607. </div>
  608. </div>
  609. <a id="afb7709e5b9e04265467305b43adf7cef"></a>
  610. <h2 class="memtitle"><span class="permalink"><a href="#afb7709e5b9e04265467305b43adf7cef">&#9670;&nbsp;</a></span>exists() <span class="overload">[2/2]</span></h2>
  611. <div class="memitem">
  612. <div class="memproto">
  613. <table class="mlabels">
  614. <tr>
  615. <td class="mlabels-left">
  616. <table class="memname">
  617. <tr>
  618. <td class="memname">bool FatVolume::exists </td>
  619. <td>(</td>
  620. <td class="paramtype">const String &amp;&#160;</td>
  621. <td class="paramname"><em>path</em></td><td>)</td>
  622. <td></td>
  623. </tr>
  624. </table>
  625. </td>
  626. <td class="mlabels-right">
  627. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  628. </tr>
  629. </table>
  630. </div><div class="memdoc">
  631. <p>Test for the existence of a file.</p>
  632. <dl class="params"><dt>Parameters</dt><dd>
  633. <table class="params">
  634. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>Path of the file to be tested for.</td></tr>
  635. </table>
  636. </dd>
  637. </dl>
  638. <dl class="section return"><dt>Returns</dt><dd>true if the file exists else false. </dd></dl>
  639. </div>
  640. </div>
  641. <a id="a56b37c3230818b9ae8e0a25c01a370a3"></a>
  642. <h2 class="memtitle"><span class="permalink"><a href="#a56b37c3230818b9ae8e0a25c01a370a3">&#9670;&nbsp;</a></span>fatCount()</h2>
  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">uint8_t FatPartition::fatCount </td>
  651. <td>(</td>
  652. <td class="paramname"></td><td>)</td>
  653. <td></td>
  654. </tr>
  655. </table>
  656. </td>
  657. <td class="mlabels-right">
  658. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  659. </tr>
  660. </table>
  661. </div><div class="memdoc">
  662. <dl class="section return"><dt>Returns</dt><dd>The number of File Allocation Tables. </dd></dl>
  663. </div>
  664. </div>
  665. <a id="a6a1ce7d707cf15bea08b63216413e055"></a>
  666. <h2 class="memtitle"><span class="permalink"><a href="#a6a1ce7d707cf15bea08b63216413e055">&#9670;&nbsp;</a></span>fatStartSector()</h2>
  667. <div class="memitem">
  668. <div class="memproto">
  669. <table class="mlabels">
  670. <tr>
  671. <td class="mlabels-left">
  672. <table class="memname">
  673. <tr>
  674. <td class="memname">uint32_t FatPartition::fatStartSector </td>
  675. <td>(</td>
  676. <td class="paramname"></td><td>)</td>
  677. <td> const</td>
  678. </tr>
  679. </table>
  680. </td>
  681. <td class="mlabels-right">
  682. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  683. </tr>
  684. </table>
  685. </div><div class="memdoc">
  686. <dl class="section return"><dt>Returns</dt><dd>The logical sector number for the start of the first FAT. </dd></dl>
  687. </div>
  688. </div>
  689. <a id="ad45c276232d7093b82f1075e8c488bac"></a>
  690. <h2 class="memtitle"><span class="permalink"><a href="#ad45c276232d7093b82f1075e8c488bac">&#9670;&nbsp;</a></span>fatType()</h2>
  691. <div class="memitem">
  692. <div class="memproto">
  693. <table class="mlabels">
  694. <tr>
  695. <td class="mlabels-left">
  696. <table class="memname">
  697. <tr>
  698. <td class="memname">uint8_t FatPartition::fatType </td>
  699. <td>(</td>
  700. <td class="paramname"></td><td>)</td>
  701. <td> const</td>
  702. </tr>
  703. </table>
  704. </td>
  705. <td class="mlabels-right">
  706. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  707. </tr>
  708. </table>
  709. </div><div class="memdoc">
  710. <dl class="section return"><dt>Returns</dt><dd>The FAT type of the volume. Values are 12, 16 or 32. </dd></dl>
  711. </div>
  712. </div>
  713. <a id="ac9689f1e11f59acc5f1b21ed9bb71174"></a>
  714. <h2 class="memtitle"><span class="permalink"><a href="#ac9689f1e11f59acc5f1b21ed9bb71174">&#9670;&nbsp;</a></span>freeClusterCount()</h2>
  715. <div class="memitem">
  716. <div class="memproto">
  717. <table class="mlabels">
  718. <tr>
  719. <td class="mlabels-left">
  720. <table class="memname">
  721. <tr>
  722. <td class="memname">int32_t FatPartition::freeClusterCount </td>
  723. <td>(</td>
  724. <td class="paramname"></td><td>)</td>
  725. <td></td>
  726. </tr>
  727. </table>
  728. </td>
  729. <td class="mlabels-right">
  730. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  731. </tr>
  732. </table>
  733. </div><div class="memdoc">
  734. <p>Volume free space in clusters.</p>
  735. <dl class="section return"><dt>Returns</dt><dd>Count of free clusters for success or -1 if an error occurs. </dd></dl>
  736. </div>
  737. </div>
  738. <a id="ab827224f30eec57255d21cae589911ef"></a>
  739. <h2 class="memtitle"><span class="permalink"><a href="#ab827224f30eec57255d21cae589911ef">&#9670;&nbsp;</a></span>init()</h2>
  740. <div class="memitem">
  741. <div class="memproto">
  742. <table class="mlabels">
  743. <tr>
  744. <td class="mlabels-left">
  745. <table class="memname">
  746. <tr>
  747. <td class="memname">bool FatPartition::init </td>
  748. <td>(</td>
  749. <td class="paramtype"><a class="el" href="class_sd_spi_card.html">BlockDevice</a> *&#160;</td>
  750. <td class="paramname"><em>dev</em>, </td>
  751. </tr>
  752. <tr>
  753. <td class="paramkey"></td>
  754. <td></td>
  755. <td class="paramtype">uint8_t&#160;</td>
  756. <td class="paramname"><em>part</em> = <code>1</code>&#160;</td>
  757. </tr>
  758. <tr>
  759. <td></td>
  760. <td>)</td>
  761. <td></td><td></td>
  762. </tr>
  763. </table>
  764. </td>
  765. <td class="mlabels-right">
  766. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  767. </tr>
  768. </table>
  769. </div><div class="memdoc">
  770. <p>Initialize a FAT partition.</p>
  771. <dl class="params"><dt>Parameters</dt><dd>
  772. <table class="params">
  773. <tr><td class="paramdir">[in]</td><td class="paramname">dev</td><td>BlockDevice for this partition. </td></tr>
  774. <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 sector zero.</td></tr>
  775. </table>
  776. </dd>
  777. </dl>
  778. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  779. </div>
  780. </div>
  781. <a id="a455ad7b2a5b6b31551dca08087a3c404"></a>
  782. <h2 class="memtitle"><span class="permalink"><a href="#a455ad7b2a5b6b31551dca08087a3c404">&#9670;&nbsp;</a></span>ls() <span class="overload">[1/4]</span></h2>
  783. <div class="memitem">
  784. <div class="memproto">
  785. <table class="mlabels">
  786. <tr>
  787. <td class="mlabels-left">
  788. <table class="memname">
  789. <tr>
  790. <td class="memname">bool FatVolume::ls </td>
  791. <td>(</td>
  792. <td class="paramtype">const char *&#160;</td>
  793. <td class="paramname"><em>path</em>, </td>
  794. </tr>
  795. <tr>
  796. <td class="paramkey"></td>
  797. <td></td>
  798. <td class="paramtype">uint8_t&#160;</td>
  799. <td class="paramname"><em>flags</em> = <code>0</code>&#160;</td>
  800. </tr>
  801. <tr>
  802. <td></td>
  803. <td>)</td>
  804. <td></td><td></td>
  805. </tr>
  806. </table>
  807. </td>
  808. <td class="mlabels-right">
  809. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  810. </tr>
  811. </table>
  812. </div><div class="memdoc">
  813. <p>List the directory contents of a directory to Serial.</p>
  814. <dl class="params"><dt>Parameters</dt><dd>
  815. <table class="params">
  816. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>directory to list.</td></tr>
  817. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The inclusive OR of</td></tr>
  818. </table>
  819. </dd>
  820. </dl>
  821. <p>LS_DATE - Print file modification date</p>
  822. <p>LS_SIZE - Print file size.</p>
  823. <p>LS_R - Recursive list of subdirectories.</p>
  824. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  825. </div>
  826. </div>
  827. <a id="ac5fc83cac7fd3af0b140a7986b9472f8"></a>
  828. <h2 class="memtitle"><span class="permalink"><a href="#ac5fc83cac7fd3af0b140a7986b9472f8">&#9670;&nbsp;</a></span>ls() <span class="overload">[2/4]</span></h2>
  829. <div class="memitem">
  830. <div class="memproto">
  831. <table class="mlabels">
  832. <tr>
  833. <td class="mlabels-left">
  834. <table class="memname">
  835. <tr>
  836. <td class="memname">bool FatVolume::ls </td>
  837. <td>(</td>
  838. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  839. <td class="paramname"><em>pr</em>, </td>
  840. </tr>
  841. <tr>
  842. <td class="paramkey"></td>
  843. <td></td>
  844. <td class="paramtype">const char *&#160;</td>
  845. <td class="paramname"><em>path</em>, </td>
  846. </tr>
  847. <tr>
  848. <td class="paramkey"></td>
  849. <td></td>
  850. <td class="paramtype">uint8_t&#160;</td>
  851. <td class="paramname"><em>flags</em>&#160;</td>
  852. </tr>
  853. <tr>
  854. <td></td>
  855. <td>)</td>
  856. <td></td><td></td>
  857. </tr>
  858. </table>
  859. </td>
  860. <td class="mlabels-right">
  861. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  862. </tr>
  863. </table>
  864. </div><div class="memdoc">
  865. <p>List the contents of a directory.</p>
  866. <dl class="params"><dt>Parameters</dt><dd>
  867. <table class="params">
  868. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for list.</td></tr>
  869. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>directory to list.</td></tr>
  870. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The inclusive OR of</td></tr>
  871. </table>
  872. </dd>
  873. </dl>
  874. <p>LS_DATE - Print file modification date</p>
  875. <p>LS_SIZE - Print file size.</p>
  876. <p>LS_R - Recursive list of subdirectories.</p>
  877. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  878. </div>
  879. </div>
  880. <a id="ae40964f357cfff4208812344a0e6f26f"></a>
  881. <h2 class="memtitle"><span class="permalink"><a href="#ae40964f357cfff4208812344a0e6f26f">&#9670;&nbsp;</a></span>ls() <span class="overload">[3/4]</span></h2>
  882. <div class="memitem">
  883. <div class="memproto">
  884. <table class="mlabels">
  885. <tr>
  886. <td class="mlabels-left">
  887. <table class="memname">
  888. <tr>
  889. <td class="memname">bool FatVolume::ls </td>
  890. <td>(</td>
  891. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  892. <td class="paramname"><em>pr</em>, </td>
  893. </tr>
  894. <tr>
  895. <td class="paramkey"></td>
  896. <td></td>
  897. <td class="paramtype">uint8_t&#160;</td>
  898. <td class="paramname"><em>flags</em> = <code>0</code>&#160;</td>
  899. </tr>
  900. <tr>
  901. <td></td>
  902. <td>)</td>
  903. <td></td><td></td>
  904. </tr>
  905. </table>
  906. </td>
  907. <td class="mlabels-right">
  908. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  909. </tr>
  910. </table>
  911. </div><div class="memdoc">
  912. <p>List the directory contents of the volume root directory.</p>
  913. <dl class="params"><dt>Parameters</dt><dd>
  914. <table class="params">
  915. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for list.</td></tr>
  916. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The inclusive OR of</td></tr>
  917. </table>
  918. </dd>
  919. </dl>
  920. <p>LS_DATE - Print file modification date</p>
  921. <p>LS_SIZE - Print file size.</p>
  922. <p>LS_R - Recursive list of subdirectories.</p>
  923. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  924. </div>
  925. </div>
  926. <a id="ad455ad05551329865c659cc4676f2d18"></a>
  927. <h2 class="memtitle"><span class="permalink"><a href="#ad455ad05551329865c659cc4676f2d18">&#9670;&nbsp;</a></span>ls() <span class="overload">[4/4]</span></h2>
  928. <div class="memitem">
  929. <div class="memproto">
  930. <table class="mlabels">
  931. <tr>
  932. <td class="mlabels-left">
  933. <table class="memname">
  934. <tr>
  935. <td class="memname">bool FatVolume::ls </td>
  936. <td>(</td>
  937. <td class="paramtype">uint8_t&#160;</td>
  938. <td class="paramname"><em>flags</em> = <code>0</code></td><td>)</td>
  939. <td></td>
  940. </tr>
  941. </table>
  942. </td>
  943. <td class="mlabels-right">
  944. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  945. </tr>
  946. </table>
  947. </div><div class="memdoc">
  948. <p>List the directory contents of the root directory to Serial.</p>
  949. <dl class="params"><dt>Parameters</dt><dd>
  950. <table class="params">
  951. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The inclusive OR of</td></tr>
  952. </table>
  953. </dd>
  954. </dl>
  955. <p>LS_DATE - Print file modification date</p>
  956. <p>LS_SIZE - Print file size.</p>
  957. <p>LS_R - Recursive list of subdirectories.</p>
  958. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  959. </div>
  960. </div>
  961. <a id="ad80bccf8f24ff001a7b9277effc2cc52"></a>
  962. <h2 class="memtitle"><span class="permalink"><a href="#ad80bccf8f24ff001a7b9277effc2cc52">&#9670;&nbsp;</a></span>mkdir() <span class="overload">[1/2]</span></h2>
  963. <div class="memitem">
  964. <div class="memproto">
  965. <table class="mlabels">
  966. <tr>
  967. <td class="mlabels-left">
  968. <table class="memname">
  969. <tr>
  970. <td class="memname">bool FatVolume::mkdir </td>
  971. <td>(</td>
  972. <td class="paramtype">const char *&#160;</td>
  973. <td class="paramname"><em>path</em>, </td>
  974. </tr>
  975. <tr>
  976. <td class="paramkey"></td>
  977. <td></td>
  978. <td class="paramtype">bool&#160;</td>
  979. <td class="paramname"><em>pFlag</em> = <code>true</code>&#160;</td>
  980. </tr>
  981. <tr>
  982. <td></td>
  983. <td>)</td>
  984. <td></td><td></td>
  985. </tr>
  986. </table>
  987. </td>
  988. <td class="mlabels-right">
  989. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  990. </tr>
  991. </table>
  992. </div><div class="memdoc">
  993. <p>Make a subdirectory in the volume root directory.</p>
  994. <dl class="params"><dt>Parameters</dt><dd>
  995. <table class="params">
  996. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid name for the subdirectory.</td></tr>
  997. <tr><td class="paramdir">[in]</td><td class="paramname">pFlag</td><td>Create missing parent directories if true.</td></tr>
  998. </table>
  999. </dd>
  1000. </dl>
  1001. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1002. </div>
  1003. </div>
  1004. <a id="ab423ec4f7e5b58a6d454f328f61fd864"></a>
  1005. <h2 class="memtitle"><span class="permalink"><a href="#ab423ec4f7e5b58a6d454f328f61fd864">&#9670;&nbsp;</a></span>mkdir() <span class="overload">[2/2]</span></h2>
  1006. <div class="memitem">
  1007. <div class="memproto">
  1008. <table class="mlabels">
  1009. <tr>
  1010. <td class="mlabels-left">
  1011. <table class="memname">
  1012. <tr>
  1013. <td class="memname">bool FatVolume::mkdir </td>
  1014. <td>(</td>
  1015. <td class="paramtype">const String &amp;&#160;</td>
  1016. <td class="paramname"><em>path</em>, </td>
  1017. </tr>
  1018. <tr>
  1019. <td class="paramkey"></td>
  1020. <td></td>
  1021. <td class="paramtype">bool&#160;</td>
  1022. <td class="paramname"><em>pFlag</em> = <code>true</code>&#160;</td>
  1023. </tr>
  1024. <tr>
  1025. <td></td>
  1026. <td>)</td>
  1027. <td></td><td></td>
  1028. </tr>
  1029. </table>
  1030. </td>
  1031. <td class="mlabels-right">
  1032. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1033. </tr>
  1034. </table>
  1035. </div><div class="memdoc">
  1036. <p>Make a subdirectory in the volume root directory.</p>
  1037. <dl class="params"><dt>Parameters</dt><dd>
  1038. <table class="params">
  1039. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid name for the subdirectory.</td></tr>
  1040. <tr><td class="paramdir">[in]</td><td class="paramname">pFlag</td><td>Create missing parent directories if true.</td></tr>
  1041. </table>
  1042. </dd>
  1043. </dl>
  1044. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1045. </div>
  1046. </div>
  1047. <a id="a22923b86de9c797ce5e19f206dd4ce1f"></a>
  1048. <h2 class="memtitle"><span class="permalink"><a href="#a22923b86de9c797ce5e19f206dd4ce1f">&#9670;&nbsp;</a></span>open() <span class="overload">[1/2]</span></h2>
  1049. <div class="memitem">
  1050. <div class="memproto">
  1051. <table class="mlabels">
  1052. <tr>
  1053. <td class="mlabels-left">
  1054. <table class="memname">
  1055. <tr>
  1056. <td class="memname"><a class="el" href="class_file32.html">File32</a> FatVolume::open </td>
  1057. <td>(</td>
  1058. <td class="paramtype">const char *&#160;</td>
  1059. <td class="paramname"><em>path</em>, </td>
  1060. </tr>
  1061. <tr>
  1062. <td class="paramkey"></td>
  1063. <td></td>
  1064. <td class="paramtype">oflag_t&#160;</td>
  1065. <td class="paramname"><em>oflag</em> = <code>0X00</code>&#160;</td>
  1066. </tr>
  1067. <tr>
  1068. <td></td>
  1069. <td>)</td>
  1070. <td></td><td></td>
  1071. </tr>
  1072. </table>
  1073. </td>
  1074. <td class="mlabels-right">
  1075. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1076. </tr>
  1077. </table>
  1078. </div><div class="memdoc">
  1079. <p>open a file</p>
  1080. <dl class="params"><dt>Parameters</dt><dd>
  1081. <table class="params">
  1082. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>location of file to be opened. </td></tr>
  1083. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>open flags. </td></tr>
  1084. </table>
  1085. </dd>
  1086. </dl>
  1087. <dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="class_file32.html" title="FAT16/FAT32 file with Arduino Stream.">File32</a> object. </dd></dl>
  1088. </div>
  1089. </div>
  1090. <a id="af7178b7f13eeae7748640b6268a34812"></a>
  1091. <h2 class="memtitle"><span class="permalink"><a href="#af7178b7f13eeae7748640b6268a34812">&#9670;&nbsp;</a></span>open() <span class="overload">[2/2]</span></h2>
  1092. <div class="memitem">
  1093. <div class="memproto">
  1094. <table class="mlabels">
  1095. <tr>
  1096. <td class="mlabels-left">
  1097. <table class="memname">
  1098. <tr>
  1099. <td class="memname"><a class="el" href="class_file32.html">File32</a> FatVolume::open </td>
  1100. <td>(</td>
  1101. <td class="paramtype">const String &amp;&#160;</td>
  1102. <td class="paramname"><em>path</em>, </td>
  1103. </tr>
  1104. <tr>
  1105. <td class="paramkey"></td>
  1106. <td></td>
  1107. <td class="paramtype">oflag_t&#160;</td>
  1108. <td class="paramname"><em>oflag</em> = <code>0X00</code>&#160;</td>
  1109. </tr>
  1110. <tr>
  1111. <td></td>
  1112. <td>)</td>
  1113. <td></td><td></td>
  1114. </tr>
  1115. </table>
  1116. </td>
  1117. <td class="mlabels-right">
  1118. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1119. </tr>
  1120. </table>
  1121. </div><div class="memdoc">
  1122. <p>open a file</p>
  1123. <dl class="params"><dt>Parameters</dt><dd>
  1124. <table class="params">
  1125. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>location of file to be opened. </td></tr>
  1126. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>open flags. </td></tr>
  1127. </table>
  1128. </dd>
  1129. </dl>
  1130. <dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="class_file32.html" title="FAT16/FAT32 file with Arduino Stream.">File32</a> object. </dd></dl>
  1131. </div>
  1132. </div>
  1133. <a id="abb11d05ef407775bcdb9b14a6c608433"></a>
  1134. <h2 class="memtitle"><span class="permalink"><a href="#abb11d05ef407775bcdb9b14a6c608433">&#9670;&nbsp;</a></span>remove() <span class="overload">[1/2]</span></h2>
  1135. <div class="memitem">
  1136. <div class="memproto">
  1137. <table class="mlabels">
  1138. <tr>
  1139. <td class="mlabels-left">
  1140. <table class="memname">
  1141. <tr>
  1142. <td class="memname">bool FatVolume::remove </td>
  1143. <td>(</td>
  1144. <td class="paramtype">const char *&#160;</td>
  1145. <td class="paramname"><em>path</em></td><td>)</td>
  1146. <td></td>
  1147. </tr>
  1148. </table>
  1149. </td>
  1150. <td class="mlabels-right">
  1151. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1152. </tr>
  1153. </table>
  1154. </div><div class="memdoc">
  1155. <p>Remove a file from the volume root directory.</p>
  1156. <dl class="params"><dt>Parameters</dt><dd>
  1157. <table class="params">
  1158. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid name for the file.</td></tr>
  1159. </table>
  1160. </dd>
  1161. </dl>
  1162. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1163. </div>
  1164. </div>
  1165. <a id="a994411f55df474be6be87f06100c2c39"></a>
  1166. <h2 class="memtitle"><span class="permalink"><a href="#a994411f55df474be6be87f06100c2c39">&#9670;&nbsp;</a></span>remove() <span class="overload">[2/2]</span></h2>
  1167. <div class="memitem">
  1168. <div class="memproto">
  1169. <table class="mlabels">
  1170. <tr>
  1171. <td class="mlabels-left">
  1172. <table class="memname">
  1173. <tr>
  1174. <td class="memname">bool FatVolume::remove </td>
  1175. <td>(</td>
  1176. <td class="paramtype">const String &amp;&#160;</td>
  1177. <td class="paramname"><em>path</em></td><td>)</td>
  1178. <td></td>
  1179. </tr>
  1180. </table>
  1181. </td>
  1182. <td class="mlabels-right">
  1183. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1184. </tr>
  1185. </table>
  1186. </div><div class="memdoc">
  1187. <p>Remove a file from the volume root directory.</p>
  1188. <dl class="params"><dt>Parameters</dt><dd>
  1189. <table class="params">
  1190. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid name for the file.</td></tr>
  1191. </table>
  1192. </dd>
  1193. </dl>
  1194. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1195. </div>
  1196. </div>
  1197. <a id="a5e4ea6c91569dc435c7aacd7ba704911"></a>
  1198. <h2 class="memtitle"><span class="permalink"><a href="#a5e4ea6c91569dc435c7aacd7ba704911">&#9670;&nbsp;</a></span>rename() <span class="overload">[1/2]</span></h2>
  1199. <div class="memitem">
  1200. <div class="memproto">
  1201. <table class="mlabels">
  1202. <tr>
  1203. <td class="mlabels-left">
  1204. <table class="memname">
  1205. <tr>
  1206. <td class="memname">bool FatVolume::rename </td>
  1207. <td>(</td>
  1208. <td class="paramtype">const char *&#160;</td>
  1209. <td class="paramname"><em>oldPath</em>, </td>
  1210. </tr>
  1211. <tr>
  1212. <td class="paramkey"></td>
  1213. <td></td>
  1214. <td class="paramtype">const char *&#160;</td>
  1215. <td class="paramname"><em>newPath</em>&#160;</td>
  1216. </tr>
  1217. <tr>
  1218. <td></td>
  1219. <td>)</td>
  1220. <td></td><td></td>
  1221. </tr>
  1222. </table>
  1223. </td>
  1224. <td class="mlabels-right">
  1225. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1226. </tr>
  1227. </table>
  1228. </div><div class="memdoc">
  1229. <p>Rename a file or subdirectory.</p>
  1230. <dl class="params"><dt>Parameters</dt><dd>
  1231. <table class="params">
  1232. <tr><td class="paramdir">[in]</td><td class="paramname">oldPath</td><td>Path name to the file or subdirectory to be renamed.</td></tr>
  1233. <tr><td class="paramdir">[in]</td><td class="paramname">newPath</td><td>New path name of the file or subdirectory.</td></tr>
  1234. </table>
  1235. </dd>
  1236. </dl>
  1237. <p>The <em>newPath</em> object must not exist before the rename call.</p>
  1238. <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_volume.html#a5e4ea6c91569dc435c7aacd7ba704911">rename()</a> call.</p>
  1239. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1240. </div>
  1241. </div>
  1242. <a id="aa7015c0f694261780081c79c05d0882d"></a>
  1243. <h2 class="memtitle"><span class="permalink"><a href="#aa7015c0f694261780081c79c05d0882d">&#9670;&nbsp;</a></span>rename() <span class="overload">[2/2]</span></h2>
  1244. <div class="memitem">
  1245. <div class="memproto">
  1246. <table class="mlabels">
  1247. <tr>
  1248. <td class="mlabels-left">
  1249. <table class="memname">
  1250. <tr>
  1251. <td class="memname">bool FatVolume::rename </td>
  1252. <td>(</td>
  1253. <td class="paramtype">const String &amp;&#160;</td>
  1254. <td class="paramname"><em>oldPath</em>, </td>
  1255. </tr>
  1256. <tr>
  1257. <td class="paramkey"></td>
  1258. <td></td>
  1259. <td class="paramtype">const String &amp;&#160;</td>
  1260. <td class="paramname"><em>newPath</em>&#160;</td>
  1261. </tr>
  1262. <tr>
  1263. <td></td>
  1264. <td>)</td>
  1265. <td></td><td></td>
  1266. </tr>
  1267. </table>
  1268. </td>
  1269. <td class="mlabels-right">
  1270. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1271. </tr>
  1272. </table>
  1273. </div><div class="memdoc">
  1274. <p>Rename a file or subdirectory.</p>
  1275. <dl class="params"><dt>Parameters</dt><dd>
  1276. <table class="params">
  1277. <tr><td class="paramdir">[in]</td><td class="paramname">oldPath</td><td>Path name to the file or subdirectory to be renamed.</td></tr>
  1278. <tr><td class="paramdir">[in]</td><td class="paramname">newPath</td><td>New path name of the file or subdirectory.</td></tr>
  1279. </table>
  1280. </dd>
  1281. </dl>
  1282. <p>The <em>newPath</em> object must not exist before the rename call.</p>
  1283. <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_volume.html#a5e4ea6c91569dc435c7aacd7ba704911">rename()</a> call.</p>
  1284. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1285. </div>
  1286. </div>
  1287. <a id="af1181990bcece7dbb7d19293dd4fe11a"></a>
  1288. <h2 class="memtitle"><span class="permalink"><a href="#af1181990bcece7dbb7d19293dd4fe11a">&#9670;&nbsp;</a></span>rmdir() <span class="overload">[1/2]</span></h2>
  1289. <div class="memitem">
  1290. <div class="memproto">
  1291. <table class="mlabels">
  1292. <tr>
  1293. <td class="mlabels-left">
  1294. <table class="memname">
  1295. <tr>
  1296. <td class="memname">bool FatVolume::rmdir </td>
  1297. <td>(</td>
  1298. <td class="paramtype">const char *&#160;</td>
  1299. <td class="paramname"><em>path</em></td><td>)</td>
  1300. <td></td>
  1301. </tr>
  1302. </table>
  1303. </td>
  1304. <td class="mlabels-right">
  1305. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1306. </tr>
  1307. </table>
  1308. </div><div class="memdoc">
  1309. <p>Remove a subdirectory from the volume's working directory.</p>
  1310. <dl class="params"><dt>Parameters</dt><dd>
  1311. <table class="params">
  1312. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid name for the subdirectory.</td></tr>
  1313. </table>
  1314. </dd>
  1315. </dl>
  1316. <p>The subdirectory file will be removed only if it is empty.</p>
  1317. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1318. </div>
  1319. </div>
  1320. <a id="a105f437fb649b57ed3823f8ff1a2f37e"></a>
  1321. <h2 class="memtitle"><span class="permalink"><a href="#a105f437fb649b57ed3823f8ff1a2f37e">&#9670;&nbsp;</a></span>rmdir() <span class="overload">[2/2]</span></h2>
  1322. <div class="memitem">
  1323. <div class="memproto">
  1324. <table class="mlabels">
  1325. <tr>
  1326. <td class="mlabels-left">
  1327. <table class="memname">
  1328. <tr>
  1329. <td class="memname">bool FatVolume::rmdir </td>
  1330. <td>(</td>
  1331. <td class="paramtype">const String &amp;&#160;</td>
  1332. <td class="paramname"><em>path</em></td><td>)</td>
  1333. <td></td>
  1334. </tr>
  1335. </table>
  1336. </td>
  1337. <td class="mlabels-right">
  1338. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1339. </tr>
  1340. </table>
  1341. </div><div class="memdoc">
  1342. <p>Remove a subdirectory from the volume's working directory.</p>
  1343. <dl class="params"><dt>Parameters</dt><dd>
  1344. <table class="params">
  1345. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid name for the subdirectory.</td></tr>
  1346. </table>
  1347. </dd>
  1348. </dl>
  1349. <p>The subdirectory file will be removed only if it is empty.</p>
  1350. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1351. </div>
  1352. </div>
  1353. <a id="a6ba99b9711269b5ab6ca091b88e81288"></a>
  1354. <h2 class="memtitle"><span class="permalink"><a href="#a6ba99b9711269b5ab6ca091b88e81288">&#9670;&nbsp;</a></span>rootDirEntryCount()</h2>
  1355. <div class="memitem">
  1356. <div class="memproto">
  1357. <table class="mlabels">
  1358. <tr>
  1359. <td class="mlabels-left">
  1360. <table class="memname">
  1361. <tr>
  1362. <td class="memname">uint16_t FatPartition::rootDirEntryCount </td>
  1363. <td>(</td>
  1364. <td class="paramname"></td><td>)</td>
  1365. <td> const</td>
  1366. </tr>
  1367. </table>
  1368. </td>
  1369. <td class="mlabels-right">
  1370. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1371. </tr>
  1372. </table>
  1373. </div><div class="memdoc">
  1374. <dl class="section return"><dt>Returns</dt><dd>The number of entries in the root directory for FAT16 volumes. </dd></dl>
  1375. </div>
  1376. </div>
  1377. <a id="a5d005e0f6fd4b84da8a5ebdea03aaf85"></a>
  1378. <h2 class="memtitle"><span class="permalink"><a href="#a5d005e0f6fd4b84da8a5ebdea03aaf85">&#9670;&nbsp;</a></span>rootDirStart()</h2>
  1379. <div class="memitem">
  1380. <div class="memproto">
  1381. <table class="mlabels">
  1382. <tr>
  1383. <td class="mlabels-left">
  1384. <table class="memname">
  1385. <tr>
  1386. <td class="memname">uint32_t FatPartition::rootDirStart </td>
  1387. <td>(</td>
  1388. <td class="paramname"></td><td>)</td>
  1389. <td> const</td>
  1390. </tr>
  1391. </table>
  1392. </td>
  1393. <td class="mlabels-right">
  1394. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1395. </tr>
  1396. </table>
  1397. </div><div class="memdoc">
  1398. <dl class="section return"><dt>Returns</dt><dd>The logical sector number for the start of the root directory on FAT16 volumes or the first cluster number on FAT32 volumes. </dd></dl>
  1399. </div>
  1400. </div>
  1401. <a id="a6b970fa2e06de1a826b09e251dc3119b"></a>
  1402. <h2 class="memtitle"><span class="permalink"><a href="#a6b970fa2e06de1a826b09e251dc3119b">&#9670;&nbsp;</a></span>sectorMask()</h2>
  1403. <div class="memitem">
  1404. <div class="memproto">
  1405. <table class="mlabels">
  1406. <tr>
  1407. <td class="mlabels-left">
  1408. <table class="memname">
  1409. <tr>
  1410. <td class="memname">uint16_t FatPartition::sectorMask </td>
  1411. <td>(</td>
  1412. <td class="paramname"></td><td>)</td>
  1413. <td></td>
  1414. </tr>
  1415. </table>
  1416. </td>
  1417. <td class="mlabels-right">
  1418. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1419. </tr>
  1420. </table>
  1421. </div><div class="memdoc">
  1422. <dl class="section return"><dt>Returns</dt><dd>Mask for sector offset. </dd></dl>
  1423. </div>
  1424. </div>
  1425. <a id="a836546c368e6ffe117e6ab8775d23eba"></a>
  1426. <h2 class="memtitle"><span class="permalink"><a href="#a836546c368e6ffe117e6ab8775d23eba">&#9670;&nbsp;</a></span>sectorsPerCluster()</h2>
  1427. <div class="memitem">
  1428. <div class="memproto">
  1429. <table class="mlabels">
  1430. <tr>
  1431. <td class="mlabels-left">
  1432. <table class="memname">
  1433. <tr>
  1434. <td class="memname">uint8_t FatPartition::sectorsPerCluster </td>
  1435. <td>(</td>
  1436. <td class="paramname"></td><td>)</td>
  1437. <td> const</td>
  1438. </tr>
  1439. </table>
  1440. </td>
  1441. <td class="mlabels-right">
  1442. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1443. </tr>
  1444. </table>
  1445. </div><div class="memdoc">
  1446. <dl class="section return"><dt>Returns</dt><dd>The volume's cluster size in sectors. </dd></dl>
  1447. </div>
  1448. </div>
  1449. <a id="a593a27482ff8d993542d6f82bd92e26c"></a>
  1450. <h2 class="memtitle"><span class="permalink"><a href="#a593a27482ff8d993542d6f82bd92e26c">&#9670;&nbsp;</a></span>sectorsPerClusterShift()</h2>
  1451. <div class="memitem">
  1452. <div class="memproto">
  1453. <table class="mlabels">
  1454. <tr>
  1455. <td class="mlabels-left">
  1456. <table class="memname">
  1457. <tr>
  1458. <td class="memname">uint8_t FatPartition::sectorsPerClusterShift </td>
  1459. <td>(</td>
  1460. <td class="paramname"></td><td>)</td>
  1461. <td> const</td>
  1462. </tr>
  1463. </table>
  1464. </td>
  1465. <td class="mlabels-right">
  1466. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1467. </tr>
  1468. </table>
  1469. </div><div class="memdoc">
  1470. <dl class="section return"><dt>Returns</dt><dd>The shift count required to multiply by sectorsPerCluster. </dd></dl>
  1471. </div>
  1472. </div>
  1473. <a id="a1f5c7599333dbe152a3cdd60623ce6d1"></a>
  1474. <h2 class="memtitle"><span class="permalink"><a href="#a1f5c7599333dbe152a3cdd60623ce6d1">&#9670;&nbsp;</a></span>sectorsPerFat()</h2>
  1475. <div class="memitem">
  1476. <div class="memproto">
  1477. <table class="mlabels">
  1478. <tr>
  1479. <td class="mlabels-left">
  1480. <table class="memname">
  1481. <tr>
  1482. <td class="memname">uint32_t FatPartition::sectorsPerFat </td>
  1483. <td>(</td>
  1484. <td class="paramname"></td><td>)</td>
  1485. <td> const</td>
  1486. </tr>
  1487. </table>
  1488. </td>
  1489. <td class="mlabels-right">
  1490. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1491. </tr>
  1492. </table>
  1493. </div><div class="memdoc">
  1494. <dl class="section return"><dt>Returns</dt><dd>The number of sectors in one FAT. </dd></dl>
  1495. </div>
  1496. </div>
  1497. <a id="a86a08bf789e33567418465b9b12751e2"></a>
  1498. <h2 class="memtitle"><span class="permalink"><a href="#a86a08bf789e33567418465b9b12751e2">&#9670;&nbsp;</a></span>truncate() <span class="overload">[1/2]</span></h2>
  1499. <div class="memitem">
  1500. <div class="memproto">
  1501. <table class="mlabels">
  1502. <tr>
  1503. <td class="mlabels-left">
  1504. <table class="memname">
  1505. <tr>
  1506. <td class="memname">bool FatVolume::truncate </td>
  1507. <td>(</td>
  1508. <td class="paramtype">const char *&#160;</td>
  1509. <td class="paramname"><em>path</em>, </td>
  1510. </tr>
  1511. <tr>
  1512. <td class="paramkey"></td>
  1513. <td></td>
  1514. <td class="paramtype">uint32_t&#160;</td>
  1515. <td class="paramname"><em>length</em>&#160;</td>
  1516. </tr>
  1517. <tr>
  1518. <td></td>
  1519. <td>)</td>
  1520. <td></td><td></td>
  1521. </tr>
  1522. </table>
  1523. </td>
  1524. <td class="mlabels-right">
  1525. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1526. </tr>
  1527. </table>
  1528. </div><div class="memdoc">
  1529. <p>Truncate a file to a specified length. The current file position will be at the new EOF.</p>
  1530. <dl class="params"><dt>Parameters</dt><dd>
  1531. <table class="params">
  1532. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid name for the file. </td></tr>
  1533. <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>The desired length for the file.</td></tr>
  1534. </table>
  1535. </dd>
  1536. </dl>
  1537. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1538. </div>
  1539. </div>
  1540. <a id="a97ef39ec02c38c0772f0029d42edcb46"></a>
  1541. <h2 class="memtitle"><span class="permalink"><a href="#a97ef39ec02c38c0772f0029d42edcb46">&#9670;&nbsp;</a></span>truncate() <span class="overload">[2/2]</span></h2>
  1542. <div class="memitem">
  1543. <div class="memproto">
  1544. <table class="mlabels">
  1545. <tr>
  1546. <td class="mlabels-left">
  1547. <table class="memname">
  1548. <tr>
  1549. <td class="memname">bool FatVolume::truncate </td>
  1550. <td>(</td>
  1551. <td class="paramtype">const String &amp;&#160;</td>
  1552. <td class="paramname"><em>path</em>, </td>
  1553. </tr>
  1554. <tr>
  1555. <td class="paramkey"></td>
  1556. <td></td>
  1557. <td class="paramtype">uint32_t&#160;</td>
  1558. <td class="paramname"><em>length</em>&#160;</td>
  1559. </tr>
  1560. <tr>
  1561. <td></td>
  1562. <td>)</td>
  1563. <td></td><td></td>
  1564. </tr>
  1565. </table>
  1566. </td>
  1567. <td class="mlabels-right">
  1568. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1569. </tr>
  1570. </table>
  1571. </div><div class="memdoc">
  1572. <p>Truncate a file to a specified length. The current file position will be at the new EOF.</p>
  1573. <dl class="params"><dt>Parameters</dt><dd>
  1574. <table class="params">
  1575. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid name for the file. </td></tr>
  1576. <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>The desired length for the file.</td></tr>
  1577. </table>
  1578. </dd>
  1579. </dl>
  1580. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1581. </div>
  1582. </div>
  1583. <a id="a916ba7d67711bb62daf12ecd47ca4b8e"></a>
  1584. <h2 class="memtitle"><span class="permalink"><a href="#a916ba7d67711bb62daf12ecd47ca4b8e">&#9670;&nbsp;</a></span>volumeSectorCount()</h2>
  1585. <div class="memitem">
  1586. <div class="memproto">
  1587. <table class="mlabels">
  1588. <tr>
  1589. <td class="mlabels-left">
  1590. <table class="memname">
  1591. <tr>
  1592. <td class="memname">uint32_t FatPartition::volumeSectorCount </td>
  1593. <td>(</td>
  1594. <td class="paramname"></td><td>)</td>
  1595. <td> const</td>
  1596. </tr>
  1597. </table>
  1598. </td>
  1599. <td class="mlabels-right">
  1600. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1601. </tr>
  1602. </table>
  1603. </div><div class="memdoc">
  1604. <dl class="section return"><dt>Returns</dt><dd>The number of sectors in the volume </dd></dl>
  1605. </div>
  1606. </div>
  1607. <hr/>The documentation for this class was generated from the following files:<ul>
  1608. <li>ArduinoSdFat/libraries/SdFat/src/FatLib/<a class="el" href="_fat_volume_8h.html">FatVolume.h</a></li>
  1609. <li>ArduinoSdFat/libraries/SdFat/src/FatLib/FatVolume.cpp</li>
  1610. </ul>
  1611. </div><!-- contents -->
  1612. <!-- start footer part -->
  1613. <hr class="footer"/><address class="footer"><small>
  1614. Generated on Fri Dec 6 2019 09:45:12 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  1615. <img class="footer" src="doxygen.png" alt="doxygen"/>
  1616. </a> 1.8.16
  1617. </small></address>
  1618. </body>
  1619. </html>