Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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