00index_e.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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=iso-8859-1">
  5. <meta http-equiv="Content-Style-Type" content="text/css">
  6. <link rel="alternate" hreflang="ja" title="Japanese version" href="00index_j.html">
  7. <link rel="stylesheet" href="css_e.css" type="text/css" media="screen" title="ELM Default">
  8. <title>ELM - FAT File System Module</title>
  9. </head>
  10. <body>
  11. <h1>FAT File System Module</h1>
  12. <hr>
  13. <div class="abst">
  14. <img src="img/layers.png" class="rset" width="245" height="255" alt="layer">
  15. <p>FatFs is a generic file system module to implement the FAT file system to small embedded systems. The FatFs is written in compliance with ANSI C, therefore it is independent of hardware architecture. It can be incorporated into cheap microcontrollers, such as 8051, PIC, AVR, SH, Z80, H8, ARM and etc..., without any change.</p>
  16. <h4>Features of FatFs</h4>
  17. <ol>
  18. <li>Separated buffer for FAT structure and each file, suitable for fast multiple file access.</li>
  19. <li>Supports multiple drives and partitions.</li>
  20. <li>Supports FAT12, FAT16 and FAT32.</li>
  21. <li>Supports 8.3 format file name. (LFN is not supported)</li>
  22. <li>Supports two partitioning rules: FDISK and Super-floppy.</li>
  23. <li>Optimized for 8/16-bit microcontrollers.</li>
  24. </ol>
  25. <h4>Features of Tiny-FatFs (different to FatFs)</h4>
  26. <ol>
  27. <li>Very low memory consumption, suitable for small memory system. (1KB RAM)</li>
  28. <li>Supports only single drive.</li>
  29. </ol>
  30. </div>
  31. <div class="para">
  32. <h3>Application Interface</h3>
  33. <p>FatFs/Tiny-FatFs module provides following functions.</p>
  34. <ul>
  35. <li><a href="en/mount.html">f_mount</a> - Register or Unregister a Work Area</li>
  36. <li><a href="en/open.html">f_open</a> - Open or Create a File</li>
  37. <li><a href="en/close.html">f_close</a> - Close a File</li>
  38. <li><a href="en/read.html">f_read</a> - Read File</li>
  39. <li><a href="en/write.html">f_write</a> - Write File</li>
  40. <li><a href="en/lseek.html">f_lseek</a> - Move File R/W Pointer</li>
  41. <li><a href="en/truncate.html">f_truncate</a> - Truncate File</li>
  42. <li><a href="en/sync.html">f_sync</a> - Flush Cached Data</li>
  43. <li><a href="en/opendir.html">f_opendir</a> - Open a Directory</li>
  44. <li><a href="en/readdir.html">f_readdir</a> - Read a Directory Item</li>
  45. <li><a href="en/getfree.html">f_getfree</a> - Get Free Clusters</li>
  46. <li><a href="en/stat.html">f_stat</a> - Get File Status</li>
  47. <li><a href="en/mkdir.html">f_mkdir</a> - Create a Directory</li>
  48. <li><a href="en/unlink.html">f_unlink</a> - Remove a File or Directory</li>
  49. <li><a href="en/chmod.html">f_chmod</a> - Change Attribute</li>
  50. <li><a href="en/utime.html">f_utime</a> - Change Timestamp</li>
  51. <li><a href="en/rename.html">f_rename</a> - Rename/Move a File or Directory</li>
  52. <li><a href="en/mkfs.html">f_mkfs</a> - Create a File System on the Drive</li>
  53. <li><a href="en/forward.html">f_forward</a> - Forward file data to the stream directly</li>
  54. <li><a href="en/gets.html">fgets</a> - Read a string</li>
  55. <li><a href="en/putc.html">fputc</a> - Write a character</li>
  56. <li><a href="en/puts.html">fputs</a> - Write a string</li>
  57. <li><a href="en/printf.html">fprintf</a> - Write a formatted string</li>
  58. </ul>
  59. </div>
  60. <div class="para">
  61. <h3>Disk I/O Interface</h3>
  62. <p>Since the FatFs/Tiny-FatFs module is completely separated from disk I/O layer, it requires following functions to lower layer to read/write physical disk and to get current time. The low level disk I/O module with this interface must be provided by user. The sample drivers are also available in the next resources.</p>
  63. <ul>
  64. <li><a href="en/dinit.html">disk_initialize</a> - Initialize disk drive</li>
  65. <li><a href="en/dstat.html">disk_status</a> - Get disk status</li>
  66. <li><a href="en/dread.html">disk_read</a> - Read sector(s)</li>
  67. <li><a href="en/dwrite.html">disk_write</a> - Write sector(s)</li>
  68. <li><a href="en/dioctl.html">disk_ioctl</a> - Control device dependent features</li>
  69. <li><a href="en/fattime.html">get_fattime</a> - Get current time</li>
  70. </ul>
  71. </div>
  72. <div class="para">
  73. <h3>Resources</h3>
  74. <p>The FatFs/Tiny-FatFs module is a free software and is opened for education, research and development. You can use, modify and/or republish it for personal, non-profit or commercial use without any restriction under your responsibility.</p>
  75. <ul>
  76. <li><a href="en/appnote.html">FatFs module application note</a></li>
  77. <li><a href="img/rwtest.png">Benchmark</a> (Test Board: ATmega64/9.2MHz with <a href="img/rw_mmc.jpeg">MMC</a>/<a href="img/rw_ata.jpeg">HDD</a>/<a href="img/rw_cfc.jpeg">CFC</a>)</li>
  78. <li><a href="http://www.microsoft.com/whdc/system/platform/firmware/fatgen.mspx">FAT32 Specification</a> (Microsoft)</li>
  79. <li><a href="http://elm-chan.org/docs/mmc/mmc_e.html">How to Use MMC/SDC</a></li>
  80. </ul>
  81. </div>
  82. </body>
  83. </html>