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

3290 lines
147KB

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