Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

2968 lines
135KB

  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.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>SdFat: FatFile 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.14 -->
  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="#friends">Friends</a> &#124;
  66. <a href="class_fat_file-members.html">List of all members</a> </div>
  67. <div class="headertitle">
  68. <div class="title">FatFile Class Reference</div> </div>
  69. </div><!--header-->
  70. <div class="contents">
  71. <p>Basic file class.
  72. <a href="class_fat_file.html#details">More...</a></p>
  73. <p><code>#include &lt;FatFile.h&gt;</code></p>
  74. <div class="dynheader">
  75. Inheritance diagram for FatFile:</div>
  76. <div class="dyncontent">
  77. <div class="center"><img src="class_fat_file__inherit__graph.png" border="0" usemap="#_fat_file_inherit__map" alt="Inheritance graph"/></div>
  78. <map name="_fat_file_inherit__map" id="_fat_file_inherit__map">
  79. <area shape="rect" id="node2" href="class_stream_file.html" title="StreamFile\&lt; FatFile,\l uint32_t \&gt;" alt="" coords="5,80,147,121"/>
  80. <area shape="rect" id="node3" href="class_file32.html" title="FAT16/FAT32 file with Arduino Stream. " alt="" coords="47,169,105,196"/>
  81. </map>
  82. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  83. <table class="memberdecls">
  84. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  85. Public Member Functions</h2></td></tr>
  86. <tr class="memitem:a4baea142c9cd53293a93ef3d6a67aa16"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a4baea142c9cd53293a93ef3d6a67aa16">available</a> ()</td></tr>
  87. <tr class="separator:a4baea142c9cd53293a93ef3d6a67aa16"><td class="memSeparator" colspan="2">&#160;</td></tr>
  88. <tr class="memitem:a651ffa37e7e586fc3c2de8cbbd500ea6"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a651ffa37e7e586fc3c2de8cbbd500ea6">available32</a> ()</td></tr>
  89. <tr class="separator:a651ffa37e7e586fc3c2de8cbbd500ea6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:a052e2c15a39b322a5307b693b8835b22"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a052e2c15a39b322a5307b693b8835b22">clearError</a> ()</td></tr>
  91. <tr class="separator:a052e2c15a39b322a5307b693b8835b22"><td class="memSeparator" colspan="2">&#160;</td></tr>
  92. <tr class="memitem:aeca2a2eff91e6aa55fe1b0e3860c9a05"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aeca2a2eff91e6aa55fe1b0e3860c9a05">clearWriteError</a> ()</td></tr>
  93. <tr class="separator:aeca2a2eff91e6aa55fe1b0e3860c9a05"><td class="memSeparator" colspan="2">&#160;</td></tr>
  94. <tr class="memitem:afd16af325e0642e4bff6430b7d8bb18b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#afd16af325e0642e4bff6430b7d8bb18b">close</a> ()</td></tr>
  95. <tr class="separator:afd16af325e0642e4bff6430b7d8bb18b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:a12b3c5a763416ca62c70e3db74033cd0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a12b3c5a763416ca62c70e3db74033cd0">contiguousRange</a> (uint32_t *bgnSector, uint32_t *endSector)</td></tr>
  97. <tr class="separator:a12b3c5a763416ca62c70e3db74033cd0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  98. <tr class="memitem:a0afc2a1cffa238d1cb2049bfa2d8d199"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a0afc2a1cffa238d1cb2049bfa2d8d199">createContiguous</a> (<a class="el" href="class_fat_file.html">FatFile</a> *dirFile, const char *path, uint32_t size)</td></tr>
  99. <tr class="separator:a0afc2a1cffa238d1cb2049bfa2d8d199"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:a0853fbd44aee2798d14d8e3aed78f8bf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a0853fbd44aee2798d14d8e3aed78f8bf">createContiguous</a> (const char *path, uint32_t size)</td></tr>
  101. <tr class="separator:a0853fbd44aee2798d14d8e3aed78f8bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:a526f3dd56ce205690e45ffc86ef6f891"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a526f3dd56ce205690e45ffc86ef6f891">curCluster</a> () const</td></tr>
  103. <tr class="separator:a526f3dd56ce205690e45ffc86ef6f891"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:a97e0620949f97e9b9c91ed1094d728aa"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a97e0620949f97e9b9c91ed1094d728aa">curPosition</a> () const</td></tr>
  105. <tr class="separator:a97e0620949f97e9b9c91ed1094d728aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:a6858d18c807411a071fd6d1b39d50087"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a6858d18c807411a071fd6d1b39d50087">dirEntry</a> (dir_t *dir)</td></tr>
  107. <tr class="separator:a6858d18c807411a071fd6d1b39d50087"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:ae5ec24d4a94d3780384d3f2b731c7eb9"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ae5ec24d4a94d3780384d3f2b731c7eb9">dirIndex</a> ()</td></tr>
  109. <tr class="separator:ae5ec24d4a94d3780384d3f2b731c7eb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:ae2ed15f05c9ccbce355e7a8d3ce8382d"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ae2ed15f05c9ccbce355e7a8d3ce8382d">dirSize</a> ()</td></tr>
  111. <tr class="separator:ae2ed15f05c9ccbce355e7a8d3ce8382d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:a4f01d27954ae49aeb6888ac7302f55d9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a4f01d27954ae49aeb6888ac7302f55d9">dmpFile</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr, uint32_t pos, size_t n)</td></tr>
  113. <tr class="separator:a4f01d27954ae49aeb6888ac7302f55d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:a50242f98dea0d4488ce4039a279f2a57"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a50242f98dea0d4488ce4039a279f2a57">exists</a> (const char *path)</td></tr>
  115. <tr class="separator:a50242f98dea0d4488ce4039a279f2a57"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:a7b591c9b92165fa8e4eae8c30c30e533"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a7b591c9b92165fa8e4eae8c30c30e533">FatFile</a> ()</td></tr>
  117. <tr class="separator:a7b591c9b92165fa8e4eae8c30c30e533"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:a38f9a296138648d6135cbbbf41ef6b92"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a38f9a296138648d6135cbbbf41ef6b92">FatFile</a> (const char *path, oflag_t oflag)</td></tr>
  119. <tr class="separator:a38f9a296138648d6135cbbbf41ef6b92"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:a33e0b0a8a342047f29ab8e8aae9cae14"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a33e0b0a8a342047f29ab8e8aae9cae14">fgetpos</a> (fspos_t *pos)</td></tr>
  121. <tr class="separator:a33e0b0a8a342047f29ab8e8aae9cae14"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. <tr class="memitem:a9e05a51767f7c8f70c6f337eecbdca03"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a9e05a51767f7c8f70c6f337eecbdca03">fgets</a> (char *str, int num, char *delim=<a class="el" href="_stdio_stream_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>)</td></tr>
  123. <tr class="separator:a9e05a51767f7c8f70c6f337eecbdca03"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:a874940574b9c99e763526465adf8dc28"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a874940574b9c99e763526465adf8dc28">fileSize</a> () const</td></tr>
  125. <tr class="separator:a874940574b9c99e763526465adf8dc28"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:a5ac8a604863d18840f4a93c5c788b7c8"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a5ac8a604863d18840f4a93c5c788b7c8">firstBlock</a> () const</td></tr>
  127. <tr class="separator:a5ac8a604863d18840f4a93c5c788b7c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:af3108df387f30ca3d367dd390a04daaa"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#af3108df387f30ca3d367dd390a04daaa">firstSector</a> () const</td></tr>
  129. <tr class="separator:af3108df387f30ca3d367dd390a04daaa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. <tr class="memitem:a166b5ff04754cc925f2aee71bf92f800"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a166b5ff04754cc925f2aee71bf92f800">flush</a> ()</td></tr>
  131. <tr class="separator:a166b5ff04754cc925f2aee71bf92f800"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:ac042c43d41ecfff4e101b88f3f82086e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ac042c43d41ecfff4e101b88f3f82086e">fsetpos</a> (const fspos_t *pos)</td></tr>
  133. <tr class="separator:ac042c43d41ecfff4e101b88f3f82086e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:ad0dbbd083180f44c7a3ce7124d4ce19c"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ad0dbbd083180f44c7a3ce7124d4ce19c">getError</a> ()</td></tr>
  135. <tr class="separator:ad0dbbd083180f44c7a3ce7124d4ce19c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:aafa565e286440aab612cdb430fc01da5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aafa565e286440aab612cdb430fc01da5">getName</a> (char *name, size_t size)</td></tr>
  137. <tr class="separator:aafa565e286440aab612cdb430fc01da5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:aba30e92a66f8e0d2f815c85662772a58"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aba30e92a66f8e0d2f815c85662772a58">getSFN</a> (char *name)</td></tr>
  139. <tr class="separator:aba30e92a66f8e0d2f815c85662772a58"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. <tr class="memitem:a8062c0d3a118e8d77d0310418703d5f5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a8062c0d3a118e8d77d0310418703d5f5">getWriteError</a> ()</td></tr>
  141. <tr class="separator:a8062c0d3a118e8d77d0310418703d5f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  142. <tr class="memitem:a933360b20b496421b2bd9ee7a95563a6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a933360b20b496421b2bd9ee7a95563a6">isDir</a> () const</td></tr>
  143. <tr class="separator:a933360b20b496421b2bd9ee7a95563a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. <tr class="memitem:acc5a87da1a5c8cb9758bfeaa7ae47b57"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#acc5a87da1a5c8cb9758bfeaa7ae47b57">isFile</a> () const</td></tr>
  145. <tr class="separator:acc5a87da1a5c8cb9758bfeaa7ae47b57"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. <tr class="memitem:ae216b4a2bc44a9cfb88478fa051a1fd8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ae216b4a2bc44a9cfb88478fa051a1fd8">isHidden</a> () const</td></tr>
  147. <tr class="separator:ae216b4a2bc44a9cfb88478fa051a1fd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  148. <tr class="memitem:af8f456ab790e818bfdd225cf6ffd40f3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#af8f456ab790e818bfdd225cf6ffd40f3">isLFN</a> () const</td></tr>
  149. <tr class="separator:af8f456ab790e818bfdd225cf6ffd40f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:a8b8a2850c086d3ce79bee64a23fbf7a6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a8b8a2850c086d3ce79bee64a23fbf7a6">isOpen</a> () const</td></tr>
  151. <tr class="separator:a8b8a2850c086d3ce79bee64a23fbf7a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  152. <tr class="memitem:ae60b4cedb69c88ac641813d5edfa6b4a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ae60b4cedb69c88ac641813d5edfa6b4a">isReadable</a> () const</td></tr>
  153. <tr class="separator:ae60b4cedb69c88ac641813d5edfa6b4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  154. <tr class="memitem:abaf639ec8f86f34aeb7e6b3615526f0b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#abaf639ec8f86f34aeb7e6b3615526f0b">isReadOnly</a> () const</td></tr>
  155. <tr class="separator:abaf639ec8f86f34aeb7e6b3615526f0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  156. <tr class="memitem:a03421a0c28649332f55e6ca06d3aeedb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a03421a0c28649332f55e6ca06d3aeedb">isRoot</a> () const</td></tr>
  157. <tr class="separator:a03421a0c28649332f55e6ca06d3aeedb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  158. <tr class="memitem:a8fda8004720ec4cc55710869dbb52e35"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a8fda8004720ec4cc55710869dbb52e35">isRoot32</a> () const</td></tr>
  159. <tr class="separator:a8fda8004720ec4cc55710869dbb52e35"><td class="memSeparator" colspan="2">&#160;</td></tr>
  160. <tr class="memitem:a0cc65089f7ce6c1ff92edbf0bff59dee"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a0cc65089f7ce6c1ff92edbf0bff59dee">isRootFixed</a> () const</td></tr>
  161. <tr class="separator:a0cc65089f7ce6c1ff92edbf0bff59dee"><td class="memSeparator" colspan="2">&#160;</td></tr>
  162. <tr class="memitem:abfd02c5d26f7d4f8739a8610116a6660"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#abfd02c5d26f7d4f8739a8610116a6660">isSubDir</a> () const</td></tr>
  163. <tr class="separator:abfd02c5d26f7d4f8739a8610116a6660"><td class="memSeparator" colspan="2">&#160;</td></tr>
  164. <tr class="memitem:a48087bdeb6b94fc27e0f74c3d90af5a9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a48087bdeb6b94fc27e0f74c3d90af5a9">isSystem</a> () const</td></tr>
  165. <tr class="separator:a48087bdeb6b94fc27e0f74c3d90af5a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  166. <tr class="memitem:aa484d5b2b147c5f3fe0e26b6eaf11ffc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aa484d5b2b147c5f3fe0e26b6eaf11ffc">isWritable</a> () const</td></tr>
  167. <tr class="separator:aa484d5b2b147c5f3fe0e26b6eaf11ffc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  168. <tr class="memitem:a60ab9d16bcc778150a364c26de467de1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a60ab9d16bcc778150a364c26de467de1">ls</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr, uint8_t flags=0, uint8_t indent=0)</td></tr>
  169. <tr class="separator:a60ab9d16bcc778150a364c26de467de1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  170. <tr class="memitem:abab5b9f72cc796388dd4eed01d13d90d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#abab5b9f72cc796388dd4eed01d13d90d">mkdir</a> (<a class="el" href="class_fat_file.html">FatFile</a> *dir, const char *path, bool pFlag=true)</td></tr>
  171. <tr class="separator:abab5b9f72cc796388dd4eed01d13d90d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  172. <tr class="memitem:af49a42dc64cd954debb271eae5639059"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#af49a42dc64cd954debb271eae5639059">open</a> (<a class="el" href="class_fat_volume.html">FatVolume</a> *vol, const char *path, oflag_t oflag)</td></tr>
  173. <tr class="separator:af49a42dc64cd954debb271eae5639059"><td class="memSeparator" colspan="2">&#160;</td></tr>
  174. <tr class="memitem:ab44920bb9cd5414b8e69c9dc4343394a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ab44920bb9cd5414b8e69c9dc4343394a">open</a> (<a class="el" href="class_fat_file.html">FatFile</a> *dirFile, uint16_t index, oflag_t oflag)</td></tr>
  175. <tr class="separator:ab44920bb9cd5414b8e69c9dc4343394a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  176. <tr class="memitem:a58d6ea245f1bc3ae7a6df311cd25052f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a58d6ea245f1bc3ae7a6df311cd25052f">open</a> (<a class="el" href="class_fat_file.html">FatFile</a> *dirFile, const char *path, oflag_t oflag)</td></tr>
  177. <tr class="separator:a58d6ea245f1bc3ae7a6df311cd25052f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  178. <tr class="memitem:afd3e4d5a76b6751ca796fc57f4dd2be4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#afd3e4d5a76b6751ca796fc57f4dd2be4">open</a> (const char *path, oflag_t oflag=0X00)</td></tr>
  179. <tr class="separator:afd3e4d5a76b6751ca796fc57f4dd2be4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  180. <tr class="memitem:a7f98b908a686574efbd7e1d20121ef9a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a7f98b908a686574efbd7e1d20121ef9a">openNext</a> (<a class="el" href="class_fat_file.html">FatFile</a> *dirFile, oflag_t oflag=0X00)</td></tr>
  181. <tr class="separator:a7f98b908a686574efbd7e1d20121ef9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  182. <tr class="memitem:a7e0c0548fed3a69e7284b91b694439d4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a7e0c0548fed3a69e7284b91b694439d4">openRoot</a> (<a class="el" href="class_fat_volume.html">FatVolume</a> *vol)</td></tr>
  183. <tr class="separator:a7e0c0548fed3a69e7284b91b694439d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  184. <tr class="memitem:acd141c43d03cf790b3b9806f3b059e77"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#acd141c43d03cf790b3b9806f3b059e77">operator bool</a> ()</td></tr>
  185. <tr class="separator:acd141c43d03cf790b3b9806f3b059e77"><td class="memSeparator" colspan="2">&#160;</td></tr>
  186. <tr class="memitem:ac05b7136b887539426856c623869aa3a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ac05b7136b887539426856c623869aa3a">peek</a> ()</td></tr>
  187. <tr class="separator:ac05b7136b887539426856c623869aa3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  188. <tr class="memitem:aeeb13b9de68bf9097c863c41d655ee83"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aeeb13b9de68bf9097c863c41d655ee83">preAllocate</a> (uint32_t length)</td></tr>
  189. <tr class="separator:aeeb13b9de68bf9097c863c41d655ee83"><td class="memSeparator" colspan="2">&#160;</td></tr>
  190. <tr class="memitem:a22be4c339d0bfa331f75415b74dd4f37"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a22be4c339d0bfa331f75415b74dd4f37">printAccessDate</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr)</td></tr>
  191. <tr class="separator:a22be4c339d0bfa331f75415b74dd4f37"><td class="memSeparator" colspan="2">&#160;</td></tr>
  192. <tr class="memitem:a19b3196bb1f6a68a2447e53b09369aef"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a19b3196bb1f6a68a2447e53b09369aef">printAccessDateTime</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr)</td></tr>
  193. <tr class="separator:a19b3196bb1f6a68a2447e53b09369aef"><td class="memSeparator" colspan="2">&#160;</td></tr>
  194. <tr class="memitem:ab22396a285e27b53501a0047ddd97f59"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ab22396a285e27b53501a0047ddd97f59">printCreateDateTime</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr)</td></tr>
  195. <tr class="separator:ab22396a285e27b53501a0047ddd97f59"><td class="memSeparator" colspan="2">&#160;</td></tr>
  196. <tr class="memitem:aa4a61a0cca1813d2ad0f6fe99cc4e41d"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aa4a61a0cca1813d2ad0f6fe99cc4e41d">printField</a> (double value, char term, uint8_t prec=2)</td></tr>
  197. <tr class="separator:aa4a61a0cca1813d2ad0f6fe99cc4e41d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  198. <tr class="memitem:a90ccef676afd62bbe7c773dd863a56e0"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a90ccef676afd62bbe7c773dd863a56e0">printField</a> (float value, char term, uint8_t prec=2)</td></tr>
  199. <tr class="separator:a90ccef676afd62bbe7c773dd863a56e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  200. <tr class="memitem:a8f906be79086f38943cb0911310d67bf"><td class="memTemplParams" colspan="2">template&lt;typename Type &gt; </td></tr>
  201. <tr class="memitem:a8f906be79086f38943cb0911310d67bf"><td class="memTemplItemLeft" align="right" valign="top">size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a8f906be79086f38943cb0911310d67bf">printField</a> (Type value, char term)</td></tr>
  202. <tr class="separator:a8f906be79086f38943cb0911310d67bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  203. <tr class="memitem:a12a5d2de2737c201aa39ca1bd2ab9c47"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a12a5d2de2737c201aa39ca1bd2ab9c47">printFileSize</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr)</td></tr>
  204. <tr class="separator:a12a5d2de2737c201aa39ca1bd2ab9c47"><td class="memSeparator" colspan="2">&#160;</td></tr>
  205. <tr class="memitem:a43c8a1cabcae673e43c590f5db44c65a"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a43c8a1cabcae673e43c590f5db44c65a">printModifyDateTime</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr)</td></tr>
  206. <tr class="separator:a43c8a1cabcae673e43c590f5db44c65a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  207. <tr class="memitem:afe18a787fb8640e2d2483370c770f82f"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#afe18a787fb8640e2d2483370c770f82f">printName</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr)</td></tr>
  208. <tr class="separator:afe18a787fb8640e2d2483370c770f82f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  209. <tr class="memitem:a791cd7aade71f609aab62ec018aea3c0"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a791cd7aade71f609aab62ec018aea3c0">printSFN</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr)</td></tr>
  210. <tr class="separator:a791cd7aade71f609aab62ec018aea3c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  211. <tr class="memitem:a60ae55ff6fe158c2340071d702a363c5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a60ae55ff6fe158c2340071d702a363c5">read</a> ()</td></tr>
  212. <tr class="separator:a60ae55ff6fe158c2340071d702a363c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  213. <tr class="memitem:aba893af8107a18017482d2311b066187"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aba893af8107a18017482d2311b066187">read</a> (void *buf, size_t count)</td></tr>
  214. <tr class="separator:aba893af8107a18017482d2311b066187"><td class="memSeparator" colspan="2">&#160;</td></tr>
  215. <tr class="memitem:a1325afe074c3efecff666678cd9f116a"><td class="memItemLeft" align="right" valign="top">int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a1325afe074c3efecff666678cd9f116a">readDir</a> (dir_t *dir)</td></tr>
  216. <tr class="separator:a1325afe074c3efecff666678cd9f116a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  217. <tr class="memitem:ac837a537fbcca14c7aa390c5fc9f4e7c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ac837a537fbcca14c7aa390c5fc9f4e7c">remove</a> ()</td></tr>
  218. <tr class="separator:ac837a537fbcca14c7aa390c5fc9f4e7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  219. <tr class="memitem:a75d3276f0b02b03e863afafe5731fedb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a75d3276f0b02b03e863afafe5731fedb">remove</a> (const char *path)</td></tr>
  220. <tr class="separator:a75d3276f0b02b03e863afafe5731fedb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  221. <tr class="memitem:a4cebcac13c1f4c9de7a055ae73133599"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a4cebcac13c1f4c9de7a055ae73133599">rename</a> (const char *newPath)</td></tr>
  222. <tr class="separator:a4cebcac13c1f4c9de7a055ae73133599"><td class="memSeparator" colspan="2">&#160;</td></tr>
  223. <tr class="memitem:a4b42f2454ff462555c07ea094a92a1e0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a4b42f2454ff462555c07ea094a92a1e0">rename</a> (<a class="el" href="class_fat_file.html">FatFile</a> *dirFile, const char *newPath)</td></tr>
  224. <tr class="separator:a4b42f2454ff462555c07ea094a92a1e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  225. <tr class="memitem:a5aac6e0b3cb08fc8b8668e916a8b0ca5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a5aac6e0b3cb08fc8b8668e916a8b0ca5">rewind</a> ()</td></tr>
  226. <tr class="separator:a5aac6e0b3cb08fc8b8668e916a8b0ca5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  227. <tr class="memitem:a9515bac181d33e7f0125e88fa2ccd283"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a9515bac181d33e7f0125e88fa2ccd283">rmdir</a> ()</td></tr>
  228. <tr class="separator:a9515bac181d33e7f0125e88fa2ccd283"><td class="memSeparator" colspan="2">&#160;</td></tr>
  229. <tr class="memitem:ac780a80526f86d3def701ecdc99d8bfe"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ac780a80526f86d3def701ecdc99d8bfe">rmRfStar</a> ()</td></tr>
  230. <tr class="separator:ac780a80526f86d3def701ecdc99d8bfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
  231. <tr class="memitem:a5812037ea30777cc350698ad26f2c73f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a5812037ea30777cc350698ad26f2c73f">seekCur</a> (int32_t offset)</td></tr>
  232. <tr class="separator:a5812037ea30777cc350698ad26f2c73f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  233. <tr class="memitem:a84f677f4e75ef6fa2eb632f4cdf6b486"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a84f677f4e75ef6fa2eb632f4cdf6b486">seekEnd</a> (int32_t offset=0)</td></tr>
  234. <tr class="separator:a84f677f4e75ef6fa2eb632f4cdf6b486"><td class="memSeparator" colspan="2">&#160;</td></tr>
  235. <tr class="memitem:ab067190d25733ed7e697d9890f61fd7a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ab067190d25733ed7e697d9890f61fd7a">seekSet</a> (uint32_t pos)</td></tr>
  236. <tr class="separator:ab067190d25733ed7e697d9890f61fd7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  237. <tr class="memitem:a67f3dc4896c542d695e11aac927f585e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a67f3dc4896c542d695e11aac927f585e">sync</a> ()</td></tr>
  238. <tr class="separator:a67f3dc4896c542d695e11aac927f585e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  239. <tr class="memitem:a56dabdf73833b7e961c4530eb8e16d23"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a56dabdf73833b7e961c4530eb8e16d23">timestamp</a> (uint8_t flags, uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second)</td></tr>
  240. <tr class="separator:a56dabdf73833b7e961c4530eb8e16d23"><td class="memSeparator" colspan="2">&#160;</td></tr>
  241. <tr class="memitem:a7dda881dac19ea2aa9b2e85a229a98d7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a7dda881dac19ea2aa9b2e85a229a98d7">truncate</a> ()</td></tr>
  242. <tr class="separator:a7dda881dac19ea2aa9b2e85a229a98d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  243. <tr class="memitem:aa6e663098a578635d37d92e82d18d616"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aa6e663098a578635d37d92e82d18d616">truncate</a> (uint32_t length)</td></tr>
  244. <tr class="separator:aa6e663098a578635d37d92e82d18d616"><td class="memSeparator" colspan="2">&#160;</td></tr>
  245. <tr class="memitem:a081dd810835f1ebf8c23ffe92706b485"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a081dd810835f1ebf8c23ffe92706b485">write</a> (const char *str)</td></tr>
  246. <tr class="separator:a081dd810835f1ebf8c23ffe92706b485"><td class="memSeparator" colspan="2">&#160;</td></tr>
  247. <tr class="memitem:ae51e724ac6cc3d67d64a5a666d5850f1"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ae51e724ac6cc3d67d64a5a666d5850f1">write</a> (uint8_t b)</td></tr>
  248. <tr class="separator:ae51e724ac6cc3d67d64a5a666d5850f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  249. <tr class="memitem:a5d84d871ac904a22aa48308713d14682"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a5d84d871ac904a22aa48308713d14682">write</a> (const void *buf, size_t count)</td></tr>
  250. <tr class="separator:a5d84d871ac904a22aa48308713d14682"><td class="memSeparator" colspan="2">&#160;</td></tr>
  251. </table><table class="memberdecls">
  252. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
  253. Static Public Member Functions</h2></td></tr>
  254. <tr class="memitem:a94df8090f16e9666cdc53ca20f6aff90"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a94df8090f16e9666cdc53ca20f6aff90">legal83Char</a> (uint8_t c)</td></tr>
  255. <tr class="separator:a94df8090f16e9666cdc53ca20f6aff90"><td class="memSeparator" colspan="2">&#160;</td></tr>
  256. <tr class="memitem:aabcd863883bfcfb37b63dbd6021f7eb8"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aabcd863883bfcfb37b63dbd6021f7eb8">printFatDate</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr, uint16_t fatDate)</td></tr>
  257. <tr class="separator:aabcd863883bfcfb37b63dbd6021f7eb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  258. <tr class="memitem:a7f84d953190ea94710dad9ebb897b957"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a7f84d953190ea94710dad9ebb897b957">printFatTime</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr, uint16_t fatTime)</td></tr>
  259. <tr class="separator:a7f84d953190ea94710dad9ebb897b957"><td class="memSeparator" colspan="2">&#160;</td></tr>
  260. </table><table class="memberdecls">
  261. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
  262. Friends</h2></td></tr>
  263. <tr class="memitem:a6ca3f436167f187097347a20ea221555"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a6ca3f436167f187097347a20ea221555">FatVolume</a></td></tr>
  264. <tr class="separator:a6ca3f436167f187097347a20ea221555"><td class="memSeparator" colspan="2">&#160;</td></tr>
  265. </table>
  266. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  267. <div class="textblock"><p>Basic file class. </p>
  268. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  269. <a id="a7b591c9b92165fa8e4eae8c30c30e533"></a>
  270. <h2 class="memtitle"><span class="permalink"><a href="#a7b591c9b92165fa8e4eae8c30c30e533">&#9670;&nbsp;</a></span>FatFile() <span class="overload">[1/2]</span></h2>
  271. <div class="memitem">
  272. <div class="memproto">
  273. <table class="mlabels">
  274. <tr>
  275. <td class="mlabels-left">
  276. <table class="memname">
  277. <tr>
  278. <td class="memname">FatFile::FatFile </td>
  279. <td>(</td>
  280. <td class="paramname"></td><td>)</td>
  281. <td></td>
  282. </tr>
  283. </table>
  284. </td>
  285. <td class="mlabels-right">
  286. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  287. </tr>
  288. </table>
  289. </div><div class="memdoc">
  290. <p>Create an instance. </p>
  291. </div>
  292. </div>
  293. <a id="a38f9a296138648d6135cbbbf41ef6b92"></a>
  294. <h2 class="memtitle"><span class="permalink"><a href="#a38f9a296138648d6135cbbbf41ef6b92">&#9670;&nbsp;</a></span>FatFile() <span class="overload">[2/2]</span></h2>
  295. <div class="memitem">
  296. <div class="memproto">
  297. <table class="mlabels">
  298. <tr>
  299. <td class="mlabels-left">
  300. <table class="memname">
  301. <tr>
  302. <td class="memname">FatFile::FatFile </td>
  303. <td>(</td>
  304. <td class="paramtype">const char *&#160;</td>
  305. <td class="paramname"><em>path</em>, </td>
  306. </tr>
  307. <tr>
  308. <td class="paramkey"></td>
  309. <td></td>
  310. <td class="paramtype">oflag_t&#160;</td>
  311. <td class="paramname"><em>oflag</em>&#160;</td>
  312. </tr>
  313. <tr>
  314. <td></td>
  315. <td>)</td>
  316. <td></td><td></td>
  317. </tr>
  318. </table>
  319. </td>
  320. <td class="mlabels-right">
  321. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  322. </tr>
  323. </table>
  324. </div><div class="memdoc">
  325. <p>Create a file object and open it in the current working directory.</p>
  326. <dl class="params"><dt>Parameters</dt><dd>
  327. <table class="params">
  328. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path for a file to be opened.</td></tr>
  329. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>Values for <em>oflag</em> are constructed by a bitwise-inclusive OR of open flags. see <a class="el" href="class_fat_file.html#a58d6ea245f1bc3ae7a6df311cd25052f">FatFile::open(FatFile*, const char*, uint8_t)</a>. </td></tr>
  330. </table>
  331. </dd>
  332. </dl>
  333. </div>
  334. </div>
  335. <h2 class="groupheader">Member Function Documentation</h2>
  336. <a id="a4baea142c9cd53293a93ef3d6a67aa16"></a>
  337. <h2 class="memtitle"><span class="permalink"><a href="#a4baea142c9cd53293a93ef3d6a67aa16">&#9670;&nbsp;</a></span>available()</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">int FatFile::available </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> </td>
  354. </tr>
  355. </table>
  356. </div><div class="memdoc">
  357. <dl class="section return"><dt>Returns</dt><dd>The number of bytes available from the current position to EOF for normal files. INT_MAX is returned for very large files.</dd></dl>
  358. <p>available64() is recomended for very large files.</p>
  359. <p>Zero is returned for directory files. </p>
  360. </div>
  361. </div>
  362. <a id="a651ffa37e7e586fc3c2de8cbbd500ea6"></a>
  363. <h2 class="memtitle"><span class="permalink"><a href="#a651ffa37e7e586fc3c2de8cbbd500ea6">&#9670;&nbsp;</a></span>available32()</h2>
  364. <div class="memitem">
  365. <div class="memproto">
  366. <table class="mlabels">
  367. <tr>
  368. <td class="mlabels-left">
  369. <table class="memname">
  370. <tr>
  371. <td class="memname">uint32_t FatFile::available32 </td>
  372. <td>(</td>
  373. <td class="paramname"></td><td>)</td>
  374. <td></td>
  375. </tr>
  376. </table>
  377. </td>
  378. <td class="mlabels-right">
  379. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  380. </tr>
  381. </table>
  382. </div><div class="memdoc">
  383. <dl class="section return"><dt>Returns</dt><dd>The number of bytes available from the current position to EOF for normal files. Zero is returned for directory files. </dd></dl>
  384. </div>
  385. </div>
  386. <a id="a052e2c15a39b322a5307b693b8835b22"></a>
  387. <h2 class="memtitle"><span class="permalink"><a href="#a052e2c15a39b322a5307b693b8835b22">&#9670;&nbsp;</a></span>clearError()</h2>
  388. <div class="memitem">
  389. <div class="memproto">
  390. <table class="mlabels">
  391. <tr>
  392. <td class="mlabels-left">
  393. <table class="memname">
  394. <tr>
  395. <td class="memname">void FatFile::clearError </td>
  396. <td>(</td>
  397. <td class="paramname"></td><td>)</td>
  398. <td></td>
  399. </tr>
  400. </table>
  401. </td>
  402. <td class="mlabels-right">
  403. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  404. </tr>
  405. </table>
  406. </div><div class="memdoc">
  407. <p>Clear all error bits. </p>
  408. </div>
  409. </div>
  410. <a id="aeca2a2eff91e6aa55fe1b0e3860c9a05"></a>
  411. <h2 class="memtitle"><span class="permalink"><a href="#aeca2a2eff91e6aa55fe1b0e3860c9a05">&#9670;&nbsp;</a></span>clearWriteError()</h2>
  412. <div class="memitem">
  413. <div class="memproto">
  414. <table class="mlabels">
  415. <tr>
  416. <td class="mlabels-left">
  417. <table class="memname">
  418. <tr>
  419. <td class="memname">void FatFile::clearWriteError </td>
  420. <td>(</td>
  421. <td class="paramname"></td><td>)</td>
  422. <td></td>
  423. </tr>
  424. </table>
  425. </td>
  426. <td class="mlabels-right">
  427. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  428. </tr>
  429. </table>
  430. </div><div class="memdoc">
  431. <p>Set writeError to zero </p>
  432. </div>
  433. </div>
  434. <a id="afd16af325e0642e4bff6430b7d8bb18b"></a>
  435. <h2 class="memtitle"><span class="permalink"><a href="#afd16af325e0642e4bff6430b7d8bb18b">&#9670;&nbsp;</a></span>close()</h2>
  436. <div class="memitem">
  437. <div class="memproto">
  438. <table class="memname">
  439. <tr>
  440. <td class="memname">bool FatFile::close </td>
  441. <td>(</td>
  442. <td class="paramname"></td><td>)</td>
  443. <td></td>
  444. </tr>
  445. </table>
  446. </div><div class="memdoc">
  447. <p>Close a file and force cached data and directory information to be written to the storage device.</p>
  448. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  449. </div>
  450. </div>
  451. <a id="a12b3c5a763416ca62c70e3db74033cd0"></a>
  452. <h2 class="memtitle"><span class="permalink"><a href="#a12b3c5a763416ca62c70e3db74033cd0">&#9670;&nbsp;</a></span>contiguousRange()</h2>
  453. <div class="memitem">
  454. <div class="memproto">
  455. <table class="memname">
  456. <tr>
  457. <td class="memname">bool FatFile::contiguousRange </td>
  458. <td>(</td>
  459. <td class="paramtype">uint32_t *&#160;</td>
  460. <td class="paramname"><em>bgnSector</em>, </td>
  461. </tr>
  462. <tr>
  463. <td class="paramkey"></td>
  464. <td></td>
  465. <td class="paramtype">uint32_t *&#160;</td>
  466. <td class="paramname"><em>endSector</em>&#160;</td>
  467. </tr>
  468. <tr>
  469. <td></td>
  470. <td>)</td>
  471. <td></td><td></td>
  472. </tr>
  473. </table>
  474. </div><div class="memdoc">
  475. <p>Check for contiguous file and return its raw sector range.</p>
  476. <dl class="params"><dt>Parameters</dt><dd>
  477. <table class="params">
  478. <tr><td class="paramdir">[out]</td><td class="paramname">bgnSector</td><td>the first sector address for the file. </td></tr>
  479. <tr><td class="paramdir">[out]</td><td class="paramname">endSector</td><td>the last sector address for the file.</td></tr>
  480. </table>
  481. </dd>
  482. </dl>
  483. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  484. </div>
  485. </div>
  486. <a id="a0afc2a1cffa238d1cb2049bfa2d8d199"></a>
  487. <h2 class="memtitle"><span class="permalink"><a href="#a0afc2a1cffa238d1cb2049bfa2d8d199">&#9670;&nbsp;</a></span>createContiguous() <span class="overload">[1/2]</span></h2>
  488. <div class="memitem">
  489. <div class="memproto">
  490. <table class="memname">
  491. <tr>
  492. <td class="memname">bool FatFile::createContiguous </td>
  493. <td>(</td>
  494. <td class="paramtype"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td>
  495. <td class="paramname"><em>dirFile</em>, </td>
  496. </tr>
  497. <tr>
  498. <td class="paramkey"></td>
  499. <td></td>
  500. <td class="paramtype">const char *&#160;</td>
  501. <td class="paramname"><em>path</em>, </td>
  502. </tr>
  503. <tr>
  504. <td class="paramkey"></td>
  505. <td></td>
  506. <td class="paramtype">uint32_t&#160;</td>
  507. <td class="paramname"><em>size</em>&#160;</td>
  508. </tr>
  509. <tr>
  510. <td></td>
  511. <td>)</td>
  512. <td></td><td></td>
  513. </tr>
  514. </table>
  515. </div><div class="memdoc">
  516. <p>Create and open a new contiguous file of a specified size.</p>
  517. <dl class="params"><dt>Parameters</dt><dd>
  518. <table class="params">
  519. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>The directory where the file will be created. </td></tr>
  520. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a validfile name. </td></tr>
  521. <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>The desired file size.</td></tr>
  522. </table>
  523. </dd>
  524. </dl>
  525. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  526. </div>
  527. </div>
  528. <a id="a0853fbd44aee2798d14d8e3aed78f8bf"></a>
  529. <h2 class="memtitle"><span class="permalink"><a href="#a0853fbd44aee2798d14d8e3aed78f8bf">&#9670;&nbsp;</a></span>createContiguous() <span class="overload">[2/2]</span></h2>
  530. <div class="memitem">
  531. <div class="memproto">
  532. <table class="memname">
  533. <tr>
  534. <td class="memname">bool FatFile::createContiguous </td>
  535. <td>(</td>
  536. <td class="paramtype">const char *&#160;</td>
  537. <td class="paramname"><em>path</em>, </td>
  538. </tr>
  539. <tr>
  540. <td class="paramkey"></td>
  541. <td></td>
  542. <td class="paramtype">uint32_t&#160;</td>
  543. <td class="paramname"><em>size</em>&#160;</td>
  544. </tr>
  545. <tr>
  546. <td></td>
  547. <td>)</td>
  548. <td></td><td></td>
  549. </tr>
  550. </table>
  551. </div><div class="memdoc">
  552. <p>Create and open a new contiguous file of a specified size.</p>
  553. <dl class="params"><dt>Parameters</dt><dd>
  554. <table class="params">
  555. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a validfile name. </td></tr>
  556. <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>The desired file size.</td></tr>
  557. </table>
  558. </dd>
  559. </dl>
  560. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  561. </div>
  562. </div>
  563. <a id="a526f3dd56ce205690e45ffc86ef6f891"></a>
  564. <h2 class="memtitle"><span class="permalink"><a href="#a526f3dd56ce205690e45ffc86ef6f891">&#9670;&nbsp;</a></span>curCluster()</h2>
  565. <div class="memitem">
  566. <div class="memproto">
  567. <table class="mlabels">
  568. <tr>
  569. <td class="mlabels-left">
  570. <table class="memname">
  571. <tr>
  572. <td class="memname">uint32_t FatFile::curCluster </td>
  573. <td>(</td>
  574. <td class="paramname"></td><td>)</td>
  575. <td> const</td>
  576. </tr>
  577. </table>
  578. </td>
  579. <td class="mlabels-right">
  580. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  581. </tr>
  582. </table>
  583. </div><div class="memdoc">
  584. <dl class="section return"><dt>Returns</dt><dd>The current cluster number for a file or directory. </dd></dl>
  585. </div>
  586. </div>
  587. <a id="a97e0620949f97e9b9c91ed1094d728aa"></a>
  588. <h2 class="memtitle"><span class="permalink"><a href="#a97e0620949f97e9b9c91ed1094d728aa">&#9670;&nbsp;</a></span>curPosition()</h2>
  589. <div class="memitem">
  590. <div class="memproto">
  591. <table class="mlabels">
  592. <tr>
  593. <td class="mlabels-left">
  594. <table class="memname">
  595. <tr>
  596. <td class="memname">uint32_t FatFile::curPosition </td>
  597. <td>(</td>
  598. <td class="paramname"></td><td>)</td>
  599. <td> const</td>
  600. </tr>
  601. </table>
  602. </td>
  603. <td class="mlabels-right">
  604. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  605. </tr>
  606. </table>
  607. </div><div class="memdoc">
  608. <dl class="section return"><dt>Returns</dt><dd>The current position for a file or directory. </dd></dl>
  609. </div>
  610. </div>
  611. <a id="a6858d18c807411a071fd6d1b39d50087"></a>
  612. <h2 class="memtitle"><span class="permalink"><a href="#a6858d18c807411a071fd6d1b39d50087">&#9670;&nbsp;</a></span>dirEntry()</h2>
  613. <div class="memitem">
  614. <div class="memproto">
  615. <table class="memname">
  616. <tr>
  617. <td class="memname">bool FatFile::dirEntry </td>
  618. <td>(</td>
  619. <td class="paramtype">dir_t *&#160;</td>
  620. <td class="paramname"><em>dir</em></td><td>)</td>
  621. <td></td>
  622. </tr>
  623. </table>
  624. </div><div class="memdoc">
  625. <p>Return a file's directory entry.</p>
  626. <dl class="params"><dt>Parameters</dt><dd>
  627. <table class="params">
  628. <tr><td class="paramdir">[out]</td><td class="paramname">dir</td><td>Location for return of the file's directory entry.</td></tr>
  629. </table>
  630. </dd>
  631. </dl>
  632. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  633. </div>
  634. </div>
  635. <a id="ae5ec24d4a94d3780384d3f2b731c7eb9"></a>
  636. <h2 class="memtitle"><span class="permalink"><a href="#ae5ec24d4a94d3780384d3f2b731c7eb9">&#9670;&nbsp;</a></span>dirIndex()</h2>
  637. <div class="memitem">
  638. <div class="memproto">
  639. <table class="mlabels">
  640. <tr>
  641. <td class="mlabels-left">
  642. <table class="memname">
  643. <tr>
  644. <td class="memname">uint16_t FatFile::dirIndex </td>
  645. <td>(</td>
  646. <td class="paramname"></td><td>)</td>
  647. <td></td>
  648. </tr>
  649. </table>
  650. </td>
  651. <td class="mlabels-right">
  652. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  653. </tr>
  654. </table>
  655. </div><div class="memdoc">
  656. <dl class="section return"><dt>Returns</dt><dd>Directory entry index. </dd></dl>
  657. </div>
  658. </div>
  659. <a id="ae2ed15f05c9ccbce355e7a8d3ce8382d"></a>
  660. <h2 class="memtitle"><span class="permalink"><a href="#ae2ed15f05c9ccbce355e7a8d3ce8382d">&#9670;&nbsp;</a></span>dirSize()</h2>
  661. <div class="memitem">
  662. <div class="memproto">
  663. <table class="memname">
  664. <tr>
  665. <td class="memname">uint32_t FatFile::dirSize </td>
  666. <td>(</td>
  667. <td class="paramname"></td><td>)</td>
  668. <td></td>
  669. </tr>
  670. </table>
  671. </div><div class="memdoc">
  672. <dl class="section return"><dt>Returns</dt><dd>The number of bytes allocated to a directory or zero if an error occurs. </dd></dl>
  673. </div>
  674. </div>
  675. <a id="a4f01d27954ae49aeb6888ac7302f55d9"></a>
  676. <h2 class="memtitle"><span class="permalink"><a href="#a4f01d27954ae49aeb6888ac7302f55d9">&#9670;&nbsp;</a></span>dmpFile()</h2>
  677. <div class="memitem">
  678. <div class="memproto">
  679. <table class="memname">
  680. <tr>
  681. <td class="memname">void FatFile::dmpFile </td>
  682. <td>(</td>
  683. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  684. <td class="paramname"><em>pr</em>, </td>
  685. </tr>
  686. <tr>
  687. <td class="paramkey"></td>
  688. <td></td>
  689. <td class="paramtype">uint32_t&#160;</td>
  690. <td class="paramname"><em>pos</em>, </td>
  691. </tr>
  692. <tr>
  693. <td class="paramkey"></td>
  694. <td></td>
  695. <td class="paramtype">size_t&#160;</td>
  696. <td class="paramname"><em>n</em>&#160;</td>
  697. </tr>
  698. <tr>
  699. <td></td>
  700. <td>)</td>
  701. <td></td><td></td>
  702. </tr>
  703. </table>
  704. </div><div class="memdoc">
  705. <p>Dump file in Hex </p><dl class="params"><dt>Parameters</dt><dd>
  706. <table class="params">
  707. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for list. </td></tr>
  708. <tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>Start position in file. </td></tr>
  709. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number of locations to dump. </td></tr>
  710. </table>
  711. </dd>
  712. </dl>
  713. </div>
  714. </div>
  715. <a id="a50242f98dea0d4488ce4039a279f2a57"></a>
  716. <h2 class="memtitle"><span class="permalink"><a href="#a50242f98dea0d4488ce4039a279f2a57">&#9670;&nbsp;</a></span>exists()</h2>
  717. <div class="memitem">
  718. <div class="memproto">
  719. <table class="mlabels">
  720. <tr>
  721. <td class="mlabels-left">
  722. <table class="memname">
  723. <tr>
  724. <td class="memname">bool FatFile::exists </td>
  725. <td>(</td>
  726. <td class="paramtype">const char *&#160;</td>
  727. <td class="paramname"><em>path</em></td><td>)</td>
  728. <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>Test for the existence of a file in a directory</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>Path of the file to be tested for.</td></tr>
  741. </table>
  742. </dd>
  743. </dl>
  744. <p>The calling instance must be an open directory file.</p>
  745. <p>dirFile.exists("TOFIND.TXT") searches for "TOFIND.TXT" in the directory dirFile.</p>
  746. <dl class="section return"><dt>Returns</dt><dd>True if the file exists. </dd></dl>
  747. </div>
  748. </div>
  749. <a id="a33e0b0a8a342047f29ab8e8aae9cae14"></a>
  750. <h2 class="memtitle"><span class="permalink"><a href="#a33e0b0a8a342047f29ab8e8aae9cae14">&#9670;&nbsp;</a></span>fgetpos()</h2>
  751. <div class="memitem">
  752. <div class="memproto">
  753. <table class="memname">
  754. <tr>
  755. <td class="memname">void FatFile::fgetpos </td>
  756. <td>(</td>
  757. <td class="paramtype">fspos_t *&#160;</td>
  758. <td class="paramname"><em>pos</em></td><td>)</td>
  759. <td></td>
  760. </tr>
  761. </table>
  762. </div><div class="memdoc">
  763. <p>get position for streams </p><dl class="params"><dt>Parameters</dt><dd>
  764. <table class="params">
  765. <tr><td class="paramdir">[out]</td><td class="paramname">pos</td><td>struct to receive position </td></tr>
  766. </table>
  767. </dd>
  768. </dl>
  769. </div>
  770. </div>
  771. <a id="a9e05a51767f7c8f70c6f337eecbdca03"></a>
  772. <h2 class="memtitle"><span class="permalink"><a href="#a9e05a51767f7c8f70c6f337eecbdca03">&#9670;&nbsp;</a></span>fgets()</h2>
  773. <div class="memitem">
  774. <div class="memproto">
  775. <table class="memname">
  776. <tr>
  777. <td class="memname">int FatFile::fgets </td>
  778. <td>(</td>
  779. <td class="paramtype">char *&#160;</td>
  780. <td class="paramname"><em>str</em>, </td>
  781. </tr>
  782. <tr>
  783. <td class="paramkey"></td>
  784. <td></td>
  785. <td class="paramtype">int&#160;</td>
  786. <td class="paramname"><em>num</em>, </td>
  787. </tr>
  788. <tr>
  789. <td class="paramkey"></td>
  790. <td></td>
  791. <td class="paramtype">char *&#160;</td>
  792. <td class="paramname"><em>delim</em> = <code><a class="el" href="_stdio_stream_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a></code>&#160;</td>
  793. </tr>
  794. <tr>
  795. <td></td>
  796. <td>)</td>
  797. <td></td><td></td>
  798. </tr>
  799. </table>
  800. </div><div class="memdoc">
  801. <p>Get a string from a file.</p>
  802. <p><a class="el" href="class_fat_file.html#a9e05a51767f7c8f70c6f337eecbdca03">fgets()</a> reads bytes from a file into the array pointed to by <em>str</em>, until <em>num</em> - 1 bytes are read, or a delimiter is read and transferred to <em>str</em>, or end-of-file is encountered. The string is then terminated with a null byte.</p>
  803. <p><a class="el" href="class_fat_file.html#a9e05a51767f7c8f70c6f337eecbdca03">fgets()</a> deletes CR, '\r', from the string. This insures only a '\n' terminates the string for Windows text files which use CRLF for newline.</p>
  804. <dl class="params"><dt>Parameters</dt><dd>
  805. <table class="params">
  806. <tr><td class="paramdir">[out]</td><td class="paramname">str</td><td>Pointer to the array where the string is stored. </td></tr>
  807. <tr><td class="paramdir">[in]</td><td class="paramname">num</td><td>Maximum number of characters to be read (including the final null byte). Usually the length of the array <em>str</em> is used. </td></tr>
  808. <tr><td class="paramdir">[in]</td><td class="paramname">delim</td><td>Optional set of delimiters. The default is "\n".</td></tr>
  809. </table>
  810. </dd>
  811. </dl>
  812. <dl class="section return"><dt>Returns</dt><dd>For success <a class="el" href="class_fat_file.html#a9e05a51767f7c8f70c6f337eecbdca03">fgets()</a> returns the length of the string in <em>str</em>. If no data is read, <a class="el" href="class_fat_file.html#a9e05a51767f7c8f70c6f337eecbdca03">fgets()</a> returns zero for EOF or -1 if an error occurred. </dd></dl>
  813. </div>
  814. </div>
  815. <a id="a874940574b9c99e763526465adf8dc28"></a>
  816. <h2 class="memtitle"><span class="permalink"><a href="#a874940574b9c99e763526465adf8dc28">&#9670;&nbsp;</a></span>fileSize()</h2>
  817. <div class="memitem">
  818. <div class="memproto">
  819. <table class="mlabels">
  820. <tr>
  821. <td class="mlabels-left">
  822. <table class="memname">
  823. <tr>
  824. <td class="memname">uint32_t FatFile::fileSize </td>
  825. <td>(</td>
  826. <td class="paramname"></td><td>)</td>
  827. <td> const</td>
  828. </tr>
  829. </table>
  830. </td>
  831. <td class="mlabels-right">
  832. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  833. </tr>
  834. </table>
  835. </div><div class="memdoc">
  836. <dl class="section return"><dt>Returns</dt><dd>The total number of bytes in a file. </dd></dl>
  837. </div>
  838. </div>
  839. <a id="a5ac8a604863d18840f4a93c5c788b7c8"></a>
  840. <h2 class="memtitle"><span class="permalink"><a href="#a5ac8a604863d18840f4a93c5c788b7c8">&#9670;&nbsp;</a></span>firstBlock()</h2>
  841. <div class="memitem">
  842. <div class="memproto">
  843. <table class="mlabels">
  844. <tr>
  845. <td class="mlabels-left">
  846. <table class="memname">
  847. <tr>
  848. <td class="memname">uint32_t FatFile::firstBlock </td>
  849. <td>(</td>
  850. <td class="paramname"></td><td>)</td>
  851. <td> const</td>
  852. </tr>
  853. </table>
  854. </td>
  855. <td class="mlabels-right">
  856. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  857. </tr>
  858. </table>
  859. </div><div class="memdoc">
  860. <dl class="section return"><dt>Returns</dt><dd>first sector of file or zero for empty file. </dd></dl>
  861. </div>
  862. </div>
  863. <a id="af3108df387f30ca3d367dd390a04daaa"></a>
  864. <h2 class="memtitle"><span class="permalink"><a href="#af3108df387f30ca3d367dd390a04daaa">&#9670;&nbsp;</a></span>firstSector()</h2>
  865. <div class="memitem">
  866. <div class="memproto">
  867. <table class="memname">
  868. <tr>
  869. <td class="memname">uint32_t FatFile::firstSector </td>
  870. <td>(</td>
  871. <td class="paramname"></td><td>)</td>
  872. <td> const</td>
  873. </tr>
  874. </table>
  875. </div><div class="memdoc">
  876. <dl class="section return"><dt>Returns</dt><dd>first sector of file or zero for empty file. </dd></dl>
  877. </div>
  878. </div>
  879. <a id="a166b5ff04754cc925f2aee71bf92f800"></a>
  880. <h2 class="memtitle"><span class="permalink"><a href="#a166b5ff04754cc925f2aee71bf92f800">&#9670;&nbsp;</a></span>flush()</h2>
  881. <div class="memitem">
  882. <div class="memproto">
  883. <table class="mlabels">
  884. <tr>
  885. <td class="mlabels-left">
  886. <table class="memname">
  887. <tr>
  888. <td class="memname">void FatFile::flush </td>
  889. <td>(</td>
  890. <td class="paramname"></td><td>)</td>
  891. <td></td>
  892. </tr>
  893. </table>
  894. </td>
  895. <td class="mlabels-right">
  896. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  897. </tr>
  898. </table>
  899. </div><div class="memdoc">
  900. <p>Arduino name for <a class="el" href="class_fat_file.html#a67f3dc4896c542d695e11aac927f585e">sync()</a> </p>
  901. </div>
  902. </div>
  903. <a id="ac042c43d41ecfff4e101b88f3f82086e"></a>
  904. <h2 class="memtitle"><span class="permalink"><a href="#ac042c43d41ecfff4e101b88f3f82086e">&#9670;&nbsp;</a></span>fsetpos()</h2>
  905. <div class="memitem">
  906. <div class="memproto">
  907. <table class="memname">
  908. <tr>
  909. <td class="memname">void FatFile::fsetpos </td>
  910. <td>(</td>
  911. <td class="paramtype">const fspos_t *&#160;</td>
  912. <td class="paramname"><em>pos</em></td><td>)</td>
  913. <td></td>
  914. </tr>
  915. </table>
  916. </div><div class="memdoc">
  917. <p>set position for streams </p><dl class="params"><dt>Parameters</dt><dd>
  918. <table class="params">
  919. <tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>struct with value for new position </td></tr>
  920. </table>
  921. </dd>
  922. </dl>
  923. </div>
  924. </div>
  925. <a id="ad0dbbd083180f44c7a3ce7124d4ce19c"></a>
  926. <h2 class="memtitle"><span class="permalink"><a href="#ad0dbbd083180f44c7a3ce7124d4ce19c">&#9670;&nbsp;</a></span>getError()</h2>
  927. <div class="memitem">
  928. <div class="memproto">
  929. <table class="mlabels">
  930. <tr>
  931. <td class="mlabels-left">
  932. <table class="memname">
  933. <tr>
  934. <td class="memname">uint8_t FatFile::getError </td>
  935. <td>(</td>
  936. <td class="paramname"></td><td>)</td>
  937. <td></td>
  938. </tr>
  939. </table>
  940. </td>
  941. <td class="mlabels-right">
  942. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  943. </tr>
  944. </table>
  945. </div><div class="memdoc">
  946. <dl class="section return"><dt>Returns</dt><dd>All error bits. </dd></dl>
  947. </div>
  948. </div>
  949. <a id="aafa565e286440aab612cdb430fc01da5"></a>
  950. <h2 class="memtitle"><span class="permalink"><a href="#aafa565e286440aab612cdb430fc01da5">&#9670;&nbsp;</a></span>getName()</h2>
  951. <div class="memitem">
  952. <div class="memproto">
  953. <table class="memname">
  954. <tr>
  955. <td class="memname">bool FatFile::getName </td>
  956. <td>(</td>
  957. <td class="paramtype">char *&#160;</td>
  958. <td class="paramname"><em>name</em>, </td>
  959. </tr>
  960. <tr>
  961. <td class="paramkey"></td>
  962. <td></td>
  963. <td class="paramtype">size_t&#160;</td>
  964. <td class="paramname"><em>size</em>&#160;</td>
  965. </tr>
  966. <tr>
  967. <td></td>
  968. <td>)</td>
  969. <td></td><td></td>
  970. </tr>
  971. </table>
  972. </div><div class="memdoc">
  973. <p>Get a file's name followed by a zero byte.</p>
  974. <dl class="params"><dt>Parameters</dt><dd>
  975. <table class="params">
  976. <tr><td class="paramdir">[out]</td><td class="paramname">name</td><td>An array of characters for the file's name. </td></tr>
  977. <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>The size of the array in bytes. The array must be at least 13 bytes long. The file's name will be truncated if the file's name is too long. </td></tr>
  978. </table>
  979. </dd>
  980. </dl>
  981. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  982. </div>
  983. </div>
  984. <a id="aba30e92a66f8e0d2f815c85662772a58"></a>
  985. <h2 class="memtitle"><span class="permalink"><a href="#aba30e92a66f8e0d2f815c85662772a58">&#9670;&nbsp;</a></span>getSFN()</h2>
  986. <div class="memitem">
  987. <div class="memproto">
  988. <table class="memname">
  989. <tr>
  990. <td class="memname">bool FatFile::getSFN </td>
  991. <td>(</td>
  992. <td class="paramtype">char *&#160;</td>
  993. <td class="paramname"><em>name</em></td><td>)</td>
  994. <td></td>
  995. </tr>
  996. </table>
  997. </div><div class="memdoc">
  998. <p>Get a file's Short File Name followed by a zero byte.</p>
  999. <dl class="params"><dt>Parameters</dt><dd>
  1000. <table class="params">
  1001. <tr><td class="paramdir">[out]</td><td class="paramname">name</td><td>An array of characters for the file's name. The array must be at least 13 bytes long. </td></tr>
  1002. </table>
  1003. </dd>
  1004. </dl>
  1005. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1006. </div>
  1007. </div>
  1008. <a id="a8062c0d3a118e8d77d0310418703d5f5"></a>
  1009. <h2 class="memtitle"><span class="permalink"><a href="#a8062c0d3a118e8d77d0310418703d5f5">&#9670;&nbsp;</a></span>getWriteError()</h2>
  1010. <div class="memitem">
  1011. <div class="memproto">
  1012. <table class="mlabels">
  1013. <tr>
  1014. <td class="mlabels-left">
  1015. <table class="memname">
  1016. <tr>
  1017. <td class="memname">bool FatFile::getWriteError </td>
  1018. <td>(</td>
  1019. <td class="paramname"></td><td>)</td>
  1020. <td></td>
  1021. </tr>
  1022. </table>
  1023. </td>
  1024. <td class="mlabels-right">
  1025. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1026. </tr>
  1027. </table>
  1028. </div><div class="memdoc">
  1029. <dl class="section return"><dt>Returns</dt><dd>value of writeError </dd></dl>
  1030. </div>
  1031. </div>
  1032. <a id="a933360b20b496421b2bd9ee7a95563a6"></a>
  1033. <h2 class="memtitle"><span class="permalink"><a href="#a933360b20b496421b2bd9ee7a95563a6">&#9670;&nbsp;</a></span>isDir()</h2>
  1034. <div class="memitem">
  1035. <div class="memproto">
  1036. <table class="mlabels">
  1037. <tr>
  1038. <td class="mlabels-left">
  1039. <table class="memname">
  1040. <tr>
  1041. <td class="memname">bool FatFile::isDir </td>
  1042. <td>(</td>
  1043. <td class="paramname"></td><td>)</td>
  1044. <td> const</td>
  1045. </tr>
  1046. </table>
  1047. </td>
  1048. <td class="mlabels-right">
  1049. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1050. </tr>
  1051. </table>
  1052. </div><div class="memdoc">
  1053. <dl class="section return"><dt>Returns</dt><dd>True if this is a directory. </dd></dl>
  1054. </div>
  1055. </div>
  1056. <a id="acc5a87da1a5c8cb9758bfeaa7ae47b57"></a>
  1057. <h2 class="memtitle"><span class="permalink"><a href="#acc5a87da1a5c8cb9758bfeaa7ae47b57">&#9670;&nbsp;</a></span>isFile()</h2>
  1058. <div class="memitem">
  1059. <div class="memproto">
  1060. <table class="mlabels">
  1061. <tr>
  1062. <td class="mlabels-left">
  1063. <table class="memname">
  1064. <tr>
  1065. <td class="memname">bool FatFile::isFile </td>
  1066. <td>(</td>
  1067. <td class="paramname"></td><td>)</td>
  1068. <td> const</td>
  1069. </tr>
  1070. </table>
  1071. </td>
  1072. <td class="mlabels-right">
  1073. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1074. </tr>
  1075. </table>
  1076. </div><div class="memdoc">
  1077. <dl class="section return"><dt>Returns</dt><dd>True if this is a normal file. </dd></dl>
  1078. </div>
  1079. </div>
  1080. <a id="ae216b4a2bc44a9cfb88478fa051a1fd8"></a>
  1081. <h2 class="memtitle"><span class="permalink"><a href="#ae216b4a2bc44a9cfb88478fa051a1fd8">&#9670;&nbsp;</a></span>isHidden()</h2>
  1082. <div class="memitem">
  1083. <div class="memproto">
  1084. <table class="mlabels">
  1085. <tr>
  1086. <td class="mlabels-left">
  1087. <table class="memname">
  1088. <tr>
  1089. <td class="memname">bool FatFile::isHidden </td>
  1090. <td>(</td>
  1091. <td class="paramname"></td><td>)</td>
  1092. <td> const</td>
  1093. </tr>
  1094. </table>
  1095. </td>
  1096. <td class="mlabels-right">
  1097. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1098. </tr>
  1099. </table>
  1100. </div><div class="memdoc">
  1101. <dl class="section return"><dt>Returns</dt><dd>True if this is a hidden file. </dd></dl>
  1102. </div>
  1103. </div>
  1104. <a id="af8f456ab790e818bfdd225cf6ffd40f3"></a>
  1105. <h2 class="memtitle"><span class="permalink"><a href="#af8f456ab790e818bfdd225cf6ffd40f3">&#9670;&nbsp;</a></span>isLFN()</h2>
  1106. <div class="memitem">
  1107. <div class="memproto">
  1108. <table class="mlabels">
  1109. <tr>
  1110. <td class="mlabels-left">
  1111. <table class="memname">
  1112. <tr>
  1113. <td class="memname">bool FatFile::isLFN </td>
  1114. <td>(</td>
  1115. <td class="paramname"></td><td>)</td>
  1116. <td> const</td>
  1117. </tr>
  1118. </table>
  1119. </td>
  1120. <td class="mlabels-right">
  1121. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1122. </tr>
  1123. </table>
  1124. </div><div class="memdoc">
  1125. <dl class="section return"><dt>Returns</dt><dd>true if this file has a Long File Name. </dd></dl>
  1126. </div>
  1127. </div>
  1128. <a id="a8b8a2850c086d3ce79bee64a23fbf7a6"></a>
  1129. <h2 class="memtitle"><span class="permalink"><a href="#a8b8a2850c086d3ce79bee64a23fbf7a6">&#9670;&nbsp;</a></span>isOpen()</h2>
  1130. <div class="memitem">
  1131. <div class="memproto">
  1132. <table class="mlabels">
  1133. <tr>
  1134. <td class="mlabels-left">
  1135. <table class="memname">
  1136. <tr>
  1137. <td class="memname">bool FatFile::isOpen </td>
  1138. <td>(</td>
  1139. <td class="paramname"></td><td>)</td>
  1140. <td> const</td>
  1141. </tr>
  1142. </table>
  1143. </td>
  1144. <td class="mlabels-right">
  1145. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1146. </tr>
  1147. </table>
  1148. </div><div class="memdoc">
  1149. <dl class="section return"><dt>Returns</dt><dd>True if this is an open file/directory. </dd></dl>
  1150. </div>
  1151. </div>
  1152. <a id="ae60b4cedb69c88ac641813d5edfa6b4a"></a>
  1153. <h2 class="memtitle"><span class="permalink"><a href="#ae60b4cedb69c88ac641813d5edfa6b4a">&#9670;&nbsp;</a></span>isReadable()</h2>
  1154. <div class="memitem">
  1155. <div class="memproto">
  1156. <table class="mlabels">
  1157. <tr>
  1158. <td class="mlabels-left">
  1159. <table class="memname">
  1160. <tr>
  1161. <td class="memname">bool FatFile::isReadable </td>
  1162. <td>(</td>
  1163. <td class="paramname"></td><td>)</td>
  1164. <td> const</td>
  1165. </tr>
  1166. </table>
  1167. </td>
  1168. <td class="mlabels-right">
  1169. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1170. </tr>
  1171. </table>
  1172. </div><div class="memdoc">
  1173. <dl class="section return"><dt>Returns</dt><dd>True file is writable. </dd></dl>
  1174. </div>
  1175. </div>
  1176. <a id="abaf639ec8f86f34aeb7e6b3615526f0b"></a>
  1177. <h2 class="memtitle"><span class="permalink"><a href="#abaf639ec8f86f34aeb7e6b3615526f0b">&#9670;&nbsp;</a></span>isReadOnly()</h2>
  1178. <div class="memitem">
  1179. <div class="memproto">
  1180. <table class="mlabels">
  1181. <tr>
  1182. <td class="mlabels-left">
  1183. <table class="memname">
  1184. <tr>
  1185. <td class="memname">bool FatFile::isReadOnly </td>
  1186. <td>(</td>
  1187. <td class="paramname"></td><td>)</td>
  1188. <td> const</td>
  1189. </tr>
  1190. </table>
  1191. </td>
  1192. <td class="mlabels-right">
  1193. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1194. </tr>
  1195. </table>
  1196. </div><div class="memdoc">
  1197. <dl class="section return"><dt>Returns</dt><dd>True if file is read-only </dd></dl>
  1198. </div>
  1199. </div>
  1200. <a id="a03421a0c28649332f55e6ca06d3aeedb"></a>
  1201. <h2 class="memtitle"><span class="permalink"><a href="#a03421a0c28649332f55e6ca06d3aeedb">&#9670;&nbsp;</a></span>isRoot()</h2>
  1202. <div class="memitem">
  1203. <div class="memproto">
  1204. <table class="mlabels">
  1205. <tr>
  1206. <td class="mlabels-left">
  1207. <table class="memname">
  1208. <tr>
  1209. <td class="memname">bool FatFile::isRoot </td>
  1210. <td>(</td>
  1211. <td class="paramname"></td><td>)</td>
  1212. <td> const</td>
  1213. </tr>
  1214. </table>
  1215. </td>
  1216. <td class="mlabels-right">
  1217. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1218. </tr>
  1219. </table>
  1220. </div><div class="memdoc">
  1221. <dl class="section return"><dt>Returns</dt><dd>True if this is the root directory. </dd></dl>
  1222. </div>
  1223. </div>
  1224. <a id="a8fda8004720ec4cc55710869dbb52e35"></a>
  1225. <h2 class="memtitle"><span class="permalink"><a href="#a8fda8004720ec4cc55710869dbb52e35">&#9670;&nbsp;</a></span>isRoot32()</h2>
  1226. <div class="memitem">
  1227. <div class="memproto">
  1228. <table class="mlabels">
  1229. <tr>
  1230. <td class="mlabels-left">
  1231. <table class="memname">
  1232. <tr>
  1233. <td class="memname">bool FatFile::isRoot32 </td>
  1234. <td>(</td>
  1235. <td class="paramname"></td><td>)</td>
  1236. <td> const</td>
  1237. </tr>
  1238. </table>
  1239. </td>
  1240. <td class="mlabels-right">
  1241. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1242. </tr>
  1243. </table>
  1244. </div><div class="memdoc">
  1245. <dl class="section return"><dt>Returns</dt><dd>True if this is the FAT32 root directory. </dd></dl>
  1246. </div>
  1247. </div>
  1248. <a id="a0cc65089f7ce6c1ff92edbf0bff59dee"></a>
  1249. <h2 class="memtitle"><span class="permalink"><a href="#a0cc65089f7ce6c1ff92edbf0bff59dee">&#9670;&nbsp;</a></span>isRootFixed()</h2>
  1250. <div class="memitem">
  1251. <div class="memproto">
  1252. <table class="mlabels">
  1253. <tr>
  1254. <td class="mlabels-left">
  1255. <table class="memname">
  1256. <tr>
  1257. <td class="memname">bool FatFile::isRootFixed </td>
  1258. <td>(</td>
  1259. <td class="paramname"></td><td>)</td>
  1260. <td> const</td>
  1261. </tr>
  1262. </table>
  1263. </td>
  1264. <td class="mlabels-right">
  1265. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1266. </tr>
  1267. </table>
  1268. </div><div class="memdoc">
  1269. <dl class="section return"><dt>Returns</dt><dd>True if this is the FAT12 of FAT16 root directory. </dd></dl>
  1270. </div>
  1271. </div>
  1272. <a id="abfd02c5d26f7d4f8739a8610116a6660"></a>
  1273. <h2 class="memtitle"><span class="permalink"><a href="#abfd02c5d26f7d4f8739a8610116a6660">&#9670;&nbsp;</a></span>isSubDir()</h2>
  1274. <div class="memitem">
  1275. <div class="memproto">
  1276. <table class="mlabels">
  1277. <tr>
  1278. <td class="mlabels-left">
  1279. <table class="memname">
  1280. <tr>
  1281. <td class="memname">bool FatFile::isSubDir </td>
  1282. <td>(</td>
  1283. <td class="paramname"></td><td>)</td>
  1284. <td> const</td>
  1285. </tr>
  1286. </table>
  1287. </td>
  1288. <td class="mlabels-right">
  1289. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1290. </tr>
  1291. </table>
  1292. </div><div class="memdoc">
  1293. <dl class="section return"><dt>Returns</dt><dd>True if this is a subdirectory. </dd></dl>
  1294. </div>
  1295. </div>
  1296. <a id="a48087bdeb6b94fc27e0f74c3d90af5a9"></a>
  1297. <h2 class="memtitle"><span class="permalink"><a href="#a48087bdeb6b94fc27e0f74c3d90af5a9">&#9670;&nbsp;</a></span>isSystem()</h2>
  1298. <div class="memitem">
  1299. <div class="memproto">
  1300. <table class="mlabels">
  1301. <tr>
  1302. <td class="mlabels-left">
  1303. <table class="memname">
  1304. <tr>
  1305. <td class="memname">bool FatFile::isSystem </td>
  1306. <td>(</td>
  1307. <td class="paramname"></td><td>)</td>
  1308. <td> const</td>
  1309. </tr>
  1310. </table>
  1311. </td>
  1312. <td class="mlabels-right">
  1313. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1314. </tr>
  1315. </table>
  1316. </div><div class="memdoc">
  1317. <dl class="section return"><dt>Returns</dt><dd>True if this is a system file. </dd></dl>
  1318. </div>
  1319. </div>
  1320. <a id="aa484d5b2b147c5f3fe0e26b6eaf11ffc"></a>
  1321. <h2 class="memtitle"><span class="permalink"><a href="#aa484d5b2b147c5f3fe0e26b6eaf11ffc">&#9670;&nbsp;</a></span>isWritable()</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 FatFile::isWritable </td>
  1330. <td>(</td>
  1331. <td class="paramname"></td><td>)</td>
  1332. <td> const</td>
  1333. </tr>
  1334. </table>
  1335. </td>
  1336. <td class="mlabels-right">
  1337. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1338. </tr>
  1339. </table>
  1340. </div><div class="memdoc">
  1341. <dl class="section return"><dt>Returns</dt><dd>True file is writable. </dd></dl>
  1342. </div>
  1343. </div>
  1344. <a id="a94df8090f16e9666cdc53ca20f6aff90"></a>
  1345. <h2 class="memtitle"><span class="permalink"><a href="#a94df8090f16e9666cdc53ca20f6aff90">&#9670;&nbsp;</a></span>legal83Char()</h2>
  1346. <div class="memitem">
  1347. <div class="memproto">
  1348. <table class="mlabels">
  1349. <tr>
  1350. <td class="mlabels-left">
  1351. <table class="memname">
  1352. <tr>
  1353. <td class="memname">static bool FatFile::legal83Char </td>
  1354. <td>(</td>
  1355. <td class="paramtype">uint8_t&#160;</td>
  1356. <td class="paramname"><em>c</em></td><td>)</td>
  1357. <td></td>
  1358. </tr>
  1359. </table>
  1360. </td>
  1361. <td class="mlabels-right">
  1362. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
  1363. </tr>
  1364. </table>
  1365. </div><div class="memdoc">
  1366. <p>Check for a legal 8.3 character. </p><dl class="params"><dt>Parameters</dt><dd>
  1367. <table class="params">
  1368. <tr><td class="paramdir">[in]</td><td class="paramname">c</td><td>Character to be checked. </td></tr>
  1369. </table>
  1370. </dd>
  1371. </dl>
  1372. <dl class="section return"><dt>Returns</dt><dd>true for a legal 8.3 character. </dd></dl>
  1373. </div>
  1374. </div>
  1375. <a id="a60ab9d16bcc778150a364c26de467de1"></a>
  1376. <h2 class="memtitle"><span class="permalink"><a href="#a60ab9d16bcc778150a364c26de467de1">&#9670;&nbsp;</a></span>ls()</h2>
  1377. <div class="memitem">
  1378. <div class="memproto">
  1379. <table class="memname">
  1380. <tr>
  1381. <td class="memname">bool FatFile::ls </td>
  1382. <td>(</td>
  1383. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  1384. <td class="paramname"><em>pr</em>, </td>
  1385. </tr>
  1386. <tr>
  1387. <td class="paramkey"></td>
  1388. <td></td>
  1389. <td class="paramtype">uint8_t&#160;</td>
  1390. <td class="paramname"><em>flags</em> = <code>0</code>, </td>
  1391. </tr>
  1392. <tr>
  1393. <td class="paramkey"></td>
  1394. <td></td>
  1395. <td class="paramtype">uint8_t&#160;</td>
  1396. <td class="paramname"><em>indent</em> = <code>0</code>&#160;</td>
  1397. </tr>
  1398. <tr>
  1399. <td></td>
  1400. <td>)</td>
  1401. <td></td><td></td>
  1402. </tr>
  1403. </table>
  1404. </div><div class="memdoc">
  1405. <p>List directory contents.</p>
  1406. <dl class="params"><dt>Parameters</dt><dd>
  1407. <table class="params">
  1408. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for list.</td></tr>
  1409. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The inclusive OR of</td></tr>
  1410. </table>
  1411. </dd>
  1412. </dl>
  1413. <p>LS_DATE - Print file modification date</p>
  1414. <p>LS_SIZE - Print file size.</p>
  1415. <p>LS_R - Recursive list of subdirectories.</p>
  1416. <dl class="params"><dt>Parameters</dt><dd>
  1417. <table class="params">
  1418. <tr><td class="paramdir">[in]</td><td class="paramname">indent</td><td>Amount of space before file name. Used for recursive list to indicate subdirectory level.</td></tr>
  1419. </table>
  1420. </dd>
  1421. </dl>
  1422. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1423. </div>
  1424. </div>
  1425. <a id="abab5b9f72cc796388dd4eed01d13d90d"></a>
  1426. <h2 class="memtitle"><span class="permalink"><a href="#abab5b9f72cc796388dd4eed01d13d90d">&#9670;&nbsp;</a></span>mkdir()</h2>
  1427. <div class="memitem">
  1428. <div class="memproto">
  1429. <table class="memname">
  1430. <tr>
  1431. <td class="memname">bool FatFile::mkdir </td>
  1432. <td>(</td>
  1433. <td class="paramtype"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td>
  1434. <td class="paramname"><em>dir</em>, </td>
  1435. </tr>
  1436. <tr>
  1437. <td class="paramkey"></td>
  1438. <td></td>
  1439. <td class="paramtype">const char *&#160;</td>
  1440. <td class="paramname"><em>path</em>, </td>
  1441. </tr>
  1442. <tr>
  1443. <td class="paramkey"></td>
  1444. <td></td>
  1445. <td class="paramtype">bool&#160;</td>
  1446. <td class="paramname"><em>pFlag</em> = <code>true</code>&#160;</td>
  1447. </tr>
  1448. <tr>
  1449. <td></td>
  1450. <td>)</td>
  1451. <td></td><td></td>
  1452. </tr>
  1453. </table>
  1454. </div><div class="memdoc">
  1455. <p>Make a new directory.</p>
  1456. <dl class="params"><dt>Parameters</dt><dd>
  1457. <table class="params">
  1458. <tr><td class="paramdir">[in]</td><td class="paramname">dir</td><td>An open <a class="el" href="class_fat_file.html" title="Basic file class. ">FatFile</a> instance for the directory that will contain the new directory.</td></tr>
  1459. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid name for the new directory.</td></tr>
  1460. <tr><td class="paramdir">[in]</td><td class="paramname">pFlag</td><td>Create missing parent directories if true.</td></tr>
  1461. </table>
  1462. </dd>
  1463. </dl>
  1464. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1465. </div>
  1466. </div>
  1467. <a id="af49a42dc64cd954debb271eae5639059"></a>
  1468. <h2 class="memtitle"><span class="permalink"><a href="#af49a42dc64cd954debb271eae5639059">&#9670;&nbsp;</a></span>open() <span class="overload">[1/4]</span></h2>
  1469. <div class="memitem">
  1470. <div class="memproto">
  1471. <table class="memname">
  1472. <tr>
  1473. <td class="memname">bool FatFile::open </td>
  1474. <td>(</td>
  1475. <td class="paramtype"><a class="el" href="class_fat_volume.html">FatVolume</a> *&#160;</td>
  1476. <td class="paramname"><em>vol</em>, </td>
  1477. </tr>
  1478. <tr>
  1479. <td class="paramkey"></td>
  1480. <td></td>
  1481. <td class="paramtype">const char *&#160;</td>
  1482. <td class="paramname"><em>path</em>, </td>
  1483. </tr>
  1484. <tr>
  1485. <td class="paramkey"></td>
  1486. <td></td>
  1487. <td class="paramtype">oflag_t&#160;</td>
  1488. <td class="paramname"><em>oflag</em>&#160;</td>
  1489. </tr>
  1490. <tr>
  1491. <td></td>
  1492. <td>)</td>
  1493. <td></td><td></td>
  1494. </tr>
  1495. </table>
  1496. </div><div class="memdoc">
  1497. <p>Open a file in the volume root directory.</p>
  1498. <dl class="params"><dt>Parameters</dt><dd>
  1499. <table class="params">
  1500. <tr><td class="paramdir">[in]</td><td class="paramname">vol</td><td>Volume where the file is located.</td></tr>
  1501. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>with a valid name for a file to be opened.</td></tr>
  1502. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>bitwise-inclusive OR of open flags. See see <a class="el" href="class_fat_file.html#a58d6ea245f1bc3ae7a6df311cd25052f">FatFile::open(FatFile*, const char*, uint8_t)</a>.</td></tr>
  1503. </table>
  1504. </dd>
  1505. </dl>
  1506. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1507. </div>
  1508. </div>
  1509. <a id="ab44920bb9cd5414b8e69c9dc4343394a"></a>
  1510. <h2 class="memtitle"><span class="permalink"><a href="#ab44920bb9cd5414b8e69c9dc4343394a">&#9670;&nbsp;</a></span>open() <span class="overload">[2/4]</span></h2>
  1511. <div class="memitem">
  1512. <div class="memproto">
  1513. <table class="memname">
  1514. <tr>
  1515. <td class="memname">bool FatFile::open </td>
  1516. <td>(</td>
  1517. <td class="paramtype"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td>
  1518. <td class="paramname"><em>dirFile</em>, </td>
  1519. </tr>
  1520. <tr>
  1521. <td class="paramkey"></td>
  1522. <td></td>
  1523. <td class="paramtype">uint16_t&#160;</td>
  1524. <td class="paramname"><em>index</em>, </td>
  1525. </tr>
  1526. <tr>
  1527. <td class="paramkey"></td>
  1528. <td></td>
  1529. <td class="paramtype">oflag_t&#160;</td>
  1530. <td class="paramname"><em>oflag</em>&#160;</td>
  1531. </tr>
  1532. <tr>
  1533. <td></td>
  1534. <td>)</td>
  1535. <td></td><td></td>
  1536. </tr>
  1537. </table>
  1538. </div><div class="memdoc">
  1539. <p>Open a file by index.</p>
  1540. <dl class="params"><dt>Parameters</dt><dd>
  1541. <table class="params">
  1542. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>An open <a class="el" href="class_fat_file.html" title="Basic file class. ">FatFile</a> instance for the directory.</td></tr>
  1543. <tr><td class="paramdir">[in]</td><td class="paramname">index</td><td>The <em>index</em> of the directory entry for the file to be opened. The value for <em>index</em> is (directory file position)/32.</td></tr>
  1544. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>bitwise-inclusive OR of open flags. See see <a class="el" href="class_fat_file.html#a58d6ea245f1bc3ae7a6df311cd25052f">FatFile::open(FatFile*, const char*, uint8_t)</a>.</td></tr>
  1545. </table>
  1546. </dd>
  1547. </dl>
  1548. <p>See <a class="el" href="class_fat_file.html#af49a42dc64cd954debb271eae5639059">open()</a> by path for definition of flags. </p><dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1549. </div>
  1550. </div>
  1551. <a id="a58d6ea245f1bc3ae7a6df311cd25052f"></a>
  1552. <h2 class="memtitle"><span class="permalink"><a href="#a58d6ea245f1bc3ae7a6df311cd25052f">&#9670;&nbsp;</a></span>open() <span class="overload">[3/4]</span></h2>
  1553. <div class="memitem">
  1554. <div class="memproto">
  1555. <table class="memname">
  1556. <tr>
  1557. <td class="memname">bool FatFile::open </td>
  1558. <td>(</td>
  1559. <td class="paramtype"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td>
  1560. <td class="paramname"><em>dirFile</em>, </td>
  1561. </tr>
  1562. <tr>
  1563. <td class="paramkey"></td>
  1564. <td></td>
  1565. <td class="paramtype">const char *&#160;</td>
  1566. <td class="paramname"><em>path</em>, </td>
  1567. </tr>
  1568. <tr>
  1569. <td class="paramkey"></td>
  1570. <td></td>
  1571. <td class="paramtype">oflag_t&#160;</td>
  1572. <td class="paramname"><em>oflag</em>&#160;</td>
  1573. </tr>
  1574. <tr>
  1575. <td></td>
  1576. <td>)</td>
  1577. <td></td><td></td>
  1578. </tr>
  1579. </table>
  1580. </div><div class="memdoc">
  1581. <p>Open a file or directory by name.</p>
  1582. <dl class="params"><dt>Parameters</dt><dd>
  1583. <table class="params">
  1584. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>An open <a class="el" href="class_fat_file.html" title="Basic file class. ">FatFile</a> instance for the directory containing the file to be opened.</td></tr>
  1585. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid name for a file to be opened.</td></tr>
  1586. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>Values for <em>oflag</em> are constructed by a bitwise-inclusive OR of flags from the following list. Only one of O_RDONLY, O_READ, O_WRONLY, O_WRITE, or O_RDWR is allowed.</td></tr>
  1587. </table>
  1588. </dd>
  1589. </dl>
  1590. <p>O_RDONLY - Open for reading.</p>
  1591. <p>O_READ - Same as O_RDONLY.</p>
  1592. <p>O_WRONLY - Open for writing.</p>
  1593. <p>O_WRITE - Same as O_WRONLY.</p>
  1594. <p>O_RDWR - Open for reading and writing.</p>
  1595. <p>O_APPEND - If set, the file offset shall be set to the end of the file prior to each write.</p>
  1596. <p>O_AT_END - Set the initial position at the end of the file.</p>
  1597. <p>O_CREAT - If the file exists, this flag has no effect except as noted under O_EXCL below. Otherwise, the file shall be created</p>
  1598. <p>O_EXCL - If O_CREAT and O_EXCL are set, <a class="el" href="class_fat_file.html#af49a42dc64cd954debb271eae5639059">open()</a> shall fail if the file exists.</p>
  1599. <p>O_TRUNC - If the file exists and is a regular file, and the file is successfully opened and is not read only, its length shall be truncated to 0.</p>
  1600. <p>WARNING: A given file must not be opened by more than one <a class="el" href="class_fat_file.html" title="Basic file class. ">FatFile</a> object or file corruption may occur.</p>
  1601. <dl class="section note"><dt>Note</dt><dd>Directory files must be opened read only. Write and truncation is not allowed for directory files.</dd></dl>
  1602. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1603. </div>
  1604. </div>
  1605. <a id="afd3e4d5a76b6751ca796fc57f4dd2be4"></a>
  1606. <h2 class="memtitle"><span class="permalink"><a href="#afd3e4d5a76b6751ca796fc57f4dd2be4">&#9670;&nbsp;</a></span>open() <span class="overload">[4/4]</span></h2>
  1607. <div class="memitem">
  1608. <div class="memproto">
  1609. <table class="memname">
  1610. <tr>
  1611. <td class="memname">bool FatFile::open </td>
  1612. <td>(</td>
  1613. <td class="paramtype">const char *&#160;</td>
  1614. <td class="paramname"><em>path</em>, </td>
  1615. </tr>
  1616. <tr>
  1617. <td class="paramkey"></td>
  1618. <td></td>
  1619. <td class="paramtype">oflag_t&#160;</td>
  1620. <td class="paramname"><em>oflag</em> = <code>0X00</code>&#160;</td>
  1621. </tr>
  1622. <tr>
  1623. <td></td>
  1624. <td>)</td>
  1625. <td></td><td></td>
  1626. </tr>
  1627. </table>
  1628. </div><div class="memdoc">
  1629. <p>Open a file in the current working volume.</p>
  1630. <dl class="params"><dt>Parameters</dt><dd>
  1631. <table class="params">
  1632. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid name for a file to be opened.</td></tr>
  1633. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>bitwise-inclusive OR of open flags. See see <a class="el" href="class_fat_file.html#a58d6ea245f1bc3ae7a6df311cd25052f">FatFile::open(FatFile*, const char*, uint8_t)</a>.</td></tr>
  1634. </table>
  1635. </dd>
  1636. </dl>
  1637. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1638. </div>
  1639. </div>
  1640. <a id="a7f98b908a686574efbd7e1d20121ef9a"></a>
  1641. <h2 class="memtitle"><span class="permalink"><a href="#a7f98b908a686574efbd7e1d20121ef9a">&#9670;&nbsp;</a></span>openNext()</h2>
  1642. <div class="memitem">
  1643. <div class="memproto">
  1644. <table class="memname">
  1645. <tr>
  1646. <td class="memname">bool FatFile::openNext </td>
  1647. <td>(</td>
  1648. <td class="paramtype"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td>
  1649. <td class="paramname"><em>dirFile</em>, </td>
  1650. </tr>
  1651. <tr>
  1652. <td class="paramkey"></td>
  1653. <td></td>
  1654. <td class="paramtype">oflag_t&#160;</td>
  1655. <td class="paramname"><em>oflag</em> = <code>0X00</code>&#160;</td>
  1656. </tr>
  1657. <tr>
  1658. <td></td>
  1659. <td>)</td>
  1660. <td></td><td></td>
  1661. </tr>
  1662. </table>
  1663. </div><div class="memdoc">
  1664. <p>Open the next file or subdirectory in a directory.</p>
  1665. <dl class="params"><dt>Parameters</dt><dd>
  1666. <table class="params">
  1667. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>An open <a class="el" href="class_fat_file.html" title="Basic file class. ">FatFile</a> instance for the directory containing the file to be opened.</td></tr>
  1668. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>bitwise-inclusive OR of open flags. See see <a class="el" href="class_fat_file.html#a58d6ea245f1bc3ae7a6df311cd25052f">FatFile::open(FatFile*, const char*, uint8_t)</a>.</td></tr>
  1669. </table>
  1670. </dd>
  1671. </dl>
  1672. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1673. </div>
  1674. </div>
  1675. <a id="a7e0c0548fed3a69e7284b91b694439d4"></a>
  1676. <h2 class="memtitle"><span class="permalink"><a href="#a7e0c0548fed3a69e7284b91b694439d4">&#9670;&nbsp;</a></span>openRoot()</h2>
  1677. <div class="memitem">
  1678. <div class="memproto">
  1679. <table class="memname">
  1680. <tr>
  1681. <td class="memname">bool FatFile::openRoot </td>
  1682. <td>(</td>
  1683. <td class="paramtype"><a class="el" href="class_fat_volume.html">FatVolume</a> *&#160;</td>
  1684. <td class="paramname"><em>vol</em></td><td>)</td>
  1685. <td></td>
  1686. </tr>
  1687. </table>
  1688. </div><div class="memdoc">
  1689. <p>Open a volume's root directory.</p>
  1690. <dl class="params"><dt>Parameters</dt><dd>
  1691. <table class="params">
  1692. <tr><td class="paramdir">[in]</td><td class="paramname">vol</td><td>The FAT volume containing the root directory to be opened.</td></tr>
  1693. </table>
  1694. </dd>
  1695. </dl>
  1696. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1697. </div>
  1698. </div>
  1699. <a id="acd141c43d03cf790b3b9806f3b059e77"></a>
  1700. <h2 class="memtitle"><span class="permalink"><a href="#acd141c43d03cf790b3b9806f3b059e77">&#9670;&nbsp;</a></span>operator bool()</h2>
  1701. <div class="memitem">
  1702. <div class="memproto">
  1703. <table class="mlabels">
  1704. <tr>
  1705. <td class="mlabels-left">
  1706. <table class="memname">
  1707. <tr>
  1708. <td class="memname">FatFile::operator bool </td>
  1709. <td>(</td>
  1710. <td class="paramname"></td><td>)</td>
  1711. <td></td>
  1712. </tr>
  1713. </table>
  1714. </td>
  1715. <td class="mlabels-right">
  1716. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1717. </tr>
  1718. </table>
  1719. </div><div class="memdoc">
  1720. <p>The parenthesis operator.</p>
  1721. <dl class="section return"><dt>Returns</dt><dd>true if a file is open. </dd></dl>
  1722. </div>
  1723. </div>
  1724. <a id="ac05b7136b887539426856c623869aa3a"></a>
  1725. <h2 class="memtitle"><span class="permalink"><a href="#ac05b7136b887539426856c623869aa3a">&#9670;&nbsp;</a></span>peek()</h2>
  1726. <div class="memitem">
  1727. <div class="memproto">
  1728. <table class="memname">
  1729. <tr>
  1730. <td class="memname">int FatFile::peek </td>
  1731. <td>(</td>
  1732. <td class="paramname"></td><td>)</td>
  1733. <td></td>
  1734. </tr>
  1735. </table>
  1736. </div><div class="memdoc">
  1737. <p>Return the next available byte without consuming it.</p>
  1738. <dl class="section return"><dt>Returns</dt><dd>The byte if no error and not at eof else -1; </dd></dl>
  1739. </div>
  1740. </div>
  1741. <a id="aeeb13b9de68bf9097c863c41d655ee83"></a>
  1742. <h2 class="memtitle"><span class="permalink"><a href="#aeeb13b9de68bf9097c863c41d655ee83">&#9670;&nbsp;</a></span>preAllocate()</h2>
  1743. <div class="memitem">
  1744. <div class="memproto">
  1745. <table class="memname">
  1746. <tr>
  1747. <td class="memname">bool FatFile::preAllocate </td>
  1748. <td>(</td>
  1749. <td class="paramtype">uint32_t&#160;</td>
  1750. <td class="paramname"><em>length</em></td><td>)</td>
  1751. <td></td>
  1752. </tr>
  1753. </table>
  1754. </div><div class="memdoc">
  1755. <p>Allocate contiguous clusters to an empty file.</p>
  1756. <p>The file must be empty with no clusters allocated.</p>
  1757. <p>The file will contain uninitialized data.</p>
  1758. <dl class="params"><dt>Parameters</dt><dd>
  1759. <table class="params">
  1760. <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>size of the file in bytes. </td></tr>
  1761. </table>
  1762. </dd>
  1763. </dl>
  1764. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1765. </div>
  1766. </div>
  1767. <a id="a22be4c339d0bfa331f75415b74dd4f37"></a>
  1768. <h2 class="memtitle"><span class="permalink"><a href="#a22be4c339d0bfa331f75415b74dd4f37">&#9670;&nbsp;</a></span>printAccessDate()</h2>
  1769. <div class="memitem">
  1770. <div class="memproto">
  1771. <table class="memname">
  1772. <tr>
  1773. <td class="memname">size_t FatFile::printAccessDate </td>
  1774. <td>(</td>
  1775. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  1776. <td class="paramname"><em>pr</em></td><td>)</td>
  1777. <td></td>
  1778. </tr>
  1779. </table>
  1780. </div><div class="memdoc">
  1781. <p>Print a file's access date</p>
  1782. <dl class="params"><dt>Parameters</dt><dd>
  1783. <table class="params">
  1784. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  1785. </table>
  1786. </dd>
  1787. </dl>
  1788. <dl class="section return"><dt>Returns</dt><dd>The number of characters printed. </dd></dl>
  1789. </div>
  1790. </div>
  1791. <a id="a19b3196bb1f6a68a2447e53b09369aef"></a>
  1792. <h2 class="memtitle"><span class="permalink"><a href="#a19b3196bb1f6a68a2447e53b09369aef">&#9670;&nbsp;</a></span>printAccessDateTime()</h2>
  1793. <div class="memitem">
  1794. <div class="memproto">
  1795. <table class="mlabels">
  1796. <tr>
  1797. <td class="mlabels-left">
  1798. <table class="memname">
  1799. <tr>
  1800. <td class="memname">size_t FatFile::printAccessDateTime </td>
  1801. <td>(</td>
  1802. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  1803. <td class="paramname"><em>pr</em></td><td>)</td>
  1804. <td></td>
  1805. </tr>
  1806. </table>
  1807. </td>
  1808. <td class="mlabels-right">
  1809. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1810. </tr>
  1811. </table>
  1812. </div><div class="memdoc">
  1813. <p>Print a file's access date</p>
  1814. <dl class="params"><dt>Parameters</dt><dd>
  1815. <table class="params">
  1816. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  1817. </table>
  1818. </dd>
  1819. </dl>
  1820. <dl class="section return"><dt>Returns</dt><dd>The number of characters printed. </dd></dl>
  1821. </div>
  1822. </div>
  1823. <a id="ab22396a285e27b53501a0047ddd97f59"></a>
  1824. <h2 class="memtitle"><span class="permalink"><a href="#ab22396a285e27b53501a0047ddd97f59">&#9670;&nbsp;</a></span>printCreateDateTime()</h2>
  1825. <div class="memitem">
  1826. <div class="memproto">
  1827. <table class="memname">
  1828. <tr>
  1829. <td class="memname">size_t FatFile::printCreateDateTime </td>
  1830. <td>(</td>
  1831. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  1832. <td class="paramname"><em>pr</em></td><td>)</td>
  1833. <td></td>
  1834. </tr>
  1835. </table>
  1836. </div><div class="memdoc">
  1837. <p>Print a file's creation date and time</p>
  1838. <dl class="params"><dt>Parameters</dt><dd>
  1839. <table class="params">
  1840. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  1841. </table>
  1842. </dd>
  1843. </dl>
  1844. <dl class="section return"><dt>Returns</dt><dd>The number of bytes printed. </dd></dl>
  1845. </div>
  1846. </div>
  1847. <a id="aabcd863883bfcfb37b63dbd6021f7eb8"></a>
  1848. <h2 class="memtitle"><span class="permalink"><a href="#aabcd863883bfcfb37b63dbd6021f7eb8">&#9670;&nbsp;</a></span>printFatDate()</h2>
  1849. <div class="memitem">
  1850. <div class="memproto">
  1851. <table class="mlabels">
  1852. <tr>
  1853. <td class="mlabels-left">
  1854. <table class="memname">
  1855. <tr>
  1856. <td class="memname">static void FatFile::printFatDate </td>
  1857. <td>(</td>
  1858. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  1859. <td class="paramname"><em>pr</em>, </td>
  1860. </tr>
  1861. <tr>
  1862. <td class="paramkey"></td>
  1863. <td></td>
  1864. <td class="paramtype">uint16_t&#160;</td>
  1865. <td class="paramname"><em>fatDate</em>&#160;</td>
  1866. </tr>
  1867. <tr>
  1868. <td></td>
  1869. <td>)</td>
  1870. <td></td><td></td>
  1871. </tr>
  1872. </table>
  1873. </td>
  1874. <td class="mlabels-right">
  1875. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  1876. </tr>
  1877. </table>
  1878. </div><div class="memdoc">
  1879. <p>Print a directory date field.</p>
  1880. <p>Format is yyyy-mm-dd.</p>
  1881. <dl class="params"><dt>Parameters</dt><dd>
  1882. <table class="params">
  1883. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output. </td></tr>
  1884. <tr><td class="paramdir">[in]</td><td class="paramname">fatDate</td><td>The date field from a directory entry. </td></tr>
  1885. </table>
  1886. </dd>
  1887. </dl>
  1888. </div>
  1889. </div>
  1890. <a id="a7f84d953190ea94710dad9ebb897b957"></a>
  1891. <h2 class="memtitle"><span class="permalink"><a href="#a7f84d953190ea94710dad9ebb897b957">&#9670;&nbsp;</a></span>printFatTime()</h2>
  1892. <div class="memitem">
  1893. <div class="memproto">
  1894. <table class="mlabels">
  1895. <tr>
  1896. <td class="mlabels-left">
  1897. <table class="memname">
  1898. <tr>
  1899. <td class="memname">static void FatFile::printFatTime </td>
  1900. <td>(</td>
  1901. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  1902. <td class="paramname"><em>pr</em>, </td>
  1903. </tr>
  1904. <tr>
  1905. <td class="paramkey"></td>
  1906. <td></td>
  1907. <td class="paramtype">uint16_t&#160;</td>
  1908. <td class="paramname"><em>fatTime</em>&#160;</td>
  1909. </tr>
  1910. <tr>
  1911. <td></td>
  1912. <td>)</td>
  1913. <td></td><td></td>
  1914. </tr>
  1915. </table>
  1916. </td>
  1917. <td class="mlabels-right">
  1918. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  1919. </tr>
  1920. </table>
  1921. </div><div class="memdoc">
  1922. <p>Print a directory time field.</p>
  1923. <p>Format is hh:mm:ss.</p>
  1924. <dl class="params"><dt>Parameters</dt><dd>
  1925. <table class="params">
  1926. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output. </td></tr>
  1927. <tr><td class="paramdir">[in]</td><td class="paramname">fatTime</td><td>The time field from a directory entry. </td></tr>
  1928. </table>
  1929. </dd>
  1930. </dl>
  1931. </div>
  1932. </div>
  1933. <a id="aa4a61a0cca1813d2ad0f6fe99cc4e41d"></a>
  1934. <h2 class="memtitle"><span class="permalink"><a href="#aa4a61a0cca1813d2ad0f6fe99cc4e41d">&#9670;&nbsp;</a></span>printField() <span class="overload">[1/3]</span></h2>
  1935. <div class="memitem">
  1936. <div class="memproto">
  1937. <table class="mlabels">
  1938. <tr>
  1939. <td class="mlabels-left">
  1940. <table class="memname">
  1941. <tr>
  1942. <td class="memname">size_t FatFile::printField </td>
  1943. <td>(</td>
  1944. <td class="paramtype">double&#160;</td>
  1945. <td class="paramname"><em>value</em>, </td>
  1946. </tr>
  1947. <tr>
  1948. <td class="paramkey"></td>
  1949. <td></td>
  1950. <td class="paramtype">char&#160;</td>
  1951. <td class="paramname"><em>term</em>, </td>
  1952. </tr>
  1953. <tr>
  1954. <td class="paramkey"></td>
  1955. <td></td>
  1956. <td class="paramtype">uint8_t&#160;</td>
  1957. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  1958. </tr>
  1959. <tr>
  1960. <td></td>
  1961. <td>)</td>
  1962. <td></td><td></td>
  1963. </tr>
  1964. </table>
  1965. </td>
  1966. <td class="mlabels-right">
  1967. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1968. </tr>
  1969. </table>
  1970. </div><div class="memdoc">
  1971. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  1972. <table class="params">
  1973. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1974. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. Use '\n' for CR LF. </td></tr>
  1975. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point. </td></tr>
  1976. </table>
  1977. </dd>
  1978. </dl>
  1979. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1980. </div>
  1981. </div>
  1982. <a id="a90ccef676afd62bbe7c773dd863a56e0"></a>
  1983. <h2 class="memtitle"><span class="permalink"><a href="#a90ccef676afd62bbe7c773dd863a56e0">&#9670;&nbsp;</a></span>printField() <span class="overload">[2/3]</span></h2>
  1984. <div class="memitem">
  1985. <div class="memproto">
  1986. <table class="mlabels">
  1987. <tr>
  1988. <td class="mlabels-left">
  1989. <table class="memname">
  1990. <tr>
  1991. <td class="memname">size_t FatFile::printField </td>
  1992. <td>(</td>
  1993. <td class="paramtype">float&#160;</td>
  1994. <td class="paramname"><em>value</em>, </td>
  1995. </tr>
  1996. <tr>
  1997. <td class="paramkey"></td>
  1998. <td></td>
  1999. <td class="paramtype">char&#160;</td>
  2000. <td class="paramname"><em>term</em>, </td>
  2001. </tr>
  2002. <tr>
  2003. <td class="paramkey"></td>
  2004. <td></td>
  2005. <td class="paramtype">uint8_t&#160;</td>
  2006. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  2007. </tr>
  2008. <tr>
  2009. <td></td>
  2010. <td>)</td>
  2011. <td></td><td></td>
  2012. </tr>
  2013. </table>
  2014. </td>
  2015. <td class="mlabels-right">
  2016. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2017. </tr>
  2018. </table>
  2019. </div><div class="memdoc">
  2020. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  2021. <table class="params">
  2022. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  2023. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. Use '\n' for CR LF. </td></tr>
  2024. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point. </td></tr>
  2025. </table>
  2026. </dd>
  2027. </dl>
  2028. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  2029. </div>
  2030. </div>
  2031. <a id="a8f906be79086f38943cb0911310d67bf"></a>
  2032. <h2 class="memtitle"><span class="permalink"><a href="#a8f906be79086f38943cb0911310d67bf">&#9670;&nbsp;</a></span>printField() <span class="overload">[3/3]</span></h2>
  2033. <div class="memitem">
  2034. <div class="memproto">
  2035. <div class="memtemplate">
  2036. template&lt;typename Type &gt; </div>
  2037. <table class="mlabels">
  2038. <tr>
  2039. <td class="mlabels-left">
  2040. <table class="memname">
  2041. <tr>
  2042. <td class="memname">size_t FatFile::printField </td>
  2043. <td>(</td>
  2044. <td class="paramtype">Type&#160;</td>
  2045. <td class="paramname"><em>value</em>, </td>
  2046. </tr>
  2047. <tr>
  2048. <td class="paramkey"></td>
  2049. <td></td>
  2050. <td class="paramtype">char&#160;</td>
  2051. <td class="paramname"><em>term</em>&#160;</td>
  2052. </tr>
  2053. <tr>
  2054. <td></td>
  2055. <td>)</td>
  2056. <td></td><td></td>
  2057. </tr>
  2058. </table>
  2059. </td>
  2060. <td class="mlabels-right">
  2061. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2062. </tr>
  2063. </table>
  2064. </div><div class="memdoc">
  2065. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  2066. <table class="params">
  2067. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  2068. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. Use '\n' for CR LF. </td></tr>
  2069. </table>
  2070. </dd>
  2071. </dl>
  2072. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  2073. </div>
  2074. </div>
  2075. <a id="a12a5d2de2737c201aa39ca1bd2ab9c47"></a>
  2076. <h2 class="memtitle"><span class="permalink"><a href="#a12a5d2de2737c201aa39ca1bd2ab9c47">&#9670;&nbsp;</a></span>printFileSize()</h2>
  2077. <div class="memitem">
  2078. <div class="memproto">
  2079. <table class="memname">
  2080. <tr>
  2081. <td class="memname">size_t FatFile::printFileSize </td>
  2082. <td>(</td>
  2083. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  2084. <td class="paramname"><em>pr</em></td><td>)</td>
  2085. <td></td>
  2086. </tr>
  2087. </table>
  2088. </div><div class="memdoc">
  2089. <p>Print a file's size.</p>
  2090. <dl class="params"><dt>Parameters</dt><dd>
  2091. <table class="params">
  2092. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  2093. </table>
  2094. </dd>
  2095. </dl>
  2096. <dl class="section return"><dt>Returns</dt><dd>The number of characters printed is returned for success and zero is returned for failure. </dd></dl>
  2097. </div>
  2098. </div>
  2099. <a id="a43c8a1cabcae673e43c590f5db44c65a"></a>
  2100. <h2 class="memtitle"><span class="permalink"><a href="#a43c8a1cabcae673e43c590f5db44c65a">&#9670;&nbsp;</a></span>printModifyDateTime()</h2>
  2101. <div class="memitem">
  2102. <div class="memproto">
  2103. <table class="memname">
  2104. <tr>
  2105. <td class="memname">size_t FatFile::printModifyDateTime </td>
  2106. <td>(</td>
  2107. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  2108. <td class="paramname"><em>pr</em></td><td>)</td>
  2109. <td></td>
  2110. </tr>
  2111. </table>
  2112. </div><div class="memdoc">
  2113. <p>Print a file's modify date and time</p>
  2114. <dl class="params"><dt>Parameters</dt><dd>
  2115. <table class="params">
  2116. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  2117. </table>
  2118. </dd>
  2119. </dl>
  2120. <dl class="section return"><dt>Returns</dt><dd>The number of characters printed. </dd></dl>
  2121. </div>
  2122. </div>
  2123. <a id="afe18a787fb8640e2d2483370c770f82f"></a>
  2124. <h2 class="memtitle"><span class="permalink"><a href="#afe18a787fb8640e2d2483370c770f82f">&#9670;&nbsp;</a></span>printName()</h2>
  2125. <div class="memitem">
  2126. <div class="memproto">
  2127. <table class="memname">
  2128. <tr>
  2129. <td class="memname">size_t FatFile::printName </td>
  2130. <td>(</td>
  2131. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  2132. <td class="paramname"><em>pr</em></td><td>)</td>
  2133. <td></td>
  2134. </tr>
  2135. </table>
  2136. </div><div class="memdoc">
  2137. <p>Print a file's name</p>
  2138. <dl class="params"><dt>Parameters</dt><dd>
  2139. <table class="params">
  2140. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  2141. </table>
  2142. </dd>
  2143. </dl>
  2144. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2145. </div>
  2146. </div>
  2147. <a id="a791cd7aade71f609aab62ec018aea3c0"></a>
  2148. <h2 class="memtitle"><span class="permalink"><a href="#a791cd7aade71f609aab62ec018aea3c0">&#9670;&nbsp;</a></span>printSFN()</h2>
  2149. <div class="memitem">
  2150. <div class="memproto">
  2151. <table class="memname">
  2152. <tr>
  2153. <td class="memname">size_t FatFile::printSFN </td>
  2154. <td>(</td>
  2155. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  2156. <td class="paramname"><em>pr</em></td><td>)</td>
  2157. <td></td>
  2158. </tr>
  2159. </table>
  2160. </div><div class="memdoc">
  2161. <p>Print a file's Short File Name.</p>
  2162. <dl class="params"><dt>Parameters</dt><dd>
  2163. <table class="params">
  2164. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  2165. </table>
  2166. </dd>
  2167. </dl>
  2168. <dl class="section return"><dt>Returns</dt><dd>The number of characters printed is returned for success and zero is returned for failure. </dd></dl>
  2169. </div>
  2170. </div>
  2171. <a id="a60ae55ff6fe158c2340071d702a363c5"></a>
  2172. <h2 class="memtitle"><span class="permalink"><a href="#a60ae55ff6fe158c2340071d702a363c5">&#9670;&nbsp;</a></span>read() <span class="overload">[1/2]</span></h2>
  2173. <div class="memitem">
  2174. <div class="memproto">
  2175. <table class="mlabels">
  2176. <tr>
  2177. <td class="mlabels-left">
  2178. <table class="memname">
  2179. <tr>
  2180. <td class="memname">int FatFile::read </td>
  2181. <td>(</td>
  2182. <td class="paramname"></td><td>)</td>
  2183. <td></td>
  2184. </tr>
  2185. </table>
  2186. </td>
  2187. <td class="mlabels-right">
  2188. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2189. </tr>
  2190. </table>
  2191. </div><div class="memdoc">
  2192. <p>Read the next byte from a file.</p>
  2193. <dl class="section return"><dt>Returns</dt><dd>For success read returns the next byte in the file as an int. If an error occurs or end of file is reached -1 is returned. </dd></dl>
  2194. </div>
  2195. </div>
  2196. <a id="aba893af8107a18017482d2311b066187"></a>
  2197. <h2 class="memtitle"><span class="permalink"><a href="#aba893af8107a18017482d2311b066187">&#9670;&nbsp;</a></span>read() <span class="overload">[2/2]</span></h2>
  2198. <div class="memitem">
  2199. <div class="memproto">
  2200. <table class="memname">
  2201. <tr>
  2202. <td class="memname">int FatFile::read </td>
  2203. <td>(</td>
  2204. <td class="paramtype">void *&#160;</td>
  2205. <td class="paramname"><em>buf</em>, </td>
  2206. </tr>
  2207. <tr>
  2208. <td class="paramkey"></td>
  2209. <td></td>
  2210. <td class="paramtype">size_t&#160;</td>
  2211. <td class="paramname"><em>count</em>&#160;</td>
  2212. </tr>
  2213. <tr>
  2214. <td></td>
  2215. <td>)</td>
  2216. <td></td><td></td>
  2217. </tr>
  2218. </table>
  2219. </div><div class="memdoc">
  2220. <p>Read data from a file starting at the current position.</p>
  2221. <dl class="params"><dt>Parameters</dt><dd>
  2222. <table class="params">
  2223. <tr><td class="paramdir">[out]</td><td class="paramname">buf</td><td>Pointer to the location that will receive the data.</td></tr>
  2224. <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>Maximum number of bytes to read.</td></tr>
  2225. </table>
  2226. </dd>
  2227. </dl>
  2228. <dl class="section return"><dt>Returns</dt><dd>For success <a class="el" href="class_fat_file.html#a60ae55ff6fe158c2340071d702a363c5">read()</a> returns the number of bytes read. A value less than <em>nbyte</em>, including zero, will be returned if end of file is reached. If an error occurs, <a class="el" href="class_fat_file.html#a60ae55ff6fe158c2340071d702a363c5">read()</a> returns -1. </dd></dl>
  2229. </div>
  2230. </div>
  2231. <a id="a1325afe074c3efecff666678cd9f116a"></a>
  2232. <h2 class="memtitle"><span class="permalink"><a href="#a1325afe074c3efecff666678cd9f116a">&#9670;&nbsp;</a></span>readDir()</h2>
  2233. <div class="memitem">
  2234. <div class="memproto">
  2235. <table class="memname">
  2236. <tr>
  2237. <td class="memname">int8_t FatFile::readDir </td>
  2238. <td>(</td>
  2239. <td class="paramtype">dir_t *&#160;</td>
  2240. <td class="paramname"><em>dir</em></td><td>)</td>
  2241. <td></td>
  2242. </tr>
  2243. </table>
  2244. </div><div class="memdoc">
  2245. <p>Read the next directory entry from a directory file.</p>
  2246. <dl class="params"><dt>Parameters</dt><dd>
  2247. <table class="params">
  2248. <tr><td class="paramdir">[out]</td><td class="paramname">dir</td><td>The dir_t struct that will receive the data.</td></tr>
  2249. </table>
  2250. </dd>
  2251. </dl>
  2252. <dl class="section return"><dt>Returns</dt><dd>For success <a class="el" href="class_fat_file.html#a1325afe074c3efecff666678cd9f116a">readDir()</a> returns the number of bytes read. A value of zero will be returned if end of file is reached. If an error occurs, <a class="el" href="class_fat_file.html#a1325afe074c3efecff666678cd9f116a">readDir()</a> returns -1. Possible errors include <a class="el" href="class_fat_file.html#a1325afe074c3efecff666678cd9f116a">readDir()</a> called before a directory has been opened, this is not a directory file or an I/O error occurred. </dd></dl>
  2253. </div>
  2254. </div>
  2255. <a id="ac837a537fbcca14c7aa390c5fc9f4e7c"></a>
  2256. <h2 class="memtitle"><span class="permalink"><a href="#ac837a537fbcca14c7aa390c5fc9f4e7c">&#9670;&nbsp;</a></span>remove() <span class="overload">[1/2]</span></h2>
  2257. <div class="memitem">
  2258. <div class="memproto">
  2259. <table class="memname">
  2260. <tr>
  2261. <td class="memname">bool FatFile::remove </td>
  2262. <td>(</td>
  2263. <td class="paramname"></td><td>)</td>
  2264. <td></td>
  2265. </tr>
  2266. </table>
  2267. </div><div class="memdoc">
  2268. <p>Remove a file.</p>
  2269. <p>The directory entry and all data for the file are deleted.</p>
  2270. <dl class="section note"><dt>Note</dt><dd>This function should not be used to delete the 8.3 version of a file that has a long name. For example if a file has the long name "New Text Document.txt" you should not delete the 8.3 name "NEWTEX~1.TXT".</dd></dl>
  2271. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2272. </div>
  2273. </div>
  2274. <a id="a75d3276f0b02b03e863afafe5731fedb"></a>
  2275. <h2 class="memtitle"><span class="permalink"><a href="#a75d3276f0b02b03e863afafe5731fedb">&#9670;&nbsp;</a></span>remove() <span class="overload">[2/2]</span></h2>
  2276. <div class="memitem">
  2277. <div class="memproto">
  2278. <table class="memname">
  2279. <tr>
  2280. <td class="memname">bool FatFile::remove </td>
  2281. <td>(</td>
  2282. <td class="paramtype">const char *&#160;</td>
  2283. <td class="paramname"><em>path</em></td><td>)</td>
  2284. <td></td>
  2285. </tr>
  2286. </table>
  2287. </div><div class="memdoc">
  2288. <p>Remove a file.</p>
  2289. <p>The directory entry and all data for the file are deleted.</p>
  2290. <dl class="params"><dt>Parameters</dt><dd>
  2291. <table class="params">
  2292. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>Path for the file to be removed.</td></tr>
  2293. </table>
  2294. </dd>
  2295. </dl>
  2296. <p>Example use: dirFile.remove(filenameToRemove);</p>
  2297. <dl class="section note"><dt>Note</dt><dd>This function should not be used to delete the 8.3 version of a file that has a long name. For example if a file has the long name "New Text Document.txt" you should not delete the 8.3 name "NEWTEX~1.TXT".</dd></dl>
  2298. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2299. </div>
  2300. </div>
  2301. <a id="a4cebcac13c1f4c9de7a055ae73133599"></a>
  2302. <h2 class="memtitle"><span class="permalink"><a href="#a4cebcac13c1f4c9de7a055ae73133599">&#9670;&nbsp;</a></span>rename() <span class="overload">[1/2]</span></h2>
  2303. <div class="memitem">
  2304. <div class="memproto">
  2305. <table class="memname">
  2306. <tr>
  2307. <td class="memname">bool FatFile::rename </td>
  2308. <td>(</td>
  2309. <td class="paramtype">const char *&#160;</td>
  2310. <td class="paramname"><em>newPath</em></td><td>)</td>
  2311. <td></td>
  2312. </tr>
  2313. </table>
  2314. </div><div class="memdoc">
  2315. <p>Rename a file or subdirectory. </p><dl class="section note"><dt>Note</dt><dd>the renamed file will be moved to the current volume working directory.</dd></dl>
  2316. <dl class="params"><dt>Parameters</dt><dd>
  2317. <table class="params">
  2318. <tr><td class="paramdir">[in]</td><td class="paramname">newPath</td><td>New path name for the file/directory.</td></tr>
  2319. </table>
  2320. </dd>
  2321. </dl>
  2322. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2323. </div>
  2324. </div>
  2325. <a id="a4b42f2454ff462555c07ea094a92a1e0"></a>
  2326. <h2 class="memtitle"><span class="permalink"><a href="#a4b42f2454ff462555c07ea094a92a1e0">&#9670;&nbsp;</a></span>rename() <span class="overload">[2/2]</span></h2>
  2327. <div class="memitem">
  2328. <div class="memproto">
  2329. <table class="memname">
  2330. <tr>
  2331. <td class="memname">bool FatFile::rename </td>
  2332. <td>(</td>
  2333. <td class="paramtype"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td>
  2334. <td class="paramname"><em>dirFile</em>, </td>
  2335. </tr>
  2336. <tr>
  2337. <td class="paramkey"></td>
  2338. <td></td>
  2339. <td class="paramtype">const char *&#160;</td>
  2340. <td class="paramname"><em>newPath</em>&#160;</td>
  2341. </tr>
  2342. <tr>
  2343. <td></td>
  2344. <td>)</td>
  2345. <td></td><td></td>
  2346. </tr>
  2347. </table>
  2348. </div><div class="memdoc">
  2349. <p>Rename a file or subdirectory.</p>
  2350. <dl class="params"><dt>Parameters</dt><dd>
  2351. <table class="params">
  2352. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>Directory for the new path. </td></tr>
  2353. <tr><td class="paramdir">[in]</td><td class="paramname">newPath</td><td>New path name for the file/directory.</td></tr>
  2354. </table>
  2355. </dd>
  2356. </dl>
  2357. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2358. </div>
  2359. </div>
  2360. <a id="a5aac6e0b3cb08fc8b8668e916a8b0ca5"></a>
  2361. <h2 class="memtitle"><span class="permalink"><a href="#a5aac6e0b3cb08fc8b8668e916a8b0ca5">&#9670;&nbsp;</a></span>rewind()</h2>
  2362. <div class="memitem">
  2363. <div class="memproto">
  2364. <table class="mlabels">
  2365. <tr>
  2366. <td class="mlabels-left">
  2367. <table class="memname">
  2368. <tr>
  2369. <td class="memname">void FatFile::rewind </td>
  2370. <td>(</td>
  2371. <td class="paramname"></td><td>)</td>
  2372. <td></td>
  2373. </tr>
  2374. </table>
  2375. </td>
  2376. <td class="mlabels-right">
  2377. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2378. </tr>
  2379. </table>
  2380. </div><div class="memdoc">
  2381. <p>Set the file's current position to zero. </p>
  2382. </div>
  2383. </div>
  2384. <a id="a9515bac181d33e7f0125e88fa2ccd283"></a>
  2385. <h2 class="memtitle"><span class="permalink"><a href="#a9515bac181d33e7f0125e88fa2ccd283">&#9670;&nbsp;</a></span>rmdir()</h2>
  2386. <div class="memitem">
  2387. <div class="memproto">
  2388. <table class="memname">
  2389. <tr>
  2390. <td class="memname">bool FatFile::rmdir </td>
  2391. <td>(</td>
  2392. <td class="paramname"></td><td>)</td>
  2393. <td></td>
  2394. </tr>
  2395. </table>
  2396. </div><div class="memdoc">
  2397. <p>Remove a directory file.</p>
  2398. <p>The directory file will be removed only if it is empty and is not the root directory. <a class="el" href="class_fat_file.html#a9515bac181d33e7f0125e88fa2ccd283">rmdir()</a> follows DOS and Windows and ignores the read-only attribute for the directory.</p>
  2399. <dl class="section note"><dt>Note</dt><dd>This function should not be used to delete the 8.3 version of a directory that has a long name. For example if a directory has the long name "New folder" you should not delete the 8.3 name "NEWFOL~1".</dd></dl>
  2400. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2401. </div>
  2402. </div>
  2403. <a id="ac780a80526f86d3def701ecdc99d8bfe"></a>
  2404. <h2 class="memtitle"><span class="permalink"><a href="#ac780a80526f86d3def701ecdc99d8bfe">&#9670;&nbsp;</a></span>rmRfStar()</h2>
  2405. <div class="memitem">
  2406. <div class="memproto">
  2407. <table class="memname">
  2408. <tr>
  2409. <td class="memname">bool FatFile::rmRfStar </td>
  2410. <td>(</td>
  2411. <td class="paramname"></td><td>)</td>
  2412. <td></td>
  2413. </tr>
  2414. </table>
  2415. </div><div class="memdoc">
  2416. <p>Recursively delete a directory and all contained files.</p>
  2417. <p>This is like the Unix/Linux 'rm -rf *' if called with the root directory hence the name.</p>
  2418. <p>Warning - This will remove all contents of the directory including subdirectories. The directory will then be removed if it is not root. The read-only attribute for files will be ignored.</p>
  2419. <dl class="section note"><dt>Note</dt><dd>This function should not be used to delete the 8.3 version of a directory that has a long name. See <a class="el" href="class_fat_file.html#ac837a537fbcca14c7aa390c5fc9f4e7c">remove()</a> and <a class="el" href="class_fat_file.html#a9515bac181d33e7f0125e88fa2ccd283">rmdir()</a>.</dd></dl>
  2420. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2421. </div>
  2422. </div>
  2423. <a id="a5812037ea30777cc350698ad26f2c73f"></a>
  2424. <h2 class="memtitle"><span class="permalink"><a href="#a5812037ea30777cc350698ad26f2c73f">&#9670;&nbsp;</a></span>seekCur()</h2>
  2425. <div class="memitem">
  2426. <div class="memproto">
  2427. <table class="mlabels">
  2428. <tr>
  2429. <td class="mlabels-left">
  2430. <table class="memname">
  2431. <tr>
  2432. <td class="memname">bool FatFile::seekCur </td>
  2433. <td>(</td>
  2434. <td class="paramtype">int32_t&#160;</td>
  2435. <td class="paramname"><em>offset</em></td><td>)</td>
  2436. <td></td>
  2437. </tr>
  2438. </table>
  2439. </td>
  2440. <td class="mlabels-right">
  2441. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2442. </tr>
  2443. </table>
  2444. </div><div class="memdoc">
  2445. <p>Set the files position to current position + <em>pos</em>. See <a class="el" href="class_fat_file.html#ab067190d25733ed7e697d9890f61fd7a">seekSet()</a>. </p><dl class="params"><dt>Parameters</dt><dd>
  2446. <table class="params">
  2447. <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>The new position in bytes from the current position. </td></tr>
  2448. </table>
  2449. </dd>
  2450. </dl>
  2451. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2452. </div>
  2453. </div>
  2454. <a id="a84f677f4e75ef6fa2eb632f4cdf6b486"></a>
  2455. <h2 class="memtitle"><span class="permalink"><a href="#a84f677f4e75ef6fa2eb632f4cdf6b486">&#9670;&nbsp;</a></span>seekEnd()</h2>
  2456. <div class="memitem">
  2457. <div class="memproto">
  2458. <table class="mlabels">
  2459. <tr>
  2460. <td class="mlabels-left">
  2461. <table class="memname">
  2462. <tr>
  2463. <td class="memname">bool FatFile::seekEnd </td>
  2464. <td>(</td>
  2465. <td class="paramtype">int32_t&#160;</td>
  2466. <td class="paramname"><em>offset</em> = <code>0</code></td><td>)</td>
  2467. <td></td>
  2468. </tr>
  2469. </table>
  2470. </td>
  2471. <td class="mlabels-right">
  2472. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2473. </tr>
  2474. </table>
  2475. </div><div class="memdoc">
  2476. <p>Set the files position to end-of-file + <em>offset</em>. See <a class="el" href="class_fat_file.html#ab067190d25733ed7e697d9890f61fd7a">seekSet()</a>. Can't be used for directory files since file size is not defined. </p><dl class="params"><dt>Parameters</dt><dd>
  2477. <table class="params">
  2478. <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>The new position in bytes from end-of-file. </td></tr>
  2479. </table>
  2480. </dd>
  2481. </dl>
  2482. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2483. </div>
  2484. </div>
  2485. <a id="ab067190d25733ed7e697d9890f61fd7a"></a>
  2486. <h2 class="memtitle"><span class="permalink"><a href="#ab067190d25733ed7e697d9890f61fd7a">&#9670;&nbsp;</a></span>seekSet()</h2>
  2487. <div class="memitem">
  2488. <div class="memproto">
  2489. <table class="memname">
  2490. <tr>
  2491. <td class="memname">bool FatFile::seekSet </td>
  2492. <td>(</td>
  2493. <td class="paramtype">uint32_t&#160;</td>
  2494. <td class="paramname"><em>pos</em></td><td>)</td>
  2495. <td></td>
  2496. </tr>
  2497. </table>
  2498. </div><div class="memdoc">
  2499. <p>Sets a file's position.</p>
  2500. <dl class="params"><dt>Parameters</dt><dd>
  2501. <table class="params">
  2502. <tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>The new position in bytes from the beginning of the file.</td></tr>
  2503. </table>
  2504. </dd>
  2505. </dl>
  2506. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2507. </div>
  2508. </div>
  2509. <a id="a67f3dc4896c542d695e11aac927f585e"></a>
  2510. <h2 class="memtitle"><span class="permalink"><a href="#a67f3dc4896c542d695e11aac927f585e">&#9670;&nbsp;</a></span>sync()</h2>
  2511. <div class="memitem">
  2512. <div class="memproto">
  2513. <table class="memname">
  2514. <tr>
  2515. <td class="memname">bool FatFile::sync </td>
  2516. <td>(</td>
  2517. <td class="paramname"></td><td>)</td>
  2518. <td></td>
  2519. </tr>
  2520. </table>
  2521. </div><div class="memdoc">
  2522. <p>The <a class="el" href="class_fat_file.html#a67f3dc4896c542d695e11aac927f585e">sync()</a> call causes all modified data and directory fields to be written to the storage device.</p>
  2523. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2524. </div>
  2525. </div>
  2526. <a id="a56dabdf73833b7e961c4530eb8e16d23"></a>
  2527. <h2 class="memtitle"><span class="permalink"><a href="#a56dabdf73833b7e961c4530eb8e16d23">&#9670;&nbsp;</a></span>timestamp()</h2>
  2528. <div class="memitem">
  2529. <div class="memproto">
  2530. <table class="memname">
  2531. <tr>
  2532. <td class="memname">bool FatFile::timestamp </td>
  2533. <td>(</td>
  2534. <td class="paramtype">uint8_t&#160;</td>
  2535. <td class="paramname"><em>flags</em>, </td>
  2536. </tr>
  2537. <tr>
  2538. <td class="paramkey"></td>
  2539. <td></td>
  2540. <td class="paramtype">uint16_t&#160;</td>
  2541. <td class="paramname"><em>year</em>, </td>
  2542. </tr>
  2543. <tr>
  2544. <td class="paramkey"></td>
  2545. <td></td>
  2546. <td class="paramtype">uint8_t&#160;</td>
  2547. <td class="paramname"><em>month</em>, </td>
  2548. </tr>
  2549. <tr>
  2550. <td class="paramkey"></td>
  2551. <td></td>
  2552. <td class="paramtype">uint8_t&#160;</td>
  2553. <td class="paramname"><em>day</em>, </td>
  2554. </tr>
  2555. <tr>
  2556. <td class="paramkey"></td>
  2557. <td></td>
  2558. <td class="paramtype">uint8_t&#160;</td>
  2559. <td class="paramname"><em>hour</em>, </td>
  2560. </tr>
  2561. <tr>
  2562. <td class="paramkey"></td>
  2563. <td></td>
  2564. <td class="paramtype">uint8_t&#160;</td>
  2565. <td class="paramname"><em>minute</em>, </td>
  2566. </tr>
  2567. <tr>
  2568. <td class="paramkey"></td>
  2569. <td></td>
  2570. <td class="paramtype">uint8_t&#160;</td>
  2571. <td class="paramname"><em>second</em>&#160;</td>
  2572. </tr>
  2573. <tr>
  2574. <td></td>
  2575. <td>)</td>
  2576. <td></td><td></td>
  2577. </tr>
  2578. </table>
  2579. </div><div class="memdoc">
  2580. <p>Set a file's timestamps in its directory entry.</p>
  2581. <dl class="params"><dt>Parameters</dt><dd>
  2582. <table class="params">
  2583. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>Values for <em>flags</em> are constructed by a bitwise-inclusive OR of flags from the following list</td></tr>
  2584. </table>
  2585. </dd>
  2586. </dl>
  2587. <p>T_ACCESS - Set the file's last access date.</p>
  2588. <p>T_CREATE - Set the file's creation date and time.</p>
  2589. <p>T_WRITE - Set the file's last write/modification date and time.</p>
  2590. <dl class="params"><dt>Parameters</dt><dd>
  2591. <table class="params">
  2592. <tr><td class="paramdir">[in]</td><td class="paramname">year</td><td>Valid range 1980 - 2107 inclusive.</td></tr>
  2593. <tr><td class="paramdir">[in]</td><td class="paramname">month</td><td>Valid range 1 - 12 inclusive.</td></tr>
  2594. <tr><td class="paramdir">[in]</td><td class="paramname">day</td><td>Valid range 1 - 31 inclusive.</td></tr>
  2595. <tr><td class="paramdir">[in]</td><td class="paramname">hour</td><td>Valid range 0 - 23 inclusive.</td></tr>
  2596. <tr><td class="paramdir">[in]</td><td class="paramname">minute</td><td>Valid range 0 - 59 inclusive.</td></tr>
  2597. <tr><td class="paramdir">[in]</td><td class="paramname">second</td><td>Valid range 0 - 59 inclusive</td></tr>
  2598. </table>
  2599. </dd>
  2600. </dl>
  2601. <dl class="section note"><dt>Note</dt><dd>It is possible to set an invalid date since there is no check for the number of days in a month.</dd>
  2602. <dd>
  2603. Modify and access timestamps may be overwritten if a date time callback function has been set by dateTimeCallback().</dd></dl>
  2604. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2605. </div>
  2606. </div>
  2607. <a id="a7dda881dac19ea2aa9b2e85a229a98d7"></a>
  2608. <h2 class="memtitle"><span class="permalink"><a href="#a7dda881dac19ea2aa9b2e85a229a98d7">&#9670;&nbsp;</a></span>truncate() <span class="overload">[1/2]</span></h2>
  2609. <div class="memitem">
  2610. <div class="memproto">
  2611. <table class="memname">
  2612. <tr>
  2613. <td class="memname">bool FatFile::truncate </td>
  2614. <td>(</td>
  2615. <td class="paramname"></td><td>)</td>
  2616. <td></td>
  2617. </tr>
  2618. </table>
  2619. </div><div class="memdoc">
  2620. <p>Truncate a file at 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>
  2621. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2622. </div>
  2623. </div>
  2624. <a id="aa6e663098a578635d37d92e82d18d616"></a>
  2625. <h2 class="memtitle"><span class="permalink"><a href="#aa6e663098a578635d37d92e82d18d616">&#9670;&nbsp;</a></span>truncate() <span class="overload">[2/2]</span></h2>
  2626. <div class="memitem">
  2627. <div class="memproto">
  2628. <table class="mlabels">
  2629. <tr>
  2630. <td class="mlabels-left">
  2631. <table class="memname">
  2632. <tr>
  2633. <td class="memname">bool FatFile::truncate </td>
  2634. <td>(</td>
  2635. <td class="paramtype">uint32_t&#160;</td>
  2636. <td class="paramname"><em>length</em></td><td>)</td>
  2637. <td></td>
  2638. </tr>
  2639. </table>
  2640. </td>
  2641. <td class="mlabels-right">
  2642. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2643. </tr>
  2644. </table>
  2645. </div><div class="memdoc">
  2646. <p>Truncate a file to a specified length. The current file position will be set to end of file.</p>
  2647. <dl class="params"><dt>Parameters</dt><dd>
  2648. <table class="params">
  2649. <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>The desired length for the file.</td></tr>
  2650. </table>
  2651. </dd>
  2652. </dl>
  2653. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2654. </div>
  2655. </div>
  2656. <a id="a081dd810835f1ebf8c23ffe92706b485"></a>
  2657. <h2 class="memtitle"><span class="permalink"><a href="#a081dd810835f1ebf8c23ffe92706b485">&#9670;&nbsp;</a></span>write() <span class="overload">[1/3]</span></h2>
  2658. <div class="memitem">
  2659. <div class="memproto">
  2660. <table class="mlabels">
  2661. <tr>
  2662. <td class="mlabels-left">
  2663. <table class="memname">
  2664. <tr>
  2665. <td class="memname">size_t FatFile::write </td>
  2666. <td>(</td>
  2667. <td class="paramtype">const char *&#160;</td>
  2668. <td class="paramname"><em>str</em></td><td>)</td>
  2669. <td></td>
  2670. </tr>
  2671. </table>
  2672. </td>
  2673. <td class="mlabels-right">
  2674. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2675. </tr>
  2676. </table>
  2677. </div><div class="memdoc">
  2678. <p>Write a string to a file. Used by the Arduino Print class. </p><dl class="params"><dt>Parameters</dt><dd>
  2679. <table class="params">
  2680. <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>Pointer to the string. Use getWriteError to check for errors. </td></tr>
  2681. </table>
  2682. </dd>
  2683. </dl>
  2684. <dl class="section return"><dt>Returns</dt><dd>count of characters written for success or -1 for failure. </dd></dl>
  2685. </div>
  2686. </div>
  2687. <a id="ae51e724ac6cc3d67d64a5a666d5850f1"></a>
  2688. <h2 class="memtitle"><span class="permalink"><a href="#ae51e724ac6cc3d67d64a5a666d5850f1">&#9670;&nbsp;</a></span>write() <span class="overload">[2/3]</span></h2>
  2689. <div class="memitem">
  2690. <div class="memproto">
  2691. <table class="mlabels">
  2692. <tr>
  2693. <td class="mlabels-left">
  2694. <table class="memname">
  2695. <tr>
  2696. <td class="memname">size_t FatFile::write </td>
  2697. <td>(</td>
  2698. <td class="paramtype">uint8_t&#160;</td>
  2699. <td class="paramname"><em>b</em></td><td>)</td>
  2700. <td></td>
  2701. </tr>
  2702. </table>
  2703. </td>
  2704. <td class="mlabels-right">
  2705. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2706. </tr>
  2707. </table>
  2708. </div><div class="memdoc">
  2709. <p>Write a single byte. </p><dl class="params"><dt>Parameters</dt><dd>
  2710. <table class="params">
  2711. <tr><td class="paramdir">[in]</td><td class="paramname">b</td><td>The byte to be written. </td></tr>
  2712. </table>
  2713. </dd>
  2714. </dl>
  2715. <dl class="section return"><dt>Returns</dt><dd>+1 for success or -1 for failure. </dd></dl>
  2716. </div>
  2717. </div>
  2718. <a id="a5d84d871ac904a22aa48308713d14682"></a>
  2719. <h2 class="memtitle"><span class="permalink"><a href="#a5d84d871ac904a22aa48308713d14682">&#9670;&nbsp;</a></span>write() <span class="overload">[3/3]</span></h2>
  2720. <div class="memitem">
  2721. <div class="memproto">
  2722. <table class="memname">
  2723. <tr>
  2724. <td class="memname">size_t FatFile::write </td>
  2725. <td>(</td>
  2726. <td class="paramtype">const void *&#160;</td>
  2727. <td class="paramname"><em>buf</em>, </td>
  2728. </tr>
  2729. <tr>
  2730. <td class="paramkey"></td>
  2731. <td></td>
  2732. <td class="paramtype">size_t&#160;</td>
  2733. <td class="paramname"><em>count</em>&#160;</td>
  2734. </tr>
  2735. <tr>
  2736. <td></td>
  2737. <td>)</td>
  2738. <td></td><td></td>
  2739. </tr>
  2740. </table>
  2741. </div><div class="memdoc">
  2742. <p>Write data to an open file.</p>
  2743. <dl class="section note"><dt>Note</dt><dd>Data is moved to the cache but may not be written to the storage device until <a class="el" href="class_fat_file.html#a67f3dc4896c542d695e11aac927f585e">sync()</a> is called.</dd></dl>
  2744. <dl class="params"><dt>Parameters</dt><dd>
  2745. <table class="params">
  2746. <tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>Pointer to the location of the data to be written.</td></tr>
  2747. <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>Number of bytes to write.</td></tr>
  2748. </table>
  2749. </dd>
  2750. </dl>
  2751. <dl class="section return"><dt>Returns</dt><dd>For success <a class="el" href="class_fat_file.html#a081dd810835f1ebf8c23ffe92706b485">write()</a> returns the number of bytes written, always <em>count</em>. If an error occurs, <a class="el" href="class_fat_file.html#a081dd810835f1ebf8c23ffe92706b485">write()</a> returns -1. Possible errors include <a class="el" href="class_fat_file.html#a081dd810835f1ebf8c23ffe92706b485">write()</a> is called before a file has been opened, write is called for a read-only file, device is full, a corrupt file system or an I/O error. </dd></dl>
  2752. </div>
  2753. </div>
  2754. <h2 class="groupheader">Friends And Related Function Documentation</h2>
  2755. <a id="a6ca3f436167f187097347a20ea221555"></a>
  2756. <h2 class="memtitle"><span class="permalink"><a href="#a6ca3f436167f187097347a20ea221555">&#9670;&nbsp;</a></span>FatVolume</h2>
  2757. <div class="memitem">
  2758. <div class="memproto">
  2759. <table class="mlabels">
  2760. <tr>
  2761. <td class="mlabels-left">
  2762. <table class="memname">
  2763. <tr>
  2764. <td class="memname">friend class <a class="el" href="class_fat_volume.html">FatVolume</a></td>
  2765. </tr>
  2766. </table>
  2767. </td>
  2768. <td class="mlabels-right">
  2769. <span class="mlabels"><span class="mlabel">friend</span></span> </td>
  2770. </tr>
  2771. </table>
  2772. </div><div class="memdoc">
  2773. <p><a class="el" href="class_fat_volume.html" title="Integration class for the FatLib library. ">FatVolume</a> allowed access to private members. </p>
  2774. </div>
  2775. </div>
  2776. <hr/>The documentation for this class was generated from the following files:<ul>
  2777. <li>ArduinoSdFat/libraries/SdFat/src/FatLib/<a class="el" href="_fat_file_8h.html">FatFile.h</a></li>
  2778. <li>ArduinoSdFat/libraries/SdFat/src/FatLib/FatFile.cpp</li>
  2779. <li>ArduinoSdFat/libraries/SdFat/src/FatLib/FatFileLFN.cpp</li>
  2780. <li>ArduinoSdFat/libraries/SdFat/src/FatLib/FatFilePrint.cpp</li>
  2781. <li>ArduinoSdFat/libraries/SdFat/src/FatLib/FatFileSFN.cpp</li>
  2782. </ul>
  2783. </div><!-- contents -->
  2784. <!-- start footer part -->
  2785. <hr class="footer"/><address class="footer"><small>
  2786. Generated on Thu May 9 2019 06:51:28 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  2787. <img class="footer" src="doxygen.png" alt="doxygen"/>
  2788. </a> 1.8.14
  2789. </small></address>
  2790. </body>
  2791. </html>