Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

3463 lines
153KB

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