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.

3216 satır
143KB

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