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

276 linhas
15KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.10"/>
  7. <title>SdFat: Arduino/libraries/SdFat/src/FatLib/FatLibConfig.h File Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td id="projectalign" style="padding-left: 0.5em;">
  26. <div id="projectname">SdFat
  27. </div>
  28. </td>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </div>
  33. <!-- end header part -->
  34. <!-- Generated by Doxygen 1.8.10 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  41. <li><a href="modules.html"><span>Modules</span></a></li>
  42. <li><a href="annotated.html"><span>Classes</span></a></li>
  43. <li class="current"><a href="files.html"><span>Files</span></a></li>
  44. <li>
  45. <div id="MSearchBox" class="MSearchBoxInactive">
  46. <span class="left">
  47. <img id="MSearchSelect" src="search/mag_sel.png"
  48. onmouseover="return searchBox.OnSearchSelectShow()"
  49. onmouseout="return searchBox.OnSearchSelectHide()"
  50. alt=""/>
  51. <input type="text" id="MSearchField" value="Search" accesskey="S"
  52. onfocus="searchBox.OnSearchFieldFocus(true)"
  53. onblur="searchBox.OnSearchFieldFocus(false)"
  54. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  55. </span><span class="right">
  56. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  57. </span>
  58. </div>
  59. </li>
  60. </ul>
  61. </div>
  62. <div id="navrow2" class="tabs2">
  63. <ul class="tablist">
  64. <li><a href="files.html"><span>File&#160;List</span></a></li>
  65. <li><a href="globals.html"><span>File&#160;Members</span></a></li>
  66. </ul>
  67. </div>
  68. <!-- window showing the filter options -->
  69. <div id="MSearchSelectWindow"
  70. onmouseover="return searchBox.OnSearchSelectShow()"
  71. onmouseout="return searchBox.OnSearchSelectHide()"
  72. onkeydown="return searchBox.OnSearchSelectKey(event)">
  73. </div>
  74. <!-- iframe showing the search results (closed by default) -->
  75. <div id="MSearchResultsWindow">
  76. <iframe src="javascript:void(0)" frameborder="0"
  77. name="MSearchResults" id="MSearchResults">
  78. </iframe>
  79. </div>
  80. <div id="nav-path" class="navpath">
  81. <ul>
  82. <li class="navelem"><a class="el" href="dir_a991eec27578c865874ede3d8ec657c2.html">Arduino</a></li><li class="navelem"><a class="el" href="dir_481cc946b8a81b8d9363a4aad6201160.html">libraries</a></li><li class="navelem"><a class="el" href="dir_1281b15c327061056ab3b326e90c50cf.html">SdFat</a></li><li class="navelem"><a class="el" href="dir_c18d6c86f7b0afecac5c3a8a9885031e.html">src</a></li><li class="navelem"><a class="el" href="dir_7e472674a7b7d2590a789f197241f95f.html">FatLib</a></li> </ul>
  83. </div>
  84. </div><!-- top -->
  85. <div class="header">
  86. <div class="summary">
  87. <a href="#define-members">Macros</a> </div>
  88. <div class="headertitle">
  89. <div class="title">FatLibConfig.h File Reference</div> </div>
  90. </div><!--header-->
  91. <div class="contents">
  92. <p>configuration definitions
  93. <a href="#details">More...</a></p>
  94. <div class="textblock"><code>#include &lt;stdint.h&gt;</code><br />
  95. <code>#include &quot;<a class="el" href="_sd_fat_config_8h.html">SdFatConfig.h</a>&quot;</code><br />
  96. </div><div class="textblock"><div class="dynheader">
  97. Include dependency graph for FatLibConfig.h:</div>
  98. <div class="dyncontent">
  99. <div class="center"><img src="_fat_lib_config_8h__incl.png" border="0" usemap="#_arduino_2libraries_2_sd_fat_2src_2_fat_lib_2_fat_lib_config_8h" alt=""/></div>
  100. <map name="_arduino_2libraries_2_sd_fat_2src_2_fat_lib_2_fat_lib_config_8h" id="_arduino_2libraries_2_sd_fat_2src_2_fat_lib_2_fat_lib_config_8h">
  101. <area shape="rect" id="node3" href="_sd_fat_config_8h.html" title="configuration definitions " alt="" coords="84,95,188,121"/>
  102. </map>
  103. </div>
  104. </div><div class="textblock"><div class="dynheader">
  105. This graph shows which files directly or indirectly include this file:</div>
  106. <div class="dyncontent">
  107. <div class="center"><img src="_fat_lib_config_8h__dep__incl.png" border="0" usemap="#_arduino_2libraries_2_sd_fat_2src_2_fat_lib_2_fat_lib_config_8hdep" alt=""/></div>
  108. <map name="_arduino_2libraries_2_sd_fat_2src_2_fat_lib_2_fat_lib_config_8hdep" id="_arduino_2libraries_2_sd_fat_2src_2_fat_lib_2_fat_lib_config_8hdep">
  109. <area shape="rect" id="node2" href="_arduino_files_8h.html" title="PrintFile class. " alt="" coords="23,273,194,315"/>
  110. <area shape="rect" id="node4" href="_fat_file_8h.html" title="FatFile class. " alt="" coords="211,184,366,225"/>
  111. <area shape="rect" id="node9" href="_arduino_stream_8h.html" title="ArduinoInStream and ArduinoOutStream classes. " alt="" coords="497,631,683,672"/>
  112. <area shape="rect" id="node13" href="_fat_volume_8h.html" title="FatVolume class. " alt="" coords="89,95,251,136"/>
  113. <area shape="rect" id="node3" href="_fat_file_system_8h.html" title="FatFileSystem class. " alt="" coords="17,363,201,404"/>
  114. <area shape="rect" id="node5" href="ios_8h.html" title="ios_base and ios classes " alt="" coords="269,273,423,315"/>
  115. <area shape="rect" id="node10" href="fstream_8h.html" title="fstream, ifstream, and ofstream classes " alt="" coords="546,541,701,583"/>
  116. <area shape="rect" id="node12" href="_stdio_stream_8h.html" title="StdioStream class. " alt="" coords="447,273,618,315"/>
  117. <area shape="rect" id="node6" href="istream_8h.html" title="istream class " alt="" coords="426,363,581,404"/>
  118. <area shape="rect" id="node11" href="ostream_8h.html" title="ostream class " alt="" coords="247,363,402,404"/>
  119. <area shape="rect" id="node7" href="iostream_8h.html" title="iostream class " alt="" coords="395,452,550,493"/>
  120. <area shape="rect" id="node8" href="bufstream_8h.html" title="ibufstream and obufstream classes " alt="" coords="365,541,521,583"/>
  121. </map>
  122. </div>
  123. </div><table class="memberdecls">
  124. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
  125. Macros</h2></td></tr>
  126. <tr class="memitem:aa918e5b1946ba4be891b081607e8193f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_fat_lib_config_8h.html#aa918e5b1946ba4be891b081607e8193f">ARDUINO_FILE_USES_STREAM</a>&#160;&#160;&#160;1</td></tr>
  127. <tr class="separator:aa918e5b1946ba4be891b081607e8193f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:a9a2b1ca4d91cff876f48deeaacbc33da"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_fat_lib_config_8h.html#a9a2b1ca4d91cff876f48deeaacbc33da">DESTRUCTOR_CLOSES_FILE</a>&#160;&#160;&#160;0</td></tr>
  129. <tr class="separator:a9a2b1ca4d91cff876f48deeaacbc33da"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. <tr class="memitem:a9a8c1ea8596f35f7f33a24b642567206"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_fat_lib_config_8h.html#a9a8c1ea8596f35f7f33a24b642567206">ENABLE_ARDUINO_FEATURES</a>&#160;&#160;&#160;1</td></tr>
  131. <tr class="separator:a9a8c1ea8596f35f7f33a24b642567206"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:a270eefdaec4778f2a491658f34f61b17"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_fat_lib_config_8h.html#a270eefdaec4778f2a491658f34f61b17">ENDL_CALLS_FLUSH</a>&#160;&#160;&#160;0</td></tr>
  133. <tr class="separator:a270eefdaec4778f2a491658f34f61b17"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:a28998c5daf4bd038f4f93172698320b1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_fat_lib_config_8h.html#a28998c5daf4bd038f4f93172698320b1">FAT12_SUPPORT</a>&#160;&#160;&#160;0</td></tr>
  135. <tr class="separator:a28998c5daf4bd038f4f93172698320b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:a2536b194b3b007604a39e8526e108b52"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_fat_lib_config_8h.html#a2536b194b3b007604a39e8526e108b52">USE_LONG_FILE_NAMES</a>&#160;&#160;&#160;1</td></tr>
  137. <tr class="separator:a2536b194b3b007604a39e8526e108b52"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:afc3ef382d3ab8d7e6f8fc134ef21d487"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_fat_lib_config_8h.html#afc3ef382d3ab8d7e6f8fc134ef21d487">USE_MULTI_BLOCK_IO</a>&#160;&#160;&#160;1</td></tr>
  139. <tr class="separator:afc3ef382d3ab8d7e6f8fc134ef21d487"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. <tr class="memitem:a23f662882413dcb017ebd8107473b8c3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_fat_lib_config_8h.html#a23f662882413dcb017ebd8107473b8c3">USE_SEPARATE_FAT_CACHE</a>&#160;&#160;&#160;0</td></tr>
  141. <tr class="separator:a23f662882413dcb017ebd8107473b8c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  142. </table>
  143. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  144. <div class="textblock"><p>configuration definitions </p>
  145. </div><h2 class="groupheader">Macro Definition Documentation</h2>
  146. <a class="anchor" id="aa918e5b1946ba4be891b081607e8193f"></a>
  147. <div class="memitem">
  148. <div class="memproto">
  149. <table class="memname">
  150. <tr>
  151. <td class="memname">#define ARDUINO_FILE_USES_STREAM&#160;&#160;&#160;1</td>
  152. </tr>
  153. </table>
  154. </div><div class="memdoc">
  155. <p>Set ARDUINO_FILE_USES_STREAM nonzero to use Stream as the base class for the Arduino <a class="el" href="class_file.html" title="Arduino SD.h style File API. ">File</a> class. If ARDUINO_FILE_USES_STREAM is zero, Print will be used as the base class for the Arduino <a class="el" href="class_file.html" title="Arduino SD.h style File API. ">File</a> class.</p>
  156. <p>You can save some flash if you do not use Stream input functions such as find(), findUntil(), readBytesUntil(), readString(), readStringUntil(), parseInt(), and parsefloat(). </p>
  157. </div>
  158. </div>
  159. <a class="anchor" id="a9a2b1ca4d91cff876f48deeaacbc33da"></a>
  160. <div class="memitem">
  161. <div class="memproto">
  162. <table class="memname">
  163. <tr>
  164. <td class="memname">#define DESTRUCTOR_CLOSES_FILE&#160;&#160;&#160;0</td>
  165. </tr>
  166. </table>
  167. </div><div class="memdoc">
  168. <p>Set DESTRUCTOR_CLOSES_FILE non-zero to close a file in its destructor.</p>
  169. <p>Causes use of lots of heap in ARM. </p>
  170. </div>
  171. </div>
  172. <a class="anchor" id="a9a8c1ea8596f35f7f33a24b642567206"></a>
  173. <div class="memitem">
  174. <div class="memproto">
  175. <table class="memname">
  176. <tr>
  177. <td class="memname">#define ENABLE_ARDUINO_FEATURES&#160;&#160;&#160;1</td>
  178. </tr>
  179. </table>
  180. </div><div class="memdoc">
  181. <p>Enable Extra features for Arduino. </p>
  182. </div>
  183. </div>
  184. <a class="anchor" id="a270eefdaec4778f2a491658f34f61b17"></a>
  185. <div class="memitem">
  186. <div class="memproto">
  187. <table class="memname">
  188. <tr>
  189. <td class="memname">#define ENDL_CALLS_FLUSH&#160;&#160;&#160;0</td>
  190. </tr>
  191. </table>
  192. </div><div class="memdoc">
  193. <p>Call flush for endl if ENDL_CALLS_FLUSH is non-zero</p>
  194. <p>The standard for iostreams is to call flush. This is very costly for <a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a>. Each call to flush causes 2048 bytes of I/O to the SD.</p>
  195. <p><a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a> has a single 512 byte buffer for I/O so it must write the current data block to the SD, read the directory block from the SD, update the directory entry, write the directory block to the SD and read the data block back into the buffer.</p>
  196. <p>The SD flash memory controller is not designed for this many rewrites so performance may be reduced by more than a factor of 100.</p>
  197. <p>If ENDL_CALLS_FLUSH is zero, you must call flush and/or close to force all data to be written to the SD. </p>
  198. </div>
  199. </div>
  200. <a class="anchor" id="a28998c5daf4bd038f4f93172698320b1"></a>
  201. <div class="memitem">
  202. <div class="memproto">
  203. <table class="memname">
  204. <tr>
  205. <td class="memname">#define FAT12_SUPPORT&#160;&#160;&#160;0</td>
  206. </tr>
  207. </table>
  208. </div><div class="memdoc">
  209. <p>Allow FAT12 volumes if FAT12_SUPPORT is non-zero. FAT12 has not been well tested. </p>
  210. </div>
  211. </div>
  212. <a class="anchor" id="a2536b194b3b007604a39e8526e108b52"></a>
  213. <div class="memitem">
  214. <div class="memproto">
  215. <table class="memname">
  216. <tr>
  217. <td class="memname">#define USE_LONG_FILE_NAMES&#160;&#160;&#160;1</td>
  218. </tr>
  219. </table>
  220. </div><div class="memdoc">
  221. <p>Set USE_LONG_FILE_NAMES nonzero to use long file names (LFN). Long <a class="el" href="class_file.html" title="Arduino SD.h style File API. ">File</a> Name are limited to a maximum length of 255 characters.</p>
  222. <p>This implementation allows 7-bit characters in the range 0X20 to 0X7E. The following characters are not allowed:</p>
  223. <p>&lt; (less than) </p><blockquote class="doxtable">
  224. <p>(greater than) </p>
  225. </blockquote>
  226. <p>: (colon) " (double quote) / (forward slash) \ (backslash) | (vertical bar or pipe) ? (question mark)</p><ul>
  227. <li>(asterisk) </li>
  228. </ul>
  229. </div>
  230. </div>
  231. <a class="anchor" id="afc3ef382d3ab8d7e6f8fc134ef21d487"></a>
  232. <div class="memitem">
  233. <div class="memproto">
  234. <table class="memname">
  235. <tr>
  236. <td class="memname">#define USE_MULTI_BLOCK_IO&#160;&#160;&#160;1</td>
  237. </tr>
  238. </table>
  239. </div><div class="memdoc">
  240. <p>Set USE_MULTI_BLOCK_IO non-zero to use multi-block SD read/write.</p>
  241. <p>Don't use mult-block read/write on small AVR boards. </p>
  242. </div>
  243. </div>
  244. <a class="anchor" id="a23f662882413dcb017ebd8107473b8c3"></a>
  245. <div class="memitem">
  246. <div class="memproto">
  247. <table class="memname">
  248. <tr>
  249. <td class="memname">#define USE_SEPARATE_FAT_CACHE&#160;&#160;&#160;0</td>
  250. </tr>
  251. </table>
  252. </div><div class="memdoc">
  253. <p>Set USE_SEPARATE_FAT_CACHE non-zero to use a second 512 byte cache for FAT table entries. Improves performance for large writes that are not a multiple of 512 bytes. </p>
  254. </div>
  255. </div>
  256. </div><!-- contents -->
  257. <!-- start footer part -->
  258. <hr class="footer"/><address class="footer"><small>
  259. Generated on Fri Feb 12 2016 13:43:49 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  260. <img class="footer" src="doxygen.png" alt="doxygen"/>
  261. </a> 1.8.10
  262. </small></address>
  263. </body>
  264. </html>