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

3218 satır
141KB

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