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.

3364 lines
148KB

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