00index_e.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <meta http-equiv="Content-Style-Type" content="text/css">
  6. <meta http-equiv="cache-control" content="no-cache">
  7. <meta name="description" content="Open source FAT file system module for embedded projects">
  8. <link rel="alternate" hreflang="ja" title="Japanese version" href="00index_j.html">
  9. <link rel="stylesheet" href="css_e.css" type="text/css" media="screen" title="ELM Default">
  10. <title>FatFs - Generic FAT File System Module</title>
  11. </head>
  12. <body>
  13. <h1>FatFs - Generic FAT File System Module</h1>
  14. <hr>
  15. <div class="abst">
  16. <img src="img/layers.png" class="rset" width="245" height="255" alt="layer">
  17. <p>FatFs is a generic FAT file system module for small embedded systems. The FatFs is written in compliance with ANSI C and completely separated from the disk I/O layer. Therefore it is independent of hardware architecture. It can be incorporated into small microcontrollers with limited resource, such as AVR, 8051, PIC, ARM, Z80, 68k and etc. Also Petit FatFs module for tiny microcontrollers is available <a href="http://elm-chan.org/fsw/ff/00index_p.html">here</a>.</p>
  18. <h4>Features</h4>
  19. <ul>
  20. <li>Windows compatible FAT file system.</li>
  21. <li>Platform independent. Easy to port.</li>
  22. <li>Very small footprint for code and work area.</li>
  23. <li>Various configuration options:
  24. <ul>
  25. <li>Multiple volumes (physical drives and partitions).</li>
  26. <li>Multiple ANSI/OEM code pages including DBCS.</li>
  27. <li>Long file name support in ANSI/OEM or Unicode.</li>
  28. <li>RTOS support.</li>
  29. <li>Multiple sector size support.</li>
  30. <li>Read-only, minimized API, I/O buffer and etc...</li>
  31. </ul>
  32. </li>
  33. </ul>
  34. </div>
  35. <div class="para">
  36. <h3>Application Interface</h3>
  37. <p>FatFs module provides following functions to the applications. In other words, this list describes what FatFs can do to access the FAT volumes.</p>
  38. <ul>
  39. <li><a href="en/mount.html">f_mount</a> - Register/Unregister a work area</li>
  40. <li><a href="en/open.html">f_open</a> - Open/Create a file</li>
  41. <li><a href="en/close.html">f_close</a> - Close an open file</li>
  42. <li><a href="en/read.html">f_read</a> - Read file</li>
  43. <li><a href="en/write.html">f_write</a> - Write file</li>
  44. <li><a href="en/lseek.html">f_lseek</a> - Move read/write pointer, Expand file size</li>
  45. <li><a href="en/truncate.html">f_truncate</a> - Truncate file size</li>
  46. <li><a href="en/sync.html">f_sync</a> - Flush cached data</li>
  47. <li><a href="en/forward.html">f_forward</a> - Forward file data to the stream</li>
  48. <li><a href="en/stat.html">f_stat</a> - Check existance of a file or sub-directory</li>
  49. <li><a href="en/opendir.html">f_opendir</a> - Open a directory</li>
  50. <li><a href="en/closedir.html">f_closedir</a> - Close an open directory</li>
  51. <li><a href="en/readdir.html">f_readdir</a> - Read a directory item</li>
  52. <li><a href="en/mkdir.html">f_mkdir</a> - Create a sub-directory</li>
  53. <li><a href="en/unlink.html">f_unlink</a> - Remove a file or sub-directory</li>
  54. <li><a href="en/chmod.html">f_chmod</a> - Change attribute</li>
  55. <li><a href="en/utime.html">f_utime</a> - Change timestamp</li>
  56. <li><a href="en/rename.html">f_rename</a> - Rename/Move a file or sub-directory</li>
  57. <li><a href="en/chdir.html">f_chdir</a> - Change current directory</li>
  58. <li><a href="en/chdrive.html">f_chdrive</a> - Change current drive</li>
  59. <li><a href="en/getcwd.html">f_getcwd</a> - Retrieve the current directory</li>
  60. <li><a href="en/getfree.html">f_getfree</a> - Get free space on the volume</li>
  61. <li><a href="en/getlabel.html">f_getlabel</a> - Get volume label</li>
  62. <li><a href="en/setlabel.html">f_setlabel</a> - Set volume label</li>
  63. <li><a href="en/mkfs.html">f_mkfs</a> - Create a file system on the drive</li>
  64. <li><a href="en/fdisk.html">f_fdisk</a> - Divide a physical drive</li>
  65. <li><a href="en/gets.html">f_gets</a> - Read a string</li>
  66. <li><a href="en/putc.html">f_putc</a> - Write a character</li>
  67. <li><a href="en/puts.html">f_puts</a> - Write a string</li>
  68. <li><a href="en/printf.html">f_printf</a> - Write a formatted string</li>
  69. <li><a href="en/tell.html">f_tell</a> - Get current read/write pointer</li>
  70. <li><a href="en/eof.html">f_eof</a> - Test for end-of-file on a file</li>
  71. <li><a href="en/size.html">f_size</a> - Get size of a file</li>
  72. <li><a href="en/error.html">f_error</a> - Test for an error on a file</li>
  73. </ul>
  74. </div>
  75. <div class="para">
  76. <h3>Device Control Interface</h3>
  77. <p>Since the FatFs module is a file system driver, it is completely separated from physical devices, such as memory card, harddisk and any type of storage devices. The low level device control module is not a part of FatFs module. FatFs accesses the storage device via a simple interface described below. These functions are provided by implementer. Sample implementations for some platforms are also available in the downloads.</p>
  78. <ul>
  79. <li><a href="en/dstat.html">disk_status</a> - Get device status</li>
  80. <li><a href="en/dinit.html">disk_initialize</a> - Initialize device</li>
  81. <li><a href="en/dread.html">disk_read</a> - Read sector(s)</li>
  82. <li><a href="en/dwrite.html">disk_write</a> - Write sector(s)</li>
  83. <li><a href="en/dioctl.html">disk_ioctl</a> - Control device dependent features</li>
  84. <li><a href="en/fattime.html">get_fattime</a> - Get current time</li>
  85. </ul>
  86. </div>
  87. <div class="para">
  88. <h3>Resources</h3>
  89. <p>The FatFs module is a free software opened for education, research and development. You can use, modify and/or redistribute it for personal projects or commercial products without any restriction under your responsibility. For further information, refer to the application note.</p>
  90. <ul>
  91. <li><a href="http://elm-chan.org/fsw/ff/bd/"><em>FatFs User Forum</em></a>↗</li>
  92. <li>Read first: <a href="en/appnote.html">FatFs module application note</a></li>
  93. <li>Latest Information: <a href="http://elm-chan.org/fsw/ff/00index_e.html">http://elm-chan.org/fsw/ff/00index_e.html</a>↗</li>
  94. <li><a href="http://nemuisan.blog.bai.ne.jp/">Nemuisan's Blog</a>↗ (Well written implementations for STM32F/SDIO and LPC2300/MCI)</li>
  95. <li><a href="http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/arm_memcards/index.html">ARM-Projects by Martin THOMAS</a>↗ (Examples for LPC2000, AT91SAM and STM32)</li>
  96. <li><a href="http://www.microsoft.com/whdc/system/platform/firmware/fatgen.mspx">FAT32 Specification by Microsoft</a>↗ (The reference document on FAT file system)</li>
  97. <li><a href="http://elm-chan.org/docs/fat.html">The basics of FAT file system [ja]</a>↗</li>
  98. <li><a href="http://elm-chan.org/docs/mmc/mmc_e.html">How to Use MMC/SDC</a>↗</li>
  99. <li><a href="img/rwtest.png">Benchmark 1</a> (ATmega64/9.2MHz with MMC via SPI, HDD/CFC via GPIO)</li>
  100. <li><a href="img/rwtest2.png">Benchmark 2</a> (LPC2368/72MHz with MMC via MCI)</li>
  101. <li><a href="http://members.jcom.home.ne.jp/felm/fd.mp4">Demo movie of an application</a> (this project is in ffsample.zip/lpc23xx)</li>
  102. </ul>
  103. </div>
  104. <hr>
  105. <p class="foot"><a href="../../fsw_e.html">Return</a></p>
  106. </body>
  107. </html>