Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

256 lines
24KB

  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 SdFat Library</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 class="current"><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><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><!-- top -->
  63. <!-- window showing the filter options -->
  64. <div id="MSearchSelectWindow"
  65. onmouseover="return searchBox.OnSearchSelectShow()"
  66. onmouseout="return searchBox.OnSearchSelectHide()"
  67. onkeydown="return searchBox.OnSearchSelectKey(event)">
  68. </div>
  69. <!-- iframe showing the search results (closed by default) -->
  70. <div id="MSearchResultsWindow">
  71. <iframe src="javascript:void(0)" frameborder="0"
  72. name="MSearchResults" id="MSearchResults">
  73. </iframe>
  74. </div>
  75. <div class="header">
  76. <div class="headertitle">
  77. <div class="title">Arduino SdFat Library </div> </div>
  78. </div><!--header-->
  79. <div class="contents">
  80. <div class="textblock"><center>Copyright &copy; 2012, 2013, 2014, 2015, 2016 by William Greiman </center><h1><a class="anchor" id="Intro"></a>
  81. Introduction</h1>
  82. <p>The Arduino SdFat Library is a minimal implementation of FAT16 and FAT32 file systems on SD flash memory cards. Standard SD and high capacity SDHC cards are supported.</p>
  83. <p>Experimental support for FAT12 can be enabled by setting FAT12_SUPPORT nonzero in <a class="el" href="_sd_fat_config_8h.html" title="configuration definitions ">SdFatConfig.h</a>.</p>
  84. <p>The SdFat library supports Long File Names or short 8.3 names. Edit the <a class="el" href="_sd_fat_config_8h.html" title="configuration definitions ">SdFatConfig.h</a> file to select short or long file names.</p>
  85. <p>The main classes in SdFat are <a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a>, <a class="el" href="class_sd_fat_soft_spi.html" title="SdFat class using software SPI. ">SdFatSoftSpi</a>, <a class="el" href="class_sd_fat_lib_spi.html" title="SdFat class using the standard Arduino SPI library. ">SdFatLibSpi</a>, <a class="el" href="class_sd_base_file.html" title="Class for backward compatibility. ">SdBaseFile</a>, SdFile, <a class="el" href="class_file.html" title="Arduino SD.h style File API. ">File</a>, <a class="el" href="class_stdio_stream.html" title="StdioStream implements a minimal stdio stream. ">StdioStream</a>, <a class="el" href="classfstream.html">fstream</a>, <a class="el" href="classifstream.html">ifstream</a>, and <a class="el" href="classofstream.html">ofstream</a>.</p>
  86. <p>The <a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a>, <a class="el" href="class_sd_fat_lib_spi.html" title="SdFat class using the standard Arduino SPI library. ">SdFatLibSpi</a>, and <a class="el" href="class_sd_fat_soft_spi.html" title="SdFat class using software SPI. ">SdFatSoftSpi</a> classes maintain a FAT volume, a current working directory, and simplifies initialization of other classes. The <a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a> class uses a fast custom hardware SPI implementation. The <a class="el" href="class_sd_fat_lib_spi.html" title="SdFat class using the standard Arduino SPI library. ">SdFatLibSpi</a> class uses the standard Arduino SPI library. The <a class="el" href="class_sd_fat_soft_spi.html" title="SdFat class using software SPI. ">SdFatSoftSpi</a> class uses software SPI.</p>
  87. <p>The <a class="el" href="class_sd_base_file.html" title="Class for backward compatibility. ">SdBaseFile</a> class provides basic file access functions such as open(), binary read(), binary write(), close(), remove(), and sync(). <a class="el" href="class_sd_base_file.html" title="Class for backward compatibility. ">SdBaseFile</a> is the smallest file class.</p>
  88. <p>The SdFile class has all the <a class="el" href="class_sd_base_file.html" title="Class for backward compatibility. ">SdBaseFile</a> class functions plus the Arduino Print class functions.</p>
  89. <p>The <a class="el" href="class_file.html" title="Arduino SD.h style File API. ">File</a> class has all the <a class="el" href="class_sd_base_file.html" title="Class for backward compatibility. ">SdBaseFile</a> functions plus the functions in the Arduino SD.h <a class="el" href="class_file.html" title="Arduino SD.h style File API. ">File</a> class. This provides compatibility with the Arduino SD.h library.</p>
  90. <p>The <a class="el" href="class_stdio_stream.html" title="StdioStream implements a minimal stdio stream. ">StdioStream</a> class implements functions similar to Linux/Unix standard buffered input/output.</p>
  91. <p>The <a class="el" href="classfstream.html">fstream</a> class implements C++ iostreams for both reading and writing text files.</p>
  92. <p>The <a class="el" href="classifstream.html">ifstream</a> class implements C++ iostreams for reading text files.</p>
  93. <p>The <a class="el" href="classofstream.html">ofstream</a> class implements C++ iostreams for writing text files.</p>
  94. <p>The classes <a class="el" href="classifstream.html">ifstream</a>, <a class="el" href="classofstream.html">ofstream</a>, <a class="el" href="classistream.html">istream</a>, and <a class="el" href="classostream.html">ostream</a> follow the C++ <a class="el" href="classiostream.html">iostream</a> standard when possible.</p>
  95. <p>There are many tutorials and much documentation about using C++ iostreams on the web.</p>
  96. <p><a href="http://www.cplusplus.com/">http://www.cplusplus.com/</a> is a good C++ site for learning iostreams.</p>
  97. <p>The classes <a class="el" href="classibufstream.html">ibufstream</a> and <a class="el" href="classobufstream.html">obufstream</a> format and parse character strings in memory buffers.</p>
  98. <p>the classes <a class="el" href="class_arduino_in_stream.html" title="Input stream for Arduino Stream objects. ">ArduinoInStream</a> and <a class="el" href="class_arduino_out_stream.html" title="Output stream for Arduino Print objects. ">ArduinoOutStream</a> provide iostream functions for Serial, LiquidCrystal, and other devices.</p>
  99. <p>A number of example are provided in the SdFat/examples folder. These were developed to test SdFat and illustrate its use.</p>
  100. <h1><a class="anchor" id="Install"></a>
  101. Installation</h1>
  102. <p>You must manually install <a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a> by copying the <a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a> folder from the download package to the Arduino libraries folder in your sketch folder.</p>
  103. <p>See the Manual installation section of this guide.</p>
  104. <p><a href="http://arduino.cc/en/Guide/Libraries">http://arduino.cc/en/Guide/Libraries</a></p>
  105. <h1><a class="anchor" id="SDconfig"></a>
  106. SdFat Configuration</h1>
  107. <p>Several configuration options may be changed by editing the <a class="el" href="_sd_fat_config_8h.html" title="configuration definitions ">SdFatConfig.h</a> file in the SdFat folder.</p>
  108. <p>Set USE_LONG_FILE_NAMES nonzero to enable Long File Names. By default, Long File Names are enabled. For the leanest fastest library disable Long File Names. Long File names require extra flash but no extra RAM. Opening Long File Names can be slower than opening Short File Names. Data read and write performance is not changed by the type of File Name.</p>
  109. <p>Set SD_SPI_CONFIGURATION to enable various SPI options. The <a class="el" href="class_sd_fat_soft_spi.html" title="SdFat class using software SPI. ">SdFatSoftSpi</a> and <a class="el" href="class_sd_fat_lib_spi.html" title="SdFat class using the standard Arduino SPI library. ">SdFatLibSpi</a> classes can be enabled. <a class="el" href="class_sd_fat_lib_spi.html" title="SdFat class using the standard Arduino SPI library. ">SdFatLibSpi</a> uses the standard Arduino SPI library and <a class="el" href="class_sd_fat_soft_spi.html" title="SdFat class using software SPI. ">SdFatSoftSpi</a> uses software SPI.</p>
  110. <p>To enable SD card CRC checking set USE_SD_CRC nonzero.</p>
  111. <p>Set FAT12_SUPPORT nonzero to enable use of FAT12 volumes. FAT12 has not been well tested and requires additional flash.</p>
  112. <p>Set ENABLE_SPI_TRANSACTIONS nonzero to enable the SPI transaction feature of the standard Arduino SPI library. You must include SPI.h in your programs when ENABLE_SPI_TRANSACTIONS is nonzero.</p>
  113. <h1><a class="anchor" id="SDPath"></a>
  114. Paths and Working Directories</h1>
  115. <p>Relative paths in <a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a> are resolved in a manner similar to Windows.</p>
  116. <p>Each instance of <a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a> has a current directory. In <a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a> this directory is called the volume working directory, vwd. Initially this directory is the root directory for the volume.</p>
  117. <p>The volume working directory is changed by calling SdFat::chdir(path).</p>
  118. <p>The call sd.chdir("/2014") will change the volume working directory for sd to "/2014", assuming "/2014" exists.</p>
  119. <p>Relative paths for <a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a> member functions are resolved by starting at the volume working directory.</p>
  120. <p>For example, the call sd.mkdir("April") will create the directory "/2014/April" assuming the volume working directory is "/2014".</p>
  121. <p><a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a> has a current working directory, cwd, that is used to resolve paths for file.open() calls.</p>
  122. <p>For a single SD card the current working directory is always the volume working directory for that card.</p>
  123. <p>For multiple SD cards the current working directory is set to the volume working directory of a card by calling the <a class="el" href="class_fat_file_system.html#af24917d6e00c8766dab168eb834047ec">SdFat::chvol()</a> member function. The chvol() call is like the Windows &lt;drive letter&gt;: command.</p>
  124. <p>The call sd2.chvol() will set the current working directory to the volume working directory for sd2.</p>
  125. <p>If the volume working directory for sd2 is "/music" the call</p>
  126. <p>file.open("BigBand.wav", O_READ);</p>
  127. <p>will then open "/music/BigBand.wav" on sd2.</p>
  128. <p>The following functions are used to change or get current directories. See the html documentation for more information. </p><div class="fragment"><div class="line"><span class="keywordtype">bool</span> <a class="code" href="class_fat_file_system.html#a5667915e63187a43a71dfada63800865">SdFat::chdir</a>(<span class="keywordtype">bool</span> set_cwd = <span class="keyword">false</span>);</div>
  129. <div class="line"><span class="keywordtype">bool</span> <a class="code" href="class_fat_file_system.html#a5667915e63187a43a71dfada63800865">SdFat::chdir</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* path, <span class="keywordtype">bool</span> set_cwd = <span class="keyword">false</span>);</div>
  130. <div class="line"><span class="keywordtype">void</span> <a class="code" href="class_fat_file_system.html#af24917d6e00c8766dab168eb834047ec">SdFat::chvol</a>();</div>
  131. <div class="line"><a class="code" href="class_sd_base_file.html">SdBaseFile</a>* <a class="code" href="class_fat_file_system.html#acf257d02b7166683bda2abc5058004bf">SdFat::vwd</a>();</div>
  132. <div class="line"><span class="keyword">static</span> <a class="code" href="class_sd_base_file.html">SdBaseFile</a>* <a class="code" href="class_fat_file.html#a3b68e603ad8e47bad915f0547e580adb">SdBaseFile::cwd</a>();</div>
  133. </div><!-- fragment --><h1><a class="anchor" id="SDcard"></a>
  134. SD\SDHC Cards</h1>
  135. <p>Arduinos access SD cards using the cards SPI protocol. PCs, Macs, and most consumer devices use the 4-bit parallel SD protocol. A card that functions well on A PC or Mac may not work well on the Arduino.</p>
  136. <p>Most cards have good SPI read performance but cards vary widely in SPI write performance. Write performance is limited by how efficiently the card manages internal erase/remapping operations. The Arduino cannot optimize writes to reduce erase operations because of its limit RAM.</p>
  137. <p>SanDisk cards generally have good write performance. They seem to have more internal RAM buffering than other cards and therefore can limit the number of flash erase operations that the Arduino forces due to its limited RAM.</p>
  138. <h1><a class="anchor" id="Hardware"></a>
  139. Hardware Configuration</h1>
  140. <p>SdFat was developed using an <a href="http://www.adafruit.com/">Adafruit Industries</a> Data Logging Shield.</p>
  141. <p>The hardware interface to the SD card should not use a resistor based level shifter. SdFat sets the SPI bus frequency to 8 MHz which results in signal rise times that are too slow for the edge detectors in many newer SD card controllers when resistor voltage dividers are used.</p>
  142. <p>The 5 to 3.3 V level shifter for 5 V Arduinos should be IC based like the 74HC4050N based circuit shown in the file SdLevel.png. The Adafruit Wave Shield uses a 74AHC125N. Gravitech sells SD and MicroSD Card Adapters based on the 74LCX245.</p>
  143. <p>If you are using a resistor based level shifter and are having problems try setting the SPI bus frequency to 4 MHz. This can be done by using card.init(SPI_HALF_SPEED) to initialize the SD card.</p>
  144. <p>A feature to use software SPI is available. Software SPI is slower than hardware SPI but allows any digital pins to be used. See <a class="el" href="_sd_fat_config_8h.html" title="configuration definitions ">SdFatConfig.h</a> for software SPI definitions.</p>
  145. <h1><a class="anchor" id="comment"></a>
  146. Bugs and Comments</h1>
  147. <p>If you wish to report bugs or have comments, send email to <a href="#" onclick="location.href='mai'+'lto:'+'fat'+'16'+'lib'+'@s'+'bcg'+'lo'+'bal'+'.n'+'et'; return false;">fat16<span style="display: none;">.nosp@m.</span>lib@<span style="display: none;">.nosp@m.</span>sbcgl<span style="display: none;">.nosp@m.</span>obal<span style="display: none;">.nosp@m.</span>.net</a>. If possible, include a simple program that illustrates the bug or problem.</p>
  148. <h1><a class="anchor" id="Trouble"></a>
  149. Troubleshooting</h1>
  150. <p>The two example programs QuickStart, and SdInfo are useful for troubleshooting.</p>
  151. <p>A message like this from SdInfo with erorCode 0X1 indicates the SD card is not seen by <a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a>. This is often caused by a wiring error and reformatting the card will not solve the problem. </p><pre>
  152. cardBegin failed
  153. SD errorCode: 0X1
  154. SD errorData: 0XFF
  155. </pre><p> Here is a similar message from QuickStart: </p><pre>
  156. SD initialization failed.
  157. Do not reformat the card!
  158. Is the card correctly inserted?
  159. Is chipSelect set to the correct value?
  160. Does another SPI device need to be disabled?
  161. Is there a wiring/soldering problem?</pre><pre>errorCode: 0x1, errorData: 0xff
  162. </pre><p> Here is a message from QuickStart that indicates a formatting problem: </p><pre>
  163. Card successfully initialized.
  164. Can't find a valid FAT16/FAT32 partition.
  165. Try reformatting the card. For best results use
  166. the SdFormatter program in SdFat/examples or download
  167. and use SDFormatter from www.sdcard.org/downloads.
  168. </pre><p>The best source of recent information and help is the Arduino forum.</p>
  169. <p><a href="http://arduino.cc/forum/">http://arduino.cc/forum/</a></p>
  170. <p>Also search the Adafruit forum.</p>
  171. <p><a href="http://forums.adafruit.com/">http://forums.adafruit.com/</a></p>
  172. <p>If you are using a Teensy try.</p>
  173. <p><a href="http://forum.pjrc.com/forum.php">http://forum.pjrc.com/forum.php</a></p>
  174. <h1><a class="anchor" id="SdFatClass"></a>
  175. SdFat Usage</h1>
  176. <p><a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a> supports Long <a class="el" href="class_file.html" title="Arduino SD.h style File API. ">File</a> Names. Long names in <a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a> are limited to 7-bit ASCII characters in the range 0X20 - 0XFE The following are reserved characters: </p><ul>
  177. <li>
  178. &lt; (less than) </li>
  179. <li>
  180. &gt; (greater than) </li>
  181. <li>
  182. : (colon) </li>
  183. <li>
  184. " (double quote) </li>
  185. <li>
  186. / (forward slash) </li>
  187. <li>
  188. \ (backslash) </li>
  189. <li>
  190. | (vertical bar or pipe) </li>
  191. <li>
  192. ? (question mark) </li>
  193. <li>
  194. * (asterisk) </li>
  195. </ul>
  196. <p>SdFat uses a slightly restricted form of short names. Short names are limited to 8 characters followed by an optional period (.) and extension of up to 3 characters. The characters may be any combination of letters and digits. The following special characters are also allowed:</p>
  197. <p>$ % ' - _ @ ~ ` ! ( ) { } ^ # &amp;</p>
  198. <p>Short names are always converted to upper case and their original case value is lost. Files that have a base-name where all characters have the same case and an extension where all characters have the same case will display properly. Examples this type name are UPPER.low, lower.TXT, UPPER.TXT, and lower.txt.</p>
  199. <p>An application which writes to a file using print(), println() or write() must close the file or call sync() at the appropriate time to force data and directory information to be written to the SD Card.</p>
  200. <p>Applications must use care calling sync() sync() since 2048 bytes of I/O is required to update file and directory information. This includes writing the current data block, reading the block that contains the directory entry for update, writing the directory block back and reading back the current data block.</p>
  201. <p>It is possible to open a file with two or more instances of a file object. A file may be corrupted if data is written to the file by more than one instance of a file object.</p>
  202. <h1><a class="anchor" id="HowTo"></a>
  203. How to format SD Cards as FAT Volumes</h1>
  204. <p>The best way to restore an SD card's format on a PC or Mac is to use SDFormatter which can be downloaded from:</p>
  205. <p><a href="http://www.sdcard.org/downloads">http://www.sdcard.org/downloads</a></p>
  206. <p>A formatter program, SdFormatter.ino, is included in the SdFat/examples/SdFormatter directory. This program attempts to emulate SD Association's SDFormatter.</p>
  207. <p>SDFormatter aligns flash erase boundaries with file system structures which reduces write latency and file system overhead.</p>
  208. <p>The PC/Mac SDFormatter does not have an option for FAT type so it may format very small cards as FAT12. Use the <a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a> formatter to force FAT16 formatting of small cards.</p>
  209. <p>Do not format the SD card with an OS utility, OS utilities do not format SD cards in conformance with the SD standard.</p>
  210. <p>You should use a freshly formatted SD card for best performance. FAT file systems become slower if many files have been created and deleted. This is because the directory entry for a deleted file is marked as deleted, but is not deleted. When a new file is created, these entries must be scanned before creating the file. Also files can become fragmented which causes reads and writes to be slower.</p>
  211. <h1><a class="anchor" id="ExampleFilder"></a>
  212. Examples</h1>
  213. <p>A number of examples are provided in the SdFat/examples folder. See the html documentation for a list.</p>
  214. <p>To access these examples from the Arduino development environment go to: File -&gt; Examples -&gt; SdFat -&gt; &lt;program Name&gt;</p>
  215. <p>Compile, upload to your Arduino and click on Serial Monitor to run the example.</p>
  216. <p>Here is a list:</p>
  217. <p>AnalogBinLogger - Fast AVR ADC logger - see the AnalogBinLoggerExtras folder.</p>
  218. <p>bench - A read/write benchmark.</p>
  219. <p>dataLogger - A simple modifiable data logger.</p>
  220. <p>DirectoryFunctions - Demo of chdir(), ls(), mkdir(), and rmdir().</p>
  221. <p>fgets - Demo of the fgets read line/string function.</p>
  222. <p>formating - Print a table with various formatting options.</p>
  223. <p>getline - Example of getline from section 27.7.1.3 of the C++ standard.</p>
  224. <p>LongFileName - Example use of openNext, printName, and open by index.</p>
  225. <p>LowLatencyLogger - A modifiable data logger for higher data rates.</p>
  226. <p>OpenNext - Open all files in the root dir and print their filename.</p>
  227. <p>PrintBenchmark - A simple benchmark for printing to a text file.</p>
  228. <p>QuickStart - A program to quickly test your SD card and SD shield/module.</p>
  229. <p>RawWrite - A test of raw write functions for contiguous files.</p>
  230. <p>readCSV - Read a comma-separated value file using iostream extractors.</p>
  231. <p>ReadCsvArray - Read a two dimensional array from a CSV file.</p>
  232. <p>ReadCsvFields - Function to read a CSV text file one field at a time.</p>
  233. <p>ReadWriteSdFat - <a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a> version of Arduino SD ReadWrite example.</p>
  234. <p>rename - A demo of SdFat::rename(old, new) and SdFile::rename(dirFile, newPath).</p>
  235. <p>SdFormatter - This program will format an SD or SDHC card.</p>
  236. <p>SoftwareSpi - Simple demonstration of the <a class="el" href="class_sd_fat_soft_spi.html" title="SdFat class using software SPI. ">SdFatSoftSpi</a> template class.</p>
  237. <p>SdInfo - Initialize an SD card and analyze its structure for trouble shooting.</p>
  238. <p>StdioBench - Demo and test of stdio style stream.</p>
  239. <p>StreamParseInt - Demo of the SD.h API and the <a class="el" href="class_file.html" title="Arduino SD.h style File API. ">File</a> class parseInt() function.</p>
  240. <p>ThreeCards - Demonstrate simultaneous use of <a class="el" href="class_sd_fat.html" title="Main file system class for SdFat library. ">SdFat</a>, <a class="el" href="class_sd_fat_lib_spi.html" title="SdFat class using the standard Arduino SPI library. ">SdFatLibSpi</a>, <a class="el" href="class_sd_fat_soft_spi.html" title="SdFat class using software SPI. ">SdFatSoftSpi</a>.</p>
  241. <p>Timestamp - Sets file create, modify, and access timestamps.</p>
  242. <p>TwoCards - Example using two SD cards.</p>
  243. <p>VolumeFreeSpace - Demonstrate the freeClusterCount() call.</p>
  244. <p>wipe - Example to wipe all data from an already formatted SD. </p>
  245. </div></div><!-- contents -->
  246. <!-- start footer part -->
  247. <hr class="footer"/><address class="footer"><small>
  248. Generated on Fri Feb 12 2016 13:43:49 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  249. <img class="footer" src="doxygen.png" alt="doxygen"/>
  250. </a> 1.8.10
  251. </small></address>
  252. </body>
  253. </html>