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.

3292 lines
145KB

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