diff options
author | Leo C | 2016-09-08 19:15:27 +0200 |
---|---|---|
committer | Leo C | 2016-09-08 19:15:27 +0200 |
commit | 70702af1370e44e32fb2c3c507e4759a187b4fe5 (patch) | |
tree | 5b75a408efadf5fccd8d5d481e91cce73a86897b /fatfs/doc | |
parent | 7b78a5a287827db9e9b16286f3604aef69b37c5c (diff) | |
download | z180-stamp-70702af1370e44e32fb2c3c507e4759a187b4fe5.zip |
Import fatfs R0.12bfatfs-0.12b
Diffstat (limited to 'fatfs/doc')
132 files changed, 2193 insertions, 1049 deletions
diff --git a/fatfs/doc/00index_e.html b/fatfs/doc/00index_e.html index 9dc9d8e..905b7b8 100644 --- a/fatfs/doc/00index_e.html +++ b/fatfs/doc/00index_e.html @@ -18,22 +18,23 @@ <hr>
<div class="abst">
-<img src="img/layers.png" class="rset" width="245" height="255" alt="layer">
-<p>FatFs is a generic FAT file system module for small embedded systems. The FatFs module is written in compliance with ANSI C (C89) and completely separated from the disk I/O layer. Therefore it is independent of the platform. It can be incorporated into small microcontrollers with limited resource, such as 8051, PIC, AVR, ARM, Z80, 78K 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>
+<img src="res/layers.png" class="rset" width="245" height="255" alt="layer">
+<p>FatFs is a generic FAT/exFAT file system module for small embedded systems. The FatFs module is written in compliance with ANSI C (C89) and completely separated from the disk I/O layer. Therefore it is independent of the platform. It can be incorporated into small microcontrollers with limited resource, such as 8051, PIC, AVR, ARM, Z80, 78K 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>
<h4>Features</h4>
<ul>
- <li>Windows compatible FAT file system.</li>
+ <li>Windows compatible FAT/exFAT file system.</li>
<li>Platform independent. Easy to port.</li>
- <li>Very small footprint for code and work area.</li>
- <li>Various configuration options:
+ <li>Very small footprint for program code and work area.</li>
+ <li>Various <a href="en/config.html">configuration options</a> to support for:
<ul>
<li>Multiple volumes (physical drives and partitions).</li>
<li>Multiple ANSI/OEM code pages including DBCS.</li>
- <li>Long file name support in ANSI/OEM or Unicode.</li>
- <li>RTOS support for multi-task operation.</li>
- <li>Multiple sector size support upto 4KB.</li>
- <li>Read-only, minimized API, I/O buffer and etc...</li>
+ <li>Long file name in ANSI/OEM or Unicode.</li>
+ <li>exFAT file system.</li>
+ <li>RTOS envilonment.</li>
+ <li>Fixed or variable sector size.</li>
+ <li>Read-only, optional API, I/O buffer and etc...</li>
</ul>
</li>
</ul>
@@ -42,55 +43,75 @@ <div class="para">
<h3>Application Interface</h3>
-<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>
+<img src="res/layers1.png" class="rset" width="245" height="220" alt="layer">
<ul>
- <li><a href="en/mount.html">f_mount</a> - Register/Unregister a work area</li>
- <li><a href="en/open.html">f_open</a> - Open/Create a file</li>
- <li><a href="en/close.html">f_close</a> - Close an open file</li>
- <li><a href="en/read.html">f_read</a> - Read file</li>
- <li><a href="en/write.html">f_write</a> - Write file</li>
- <li><a href="en/lseek.html">f_lseek</a> - Move read/write pointer, Expand file size</li>
- <li><a href="en/truncate.html">f_truncate</a> - Truncate file size</li>
- <li><a href="en/sync.html">f_sync</a> - Flush cached data</li>
- <li><a href="en/forward.html">f_forward</a> - Forward file data to the stream</li>
- <li><a href="en/stat.html">f_stat</a> - Check existance of a file or sub-directory</li>
- <li><a href="en/opendir.html">f_opendir</a> - Open a directory</li>
- <li><a href="en/closedir.html">f_closedir</a> - Close an open directory</li>
- <li><a href="en/readdir.html">f_readdir</a> - Read a directory item</li>
- <li><a href="en/mkdir.html">f_mkdir</a> - Create a sub-directory</li>
- <li><a href="en/unlink.html">f_unlink</a> - Remove a file or sub-directory</li>
- <li><a href="en/chmod.html">f_chmod</a> - Change attribute</li>
- <li><a href="en/utime.html">f_utime</a> - Change timestamp</li>
- <li><a href="en/rename.html">f_rename</a> - Rename/Move a file or sub-directory</li>
- <li><a href="en/chdir.html">f_chdir</a> - Change current directory</li>
- <li><a href="en/chdrive.html">f_chdrive</a> - Change current drive</li>
- <li><a href="en/getcwd.html">f_getcwd</a> - Retrieve the current directory</li>
- <li><a href="en/getfree.html">f_getfree</a> - Get free space on the volume</li>
- <li><a href="en/getlabel.html">f_getlabel</a> - Get volume label</li>
- <li><a href="en/setlabel.html">f_setlabel</a> - Set volume label</li>
- <li><a href="en/mkfs.html">f_mkfs</a> - Create a file system on the drive</li>
- <li><a href="en/fdisk.html">f_fdisk</a> - Divide a physical drive</li>
- <li><a href="en/gets.html">f_gets</a> - Read a string</li>
- <li><a href="en/putc.html">f_putc</a> - Write a character</li>
- <li><a href="en/puts.html">f_puts</a> - Write a string</li>
- <li><a href="en/printf.html">f_printf</a> - Write a formatted string</li>
- <li><a href="en/tell.html">f_tell</a> - Get current read/write pointer</li>
- <li><a href="en/eof.html">f_eof</a> - Test for end-of-file on a file</li>
- <li><a href="en/size.html">f_size</a> - Get size of a file</li>
- <li><a href="en/error.html">f_error</a> - Test for an error on a file</li>
+ <li>File Access
+ <ul>
+ <li><a href="en/open.html">f_open</a> - Open/Create a file</li>
+ <li><a href="en/close.html">f_close</a> - Close an open file</li>
+ <li><a href="en/read.html">f_read</a> - Read data</li>
+ <li><a href="en/write.html">f_write</a> - Write data</li>
+ <li><a href="en/lseek.html">f_lseek</a> - Move read/write pointer, Expand size</li>
+ <li><a href="en/truncate.html">f_truncate</a> - Truncate size</li>
+ <li><a href="en/sync.html">f_sync</a> - Flush cached data</li>
+ <li><a href="en/forward.html">f_forward</a> - Forward data to the stream</li>
+ <li><a href="en/expand.html">f_expand</a> - Allocate a contiguous block to the file</li>
+ <li><a href="en/gets.html">f_gets</a> - Read a string</li>
+ <li><a href="en/putc.html">f_putc</a> - Write a character</li>
+ <li><a href="en/puts.html">f_puts</a> - Write a string</li>
+ <li><a href="en/printf.html">f_printf</a> - Write a formatted string</li>
+ <li><a href="en/tell.html">f_tell</a> - Get current read/write pointer</li>
+ <li><a href="en/eof.html">f_eof</a> - Test for end-of-file</li>
+ <li><a href="en/size.html">f_size</a> - Get size</li>
+ <li><a href="en/error.html">f_error</a> - Test for an error</li>
+ </ul>
+ </li>
+ <li>Directory Access
+ <ul>
+ <li><a href="en/opendir.html">f_opendir</a> - Open a directory</li>
+ <li><a href="en/closedir.html">f_closedir</a> - Close an open directory</li>
+ <li><a href="en/readdir.html">f_readdir</a> - Read an directory item</li>
+ <li><a href="en/findfirst.html">f_findfirst</a> - Open a directory and read first item matched</li>
+ <li><a href="en/findnext.html">f_findnext</a> - Read a next item matched</li>
+ </ul>
+ </li>
+ <li>File/Directory Management
+ <ul>
+ <li><a href="en/stat.html">f_stat</a> - Check existance of a file or sub-directory</li>
+ <li><a href="en/unlink.html">f_unlink</a> - Remove a file or sub-directory</li>
+ <li><a href="en/rename.html">f_rename</a> - Rename or move a file or sub-directory</li>
+ <li><a href="en/chmod.html">f_chmod</a> - Change attribute of a file or sub-directory</li>
+ <li><a href="en/utime.html">f_utime</a> - Change timestamp of a file or sub-directory</li>
+ <li><a href="en/mkdir.html">f_mkdir</a> - Create a sub-directory</li>
+ <li><a href="en/chdir.html">f_chdir</a> - Change current directory</li>
+ <li><a href="en/chdrive.html">f_chdrive</a> - Change current drive</li>
+ <li><a href="en/getcwd.html">f_getcwd</a> - Retrieve the current directory and drive</li>
+ </ul>
+ </li>
+ <li>Volume Management
+ <ul>
+ <li><a href="en/mount.html">f_mount</a> - Register/Unregister a work area of a volume</li>
+ <li><a href="en/mkfs.html">f_mkfs</a> - Create an FAT volume on the logical drive</li>
+ <li><a href="en/fdisk.html">f_fdisk</a> - Create logical drives on the physical drive</li>
+ <li><a href="en/getfree.html">f_getfree</a> - Get total size and free size on the volume</li>
+ <li><a href="en/getlabel.html">f_getlabel</a> - Get volume label</li>
+ <li><a href="en/setlabel.html">f_setlabel</a> - Set volume label</li>
+ </ul>
+ </li>
</ul>
</div>
<div class="para">
<h3>Device Control Interface</h3>
-<p>Since the FatFs module is a file system layer, it is completely separated from physical devices, such as memory card, harddisk and any type of storage devices. FatFs accesses the storage device via a simple interface described below. The low level device control module is not a part of FatFs module. It is provided by implementer. Also sample implementations for some platforms are available in the downloads.</p>
+<img src="res/layers2.png" class="rset" width="245" height="220" alt="layer">
+<p>Since the FatFs module is a file system layer, it is completely separated from the physical devices, such as memory card, harddisk and any type of storage device. FatFs accesses the storage devices via a simple interface shown below. The low level device control module is <em>not a part of FatFs module</em>. It is provided by implementer. Also sample implementations for some platforms are available in the downloads.</p>
<ul>
<li><a href="en/dstat.html">disk_status</a> - Get device status</li>
<li><a href="en/dinit.html">disk_initialize</a> - Initialize device</li>
<li><a href="en/dread.html">disk_read</a> - Read sector(s)</li>
<li><a href="en/dwrite.html">disk_write</a> - Write sector(s)</li>
- <li><a href="en/dioctl.html">disk_ioctl</a> - Control device dependent features</li>
+ <li><a href="en/dioctl.html">disk_ioctl</a> - Control device dependent functions</li>
<li><a href="en/fattime.html">get_fattime</a> - Get current time</li>
</ul>
</div>
@@ -100,22 +121,21 @@ <h3>Resources</h3>
<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>
<ul>
- <li><a href="http://elm-chan.org/fsw/ff/00index_e.html"><em>FatFs Home Page</em></a>↗</li>
- <li><a href="http://elm-chan.org/fsw/ff/bd/"><em>FatFs User Forum</em></a>↗</li>
- <li>Read first: <a href="en/appnote.html">FatFs module application note</a></li>
+ <li>Read first: <a href="en/appnote.html">FatFs module application note</a> <span class="mfd">July 10, 2016</span></li>
+ <li>Community: <a href="http://elm-chan.org/fsw/ff/bd/">FatFs User Forum</a></li>
+ <li><a href="https://msdn.microsoft.com/en-us/windows/hardware/gg463080.aspx">FAT32 Specification by Microsoft</a>↗ (The authorized document on FAT file system)</li>
+ <li><a href="http://elm-chan.org/docs/fat.html">The basics of FAT file system [ja]</a></li>
+ <li><a href="http://elm-chan.org/docs/mmc/mmc_e.html">How to Use MMC/SDC</a></li>
+ <li><a href="http://elm-chan.org/junk/fa/faff.html">Playing with FlashAir and FatFs</a></li>
<li><a href="http://stm32f4-discovery.com/2014/07/library-21-read-sd-card-fatfs-stm32f4xx-devices/">Read SD card with FatFs on STM32F4xx devices by Tilen Majerle</a>↗ (Quick and easy implementation for STM32F4-Discovery)</li>
- <li><a href="http://nemuisan.blog.bai.ne.jp/">Nemuisan's Blog</a>↗ (Well written implementations for STM32F/SDIO and LPC2300/MCI)</li>
+ <li><a href="http://nemuisan.blog.bai.ne.jp/">Nemuisan's Blog</a>↗ (Well written implementations for STM32F/SPI & SDIO and LPC4088/SDMMC)</li>
<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>
- <li><a href="http://www.microsoft.com/whdc/system/platform/firmware/fatgen.mspx">FAT32 Specification by Microsoft</a>↗ (The authorized document on FAT file system)</li>
- <li><a href="http://elm-chan.org/docs/fat.html">The basics of FAT file system [ja]</a>↗</li>
- <li><a href="http://elm-chan.org/docs/mmc/mmc_e.html">How to Use MMC/SDC</a>↗</li>
- <li><a href="img/rwtest.png">Benchmark 1</a> (ATmega64/9.2MHz with MMC via SPI, HDD/CFC via GPIO)</li>
- <li><a href="img/rwtest2.png">Benchmark 2</a> (LPC2368/72MHz with MMC via MCI)</li>
-</ul>
+ <li><a href="res/rwtest1.png">Benchmark 1</a> (ATmega1284/20MHz with MMC via USART in SPI, CFC via GPIO)</li>
+ <li><a href="res/rwtest2.png">Benchmark 2</a> (LPC2368/72MHz with MMC via MCI)</li>
</div>
<hr>
-<p class="foot"><a href="../../fsw_e.html">Return</a></p>
+<p class="foot"><a href="http://elm-chan.org/fsw/ff/00index_e.html">FatFs home page</a></p>
</body>
</html>
diff --git a/fatfs/doc/00index_j.html b/fatfs/doc/00index_j.html index b13297d..51df31d 100644 --- a/fatfs/doc/00index_j.html +++ b/fatfs/doc/00index_j.html @@ -18,20 +18,21 @@ <hr>
<div class="abst">
-<img src="img/layers.png" class="rset" width="245" height="255" alt="layer">
-<p>FatFsã¯å°è¦æ¨¡ãªçµ„ã¿è¾¼ã¿ã‚·ã‚¹ãƒ†ãƒ å‘ã‘ã®æ±Žç”¨FATファイルシステムモジュールã§ã™ã€‚ANSI C(C89)æº–æ‹ ã§ãƒãƒ¼ãƒ‰ã‚¦ã‚§ã‚¢ アーã‚テクãƒãƒ£ã«ã¯ä¾å˜ã—ãªã„ã®ã§ã€å¿…è¦ãªãƒ¯ãƒ¼ã‚¯ エリアãŒç¢ºä¿ã§ãã‚Œã°ã€8051, PIC, AVR, SH, Z80, 68k, H8, ARMãªã©å®‰ä¾¡ãªãƒžã‚¤ã‚³ãƒ³ã§ã‚‚使用å¯èƒ½ã§ã™ã€‚ã“ã®ã»ã‹ã€FatFsを極å°ãƒžã‚¤ã‚³ãƒ³å‘ã‘ã«ã‚·ãƒ¥ãƒªãƒ³ã‚¯ã—ãŸ<a href="http://elm-chan.org/fsw/ff/00index_p.html">ã·ã¡FatFs</a>↗ ã‚‚ã‚ã‚Šã¾ã™ã€‚</p>
+<img src="res/layers.png" class="rset" width="245" height="255" alt="layer">
+<p>FatFsã¯å°è¦æ¨¡ãªçµ„ã¿è¾¼ã¿ã‚·ã‚¹ãƒ†ãƒ å‘ã‘ã®æ±Žç”¨FAT/exFATファイルシステムモジュールã§ã™ã€‚ANSI C(C89)æº–æ‹ ã§ãƒãƒ¼ãƒ‰ã‚¦ã‚§ã‚¢ アーã‚テクãƒãƒ£ã«ã¯ä¾å˜ã—ãªã„ã®ã§ã€å¿…è¦ãªãƒ¯ãƒ¼ã‚¯ エリアãŒç¢ºä¿ã§ãã‚Œã°ã€8051, PIC, AVR, SH, Z80, 68k, H8, ARMãªã©å®‰ä¾¡ãªãƒžã‚¤ã‚³ãƒ³ã§ã‚‚使用å¯èƒ½ã§ã™ã€‚ã“ã®ã»ã‹ã€FatFsを極å°ãƒžã‚¤ã‚³ãƒ³å‘ã‘ã«ã‚·ãƒ¥ãƒªãƒ³ã‚¯ã—ãŸ<a href="http://elm-chan.org/fsw/ff/00index_p.html">ã·ã¡FatFs</a>ã‚‚ã‚ã‚Šã¾ã™ã€‚</p>
<h4>FatFsモジュールã®ç‰¹å¾´</h4>
<ul>
- <li>Windowsäº’æ› FATファイル システム</li>
+ <li>Windowsäº’æ› FAT/exFATファイルシステム</li>
<li>プラットフォームéžä¾å˜</li>
<li>コンパクトãªã‚³ãƒ¼ãƒ‰ã¨RAM使用é‡</li>
- <li>多ãã®æ§‹æˆã‚ªãƒ—ション:
+ <li>多ãã®<a href="ja/config.html">構æˆã‚ªãƒ—ション</a>:
<ul>
- <li>複数ã®ãƒœãƒªãƒ¥ãƒ¼ãƒ (物ç†ãƒ‰ãƒ©ã‚¤ãƒ–・区画)</li>
+ <li>ボリューム構æˆ(物ç†ãƒ‰ãƒ©ã‚¤ãƒ–数・区画)</li>
<li>DBCSã‚’å«ã‚€è¤‡æ•°ã®ANSI/OEMコード ページã®é¸æŠž</li>
<li>é•·ã„ファイルå(LFN)ã¸ã®å¯¾å¿œ</li>
- <li>マルãƒã‚¿ã‚¹ã‚¯é–¢é€£</li>
- <li>マルムセクタ サイズ</li>
+ <li>exFATファイルシステムã¸ã®å¯¾å¿œ</li>
+ <li>RTOS環境ã¸ã®å¯¾å¿œ</li>
+ <li>セクタ サイズ(固定/å¯å¤‰)</li>
<li>リード オンリー構æˆã€ä¸€éƒ¨APIã®å‰Šé™¤ã€ãƒãƒƒãƒ•ã‚¡æ§‹æˆã€ãã®ä»–…</li>
</ul>
</li>
@@ -41,49 +42,69 @@ <div class="para">
<h3>上ä½ãƒ¬ã‚¤ãƒ¤ インターフェース</h3>
-<p>FatFsモジュールã¯ã€ã‚¢ãƒ—リケーション レイヤã«å¯¾ã—ã€æ¬¡ã®ãƒ•ã‚¡ã‚¤ãƒ«æ“作関数(API)ã‚’æä¾›ã—ã¾ã™ã€‚ã¤ã¾ã‚Šã€ã“ã®ãƒªã‚¹ãƒˆã¯FatFsã«ã§ãã‚‹ã“ã¨ã‚’シンプルã«ç¤ºã—ã¦ã„ã¾ã™ã€‚</p>
+<img src="res/layers1.png" class="rset" width="245" height="220" alt="layer">
<ul>
- <li><a href="ja/mount.html">f_mount</a> - ワークエリアã®ç™»éŒ²ãƒ»æŠ¹æ¶ˆ</li>
- <li><a href="ja/open.html">f_open</a> - ファイルã®ã‚ªãƒ¼ãƒ—ン・作æˆ</li>
- <li><a href="ja/close.html">f_close</a> - ファイルã®ã‚¯ãƒãƒ¼ã‚º</li>
- <li><a href="ja/read.html">f_read</a> - ファイルã®èªã¿å‡ºã—</li>
- <li><a href="ja/write.html">f_write</a> - ファイルã®æ›¸ãè¾¼ã¿</li>
- <li><a href="ja/lseek.html">f_lseek</a> - リード/ライト ãƒã‚¤ãƒ³ã‚¿ã®ç§»å‹•, ファイルã®æ‹¡å¼µ</li>
- <li><a href="ja/truncate.html">f_truncate</a> - ファイル サイズã®åˆ‡ã‚Šè©°ã‚</li>
- <li><a href="ja/sync.html">f_sync</a> - ã‚ャッシュã•ã‚ŒãŸãƒ‡ãƒ¼ã‚¿ã®ãƒ•ãƒ©ãƒƒã‚·ãƒ¥</li>
- <li><a href="ja/forward.html">f_forward</a> - ファイル データをストリーム関数ã«è»¢é€</li>
- <li><a href="ja/stat.html">f_stat</a> - ファイル/サブ ディレクトリã®å˜åœ¨ãƒã‚§ãƒƒã‚¯ã¨æƒ…å ±ã®å–å¾—</li>
- <li><a href="ja/opendir.html">f_opendir</a> - ディレクトリã®ã‚ªãƒ¼ãƒ—ン</li>
- <li><a href="ja/closedir.html">f_closedir</a> - ディレクトリã®ã‚¯ãƒãƒ¼ã‚º</li>
- <li><a href="ja/readdir.html">f_readdir</a> - ディレクトリã®èªã¿å‡ºã—</li>
- <li><a href="ja/mkdir.html">f_mkdir</a> - サブ ディレクトリã®ä½œæˆ</li>
- <li><a href="ja/unlink.html">f_unlink</a> - ファイル/サブ ディレクトリã®å‰Šé™¤</li>
- <li><a href="ja/chmod.html">f_chmod</a> - ファイル/サブ ディレクトリã®å±žæ€§ã®å¤‰æ›´</li>
- <li><a href="ja/utime.html">f_utime</a> - ファイル/サブ ディレクトリã®ã‚¿ã‚¤ãƒ スタンプã®å¤‰æ›´</li>
- <li><a href="ja/rename.html">f_rename</a> - ファイル/サブ ディレクトリã®åå‰ã®å¤‰æ›´ãƒ»ç§»å‹•</li>
- <li><a href="ja/chdir.html">f_chdir</a> - カレント ディレクトリã®å¤‰æ›´</li>
- <li><a href="ja/chdrive.html">f_chdrive</a> - カレント ドライブã®å¤‰æ›´</li>
- <li><a href="ja/getcwd.html">f_getcwd</a> - カレント ディレクトリã®å–å¾—</li>
- <li><a href="ja/getfree.html">f_getfree</a> - ボリューム空ãé ˜åŸŸã®å–å¾—</li>
- <li><a href="ja/getlabel.html">f_getlabel</a> - ボリュームラベルã®å–å¾—</li>
- <li><a href="ja/setlabel.html">f_setlabel</a> - ボリュームラベルã®è¨å®š</li>
- <li><a href="ja/mkfs.html">f_mkfs</a> - è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆ</li>
- <li><a href="ja/fdisk.html">f_fdisk</a> - 物ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®åˆ†å‰²</li>
- <li><a href="ja/gets.html">f_gets</a> - æ–‡å—列ã®èªã¿å‡ºã—</li>
- <li><a href="ja/putc.html">f_putc</a> - æ–‡å—ã®æ›¸ãè¾¼ã¿</li>
- <li><a href="ja/puts.html">f_puts</a> - æ–‡å—列ã®æ›¸ãè¾¼ã¿</li>
- <li><a href="ja/printf.html">f_printf</a> - 書å¼åŒ–æ–‡å—列ã®æ›¸ãè¾¼ã¿</li>
- <li><a href="ja/tell.html">f_tell</a> - ç¾åœ¨ã®ãƒªãƒ¼ãƒ‰/ライト ãƒã‚¤ãƒ³ã‚¿ã®å–å¾—</li>
- <li><a href="ja/eof.html">f_eof</a> - ファイル終端ã®æœ‰ç„¡ã®å–å¾—</li>
- <li><a href="ja/size.html">f_size</a> - ファイル サイズã®å–å¾—</li>
- <li><a href="ja/error.html">f_error</a> - ファイルã®ã‚¨ãƒ©ãƒ¼ã®æœ‰ç„¡ã®å–å¾—</li>
+ <li>ファイル アクセス
+ <ul>
+ <li><a href="ja/open.html">f_open</a> - ファイルã®ã‚ªãƒ¼ãƒ—ン・作æˆ</li>
+ <li><a href="ja/close.html">f_close</a> - ファイルã®ã‚¯ãƒãƒ¼ã‚º</li>
+ <li><a href="ja/read.html">f_read</a> - データã®èªã¿å‡ºã—</li>
+ <li><a href="ja/write.html">f_write</a> - データã®æ›¸ãè¾¼ã¿</li>
+ <li><a href="ja/lseek.html">f_lseek</a> - リード/ライト ãƒã‚¤ãƒ³ã‚¿ã®ç§»å‹•, サイズã®æ‹¡å¼µ</li>
+ <li><a href="ja/truncate.html">f_truncate</a> - サイズã®åˆ‡ã‚Šè©°ã‚</li>
+ <li><a href="ja/sync.html">f_sync</a> - ã‚ャッシュã•ã‚ŒãŸãƒ‡ãƒ¼ã‚¿ã®ãƒ•ãƒ©ãƒƒã‚·ãƒ¥</li>
+ <li><a href="ja/forward.html">f_forward</a> - データをストリーム関数ã«è»¢é€</li>
+ <li><a href="ja/expand.html">f_expand</a> - é€£ç¶šé ˜åŸŸã®å‰²ã‚Šå½“ã¦</li>
+ <li><a href="ja/gets.html">f_gets</a> - æ–‡å—列ã®èªã¿å‡ºã—</li>
+ <li><a href="ja/putc.html">f_putc</a> - æ–‡å—ã®æ›¸ãè¾¼ã¿</li>
+ <li><a href="ja/puts.html">f_puts</a> - æ–‡å—列ã®æ›¸ãè¾¼ã¿</li>
+ <li><a href="ja/printf.html">f_printf</a> - 書å¼åŒ–æ–‡å—列ã®æ›¸ãè¾¼ã¿</li>
+ <li><a href="ja/tell.html">f_tell</a> - リード/ライト ãƒã‚¤ãƒ³ã‚¿ã®å–å¾—</li>
+ <li><a href="ja/eof.html">f_eof</a> - 終端ã®æœ‰ç„¡ã®å–å¾—</li>
+ <li><a href="ja/size.html">f_size</a> - サイズã®å–å¾—</li>
+ <li><a href="ja/error.html">f_error</a> - エラーã®æœ‰ç„¡ã®å–å¾—</li>
+ </ul>
+ </li>
+ <li>ディレクトリ アクセス
+ <ul>
+ <li><a href="ja/opendir.html">f_opendir</a> - ディレクトリã®ã‚ªãƒ¼ãƒ—ン</li>
+ <li><a href="ja/closedir.html">f_closedir</a> - ディレクトリã®ã‚¯ãƒãƒ¼ã‚º</li>
+ <li><a href="ja/readdir.html">f_readdir</a> - é …ç›®ã®èªã¿å‡ºã—</li>
+ <li><a href="ja/findfirst.html">f_findfirst</a> - ディレクトリã®ã‚ªãƒ¼ãƒ—ンã¨æœ€åˆã®æ¤œç´¢é …ç›®ã®èªã¿å‡ºã—</li>
+ <li><a href="ja/findnext.html">f_findnext</a> - 次ã®æ¤œç´¢é …ç›®ã®èªã¿å‡ºã—</li>
+ </ul>
+ </li>
+ <li>ファイル/ディレクトリ管ç†
+ <ul>
+ <li><a href="ja/stat.html">f_stat</a> - ファイル/サブ ディレクトリã®å˜åœ¨ãƒã‚§ãƒƒã‚¯ã¨æƒ…å ±ã®å–å¾—</li>
+ <li><a href="ja/unlink.html">f_unlink</a> - ファイル/サブ ディレクトリã®å‰Šé™¤</li>
+ <li><a href="ja/rename.html">f_rename</a> - ファイル/サブ ディレクトリã®åå‰ã®å¤‰æ›´ãƒ»ç§»å‹•</li>
+ <li><a href="ja/chmod.html">f_chmod</a> - ファイル/サブ ディレクトリã®å±žæ€§ã®å¤‰æ›´</li>
+ <li><a href="ja/utime.html">f_utime</a> - ファイル/サブ ディレクトリã®ã‚¿ã‚¤ãƒ スタンプã®å¤‰æ›´</li>
+ <li><a href="ja/mkdir.html">f_mkdir</a> - サブ ディレクトリã®ä½œæˆ</li>
+ <li><a href="ja/chdir.html">f_chdir</a> - カレント ディレクトリã®å¤‰æ›´</li>
+ <li><a href="ja/chdrive.html">f_chdrive</a> - カレント ドライブã®å¤‰æ›´</li>
+ <li><a href="ja/getcwd.html">f_getcwd</a> - カレント ディレクトリã®å–å¾—</li>
+ </ul>
+ </li>
+ <li>ボリューム管ç†
+ <ul>
+ <li><a href="ja/mount.html">f_mount</a> - ボリュームワーク エリアã®ç™»éŒ²ãƒ»æŠ¹æ¶ˆ</li>
+ <li><a href="ja/mkfs.html">f_mkfs</a> - è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–上ã«FATボリュームを作æˆ</li>
+ <li><a href="ja/fdisk.html">f_fdisk</a> - 物ç†ãƒ‰ãƒ©ã‚¤ãƒ–上ã«è¤‡æ•°ã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–を作æˆ</li>
+ <li><a href="ja/getfree.html">f_getfree</a> - ボリュームã®ã‚µã‚¤ã‚ºã¨ç©ºãサイズã®å–å¾—</li>
+ <li><a href="ja/getlabel.html">f_getlabel</a> - ボリュームラベルã®å–å¾—</li>
+ <li><a href="ja/setlabel.html">f_setlabel</a> - ボリュームラベルã®è¨å®š</li>
+ </ul>
+ </li>
</ul>
</div>
<div class="para">
<h3>下ä½ãƒ¬ã‚¤ãƒ¤ インターフェース</h3>
-<p>FatFsモジュールã¯ã€å˜ãªã‚‹ãƒ•ã‚¡ã‚¤ãƒ« システムレイヤãªã®ã§ã€ã‚¹ãƒˆãƒ¬ãƒ¼ã‚¸ デãƒã‚¤ã‚¹åˆ¶å¾¡ãƒ¬ã‚¤ãƒ¤ã¯å«ã¾ã‚Œã¾ã›ã‚“。使用ã™ã‚‹ãƒ—ラットフォームやストレージ デãƒã‚¤ã‚¹ã«å¯¾å¿œã—ãŸåˆ¶å¾¡é–¢æ•°ã¯ã€ãƒ¦ãƒ¼ã‚¶ã«ã‚ˆã£ã¦æä¾›ã•ã‚Œã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚FatFsモジュールã¯ã€ä¸‹ä½ãƒ¬ã‚¤ãƒ¤ã«å¯¾ã—標準的ã«ã¯æ¬¡ã®ã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ã‚§ãƒ¼ã‚¹ã‚’è¦æ±‚ã—ã¾ã™ã€‚拡張機能ã€ãŸã¨ãˆã°OS関連機能を有効ã«ã—ãŸã¨ãã¯ã€åŠ ãˆã¦ãƒ—ãƒã‚»ã‚¹/メモリæ“作関数ãªã©ã‚‚å¿…è¦ã«ãªã‚Šã¾ã™ã€‚サンプル プãƒã‚¸ã‚§ã‚¯ãƒˆã«ä¸‹ä½ãƒ¬ã‚¤ãƒ¤ã®å®Ÿè£…例を示ã—ã¾ã™ã€‚</p>
+<img src="res/layers2.png" class="rset" width="245" height="220" alt="layer">
+<p>FatFsモジュールã¯ã€å˜ãªã‚‹ãƒ•ã‚¡ã‚¤ãƒ«ã‚·ã‚¹ãƒ†ãƒ レイヤãªã®ã§ã€ãã®ä¸‹ä½ã®ã‚¹ãƒˆãƒ¬ãƒ¼ã‚¸ デãƒã‚¤ã‚¹åˆ¶å¾¡ãƒ¬ã‚¤ãƒ¤ã¯ãã‚Œã«å«ã¾ã‚Œã¾ã›ã‚“。ãã‚Œãžã‚Œã®ãƒ—ラットフォームやストレージ デãƒã‚¤ã‚¹ã«å¯¾å¿œã—ãŸåˆ¶å¾¡ãƒ¬ã‚¤ãƒ¤ã¯ã€ã‚¤ãƒ³ãƒ—リメンタã«ã‚ˆã£ã¦æä¾›ã•ã‚Œã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚FatFsモジュールã¯ã€ä¸‹ä½ãƒ¬ã‚¤ãƒ¤ã«å¯¾ã—標準的ã«ã¯æ¬¡ã®ã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ã‚§ãƒ¼ã‚¹ã‚’è¦æ±‚ã—ã¾ã™ã€‚一部ã®æ‹¡å¼µæ©Ÿèƒ½ã€ãŸã¨ãˆã°OS関連機能を有効ã«ã—ãŸã¨ãã¯ã€åŠ ãˆã¦ãƒ—ãƒã‚»ã‚¹/メモリæ“作関数ãªã©ã‚‚å¿…è¦ã«ãªã‚Šã¾ã™ã€‚サンプル プãƒã‚¸ã‚§ã‚¯ãƒˆã«ä¸‹ä½ãƒ¬ã‚¤ãƒ¤ã®å®Ÿè£…例を示ã—ã¾ã™ã€‚</p>
<ul>
<li><a href="ja/dstat.html">disk_status</a> - デãƒã‚¤ã‚¹ã®çŠ¶æ…‹å–å¾—</li>
<li><a href="ja/dinit.html">disk_initialize</a> - デãƒã‚¤ã‚¹ã®åˆæœŸåŒ–</li>
@@ -99,22 +120,22 @@ <h3>資料</h3>
<p>FatFsモジュールã¯ãƒ•ãƒªãƒ¼ ソフトウェアã¨ã—ã¦æ•™è‚²ãƒ»ç ”究・開発用ã«å…¬é–‹ã—ã¦ã„ã¾ã™ã€‚ã©ã®ã‚ˆã†ãªåˆ©ç”¨ç›®çš„(個人利用ã‹ã‚‰å•†ç”¨ã¾ã§ï¼‰ã§ã‚‚使用・改変・é…布ã«ã¤ã„ã¦ä¸€åˆ‡ã®åˆ¶é™ã¯ã‚ã‚Šã¾ã›ã‚“ãŒã€å…¨ã¦åˆ©ç”¨è€…ã®è²¬ä»»ã®ä¸‹ã§ã®åˆ©ç”¨ã¨ã—ã¾ã™ã€‚詳ã—ãã¯ã‚¢ãƒ—リケーション ノートをå‚ç…§ã—ã¦ãã ã•ã„。</p>
<ul>
- <li><a href="http://elm-chan.org/fsw/ff/00index_j.html"><em>FatFsホームページ</em></a>↗</li>
- <li><a href="http://elm-chan.org/fsw/ff/bd/"><em>FatFsユーザ フォーラム</em></a>↗</li>
- <li>最åˆã«èªã‚: <a href="ja/appnote.html">FatFsモジュール アプリケーション ノート</a></li>
+ <li>最åˆã«èªã‚: <a href="ja/appnote.html">FatFsモジュール アプリケーション ノート</a> <span class="mfd">2016. 9. 4</span></li>
+ <li>コミュニティ: <a href="http://elm-chan.org/fsw/ff/bd/">FatFsユーザ フォーラム</a></li>
+ <li><a href="https://msdn.microsoft.com/en-us/windows/hardware/gg463080.aspx">FATファイルシステム仕様 by Microsoft</a>↗ (The reference document on FAT file system)</li>
+ <li><a href="http://elm-chan.org/docs/fat.html">FATファイルシステム概è¦</a> (↑をèªã‚€ãŸã‚ã®ã‚¬ã‚¤ãƒ‰)</li>
+ <li><a href="http://elm-chan.org/docs/mmc/mmc.html">MMCã®ä½¿ã„ã‹ãŸ</a></li>
+ <li><a href="http://elm-chan.org/junk/fa/faff.html">FlashAirã¨FatFs [en]</a></li>
<li><a href="http://stm32f4-discovery.com/2014/07/library-21-read-sd-card-fatfs-stm32f4xx-devices/">Read SD card with FatFs on STM32F4xx devices by Tilen Majerle</a>↗ (Quick and easy implementation for STM32F4-Discovery)</li>
- <li><a href="http://nemuisan.blog.bai.ne.jp/">ãã‚€ã„ã•ã‚“ã®ã¶ã‚ã</a>↗ (Well written implementations for STM32F/SDIO and LPC2300/MCI)</li>
+ <li><a href="http://nemuisan.blog.bai.ne.jp/">ãã‚€ã„ã•ã‚“ã®ã¶ã‚ã</a>↗ (Well written implementations for STM32F/SPI & SDIO and LPC4088/SDMMC)</li>
<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>
- <li><a href="http://www.microsoft.com/whdc/system/platform/firmware/fatgen.mspx">FATファイルシステム仕様 by Microsoft</a>↗ (The reference document on FAT file system)</li>
- <li><a href="http://elm-chan.org/docs/fat.html">FATファイルシステム概è¦</a>↗ (↑をèªã‚€ãŸã‚ã®ã‚¬ã‚¤ãƒ‰)</li>
- <li><a href="http://elm-chan.org/docs/mmc/mmc.html">MMCã®ä½¿ã„ã‹ãŸ</a>↗</li>
- <li><a href="img/rwtest.png">パフォーマンス テスト1</a> (ATmega64/9.2MHz with MMC via SPI, HDD/CFC via GPIO)</li>
- <li><a href="img/rwtest2.png">パフォーマンス テスト2</a> (LPC2368/72MHz with MMC via MCI)</li>
+ <li><a href="res/rwtest1.png">パフォーマンス テスト1</a> (ATmega1284/20MHz with MMC via USART in SPI, CFC via GPIO)</li>
+ <li><a href="res/rwtest2.png">パフォーマンス テスト2</a> (LPC2368/72MHz with MMC via MCI)</li>
</ul>
</div>
<hr>
-<p class="foot"><a href="../../fsw.html">戻る</a></p>
+<p class="foot"><a href="http://elm-chan.org/fsw/ff/00index_j.html">FatFsホームページ</a></p>
</body>
</html>
diff --git a/fatfs/doc/css_e.css b/fatfs/doc/css_e.css index 2fa0cc1..99c6714 100644 --- a/fatfs/doc/css_e.css +++ b/fatfs/doc/css_e.css @@ -19,6 +19,7 @@ tt {margin: 0 0.2em; font-size: 0.85em; font-family: "Consolas", "Courier New", tt.arg {font-style: italic;}
ol {margin: 0.5em 2.5em;}
ul {margin: 0.5em 2em;}
+ul ul {margin: 0 2em 0.5em 1em;}
dl {margin: 0.5em 1em;}
dd {margin: 0 2em;}
dt {font-size: 0.85em; font-family: "Consolas", "Courier New", monospace;}
@@ -43,13 +44,14 @@ a.imglnk img {border: 1px solid;} .cal {text-align: center; }
h1 {line-height: 1em; font-size: 2em; font-family: sans-serif; padding: 0.3em 0 0.3em;}
-p.hdd {float: right; text-align: right; margin-top: 0.5em;}
-hr.hds {clear: both; margin-bottom: 1em;}
-
h2 {font-size: 2em; font-family: sans-serif; background-color: #d8d8FF; padding: 0.5em 0.5em; margin: 0 0 0.5em;}
h3 {font-size: 1.5em; font-family: sans-serif; margin: 1.5em 0 0.5em;}
-h4 {font-size: 1.2em; font-family: sans-serif; margin: 1em 0 0.2em;}
-h5 {font-size: 1em; font-family: sans-serif; margin: 0.5em 0 0em;}
+div.doc h3 {border-color: #b0d8d8; border-style: solid; border-width: 0px 0px 4px 12px; padding: 4px; margin-top: 3em;}
+h4 {font-size: 1.2em; font-family: sans-serif; margin: 2em 0 0.2em;}
+h5 {font-size: 1em; font-family: sans-serif; margin: 1em 0 0em;}
+p.hdd {float: right; text-align: right; margin-top: 0.5em;}
+hr.hds {clear: both; margin-bottom: 1em;}
+kbd {letter-spacing: 0;}
small {font-size: 80%;}
.indent {margin-left: 2em;}
diff --git a/fatfs/doc/css_j.css b/fatfs/doc/css_j.css index b226a8b..3b1a964 100644 --- a/fatfs/doc/css_j.css +++ b/fatfs/doc/css_j.css @@ -9,7 +9,7 @@ a:hover {background-color: #a0ffff;} a:active {color: darkmagenta; overflow: hidden; outline:none; position: relative; top: 1px; left: 1px;}
abbr {border-width: 1px;}
-p {text-indent: 1em; margin: 0 0 0.3em 0.5em;}
+p {text-indent: 0.8em; margin: 0 0 0.3em 0.5em;}
i {margin: 0 0.3em 0 0;}
b {margin: 0 0.1em;}
em {font-style: normal; font-weight: bold; margin: 0 0.1em;}
@@ -22,6 +22,7 @@ tt {margin: 0 0.2em; letter-spacing: 0; font-size: 0.85em; font-family: "Consola tt.arg {font-style: italic;}
ol {margin: 0.5em 2.5em;}
ul {margin: 0.5em 2em;}
+ul ul {margin: 0 2em 0.5em 1em;}
dl {margin: 0.5em 1em;}
dd {margin: 0em 2em;}
dt {font-size: 0.85em; font-family: "Consolas", "Courier New", "‚l‚r ƒSƒVƒbƒN", monospace;}
@@ -46,13 +47,14 @@ a.imglnk img {border: 1px solid;} .cal {text-align: center; }
h1 {line-height: 1em; font-size: 2em; font-family: sans-serif; padding: 0.3em 0 0.3em;}
-p.hdd {float: right; text-align: right; margin-top: 0.5em;}
-hr.hds {clear: both; margin-bottom: 1em;}
-
h2 {font-size: 2em; font-family: "‚l‚r ‚oƒSƒVƒbƒN",sans-serif; background-color: #d8d8FF; padding: 0.5em 0.5em; margin: 0 0 0.5em;}
h3 {font-size: 1.5em; font-family: "‚l‚r ‚oƒSƒVƒbƒN",sans-serif; margin: 1.5em 0 0.5em;}
-h4 {font-size: 1.2em; font-family: "‚l‚r ‚oƒSƒVƒbƒN",sans-serif; margin: 1em 0 0.2em;}
-h5 {font-size: 1em; font-family: "‚l‚r ‚oƒSƒVƒbƒN",sans-serif; margin: 0.5em 0 0em;}
+div.doc h3 {border-color: #b0d8d8; border-style: solid; border-width: 0px 0px 4px 12px; padding: 4px; margin-top: 3em;}
+h4 {font-size: 1.2em; font-family: "‚l‚r ‚oƒSƒVƒbƒN",sans-serif; margin: 2em 0 0.2em;}
+h5 {font-size: 1em; font-family: "‚l‚r ‚oƒSƒVƒbƒN",sans-serif; margin: 1em 0 0em;}
+p.hdd {float: right; text-align: right; margin-top: 0.5em;}
+hr.hds {clear: both; margin-bottom: 1em;}
+kbd {letter-spacing: 0;}
small {font-size: 80%;}
.indent {margin-left: 2em;}
diff --git a/fatfs/doc/css_p.css b/fatfs/doc/css_p.css deleted file mode 100644 index f8589aa..0000000 --- a/fatfs/doc/css_p.css +++ /dev/null @@ -1 +0,0 @@ -body {margin: 8px; background-color: #ffecf0; font-color: black; font-family: serif; line-height: 133%; max-width: 1024px;}
diff --git a/fatfs/doc/en/appnote.html b/fatfs/doc/en/appnote.html index fee2af9..4cd111f 100644 --- a/fatfs/doc/en/appnote.html +++ b/fatfs/doc/en/appnote.html @@ -15,9 +15,10 @@ <li><a href="#port">How to Port</a></li>
<li><a href="#limits">Limits</a></li>
<li><a href="#memory">Memory Usage</a></li>
-<li><a href="#reduce">Module Size Reduction</a></li>
+<li><a href="#reduce">Reducing Module Size</a></li>
<li><a href="#lfn">Long File Name</a></li>
<li><a href="#unicode">Unicode API</a></li>
+<li><a href="#exfat">exFAT File System</a></li>
<li><a href="#reentrant">Re-entrancy</a></li>
<li><a href="#dup">Duplicated File Access</a></li>
<li><a href="#fs1">Performance Effective File Access</a></li>
@@ -26,9 +27,8 @@ <li><a href="#fs3">Extended Use of FatFs API</a></li>
<li><a href="#license">About FatFs License</a></li>
</ol>
-<hr>
-<div class="para" id="port">
+<div class="para doc" id="port">
<h3>How to Port</h3>
<h4>Basic considerations</h4>
@@ -37,193 +37,195 @@ <li>ANSI C<br>
The FatFs module is a middleware written in ANSI C (C89). There is no platform dependence, so long as the compiler is in compliance with ANSI C.</li>
<li>Size of integer types<br>
-The FatFs module assumes that size of char/short/long are 8/16/32 bit and int is 16 or 32 bit. These correspondence are defined in <tt>integer.h</tt>. This will not be a problem on most compilers. When any conflict with existing definitions is occured, you must resolve it with care.</li>
+The FatFs module assumes that size of <tt>char</tt>/<tt>short</tt>/<tt>long</tt> are 8/16/32 bit and <tt>int</tt> is 16 or 32 bit. These correspondence are defined in <tt>integer.h</tt>. This will not be a problem on most compilers. When a conflict with existing definitions is occured, you must resolve it with care.</li>
</ul>
<h4>System organizations</h4>
-<p>The dependency diagram shown below is a typical configuration of the embedded system with FatFs module.</p>
-<p><img src="../img/modules.png" width="580" height="280" alt="dependency diagram"></p>
-<p>(a) If a working disk module with FatFs API is provided, no additional function is needed. (b) To attach existing disk drivers with different API, glue functions are needed to translate the APIs between FatFs and the drivers.</p>
-<p><img src="../img/funcs.png" width="680" height="430" alt="functional diagram"></p>
+<p>The dependency diagram shown below is a typical but not specific configuration of the embedded system with FatFs module.</p>
+<p><img src="../res/modules.png" width="580" height="280" alt="dependency diagram"></p>
+<p>(a) If a working disk module with FatFs disk interface is provided, nothing else will be needed. (b) To attach existing disk drivers with different interface, glue functions are needed to translate the interfaces between FatFs and the drivers.</p>
+<p><img src="../res/funcs.png" width="750" height="420" alt="functional diagram"></p>
-<h4>Which function is required?</h4>
-<p>You need to provide only low level disk I/O functions that required by FatFs module and nothing else. If a working disk module for the target is already existing, you need to write only glue functions to attach it to the FatFs module. If not, you need to port any other disk module or write it from scratch. Most of defined functions are not that always required. For example, disk write function is not required in read-only configuration. Following table shows which function is required depends on configuration options.</p>
+<h4>The functions required</h4>
+<p>You need to provide only low level disk I/O functions required by FatFs module and nothing else. If a working disk module for the target system is already existing, you need to write only glue functions to attach it to the FatFs module. If not, you need to port any other disk module or write it from scratch. Most of defined functions are not that always required. For example, disk write function is not required at read-only configuration. Following table shows which function is required depends on the configuration options.</p>
<table class="lst2">
-<tr><th>Function</th><th>Required when:</th><th>Note</th></tr>
+<tr><th>Function</th><th>Required when</th><th>Note</th></tr>
<tr><td>disk_status<br>disk_initialize<br>disk_read</td><td>Always</td><td rowspan="5">Disk I/O functions.<br>Samples available in ffsample.zip.<br>There are many implementations on the web.</td></tr>
<tr><td>disk_write<br>get_fattime<br>disk_ioctl (CTRL_SYNC)</td><td>_FS_READONLY == 0</td></tr>
<tr><td>disk_ioctl (GET_SECTOR_COUNT)<br>disk_ioctl (GET_BLOCK_SIZE)</td><td>_USE_MKFS == 1</td></tr>
<tr><td>disk_ioctl (GET_SECTOR_SIZE)</td><td>_MAX_SS != _MIN_SS</td></tr>
<tr><td>disk_ioctl (CTRL_TRIM)</td><td>_USE_TRIM == 1</td></tr>
-<tr><td>ff_convert<br>ff_wtoupper</td><td>_USE_LFN >= 1</td><td>Unicode support functions.<br>Available in option/unicode.c.</td></tr>
+<tr><td>ff_convert<br>ff_wtoupper</td><td>_USE_LFN != 0</td><td>Unicode support functions.<br>Just add option/unicode.c to the project.</td></tr>
<tr><td>ff_cre_syncobj<br>ff_del_syncobj<br>ff_req_grant<br>ff_rel_grant</td><td>_FS_REENTRANT == 1</td><td rowspan="2">O/S dependent functions.<br>Samples available in option/syscall.c.</td></tr>
<tr><td>ff_mem_alloc<br>ff_mem_free</td><td>_USE_LFN == 3</td></tr>
</table>
</div>
-<div class="para" id="limits">
+<div class="para doc" id="limits">
<h3>Limits</h3>
<ul>
-<li>FAT sub-types: FAT12, FAT16 and FAT32.</li>
-<li>Number of open files: Unlimited, depends on available memory.</li>
+<li>File system type: FAT12, FAT16, FAT32(r0.0) and exFAT(r1.0).</li>
+<li>Number of open files: Unlimited. (depends on available memory)</li>
<li>Number of volumes: Upto 10.</li>
-<li>File size: Depends on the FAT specs. (upto 4G-1 bytes)</li>
-<li>Volume size: Depends on the FAT specs. (upto 2T bytes at 512 bytes/sector)</li>
-<li>Cluster size: Depends on the FAT specs. (upto 64K bytes at 512 bytes/sector)</li>
-<li>Sector size: Depends on the FAT specs. (512, 1024, 2048 and 4096 bytes)</li>
+<li>Volume size: Upto 2 TiB at 512 bytes/sector.</li>
+<li>File size: Upto 4 GiB - 1 on FAT volume and virtually unlimited on exFAT volume.</li>
+<li>Cluster size: Upto 128 sectors on FAT volume and upto 16 MiB on exFAT volume.</li>
+<li>Sector size: 512, 1024, 2048 and 4096 bytes.</li>
</ul>
</div>
-<div class="para" id="memory">
+<div class="para doc" id="memory">
<h3>Memory Usage</h3>
+<p>The memory usage varies depends on the <a href="config.html">configuration options</a>.</p>
<table class="lst2">
<tr><th></th><th>ARM7<small><br>32bit</small></th><th>ARM7<small><br>Thumb</small></th><th>CM3<small><br>Thumb-2</small></th><th>AVR</th><th>H8/300H</th><th>PIC24</th><th>RL78</th><th>V850ES</th><th>SH-2A</th><th>RX600</th><th>IA-32</th></tr>
-<tr class="cal"> <td>Compiler</td><td>GCC</td><td>GCC</td><td>GCC</td><td>GCC</td><td>CH38</td><td>C30</td><td>CC78K0R</td><td>CA850</td><td>SHC</td><td>RXC</td><td>VC6</td></tr>
-<tr class="cal"> <td>_WORD_ACCESS</td><td>0</td><td>0</td><td>0</td><td>1</td><td>0</td><td>0</td><td>0</td><td>1</td><td>0</td><td>1</td><td>1</td></tr>
-<!-- ARM Thumb CM3 AVR H8 PIC24 RL78 V850ES SH-2A RX600 IA-32 -->
-<tr class="lst3 ral"><td class="cal">text (Full, R/W)</td><td>10675</td><td>7171</td><td>6617</td><td>13355</td><td>10940</td><td>11722</td><td>13262</td><td>8113</td><td>9048</td><td>6032</td><td>7952</td></tr>
-<tr class="ral"> <td class="cal">text (Min, R/W)</td> <td>6727</td><td>4631</td><td>4331</td> <td>8569</td> <td>7262</td> <td>7720</td> <td>9088</td><td>5287</td><td>5800</td><td>3948</td><td>5183</td></tr>
-<tr class="ral"> <td class="cal">text (Full, R/O)</td> <td>4731</td><td>3147</td><td>2889</td> <td>6235</td> <td>5170</td> <td>5497</td> <td>6482</td><td>3833</td><td>3972</td><td>2862</td><td>3719</td></tr>
-<tr class="ral"> <td class="cal">text (Min, R/O)</td> <td>3559</td><td>2485</td><td>2295</td> <td>4575</td> <td>4064</td> <td>4240</td> <td>5019</td><td>2993</td><td>3104</td><td>2214</td><td>2889</td></tr>
-<tr class="ral"> <td class="cal">bss</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*2 + 2</td><td>V*4 + 2</td><td>V*2 + 2</td><td>V*2 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td></tr>
-<tr class="ral"> <td class="cal">Work area<br>(_FS_TINY == 0)</td><td>V*560<br>+ F*550</td><td>V*560<br>+ F*550</td><td>V*560<br>+ F*550</td><td>V*560<br>+ F*544</td><td>V*560<br>+ F*550</td><td>V*560<br>+ F*544</td><td>V*560<br>+ F*544</td><td>V*560<br>+ F*544</td><td>V*560<br>+ F*550</td><td>V*560<br>+ F*550</td><td>V*560<br>+ F*550</td></tr>
-<tr class="ral"> <td class="cal">Work area<br>(_FS_TINY == 1)</td><td>V*560<br>+ F*36</td><td>V*560<br>+ F*36</td><td>V*560<br>+ F*36</td><td>V*560<br>+ F*32</td><td>V*560<br>+ F*36</td><td>V*560<br>+ F*32</td><td>V*560<br>+ F*32</td><td>V*560<br>+ F*36</td><td>V*560<br>+ F*36</td><td>V*560<br>+ F*36</td><td>V*560<br>+ F*36</td></tr>
+<tr class="cal"> <td>Compiler</td><td>GCC</td><td>GCC</td><td>GCC</td><td>GCC</td><td>CH38</td><td>C30</td><td>CC78K0R</td><td>CA850</td><td>SHC</td><td>RXC</td><td>MSC</td></tr>
+<!-- ARM Thumb CM3 AVR H8 PIC24 RL78 V850ES SH-2A RX600 IA-32 -->
+<tr class="ral"><td class="cal">text (Full, R/W)</td><td>10.4k</td><td>6.8k</td><td>6.3k</td><td>12.4k</td> <td>9.8k</td><td>11.1k</td><td>12.8k</td><td>8.6k</td><td>8.9k</td><td>6.4k</td><td>8.5k</td></tr>
+<tr class="ral"><td class="cal">text (Min, R/W)</td> <td>6.8k</td><td>4.6k</td><td>4.3k</td> <td>8.2k</td> <td>6.7k</td> <td>7.6k</td> <td>9.1k</td><td>6.0k</td><td>5.9k</td><td>4.5k</td><td>5.9k</td></tr>
+<tr class="ral"><td class="cal">text (Full, R/O)</td> <td>4.8k</td><td>3.1k</td><td>2.8k</td> <td>5.6k</td> <td>4.6k</td> <td>5.3k</td> <td>6.3k</td><td>4.0k</td><td>3.9k</td><td>3.0k</td><td>3.9k</td></tr>
+<tr class="ral"><td class="cal">text (Min, R/O)</td> <td>3.6k</td><td>2.4k</td><td>2.3k</td> <td>4.4k</td> <td>3.5k</td> <td>4.0k</td> <td>4.9k</td><td>3.3k</td><td>3.0k</td><td>2.4k</td><td>3.1k</td></tr>
+<tr class="ral"><td class="cal">bss</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*2 + 2</td><td>V*4 + 2</td><td>V*2 + 2</td><td>V*2 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td></tr>
+<tr class="ral"><td class="cal">Work area<br><small>(_FS_TINY == 0)</small></td><td>V*564<br>+ F*552</td><td>V*564<br>+ F*552</td><td>V*564<br>+ F*552</td><td>V*560<br>+ F*546</td><td>V*560<br>+ F*546</td><td>V*560<br>+ F*546</td><td>V*560<br>+ F*546</td><td>V*564<br>+ F*552</td><td>V*564<br>+ F*552</td><td>V*564<br>+ F*552</td><td>V*564<br>+ F*552</td></tr>
+<tr class="ral"><td class="cal">Work area<br><small>(_FS_TINY == 1)</small></td><td>V*564<br>+ F*40</td><td>V*564<br>+ F*40</td><td>V*564<br>+ F*40</td><td>V*560<br>+ F*34</td><td>V*560<br>+ F*34</td><td>V*560<br>+ F*34</td><td>V*560<br>+ F*34</td><td>V*564<br>+ F*40</td><td>V*564<br>+ F*40</td><td>V*564<br>+ F*40</td><td>V*564<br>+ F*40</td></tr>
</table>
-<p>These are the memory usage on some target systems with following condition. The memory sizes are in unit of byte, <em>V</em> denotes number of volumes and <em>F</em> denotes number of open files. All samples are optimezed in code size.</p>
+<p>These are the memory usage on some target systems with following condition. The memory sizes are in unit of byte, <em>V</em> denotes option <tt>_VOLUMES</tt> and <em>F</em> denotes number of open files. All samples here are optimezed in code size.</p>
<pre>
-FatFs R0.10a options:
-_FS_READONLY 0 (R/W) or 1 (R/O)
-_FS_MINIMIZE 0 (Full function) or 3 (Minimized function)
-_USE_STRFUNC 0 (Disable string functions)
-_USE_MKFS 0 (Disable f_mkfs function)
-_USE_FORWARD 0 (Disable f_forward function)
-_USE_FASTSEEK 0 (Disable fast seek feature)
-_CODE_PAGE 932 (Japanese Shift_JIS)
-_USE_LFN 0 (Disable LFN feature)
-_MAX_SS 512 (Fixed sector size)
-_FS_RPATH 0 (Disable relative path feature)
-_FS_LABEL 0 (Disable volume label functions)
-_VOLUMES V (Number of logical drives to be used)
-_MULTI_PARTITION 0 (Single partition per drive)
-_FS_REENTRANT 0 (Disable thread safe)
-_FS_LOCK 0 (Disable file lock control)
+FatFs R0.12b options:
+_FS_READONLY 0 (R/W) or 1 (R/O)
+_FS_MINIMIZE 0 (Full, with all basic functions) or 3 (Min, with fully minimized)
+_FS_TINY 0 (Default) or 1 (Tiny file object)
+And other options are left unchanged from original setting.
</pre>
</div>
-<div class="para" id="reduce">
-<h3>Module Size Reduction</h3>
-<p>Follwing table shows which API function is removed by configuration options for the module size reduction.</p>
+<div class="para doc" id="reduce">
+<h3>Reducing Modle Size</h3>
+<p>Follwing table shows which API function is removed by configuration options for the module size reduction. To use any API function, the row of the function must be clear.</p>
<table class="lst2">
-<tr><td rowspan="2">Function</td><td colspan="4">_FS_MINIMIZE</td><td colspan="2">_FS_READONLY</td><td colspan="2">_USE_STRFUNC</td><td colspan="3">_FS_RPATH</td><td colspan="2">_FS_LABEL</td><td colspan="2">_USE_MKFS</td><td colspan="2">_USE_FORWARD</td><td colspan="2">_MULTI_PARTITION</td></tr>
-<tr><td>0</td><td>1</td><td>2</td><td>3</td><td>0</td><td>1</td><td>0 </td><td>1/2</td><td>0</td><td>1</td><td>2</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td></tr>
-<tr class="lst3"><td>f_mount</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_open</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_close</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_read</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_write</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_sync</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_lseek</td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_opendir</td><td></td><td></td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_closedir</td><td></td><td></td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_readdir</td><td></td><td></td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_stat</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_getfree</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_truncate</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_unlink</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_mkdir</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_chmod</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_utime</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_rename</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_chdir</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_chdrive</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_getcwd</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_getlabel</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_setlabel</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_forward</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td></tr>
-<tr><td>f_mkfs</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_fdisk</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td>x</td><td></td></tr>
-<tr><td>f_putc</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_puts</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_printf</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_gets</td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
+<tr><td rowspan="2">Function</td><td colspan="4">_FS_<br>MINIMIZE</td><td colspan="2">_FS_<br>READONLY</td><td colspan="2">_USE_<br>STRFUNC</td><td colspan="3">_FS_<br>RPATH</td><td colspan="2">_USE_<br>FIND</td><td colspan="2">_USE_<br>CHMOD</td><td colspan="2">_USE_<br>EXPAND</td><td colspan="2">_USE_<br>LABEL</td><td colspan="2">_USE_<br>MKFS</td><td colspan="2">_USE_<br>FORWARD</td><td colspan="2">_MULTI_<br>PARTITION</td></tr>
+<tr> <td>0</td><td>1</td><td>2</td><td>3</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>2</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td></tr>
+<tr class="lst3">
+ <td>f_mount</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_open</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_close</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_read</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_write</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_sync</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_lseek</td> <td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_opendir</td> <td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_closedir</td> <td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_readdir</td> <td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_findfirst</td><td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_findnext</td> <td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_stat</td> <td> </td><td>x</td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_getfree</td> <td> </td><td>x</td><td>x</td><td>x</td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_truncate</td> <td> </td><td>x</td><td>x</td><td>x</td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_unlink</td> <td> </td><td>x</td><td>x</td><td>x</td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_mkdir</td> <td> </td><td>x</td><td>x</td><td>x</td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_rename</td> <td> </td><td>x</td><td>x</td><td>x</td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_chdir</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_chdrive</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_getcwd</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_chmod</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_utime</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_getlabel</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_setlabel</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_expand</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_forward</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_mkfs</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_fdisk</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td>x</td><td> </td></tr>
+<tr><td>f_putc</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_puts</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_printf</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_gets</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
</table>
</div>
-<div class="para" id="lfn">
+<div class="para doc" id="lfn">
<h3>Long File Name</h3>
-<p>FatFs module supports LFN (long file name). The two different file names, SFN (short file name) and LFN, of a file is transparent on the API except for <tt>f_readdir()</tt> function. The LFN feature is disabled by default. To enable it, set <tt>_USE_LFN</tt> to 1, 2 or 3, and add <tt>option/unicode.c</tt> to the project. The LFN feature requiers a certain working buffer in addition. The buffer size can be configured by <tt>_MAX_LFN</tt> according to the available memory. The length of an LFN will reach up to 255 characters, so that the <tt>_MAX_LFN</tt> should be set to 255 for full featured LFN operation. If the size of working buffer is insufficient for the input file name, the file function fails with <tt>FR_INVALID_NAME</tt>. When enable the LFN feature under re-entrant configuration, <tt>_USE_LFN</tt> must be set to 2 or 3. In this case, the file function allocates the working buffer on the stack or heap. The working buffer occupies <tt>(_MAX_LFN + 1) * 2</tt> bytes.</p>
+<p>FatFs module supports long file name (LFN). The two different file names, short file name (SFN) and LFN, of a file is transparent on the API except for <tt>f_readdir</tt> function. The support for LFN is disabled by default. To enable the LFN, set <tt><a href="config.html#use_lfn">_USE_LFN</a></tt> to 1, 2 or 3, and add <tt>option/unicode.c</tt> to the project. The LFN requiers a certain working buffer in addition. The buffer size can be configured by <tt><a href="config.html#max_lfn">_MAX_LFN</a></tt> according to the available memory. The length of an LFN will be up to 255 characters, so that the <tt>_MAX_LFN</tt> should be set to 255 for all file names. If the size of working buffer is insufficient for the input file name, the file function fails with <tt>FR_INVALID_NAME</tt>. When use any re-entry to the API with LFN is enabled, <tt>_USE_LFN</tt> must be set to 2 or 3. In this case, the file function allocates the working buffer on the stack or heap. The working buffer occupies <tt>(_MAX_LFN + 1) * 2</tt> bytes and additional 608 bytes when exFAT enabled.</p>
<table class="lst2 rset">
-<caption>LFN cfg on ARM7TDMI</caption>
-<tr><th>Code page</th><th>Program size</th></tr>
-<tr><td>SBCS</td><td>+3.7K</td></tr>
-<tr><td>932(Shift_JIS)</td><td>+62K</td></tr>
-<tr><td>936(GBK)</td><td>+177K</td></tr>
-<tr><td>949(Korean)</td><td>+139K</td></tr>
-<tr><td>950(Big5)</td><td>+111K</td></tr>
+<caption>With LFN at CM3+gcc</caption>
+<tr><th><tt>_CODE_PAGE</tt></th><th>Code size</th></tr>
+<tr><td>SBCS</td><td>+2.8K</td></tr>
+<tr><td>932(Japanese)</td><td>+62.6k</td></tr>
+<tr><td>936(Simplified Chinese)</td><td>+177k</td></tr>
+<tr><td>949(Korean)</td><td>+139k</td></tr>
+<tr><td>950(Traditional Chinese)</td><td>+111k</td></tr>
</table>
-<p>When the LFN feature is enabled, the module size will be increased depends on the selected code page. Right table shows how many bytes increased when LFN feature is enabled with some code pages. Especially, in the CJK region, tens of thousands of characters are being used. Unfortunately, it requires a huge OEM-Unicode bidirectional conversion table and the module size will be drastically increased as shown in the table. As the result, the FatFs with LFN feature with those code pages will not able to be implemented to most 8-bit microcontrollers.</p>
-<p>Note that the LFN feature on the FAT file system is a patent of Microsoft Corporation. This is not the case on FAT32 but most FAT32 drivers come with the LFN feature. FatFs can swich the LFN feature off by configuration option. When enable LFN feature on the commercial products, a license from Microsoft may be required depends on the final destination.</p>
+<p>When the LFN is enabled, the module size will be increased depends on the configured code page. Right table shows how much code size increased when LFN is enabled with some code pages. Especially, in the CJK region, tens of thousands of characters are being used. Unfortunately, it requires a huge OEM-Unicode bidirectional conversion table and the module size will be drastically increased as shown in the table. As the result, the FatFs with LFN enebled with those code pages will not able to be ported on the most 8-bit MCU systems.</p>
+<p>Note that the support for LFN on the FAT volume is a patent of Microsoft Corporation. This is not the case on FAT32 but most FAT32 drivers come with the support for LFN. FatFs can switch the LFN on/off by configuration option. When enable LFN on the commercial products, you will need to be licensed by Microsoft depends on the final destination of the products.</p>
</div>
-<div class="para" id="unicode">
+<div class="para doc" id="unicode">
<h3>Unicode API</h3>
-<p>By default, FatFs uses ANSI/OEM code set on the API under LFN configuration. FatFs can also switch the character encoding to Unicode on the API by <tt>_LFN_UNICODE</tt> option. This means that the FatFs supports the True-LFN feature. For more information, refer to the description in the <a href="filename.html">file name</a>.</p>
+<p>By default, FatFs uses ANSI/OEM code set on the API even at LFN configuration. FatFs can also switch the character encoding on the API to Unicode by configuration option <tt><a href="config.html#lfn_unicode">_LFN_UNICODE</a></tt>. This means that FatFs supports the full featured LFN specification. The data type <tt>TCHAR</tt> specifies strings on the API is an alias of <tt>char</tt>(ANSI/OEM) or <tt>WCHAR</tt>(UTF-16). For more information, refer to the description in the <a href="filename.html#uni">file name</a>.</p>
</div>
-<div class="para" id="reentrant">
+<div class="para doc" id="exfat">
+<h3>exFAT File System</h3>
+<p>The exFAT (Microsoft's Extended File Allocation Table) file system is a replacement of the FAT file system which has been widely used in the embedded systems and consumer devices. It is adopted by SDA (SD Association) as a recommended file system for high capacity SD cards (>32GB) and they are being shipped with this format, so that the exFAT will soon become one of the standard file systems for removable media.</p>
+<p>The exFAT file system allows the file size larger than 4 GiB limit what FAT file system allows upto and some file system overhead, especially file allocation delay, are reduced as well. This feature improves the write throughput to the file. However a problem on the current implementation of FatFs is that write throughput at writing to the growing edge of the fragmented file gets less than the throughput on the FAT volume. Pre-allocating a contiguous block with <tt>f_expand</tt> function may be a workaround of this problem.</p>
+<p>Note that the exFAT is a patent of Microsoft Corporation. The exFAT function of FatFs is an implementation based on US. Pat. App. Pub. No. 2009/0164440 A1. FatFs module can swich the exFAT on/off by configuration option. When enable the exFAT on the commercial products, you will need to be licensed by Microsoft depends on the final destination of the products.</p></div>
+<p><em>Remark: Enabling exFAT discards C89 compatibility because of need for 64-bit integer type.</em></p>
+
+<div class="para doc" id="reentrant">
<h3>Re-entrancy</h3>
-<p>The file operations to the different volume is always re-entrant and can work simultaneously. The file operations to the same volume is not re-entrant but it can also be configured to thread-safe by <tt>_FS_REENTRANT</tt> option. In this case, also the OS dependent synchronization object control functions, <tt>ff_cre_syncobj(), ff_del_syncobj(), ff_req_grant() and ff_rel_grant()</tt> must be added to the project. There are some examples in the <tt>option/syscall.c</tt>.</p>
-<p>When a file function is called while the volume is in use by any other task, the file function is suspended until that task leaves the file function. If wait time exceeded a period defined by <tt>_TIMEOUT</tt>, the file function will abort with <tt>FR_TIMEOUT</tt>. The timeout feature might not be supported by some RTOS.</p>
-<p>There is an exception for <tt>f_mount(), f_mkfs(), f_fdisk()</tt> function. These functions are not re-entrant to the same volume or corresponding physical drive. When use these functions, all other tasks must unmount the volume and avoid to access the volume.</p>
-<p>Note that this section describes on the re-entrancy of the FatFs module itself but also the low level disk I/O layer will need to be re-entrant.</p>
+<p>The file operations to the different volume is always re-entrant regardless of configurations except when LFN enabled with static working buffer. It can work simultaneously without any mutual exclusion.</p>
+<p>The file operations to the same volume is not re-entrant but it can also be configured thread-safe by option <tt><a href="config.html#fs_reentrant">_FS_REENTRANT</a></tt>. It enables to control exclusive use of each file system object. In this case, also the OS dependent synchronization object control functions, <tt>ff_cre_syncobj/ff_del_syncobj/ff_req_grant/ff_rel_grant</tt>, needed to be added to the project. There are some examples in the <tt>option/syscall.c</tt>.</p>
+<p>When a file function is called while the volume is being accessed by other task, the file function to the volume will be suspended until that task leaves the file function. If the wait time exceeded a period defined by <tt>_TIMEOUT</tt>, the file function will abort with <tt>FR_TIMEOUT</tt>. The timeout function might not be supported on the some RTOSs.</p>
+<p>There is an exception on the re-entrancy for <tt>f_mount/f_mkfs/f_fdisk</tt> function. These volume management functions are not re-entrant to the same volume and corresponding physical drive. When use these functions, other tasks need to avoid to access the volume.</p>
+<p>Note that this section describes on the re-entrancy of the FatFs module itself. The <tt>_FS_REENTRANT</tt> controls only exclusive use of each file system object and it does not that prevent to re-enter the low level disk functions. For example, only <tt>disk_status</tt> function can be re-entered at single volume system and any disk function can be re-entered at multiple volume system. Thus the low level disk I/O layer must be always thread-safe when any FatFs API is re-entered by two or more tasks.</p>
</div>
-<div class="para" id="dup">
+<div class="para doc" id="dup">
<h3>Duplicated File Access</h3>
-<p>FatFs module does not support the read/write collision control of duplicated open to a file. The duplicated open is permitted only when each of open method to a file is read mode. The duplicated open with one or more write mode to a file is always prohibited, and also open file must not be renamed and deleted. A violation of these rules can cause data colluption.</p>
-<p>The file lock control can be enabled by <tt>_FS_LOCK</tt> option. The value of option defines the number of open objects to manage simultaneously. In this case, if any open, rename or remove that violating the file shareing rule that described above is attempted, the file function will fail with <tt>FR_LOCKED</tt>. If number of open objects, files and sub-directories, is equal to <tt>_FS_LOCK</tt>, an extra <tt>f_open(), f_optndir()</tt> function will fail with <tt>FR_TOO_MANY_OPEN_FILES</tt>.</p>
+<p>FatFs module does not support the read/write collision control of duplicated open to a file. The duplicated open is permitted only when each of open method to a file is read mode. The duplicated open with one or more write mode to a file is always prohibited, and also open file must not be renamed or deleted. A violation of these rules can cause data colluption.</p>
+<p>The file lock control can be enabled by <tt><a href="config.html#fs_lock">_FS_LOCK</a></tt> option. The value of option defines the number of open objects to manage simultaneously. In this case, if any open, rename or remove that violating the file shareing rule that described above is attempted, the file function will rejected with <tt>FR_LOCKED</tt>. If number of open objects, files and sub-directories, is equal to <tt>_FS_LOCK</tt>, an extra <tt>f_open/f_opendir</tt> function will fail with <tt>FR_TOO_MANY_OPEN_FILES</tt>.</p>
</div>
-<div class="para" id="fs1">
+<div class="para doc" id="fs1">
<h3>Performance Effective File Access</h3>
-<p>For good read/write throughput on the small embedded systems with limited size of memory, application programmer should consider what process is done in the FatFs module. The file data on the volume is transferred in following sequence by <tt>f_read()</tt> function.</p>
+<p>For good read/write throughput on the small embedded systems with limited size of memory, application programmer should consider what process is done in the FatFs module. The file data on the volume is transferred in following sequence by <tt>f_read</tt> function.</p>
<p>Figure 1. Sector misaligned read (short)<br>
-<img src="../img/f1.png" width="490" height="110" alt="">
+<img src="../res/f1.png" width="490" height="110" alt="">
</p>
<p>Figure 2. Sector misaligned read (long)<br>
-<img src="../img/f2.png" width="490" height="140" alt="">
+<img src="../res/f2.png" width="490" height="140" alt="">
</p>
<p>Figure 3. Fully sector aligned read<br>
-<img src="../img/f3.png" width="490" height="119" alt="">
+<img src="../res/f3.png" width="490" height="119" alt="">
</p>
-<p>The file I/O buffer is a sector buffer to read/write a partial data on the sector. The sector buffer is either file private sector buffer on each file object or shared sector buffer in the file system object. The buffer configuration option <tt>_FS_TINY</tt> determins which sector buffer is used for the file data transfer. When tiny buffer configuration (1) is selected, data memory consumption is reduced <tt>_MAX_SS</tt> bytes each file object. In this case, FatFs module uses only a sector buffer in the file system object for file data transfer and FAT/directory access. The disadvantage of the tiny buffer configuration is: the FAT data cached in the sector buffer will be lost by file data transfer and it must be reloaded at every cluster boundary. However it will be suitable for most application from view point of the decent performance and low memory comsumption.</p>
-<p>Figure 1 shows that a partial sector, sector misaligned part of the file, is transferred via the file I/O buffer. At long data transfer shown in Figure 2, middle of transfer data that covers one or more sector is transferred to the application buffer directly. Figure 3 shows that the case of entier transfer data is aligned to the sector boundary. In this case, file I/O buffer is not used. On the direct transfer, the maximum extent of sectors are read with <tt>disk_read()</tt> function at a time but the multiple sector transfer is divided at cluster boundary even if it is contiguous.</p>
+<p>The file I/O buffer is a sector buffer to read/write a part of data on the sector. The sector buffer is either file private sector buffer on each file object or shared sector buffer in the file system object. The buffer configuration option <tt><a href="config.html#fs_tiny">_FS_TINY</a></tt> determins which sector buffer is used for the file data transfer. When tiny buffer configuration (1) is selected, data memory consumption is reduced <tt>_MAX_SS</tt> bytes each file object. In this case, FatFs module uses only a sector buffer in the file system object for file data transfer and FAT/directory access. The disadvantage of the tiny buffer configuration is: the FAT data cached in the sector buffer will be lost by file data transfer and it must be reloaded at every cluster boundary. However it will be suitable for most application from view point of the decent performance and low memory comsumption.</p>
+<p>Figure 1 shows that a partial sector, sector misaligned part of the file, is transferred via the file I/O buffer. At long data transfer shown in Figure 2, middle of transfer data that covers one or more sector is transferred to the application buffer directly. Figure 3 shows that the case of entier transfer data is aligned to the sector boundary. In this case, file I/O buffer is not used. On the direct transfer, the maximum extent of sectors are read with <tt>disk_read</tt> function at a time but the multiple sector transfer is divided at cluster boundary even if it is contiguous.</p>
<p>Therefore taking effort to sector aligned read/write accesss eliminates buffered data transfer and the read/write performance will be improved. Besides the effect, cached FAT data will not be flushed by file data transfer at the tiny configuration, so that it can achieve same performance as non-tiny configuration with small memory footprint.</p>
</div>
-<div class="para" id="fs2">
+<div class="para doc" id="fs2">
<h3>Considerations on Flash Memory Media</h3>
<p>To maximize the write performance of flash memory media, such as SDC, CFC and U Disk, it must be controlled in consideration of its characteristitcs.</p>
<h4>Using Mutiple-Sector Write</h4>
<div class="rset">
Figure 6. Comparison between Multiple/Single Sector Write<br>
-<img src="../img/f6.png" width="630" height="148" alt="fig.6">
+<img src="../res/f6.png" width="630" height="148" alt="fig.6">
</div>
-<p>The write throughput of the flash memory media becomes the worst at single sector write transaction. The write throughput increases as the number of sectors per a write transaction. This effect more appers at faster interface speed and the performance ratio often becomes grater than ten. <a href="../img/rwtest2.png">This graph</a> is clearly explaining how fast is multiple block write (W:16K, 32 sectors) than single block write (W:100, 1 sector), and also larger card tends to be slow at single block write. The number of write transactions also affects the life time of the flash memory media. Therefore the application program should write the data in large block as possible. The ideal write chunk size and alighment is size of sector, and size of cluster is the best. Of course all layers between the application and the storage device must have consideration on multiple sector write, however most of open-source disk drivers lack it. Do not split a multiple sector write request into single sector write transactions or the write throughput gets poor. Note that FatFs module and its sample disk drivers supprt multiple sector read/write feature. </p>
+<p>The write throughput of the flash memory media becomes the worst at single sector write transaction. The write throughput increases as the number of sectors per a write transaction as shown in Figure 6. This effect more appers at faster interface speed and the performance ratio often becomes grater than ten. <a href="../res/rwtest2.png">This graph</a> is clearly explaining how fast is multiple block write (W:16K, 32 sectors) than single block write (W:100, 1 sector), and also larger card tends to be slow at single block write. Number of write transactions also affects life time of the flash memory media. When compared at same amount of write data, the single sector write in Figure 6 above wears flash memory media 16 times more than multiple sector write in Figure 6 below. Single sector write is pretty pain for the flash memory media.</p>
+<p>Therefore the application program should write the data in large block as possible. The ideal write chunk size and alighment is size of sector, and size of cluster is the best. Of course all layers between the application and the storage device must have consideration on multiple sector write, however most of open-source memory card drivers lack it. Do not split a multiple sector write request into single sector write transactions or the write throughput gets poor. Note that FatFs module and its sample disk drivers supprt multiple sector read/write operation. </p>
<h4>Forcing Memory Erase</h4>
-<p>When remove a file with <tt>f_remove()</tt> function, the data clusters occupied by the file are marked 'free' on the FAT. But the data sectors containing the file data are not that applied any process, so that the file data left occupies a part of the flash memory array as 'live block'. If the file data is forced erased on removing the file, those data blocks will be turned in to the free block pool. This may skip internal block erase operation to the data block on next write operation. As the result the write performance might be improved. FatFs can manage this feature by setting <tt>_USE_TRIM</tt> to 1. Note that this is an expectation of internal process of the flash memory storage and not that always effective. Also <tt>f_remove()</tt> function will take a time when remove a large file. Most applications will not need this feature.</p>
+<p>When remove a file with <tt>f_unlink</tt> function, the data clusters occupied by the file are marked 'free' on the FAT. But the data sectors containing the file data are not that applied any process, so that the file data left occupies a part of the flash memory array as 'live block'. If the file data can be erased on removing the file, those data blocks will be turned into the free block pool. This may skip internal block erase operation to the data block on next write operation. As the result the write performance might be improved. FatFs can manage this function by setting <tt><a href="config.html#use_trim">_USE_TRIM</a></tt> to 1. Note that this is an expectation of internal process of the storage device and not that always effective. Most applications will not need this function. Also <tt>f_unlink</tt> function can take a time when remove a large file.</p>
</div>
-<div class="para" id="critical">
+<div class="para doc" id="critical">
<h3>Critical Section</h3>
-<p>If a write operation to the FAT volume is interrupted due to any accidental failure, such as sudden blackout, incorrect disk removal and unrecoverable disk error, the FAT structure on the volume can be broken. Following images shows the critical section of the FatFs module.</p>
+<p>If a write operation to the FAT volume is interrupted due to an accidental failure, such as sudden blackout, incorrect media removal and unrecoverable disk error, the FAT structure on the volume can be broken. Following images shows the critical section of the FatFs module.</p>
<div class="lset">
Figure 4. Long critical section<br>
-<img src="../img/f4.png" width="320" height="436" alt="fig.4">
+<img src="../res/f4.png" width="320" height="436" alt="fig.4">
</div>
<div class="lset">
Figure 5. Minimized critical section<br>
-<img src="../img/f5.png" width="320" height="436" alt="fig.5">
+<img src="../res/f5.png" width="320" height="436" alt="fig.5">
</div>
<br class="clr">
<p>An interruption in the red section can cause a cross link; as a result, the object being changed can be lost. If an interruption in the yellow section is occured, there is one or more possibility listed below.</p>
@@ -234,42 +236,47 @@ Figure 5. Minimized critical section<br> <li>The file created as new or overwritten remains but no content.</li>
<li>Efficiency of disk use gets worse due to lost clusters.</li>
</ul>
-<p>Each case does not affect the files that not opened in write mode. To minimize risk of data loss, the critical section can be minimized by minimizing the time that file is opened in write mode or using <tt>f_sync()</tt> function as shown in Figure 5.</p>
+<p>Each case does not affect the files that not opened in write mode. To minimize risk of data loss, the critical section can be minimized by minimizing the time that file is opened in write mode or using <tt>f_sync</tt> function as shown in Figure 5.</p>
</div>
-<div class="para" id="fs3">
+<div class="para doc" id="fs3">
<h3>Extended Use of FatFs API</h3>
<p>These are examples of extended use of FatFs APIs. New item will be added whenever a useful code is found.</p>
<ol>
-<li><a href="../img/app1.c">Open or create a file for append</a></li>
-<li><a href="../img/app2.c">Empty a directory</a></li>
-<li><a href="../img/app3.c">Allocate contiguous area to the file</a></li>
-<li><a href="../img/app4.c">Function/Compatible checker for low level disk I/O module</a></li>
-<li><a href="../img/mkfatimg.zip">FAT image creator</a></li>
+<li><a href="../res/app1.c">Open or create a file for append</a> (for only R0.12 and earlier)</li>
+<li><a href="../res/app2.c">Empty a directory</a></li>
+<li><a href="../res/app3.c">Allocate contiguous area to the file</a> (for only R0.11a and earlier)</li>
+<li><a href="../res/app4.c">Compatibility checker for low level disk I/O module</a></li>
+<li><a href="../res/mkfatimg.zip">FAT image creator</a></li>
</ol>
</div>
-<div class="para" id="license">
+<div class="para doc" id="license">
<h3>About FatFs License</h3>
-<p>FatFs has being developped as a personal project of author, ChaN. It is free from the code anyone else wrote. Following code block shows a copy of the FatFs license document that included in the source files.</p>
-<pre>/*----------------------------------------------------------------------------/
-/ FatFs - FAT file system module R0.10b (C)ChaN, 2014
+<p>FatFs has being developped as a personal project of the author, ChaN. It is free from the code anyone else wrote at current release. Following code block shows a copy of the FatFs license document that included in the source files.</p>
+<pre>
+/*----------------------------------------------------------------------------/
+/ FatFs - Generic FAT file system module R0.12a /
/-----------------------------------------------------------------------------/
-/ FatFs module is a generic FAT file system module for small embedded systems.
-/ This is a free software that opened for education, research and commercial
-/ developments under license policy of following trems.
/
-/ Copyright (C) 2014, ChaN, all right reserved.
+/ Copyright (C) 2016, ChaN, all right reserved.
/
-/ * The FatFs module is a free software and there is NO WARRANTY.
-/ * No restriction on use. You can use, modify and redistribute it for
-/ personal, non-profit or commercial products UNDER YOUR RESPONSIBILITY.
-/ * Redistributions of source code must retain the above copyright notice.
+/ FatFs module is an open source software. Redistribution and use of FatFs in
+/ source and binary forms, with or without modification, are permitted provided
+/ that the following condition is met:
+
+/ 1. Redistributions of source code must retain the above copyright notice,
+/ this condition and the following disclaimer.
/
-/-----------------------------------------------------------------------------/</pre>
-<p>Therefore FatFs license is one of the BSD-style licenses but there is a significant feature. Because FatFs is mainly intended for embedded projects, the redistributions in binary form, such as embedded code or any forms without source code, need not to explain about FatFs in order to extend usability for commercial products. The documentation of the distributions need not include about FatFs and its license documents, and it may also. This is equivalent to the BSD 1-Clause License. Of course FatFs is compatible with the projects under GNU GPL. When redistribute the FatFs with any modification or branch it as a fork, the license can also be changed to GNU GPL, BSD-style license or any free software licenses that not conflict with FatFs license.</p>
+/ This software is provided by the copyright holder and contributors "AS IS"
+/ and any warranties related to this software are DISCLAIMED.
+/ The copyright owner or contributors be NOT LIABLE for any damages caused
+/ by use of this software.
+/----------------------------------------------------------------------------*/
+</pre>
+<p>Therefore FatFs license is one of the BSD-style licenses but there is a significant feature. FatFs is mainly intended for embedded systems. In order to extend the usability for commercial products, the redistributions of FatFs in binary form, such as embedded code, binary library and any forms without source code, does not need to include about FatFs in the documentations. This is equivalent to the 1-clause BSD license. Of course FatFs is compatible with the most open source software licenses including GNU GPL. When you redistribute the FatFs source code with any changes or create a fork, the license can also be changed to GNU GPL, BSD-style license or any open source software licenses that not conflict with FatFs license.</p>
</div>
-<p class="foot"><a href="../00index_e.html">Return</a></p>
+<p class="foot"><a href="../00index_e.html">Return Home</a></p>
</body>
</html>
diff --git a/fatfs/doc/en/chdir.html b/fatfs/doc/en/chdir.html index 063b8f5..41935fc 100644 --- a/fatfs/doc/en/chdir.html +++ b/fatfs/doc/en/chdir.html @@ -25,7 +25,7 @@ FRESULT f_chdir ( <h4>Parameters</h4>
<dl class="par">
<dt>path</dt>
-<dd>Pointer to the null-terminated string that specifies a <a href="filename.html">directory</a> to go.</dd>
+<dd>Pointer to the null-terminated string that specifies the <a href="filename.html">directory</a> to go.</dd>
</dl>
</div>
@@ -50,7 +50,7 @@ FRESULT f_chdir ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_chdir()</tt> function changes the current directory of the logical drive. The current directory of a drive is initialized to the root directory when the drive is auto-mounted. Note that the current directory is retained in the each file system object so that it also affects other tasks that using the volume.</p>
+<p>The <tt>f_chdir</tt> function changes the current directory of the logical drive. The current directory of a drive is set to the root directory when the drive is mounted. Note that the current directory is retained in the each file system object, so that it also affects other tasks that use the volume.</p>
</div>
@@ -63,10 +63,10 @@ FRESULT f_chdir ( <div class="para use">
<h4>Example</h4>
<pre>
- <span class="c">/* Change current direcoty of the current drive (dir1 under root dir) */</span>
+ <span class="c">/* Change current direcoty of the current drive ('dir1' under root directory) */</span>
f_chdir("/dir1");
- <span class="c">/* Change current direcoty of drive 2 (parent dir) */</span>
+ <span class="c">/* Change current direcoty of drive 2 (parent directory) */</span>
f_chdir("2:..");
</pre>
</div>
diff --git a/fatfs/doc/en/chdrive.html b/fatfs/doc/en/chdrive.html index 665e543..7950994 100644 --- a/fatfs/doc/en/chdrive.html +++ b/fatfs/doc/en/chdrive.html @@ -41,7 +41,7 @@ FRESULT f_chdrive ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_chdrive()</tt> function changes the current drive. The initial value of the current drive number is 0. Note that the current drive is retained in a static variable so that it also affects other tasks that using the file functions.</p>
+<p>The <tt>f_chdrive</tt> function changes the current drive. The initial value of the current drive number is 0. Note that the current drive is retained in a static variable so that it also affects other tasks that using the file functions.</p>
</div>
<div class="para comp">
diff --git a/fatfs/doc/en/chmod.html b/fatfs/doc/en/chmod.html index 6d53974..6a3ffd0 100644 --- a/fatfs/doc/en/chmod.html +++ b/fatfs/doc/en/chmod.html @@ -66,13 +66,13 @@ FRESULT f_chmod ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_chmod()</tt> function changes the attribute of a file or sub-directory.</p>
+<p>The <tt>f_chmod</tt> function changes the attribute of a file or sub-directory.</p>
</div>
<div class="para comp">
<h4>QuickInfo</h4>
-<p>Available when <tt>_FS_READONLY == 0</tt> and <tt>_FS_MINIMIZE == 0</tt>.</p>
+<p>Available when <tt>_FS_READONLY == 0</tt> and <tt>_USE_CHMOD == 1</tt>.</p>
</div>
@@ -80,7 +80,7 @@ FRESULT f_chmod ( <h4>Example</h4>
<pre>
<span class="c">/* Set read-only flag, clear archive flag and others are left unchanged. */</span>
- f_chmod("file.txt", AR_RDO, AR_RDO | AR_ARC);
+ f_chmod("file.txt", AM_RDO, AM_RDO | AM_ARC);
</pre>
</div>
diff --git a/fatfs/doc/en/close.html b/fatfs/doc/en/close.html index f3423fa..c16dfa6 100644 --- a/fatfs/doc/en/close.html +++ b/fatfs/doc/en/close.html @@ -36,7 +36,6 @@ FRESULT f_close ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>
</p>
@@ -45,8 +44,8 @@ FRESULT f_close ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_close()</tt> function closes an open file object. If any data has been written to the file, the cached information of the file is written back to the volume. After the function succeeded, the file object is no longer valid and it can be discarded.</p>
-<p>Note that if the file object is in read-only mode and <tt>_FS_LOCK</tt> option is not enabled, the file object can also be discarded without this process. However this is not recommended for future compatibility.</p>
+<p>The <tt>f_close</tt> function closes an open file object. If any data has been written to the file, the cached information of the file is written back to the volume. After the function succeeded, the file object is no longer valid and it can be discarded.</p>
+<p>Note that if the file object is in read-only mode and <tt>_FS_LOCK</tt> is not enabled, the file object can also be discarded without this process. However this is not recommended for future compatibility.</p>
</div>
diff --git a/fatfs/doc/en/closedir.html b/fatfs/doc/en/closedir.html index 4f97b6b..253d67a 100644 --- a/fatfs/doc/en/closedir.html +++ b/fatfs/doc/en/closedir.html @@ -43,8 +43,8 @@ FRESULT f_closedir ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_closedir()</tt> function closes an open directory object. After the function succeeded, the directory object is no longer valid and it can be discarded.</p>
-<p>Note that the directory object can also be discarded without this process if <tt>_FS_LOCK</tt> option is not enabled. However this is not recommended for future compatibility.</p>
+<p>The <tt>f_closedir</tt> function closes an open directory object. After the function succeeded, the directory object is no longer valid and it can be discarded.</p>
+<p>Note that the directory object can also be discarded without this process when option <tt>_FS_LOCK</tt> is not enabled. However this is not recommended for future compatibility.</p>
</div>
diff --git a/fatfs/doc/en/config.html b/fatfs/doc/en/config.html new file mode 100644 index 0000000..395369f --- /dev/null +++ b/fatfs/doc/en/config.html @@ -0,0 +1,204 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta http-equiv="Content-Style-Type" content="text/css">
+<link rel="up" title="FatFs" href="../00index_e.html">
+<link rel="alternate" hreflang="ja" title="Japanese" href="../ja/config.html">
+<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
+<title>FatFs - Configuration Options</title>
+</head>
+
+<body>
+<h1>Configuration Options</h1>
+<p>There are many options to configure the functions of FatFs for each project. The configuration options are defined in the <tt>ffconf.h</tt>.</p>
+
+<div class="para doc" id="func">
+<h3>Function Configurations</h3>
+
+<h4 id="fs_readonly">_FS_READONLY</h4>
+<p>Read/Write (0) or Read-only (1). Read-only configuration removes writing API functions, <tt>f_write</tt>, <tt>f_sync</tt>, <tt>f_unlink</tt>, <tt>f_mkdir</tt>, <tt>f_chmod</tt>, <tt>f_rename</tt>, <tt>f_truncate</tt>, <tt>f_getfree</tt> and optional writing functions as well.</p>
+
+<h4 id="fs_minimize">_FS_MINIMIZE</h4>
+<p>This option defines minimization level to remove some basic API functions as follows:</p>
+<table class="lst1">
+<tr><th>Value</th><th>Description</th></tr>
+<tr><td>0</td><td>All basic API functions are available.</td></tr>
+<tr><td>1</td><td><tt>f_stat</tt>, <tt>f_getfree</tt>, <tt>f_unlink</tt>, <tt>f_mkdir</tt>, <tt>f_chmod</tt>, <tt>f_utime</tt>, <tt>f_truncate</tt> and <tt>f_rename</tt> function are removed.</td></tr>
+<tr><td>2</td><td><tt>f_opendir</tt>, <tt>f_readdir</tt> and <tt>f_closedir</tt> function are removed in addition to 1.</td></tr>
+<tr><td>3</td><td><tt>f_lseek</tt> function is removed in addition to 2.</td></tr>
+</table>
+
+<h4 id="use_strfunc">_USE_STRFUNC</h4>
+<p>This option switches string functions, <tt>f_gets</tt>, <tt>f_putc</tt>, <tt>f_puts</tt> and <tt>f_printf</tt>.</p>
+<table class="lst1">
+<tr><th>Value</th><th>Description</th></tr>
+<tr><td>0</td><td>Disable string functions.</td></tr>
+<tr><td>1</td><td>Enable string functions without LF-CRLF conversion.</td></tr>
+<tr><td>2</td><td>Enable string functions with LF-CRLF conversion.</td></tr>
+</table>
+
+<h4 id="use_find">_USE_FIND</h4>
+<p>Disable (0) or Enable (1) filtered directory read functions, <tt>f_findfirst</tt> and <tt>f_findnext</tt>. Also <tt>_FS_MINIMIZE</tt> needs to be 0 or 1.</p>
+
+<h4 id="use_mkfs">_USE_MKFS</h4>
+<p>Disable (0) or Enable (1) <tt>f_mkfs</tt> function.</p>
+
+<h4 id="use_fastseek">_USE_FASTSEEK</h4>
+<p>Disable (0) or Enable (1) fast seek function to enable accelerated mode for <tt>f_lseek</tt>, <tt>f_read</tt> and <tt>f_write</tt> function. For more information, read <a href="lseek.html">here</a>.</p>
+
+<h4 id="use_expand">_USE_EXPAND</h4>
+<p>Disable (0) or Enable (1) , <tt>f_enpand</tt> function. Also <tt>_FS_READONLY</tt> needs to be 0.</p>
+
+<h4 id="use_chmod">_USE_CHMOD</h4>
+<p>Disable (0) or Enable (1) metadata control functions, <tt>f_chmod</tt> and <tt>f_utime</tt>. Also <tt>_FS_READONLY</tt> needs to be 0.</p>
+
+<h4 id="use_label">_USE_LABEL</h4>
+<p>Disable (0) or Enable (1) API functions for volume label, <tt>f_getlabel</tt> and <tt>f_setlabel</tt>.</p>
+
+<h4 id="use_forward">_USE_FORWARD</h4>
+<p>Disable (0) or Enable (1) <tt>f_forward</tt> function.</p>
+
+</div>
+
+
+<div class="para doc" id="name">
+<h3>Namespace and Locale Configurations</h3>
+
+<h4 id="code_page">_CODE_PAGE</h4>
+<p>This option specifies the OEM code page to be used on the target system. Incorrect setting of the code page can cause a file open failure. If any extended character is not used at all, there is no difference between any code pages.</p>
+<table class="lst1">
+<tr><th>Value</th><th>Description</th></tr>
+<tr><td>1</td><td>ASCII (valid at non-LFN cfg.)</td></tr>
+<tr><td>437</td><td>U.S.</td></tr>
+<tr><td>720</td><td>Arabic</td></tr>
+<tr><td>737</td><td>Greek</td></tr>
+<tr><td>771</td><td>KBL</td></tr>
+<tr><td>775</td><td>Baltic</td></tr>
+<tr><td>850</td><td>Latin 1</td></tr>
+<tr><td>852</td><td>Latin 2</td></tr>
+<tr><td>855</td><td>Cyrillic</td></tr>
+<tr><td>857</td><td>Turkish</td></tr>
+<tr><td>860</td><td>Portuguese</td></tr>
+<tr><td>861</td><td>Icelandic</td></tr>
+<tr><td>862</td><td>Hebrew</td></tr>
+<tr><td>863</td><td>Canadian French</td></tr>
+<tr><td>864</td><td>Arabic</td></tr>
+<tr><td>865</td><td>Nordic</td></tr>
+<tr><td>866</td><td>Russian</td></tr>
+<tr><td>869</td><td>Greek 2</td></tr>
+<tr><td>932</td><td>Japanese (DBCS)</td></tr>
+<tr><td>936</td><td>Simplified Chinese (DBCS)</td></tr>
+<tr><td>949</td><td>Korean (DBCS)</td></tr>
+<tr><td>950</td><td>Traditional Chinese (DBCS)</td></tr>
+</table>
+
+<h4 id="use_lfn">_USE_LFN</h4>
+<p>This option switches the support for long file name (LFN). When enable the LFN, Unicode support functions <tt>option/unicode.c</tt> need to be added to the project. The working buffer occupies <tt>(_MAX_LFN + 1) * 2</tt> bytes and additional 608 bytes when exFAT enabled. When use stack for the working buffer, take care on stack overflow. When use heap memory for the working buffer, memory management functions, <tt>ff_memalloc</tt> and <tt>ff_memfree</tt>, need to be added to the project.</p>
+<table class="lst1">
+<tr><th>Value</th><th>Description</th></tr>
+<tr><td>0</td><td>Disable LFN. Only 8.3 format can be used.</td></tr>
+<tr><td>1</td><td>Enable LFN with static working buffer on the BSS. Always NOT thread-safe.</td></tr>
+<tr><td>2</td><td>Enable LFN with dynamic working buffer on the STACK.</td></tr>
+<tr><td>3</td><td>Enable LFN with dynamic working buffer on the HEAP.</td></tr>
+</table>
+
+<h4 id="max_lfn">_MAX_LFN</h4>
+<p>This option defines the size of LFN working buffer from 12 to 255 in unit of character. This option has no effect when LFN is disabled.</p>
+
+<h4 id="lfn_unicode">_LFN_UNICODE</h4>
+<p>ANSI/OEM (0) or Unicode (1). This option switches character encoding on the API. To use Unicode (UTF16) string for the path name, enable LFN and set this option to 1. This option also affects behavior of string I/O functions. When LFN is disabled, this option must be 0. For more information, read <a href="filename.html#uni">here</a>.</p>
+
+<h4 id="strf_encode">_STRF_ENCODE</h4>
+<p>When Unicode API is selected by setting <tt>_LFN_UNICODE</tt> 1, this option defines the assumption of character encoding on the file to be read/written via string I/O functions, <tt>f_gets</tt>, <tt>f_putc</tt>, <tt>f_puts</tt> and <tt>f_printf</tt>. This option has no effect when <tt>_LFN_UNICODE = 0</tt>.</p>
+<table class="lst1">
+<tr><th>Value</th><th>Description</th></tr>
+<tr><td>0</td><td>ANSI/OEM</td></tr>
+<tr><td>1</td><td>UTF-16LE</td></tr>
+<tr><td>2</td><td>UTF-16BE</td></tr>
+<tr><td>3</td><td>UTF-8</td></tr>
+</table>
+
+<h4 id="fs_rpath">_FS_RPATH</h4>
+<p>This option configures relative path function. For more information, read <a href="filename.html#nam">here</a>.</p>
+<table class="lst1">
+<tr><th>Value</th><th>Description</th></tr>
+<tr><td>0</td><td>Disable relative path function and remove related functions.</td></tr>
+<tr><td>1</td><td>Enable relative path function. <tt>f_chdir</tt> and <tt>f_chdrive</tt> function is available.</td></tr>
+<tr><td>2</td><td><tt>f_getcwd</tt> function is available in addition to 1</td></tr>
+</table>
+
+</div>
+
+
+<div class="para doc" id="volume">
+<h3>Volume/Drive Configurations</h3>
+
+<h4 id="volumes">_VOLUMES</h4>
+<p>This option configures number of volumes (logical drives, from 1 to 10) to be used.</p>
+
+<h4 id="str_volume_id">_STR_VOLUME_ID</h4>
+<p>Disable (0) or Enable (1). This option switches the support for string volume ID. When enabled, also pre-defined strings in <tt>_VOLUME_STRS</tt> can be used as drive identifier in the path name.</p>
+
+<h4 id="volume_strs">_VOLUME_STRS</h4>
+<p>This option defines the drive ID strings for each logical drives. Number of items must not be less than <tt>_VOLUMES</tt>. Valid characters for the drive ID string are: A-Z and 0-9.</p>
+
+<h4 id="multi_partition">_MULTI_PARTITION</h4>
+<p>Disable (0) or Enable (1). This option switches multi-partition function. By default (0), each logical drive number is bound to the same physical drive number and only an FAT volume in the physical drive is mounted. When enabled, each logical drive is bound to the partition on the physical drive listed in the user defined partition resolution table <tt>VolToPart[]</tt>. Also <tt>f_fdisk</tt> funciton will be available. For more information, read <a href="filename.html#vol">here</a>.</p>
+
+<h4 id="max_ss">_MIN_SS, _MAX_SS</h4>
+<p>This set of options defines the size of sector on low level disk I/O interface, <tt>disk_read</tt> and <tt>disk_write</tt> function. Valid values are 512, 1024, 2048 and 4096. <tt>_MIN_SS</tt> defines minimum sector size and <tt>_MAX_SS</tt> defines the maximum sector size. Always set both 512 for any type of memory card and harddisk. But a larger value may be required for on-board flash memory and some type of optical media. When <tt>_MAX_SS > _MIN_SS</tt>, FatFs is configured to variable sector size and <tt>GET_SECTOR_SIZE</tt> command must be implemented to the <tt>disk_ioctl</tt> function.</p>
+
+<h4 id="use_trim">_USE_TRIM</h4>
+<p>Disable (0) or Enable (1). This option switches ATA-TRIM function. To enable Trim function, also <tt>CTRL_TRIM</tt> command should be implemented to the <tt>disk_ioctl</tt> function.</p>
+
+<h4 id="fs_nofsinfo">_FS_NOFSINFO</h4>
+<p>0 to 3. If you need to know correct free space on the FAT32 volume, set bit 0 of this option, and <tt>f_getfree</tt> function at first time after volume mount will force a full FAT scan. Bit 1 controls the use of last allocated cluster number.</p>
+<table class="lst1">
+<tr><th>Value</th><th>Description</th></tr>
+<tr><td>bit0=0</td><td>Use free cluster count in the FSINFO if available.</td></tr>
+<tr><td>bit0=1</td><td>Do not trust free cluster count in the FSINFO.</td></tr>
+<tr><td>bit1=0</td><td>Use last allocated cluster number in the FSINFO to find a free cluster if available.</td></tr>
+<tr><td>bit1=1</td><td>Do not trust last allocated cluster number in the FSINFO.</td></tr>
+</table>
+
+</div>
+
+
+<div class="para doc" id="system">
+<h3>System Configurations</h3>
+
+<h4 id="fs_tiny">_FS_TINY</h4>
+<p>Normal (0) or Tiny (1). At the tiny configuration, size of the file object <tt>FIL</tt> is reduced <tt>_MAX_SS</tt> bytes. Instead of private data buffer eliminated from the file object, common sector buffer in the file system object <tt>FATFS</tt> is used for the file data transfer.</p>
+
+<h4 id="fs_exfat">_FS_EXFAT</h4>
+<p>This option switches support for the exFAT file system in addition to the FAT file system, Enabled(1) or Disabled(1). To enable this feature, also LFN must be enabled and configureing <tt>_LFN_UNICODE = 1</tt> and <tt>_MAX_LFN = 255</tt> is recommended for full-featured exFAT function. Note that enabling exFAT discards C89 compatibility because of need for 64-bit integer type.</p>
+
+<h4 id="fs_nortc">_FS_NORTC</h4>
+<p>Use RTC (0) or Do not use RTC (1). This option controls timestamp function. If the system does not have an RTC function or valid timestamp is not needed, set <tt>_FS_NORTC</tt> to 1 to disable the timestamp function. Any object modified by FatFs will have a fixed timestamp defined by <tt>_NORTC_MON</tt>, <tt>_NORTC_MDAY</tt> and <tt>_NORTC_YEAR</tt>. To use the timestamp function, set <tt>_FS_NORTC = 0</tt> and add <tt>get_fattime</tt> function to the project to get the current time form real-time clock. This option has no effect at read-only configuration.</p>
+
+<h4 id="nortc_time">_NORTC_MON, _NORTC_MDAY, _NORTC_YEAR</h4>
+<p>This set of options defines the time to be used at no RTC systems. This option has no effect at read-only configuration or <tt>_FS_NORTC = 0</tt>.</p>
+
+<h4 id="fs_lock">_FS_LOCK</h4>
+<p>This option switches file lock function to control duplicated file open and illegal operations to open objects. Note that the file lock function is independent of re-entrancy. This option must be 0 at read-only configuration.</p>
+<table class="lst1">
+<tr><th>Value</th><th>Description</th></tr>
+<tr><td>0</td><td>Disable file lock function. To avoid collapsing file by wrong file operation, application program needs to avoid illegal open, remove and rename to the open objects.</td></tr>
+<tr><td>>0</td><td>Enable file lock function. The value defines how many files/sub-directories can be opened simultaneously under the file lock control. Illigal operations to the open object will be rejected with <tt>FR_LOCKED</tt>.</td></tr>
+</table>
+
+<h4 id="fs_reentrant">_FS_REENTRANT</h4>
+<p>Disable (0) or Enable (1). This option switches the re-entrancy (thread safe) of the FatFs module itself. Note that file/directory access to the different volume is always re-entrant and it can work simultaneously regardless of this option but volume control functions. <tt>f_mount</tt>, <tt>f_mkfs</tt> and <tt>f_fdisk</tt>, are always not re-entrant. Only file/directory access to the same volume, in other words, exclusive use of each file system object, is under control of this function. To enable this feature, also user provided synchronization handlers, <tt>ff_req_grant</tt>, <tt>ff_rel_grant</tt>, <tt>ff_del_syncobj</tt> and <tt>ff_cre_syncobj</tt>, need to be added to the project. Sample code is available in <tt>option/syscall.c</tt>.</p>
+
+<h4 id="fs_timeout">_FS_TIMEOUT</h4>
+<p>Number of time ticks to abort the file function with <tt>FR_TIMEOUT</tt> when wait time is too long. This option has no effect when <tt>_FS_REENTRANT = 0</tt>.</p>
+
+<h4 id="sync_t">_SYNC_t</h4>
+<p>This option defines O/S dependent sync object type. e.g. <tt>HANDLE</tt>, <tt>ID</tt>, <tt>OS_EVENT*</tt>, <tt>SemaphoreHandle_t</tt> and etc. A header file for O/S definitions needs to be included somewhere in the scope of <tt>ff.c</tt>. This option has no effect when <tt>_FS_REENTRANT = 0</tt>.</p>
+
+</div>
+
+<p class="foot"><a href="../00index_e.html">Return</a></p>
+</body>
+</html>
diff --git a/fatfs/doc/en/dinit.html b/fatfs/doc/en/dinit.html index a85eecd..4a003e7 100644 --- a/fatfs/doc/en/dinit.html +++ b/fatfs/doc/en/dinit.html @@ -32,13 +32,13 @@ DSTATUS disk_initialize ( <div class="para ret">
<h4>Return Values</h4>
-<p>This function returns the current drive status flags as the result. For details of the drive status, refer to the <a href="dstat.html">disk_status()</a> function.</p>
+<p>This function returns the current drive status flags as the result. For details of the drive status, refer to the <a href="dstat.html">disk_status</a> function.</p>
</div>
<div class="para desc">
<h4>Description</h4>
<p>This function initializes the storage device and put it ready to generic read/write. When the function succeeded, <tt>STA_NOINIT</tt> flag in the return value is cleared.</p>
-<p><em>Application program MUST NOT call this function, or FAT structure on the volume can be broken. To re-initialize the file system, use <tt>f_mount()</tt> function instead.</em> This function is called at volume mount process by FatFs module to manage the media change.</p>
+<p><em>Remarks: This function needs to be under control of FatFs module. Application program MUST NOT call this function, or FAT structure on the volume can be broken. To re-initialize the file system, use <tt>f_mount</tt> function instead.</em></p>
</div>
<p class="foot"><a href="../00index_e.html">Return</a></p>
diff --git a/fatfs/doc/en/dioctl.html b/fatfs/doc/en/dioctl.html index 8fe62ec..7c69251 100644 --- a/fatfs/doc/en/dioctl.html +++ b/fatfs/doc/en/dioctl.html @@ -13,7 +13,7 @@ <div class="para func">
<h2>disk_ioctl</h2>
-<p>The disk_ioctl function cntrols device specific features and miscellaneous functions other than generic read/write.</p>
+<p>The disk_ioctl function controls device specific features and miscellaneous functions other than generic read/write.</p>
<pre>
DRESULT disk_ioctl (
BYTE <span class="arg">pdrv</span>, <span class="c">/* [IN] Drive number */</span>
@@ -57,11 +57,11 @@ DRESULT disk_ioctl ( <table class="lst">
<caption>Standard ioctl command used by FatFs</caption>
<tr><th>Command</th><th>Description</th></tr>
-<tr><td>CTRL_SYNC</td><td>Make sure that the device has finished pending write process. If the disk I/O module has a write back cache, the dirty buffers must be written back to the media immediately. Nothing to do for this command if each write operation to the media is completed within the <tt>disk_write()</tt> function.</td></tr>
-<tr><td>GET_SECTOR_COUNT</td><td>Returns number of available sectors on the drive into the <tt>DWORD</tt> variable pointed by <tt class="arg">buff</tt>. This command is used by only <tt>f_mkfs()</tt> and <tt>f_fdisk()</tt> function to determine the volume/partition size to be created. Required at <tt>_USE_MKFS == 1</tt> or <tt>_MULTI_PARTITION == 1</tt>.</td></tr>
+<tr><td>CTRL_SYNC</td><td>Make sure that the device has finished pending write process. If the disk I/O module has a write back cache, the dirty buffers must be written back to the media immediately. Nothing to do for this command if each write operation to the media is completed within the <tt>disk_write</tt> function.</td></tr>
+<tr><td>GET_SECTOR_COUNT</td><td>Returns number of available sectors on the drive into the <tt>DWORD</tt> variable pointed by <tt class="arg">buff</tt>. This command is used by only <tt>f_mkfs</tt> and <tt>f_fdisk</tt> function to determine the volume/partition size to be created. Required at <tt>_USE_MKFS == 1</tt> or <tt>_MULTI_PARTITION == 1</tt>.</td></tr>
<tr><td>GET_SECTOR_SIZE</td><td>Returns sector size of the media into the <tt>WORD</tt> variable pointed by <tt class="arg">buff</tt>. Valid return values of this command are 512, 1024, 2048 and 4096. This command is required only at variable sector size configuration, <tt>_MAX_SS > _MIN_SS</tt>. At fixed sector size configuration, <tt>_MAX_SS == _MIN_SS</tt>, this command is not used and the device must work at that sector size.</td></tr>
-<tr><td>GET_BLOCK_SIZE</td><td>Returns erase block size of the flash memory media in unit of sector into the <tt>DWORD</tt> variable pointed by <tt class="arg">buff</tt>. The allowable value is from 1 to 32768 in power of 2. Return 1 if the erase block size is unknown or non flash memory media. This command is used by only <tt>f_mkfs()</tt> function and it attempts to align data area to the erase block boundary. Required at <tt>_USE_MKFS == 1</tt>.</td></tr>
-<tr><td>CTRL_TRIM</td><td>Informs the device the data on the block of sectors that specified by <tt>DWORD</tt> array {<start sector>, <end sector>} pointed by <tt class="arg">buff</tt> is no longer needed and it may be erased. This is an identical command to Trim of ATA device. When this feature is not supported or not a flash memory device, nothing to do for this command. The FatFs does not check the result code and the file function is not affected even if the sector block was not erased well. This command is called on removing a cluster chain and <tt>f_mkfs()</tt> function. Required at <tt>_USE_TRIM == 1</tt>.</td></tr>
+<tr><td>GET_BLOCK_SIZE</td><td>Returns erase block size of the flash memory media in unit of sector into the <tt>DWORD</tt> variable pointed by <tt class="arg">buff</tt>. The allowable value is from 1 to 32768 in power of 2. Return 1 if the erase block size is unknown or non flash memory media. This command is used by only <tt>f_mkfs</tt> function and it attempts to align data area to the erase block boundary. Required at <tt>_USE_MKFS == 1</tt>.</td></tr>
+<tr><td>CTRL_TRIM</td><td>Informs the device the data on the block of sectors that specified by <tt>DWORD</tt> array {<start sector>, <end sector>} pointed by <tt class="arg">buff</tt> is no longer needed and it may be erased. This is an identical command to Trim of ATA device. Nothing to do for this command if this funcion is not supported or not a flash memory device. The FatFs does not check the result code and the file function is not affected even if the sector block was not erased well. This command is called on remove a cluster chain and in the <tt>f_mkfs</tt> function. Required at <tt>_USE_TRIM == 1</tt>.</td></tr>
</table>
<p>FatFs never uses any device dependent command nor user defined command. Following table shows an example of non-standard commands usable for some applications.</p>
@@ -70,7 +70,7 @@ DRESULT disk_ioctl ( <tr><th>Command</th><th>Description</th></tr>
<tr><td>CTRL_FORMAT</td><td>Create a physical format on the media. If <tt class="arg">buff</tt> is not null, it is pointer to the call-back function for progress notification.</td></tr>
<tr><td>CTRL_POWER_IDLE</td><td>Put the device idle state. <tt>STA_NOINIT</tt> in status flag may not be set if the device goes active state by generic read/write function.</td></tr>
-<tr><td>CTRL_POWER_OFF</td><td>Put the device off state. Shut-down the power to the device and deinitialize the device interface if needed. <tt>STA_NOINIT</tt> in status flag must be set. The device goes active state by <tt>disk_initialize()</tt> function.</td></tr>
+<tr><td>CTRL_POWER_OFF</td><td>Put the device off state. Shut-down the power to the device and deinitialize the device interface if needed. <tt>STA_NOINIT</tt> in status flag must be set. The device goes active state by <tt>disk_initialize</tt> function.</td></tr>
<tr><td>CTRL_LOCK</td><td>Lock media eject mechanism.</td></tr>
<tr><td>CTRL_UNLOCK</td><td>Unlock media eject mechanism.</td></tr>
<tr><td>CTRL_EJECT</td><td>Eject media cartridge. <tt>STA_NOINIT</tt> and <tt>STA_NODISK</tt> in status flag are set after the function succeeded.</td></tr>
@@ -82,6 +82,9 @@ DRESULT disk_ioctl ( <tr><td>ATA_GET_REV</td><td>Get the revision string into a 16-byte buffer pointed by <tt class="arg">buff</tt>. (ATA/CFC specific command)</td></tr>
<tr><td>ATA_GET_MODEL</td><td>Get the model string into a 40-byte buffer pointed by <tt class="arg">buff</tt>. (ATA/CFC specific command)</td></tr>
<tr><td>ATA_GET_SN</td><td>Get the serial number string into a 20-byte buffer pointed by <tt class="arg">buff</tt>. (ATA/CFC specific command)</td></tr>
+<tr><td>ISDIO_READ</td><td>Read a block of iSDIO registers specified by command structure pointed by <tt class="arg">buff</tt>. (FlashAir specific command)</td></tr>
+<tr><td>ISDIO_WRITE</td><td>Write a block of data to iSDIO registers specified by command structure pointed by <tt class="arg">buff</tt>. (FlashAir specific command)</td></tr>
+<tr><td>ISDIO_MRITE</td><td>Change bits in an iSDIO register specified by command structure pointed by <tt class="arg">buff</tt>. (FlashAir specific command)</td></tr>
</table>
</div>
diff --git a/fatfs/doc/en/dread.html b/fatfs/doc/en/dread.html index 2e7c279..e7c2d7d 100644 --- a/fatfs/doc/en/dread.html +++ b/fatfs/doc/en/dread.html @@ -30,11 +30,11 @@ DRESULT disk_read ( <dt>pdrv</dt>
<dd>Physical drive number to identify the target device.</dd>
<dt>buff</dt>
-<dd>Pointer to the <em>byte array</em> to store the read data.</dd>
+<dd>Pointer to the first item of the <em>byte array</em> to store read data.</dd>
<dt>sector</dt>
<dd>Start sector number in 32-bit LBA.</dd>
<dt>count</dt>
-<dd>Number of sectors to read in range of from 1 to 128..</dd>
+<dd>Number of sectors to read.</dd>
</dl>
</div>
@@ -56,12 +56,12 @@ DRESULT disk_read ( <div class="para desc">
<h4>Description</h4>
-<p>The data read/write operation to the storage devices is done in unit of <em>sector</em>. FatFs supports the sector size in range of from 512 to 4096 bytes. When FatFs is configured to fixed sector size (<tt>_MIN_SS == MAX_SS</tt>, this will be the most case), the read/write function must work at that sector size. If variable sector size is selected (<tt>_MIN_SS < MAX_SS</tt>), FatFs inquires the sector size with <tt>disk_ioctl()</tt> after initialization</tt>.
-<p>The memory address specified by <tt class="arg">buff</tt> is not that always aligned to word boundary because the argument is defined as <tt>BYTE*</tt>. The misaligned read/write request can occure at <a href="appnote.html#fs1">direct transfer</a>. If the bus architecture, especially DMA controller, does not allow misaligned memory access, it should be solved in this function. There are some workarounds described below to avoid this issue.</p>
+<p>The data read/write operation to the storage devices is done in unit of <em>sector</em>. FatFs supports the sector size in range of from 512 to 4096 bytes. When FatFs is configured to fixed sector size (<tt>_MIN_SS == MAX_SS</tt>, this will be the most case), the read/write function must work at that sector size. When FatFs is configured to variable sector size (<tt>_MIN_SS != MAX_SS</tt>), sector size is inquired with <tt>disk_ioctl</tt> function following <tt>disk_initialize</tt> function.</p>
+<p>The memory address specified by <tt class="arg">buff</tt> is not that always aligned to word boundary because the argument is defined as <tt>BYTE*</tt>. The unaligned read/write request can occure at <a href="appnote.html#fs1">direct transfer</a>. If the bus architecture, especially DMA controller, does not allow unaligned memory access, it should be solved in this function. There are some workarounds described below to avoid this issue.</p>
<ul>
<li>Convert word transfer to byte transfer in this function if needed. - Recommended.</li>
-<li>For <tt>f_read()</tt>, avoid long read request that includes a whole of sector. - Direct transfer will never occure.</li>
-<li>For <tt>f_read(fp, buff, btr, &br)</tt>, make sure that <tt>(((UINT)buff & 3) == (f_tell(fp) & 3))</tt> is true. - Word aligned direct transfer is guaranteed.</li>
+<li>On the <tt>f_read</tt> calls, avoid long read request that includes a whole of sector. - Any direct transfer never occures.</li>
+<li>On the <tt>f_read</tt> calls, make sure that <tt>(((UINT)data & 3) == (f_tell(fp) & 3))</tt> is true. - Word alignment of <tt>buff</tt> is guaranteed.</li>
</ul>
<p>Generally, a multiple sector transfer request must not be split into single sector transactions to the storage device, or you will not get good read throughput.</p>
</div>
diff --git a/fatfs/doc/en/dstat.html b/fatfs/doc/en/dstat.html index c8204cc..0751460 100644 --- a/fatfs/doc/en/dstat.html +++ b/fatfs/doc/en/dstat.html @@ -35,11 +35,11 @@ DSTATUS disk_status ( <p>The current drive status is returned in combination of status flags described below. FatFs refers only <tt>STA_NOINIT</tt> and <tt>STA_PROTECT</tt>.</p>
<dl class="ret">
<dt>STA_NOINIT</dt>
-<dd>Indicates that the device is not initialized. This flag is set on system reset, media removal or failure of <tt>disk_initialize()</tt> function. It is cleared on <tt>disk_initialize()</tt> function succeeded. Media change that occurs asynchronously must be captured and reflect it to the status flags, or auto-mount feature will not work correctly. If the system does not support media change detect feature, application program needs to force de-initialize the file system object with <tt>f_mount()</tt> function after the media change.</dd>
+<dd>Indicates that the device is not initialized and not ready to work. This flag is set on system reset, media removal or failure of <tt>disk_initialize</tt> function. It is cleared on <tt>disk_initialize</tt> function succeeded. Any media change that occurs asynchronously must be captured and reflect it to the status flags, or auto-mount function will not work correctly. If the system does not support media change detection, application program needs to force de-initialize the file system object and re-mount the volume with <tt>f_mount</tt> function after each media change.</dd>
<dt>STA_NODISK</dt>
-<dd>Indicates that no medium in the drive. This is always cleared on fixed disk drive. Note that FatFs does not refer this flag.</dd>
+<dd>Indicates that no medium in the drive. This is always cleared at fixed disk drive. Note that FatFs does not refer this flag.</dd>
<dt>STA_PROTECT</dt>
-<dd>Indicates that the medium is write protected. This is always cleared on the drives without write protect feature. Not valid if no medium in the drive.</dd>
+<dd>Indicates that the medium is write protected. This is always cleared at the drives without write protect function. Not valid if no medium in the drive.</dd>
</dl>
</div>
diff --git a/fatfs/doc/en/dwrite.html b/fatfs/doc/en/dwrite.html index fd4bf48..b97f177 100644 --- a/fatfs/doc/en/dwrite.html +++ b/fatfs/doc/en/dwrite.html @@ -30,11 +30,11 @@ DRESULT disk_write ( <dt>pdrv</dt>
<dd>Physical drive number to identify the target device.</dd>
<dt>buff</dt>
-<dd>Pointer to the <em>byte array</em> to be written. The size of data to be written is sector size * <tt class="arg">count</tt> bytes.</dd>
+<dd>Pointer to the first item of the <em>byte array</em> to be written. The size of data to be written is sector size * <tt class="arg">count</tt> bytes.</dd>
<dt>sector</dt>
<dd>Start sector number in 32-bit LBA.</dd>
<dt>count</dt>
-<dd>Number of sectors to write in range of from 1 to 128.</dd>
+<dd>Number of sectors to write.</dd>
</dl>
</div>
@@ -58,10 +58,10 @@ DRESULT disk_write ( <div class="para desc">
<h4>Description</h4>
-<p>The specified memory address is not that always aligned to word boundary because the type of pointer is defined as <tt>BYTE*</tt>. For more information, refer to the description of <a href="dread.html"><tt>disk_read()</tt></a> function.</p>
+<p>The specified memory address is not that always aligned to word boundary because the type of pointer is defined as <tt>BYTE*</tt>. For more information, refer to the description of <a href="dread.html"><tt>disk_read</tt></a> function.</p>
<p>Generally, a multiple sector transfer request must not be split into single sector transactions to the storage device, or you will never get good write throughput.</p>
-<p>FatFs expects delayed write feature of the disk functions. The write operation to the media need not to be completed due to write operation is in progress or only stored it into the cache buffer when return from this function. But data on the <tt class="arg">buff</tt> is invalid after return from this function. The write completion request is done by <tt>CTRL_SYNC</tt> command of <tt><a href="dioctl.html">disk_ioctl()</a></tt> function. Therefore, if delayed write feature is implemented, the write throughput may be improved.</p>
-<p><em>Application program MUST NOT call this function, or FAT structure on the volume can be collapsed.</em></p>
+<p>FatFs expects delayed write function of the disk control layer. The write operation to the media does not need to be completed when return from this function by what write operation is in progress or data is only stored into the write-back cache. But write data on the <tt class="arg">buff</tt> is invalid after return from this function. The write completion request is done by <tt>CTRL_SYNC</tt> command of <tt><a href="dioctl.html">disk_ioctl</a></tt> function. Therefore, if a delayed write function is implemented, the write throughput will be improved.</p>
+<p><em>Remarks: Application program MUST NOT call this function, or FAT structure on the volume can be collapsed.</em></p>
</div>
diff --git a/fatfs/doc/en/eof.html b/fatfs/doc/en/eof.html index 337697b..2e87506 100644 --- a/fatfs/doc/en/eof.html +++ b/fatfs/doc/en/eof.html @@ -33,13 +33,13 @@ int f_eof ( <div class="para ret">
<h4>Return Values</h4>
-<p>The <tt>f_eof()</tt> function returns a non-zero value if the read/write pointer has reached end of the file; otherwise it returns a zero.</p>
+<p>The <tt>f_eof</tt> function returns a non-zero value if the read/write pointer has reached end of the file; otherwise it returns a zero.</p>
</div>
<div class="para desc">
<h4>Description</h4>
-<p>In this revision, this function is implemented as a macro.</p>
+<p>In this revision, this function is implemented as a macro. It does not have any validation and mutual exclusion.</p>
<pre>
<span class="k">#define</span> f_eof(fp) ((int)((fp)->fptr == (fp)->fsize))
</pre>
diff --git a/fatfs/doc/en/error.html b/fatfs/doc/en/error.html index a14deb1..3476f55 100644 --- a/fatfs/doc/en/error.html +++ b/fatfs/doc/en/error.html @@ -39,9 +39,9 @@ int f_error ( <div class="para desc">
<h4>Description</h4>
-<p>In this revision, this function is implemented as a macro.</p>
+<p>In this revision, this function is implemented as a macro. It does not have any validation and mutual exclusion.</p>
<pre>
-<span class="k">#define</span> f_error(fp) ((fp)->flag)
+<span class="k">#define</span> f_error(fp) ((fp)->err)
</pre>
</div>
diff --git a/fatfs/doc/en/expand.html b/fatfs/doc/en/expand.html new file mode 100644 index 0000000..0715635 --- /dev/null +++ b/fatfs/doc/en/expand.html @@ -0,0 +1,116 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+<link rel="up" title="FatFs" href="../00index_e.html">
+<link rel="alternate" hreflang="ja" title="Japanese" href="../ja/lseek.html">
+<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
+<title>FatFs - f_expand</title>
+</head>
+
+<body>
+
+<div class="para func">
+<h2>f_expand</h2>
+<p>The f_expand function prepares or allocates a contiguous data area to the file.</p>
+
+<pre>
+FRESULT f_expand (
+ FIL* <span class="arg">fp</span>, <span class="c">/* [IN] File object */</span>
+ FSIZE_t <span class="arg">fsz</span>, <span class="c">/* [IN] File size expanded to */</span>
+ BYTE <span class="arg">opt</span> <span class="c">/* [IN] Operation mode */</span>
+);
+</pre>
+</div>
+
+<div class="para arg">
+<h4>Parameters</h4>
+<dl class="par">
+<dt>fp</dt>
+<dd>Pointer to the open file object.</dd>
+<dt>fsz</dt>
+<dd>Number of bytes in size to prepare or allocate for the file. The data type <tt>FSIZE_t</tt> is an alias of either <tt>DWORD</tt>(32-bit) or <tt>QWORD</tt>(64-bit) depends on the configuration option <tt>_FS_EXFAT</tt>.</dd>
+<dt>opt</dt>
+<dd>Operation mode. Prepare only (0) or Allocate now (1).</dd>
+</dl>
+</div>
+
+
+<div class="para ret">
+<h4>Return Values</h4>
+<p>
+<a href="rc.html#ok">FR_OK</a>,
+<a href="rc.html#de">FR_DISK_ERR</a>,
+<a href="rc.html#ie">FR_INT_ERR</a>,
+<a href="rc.html#io">FR_INVALID_OBJECT</a>,
+<a href="rc.html#dn">FR_DENIED</a>,
+<a href="rc.html#tm">FR_TIMEOUT</a>
+</p>
+</div>
+
+
+<div class="para desc">
+<h4>Description</h4>
+<p>The <tt>f_expand</tt> function prepares or allocates a contiguous data area to the file. When <tt class="arg">opt</tt> is 1, the function allocates a contiguous data area to the file. Unlike expansion of file by <tt>f_lseek</tt> function, the file must be truncated prior to use this function and read/write pointer of the file stays at top of the file after the function. The file content allocated with this function is <em>undefined</em> because no data is written to the file in this process. The function can fail with <tt>FR_DENIED</tt> due to some reasons below.</p>
+<ul>
+<li>No free contiguous space was found.</li>
+<li>Size of the file was not zero.</li>
+<li>The file has been opened in read-only mode.</li>
+<li>Not allowable file size. (>= 4GiB on FAT volume)</li>
+</ul>
+<p>When <tt class="arg">opt</tt> is 0, the function finds a contiguous data area and set it as suggested point for next allocation instead of allocating it to the file. The next cluster allocation is started at top of the contiguous area found by this function. Thus the write file is guaranteed be contiguous and no allocation delay until the size reaches that size at least unless any other changes to the volume is performed.</p>
+<p>The contiguous file would have an advantage at time-critical read/write operations. It reduces some overheads in the file system and the storage media caused by random access due to fragmented file data. Especially, at the exFAT volume, any FAT access for the contiguous file is completely eliminated and storage media will be accessed sequentially.</p>
+<p>Also the contiguous file data can be easily accessed directly via low-level disk functions but it is not recommended in consideration for future compatibility.</p>
+</div>
+
+<div class="para comp">
+<h4>QuickInfo</h4>
+<p>Available when <tt>_USE_EXPAND == 1</tt> and <tt>_FS_READONLY == 0</tt>.</p>
+</div>
+
+
+<div class="para use">
+<h4>Example</h4>
+<pre>
+ <span class="c">/* Creating a contiguous file */</span>
+
+ <span class="c">/* Create a new file */</span>
+ res = f_open(fp = malloc(sizeof (FIL)), "file.dat", FA_WRITE|FA_CREATE_ALWAYS);
+ if (res) { <span class="c">/* Check if the file has been opened */</span>
+ free(fp);
+ ...
+ }
+
+ <span class="c">/* Alloacte a 100 MiB of contiguous area to the file */</span>
+ res = f_expand(fp, 104857600, 1);
+ if (res) { <span class="c">/* Check if the file has been expanded */</span>
+ ...
+ free(fp);
+ ...
+ }
+ <span class="c">/* Now you have a contiguous file accessible with fp */</span>
+
+</pre>
+<pre>
+ <span class="c">/* Accessing the file data directly via low-level disk functions */</span>
+
+ <span class="c">/* Get physical location of the file data */</span>
+ drv = fp->obj.fs->drv;
+ sect = fp->obj.fs->database + fp->obj.fs->csize * (fp->obj.sclust - 2);
+
+ <span class="c">/* Write 2048 sectors from top of the file at a time */</span>
+ res = disk_write(drv, buffer, sect, 2048);
+
+</pre>
+</div>
+
+
+<div class="para ref">
+<h4>See Also</h4>
+<p><tt><a href="open.html">f_open</a>, <a href="lseek.html">f_lseek</a>, <a href="sfile.html">FIL</a></tt></p>
+</div>
+
+<p class="foot"><a href="../00index_e.html">Return</a></p>
+</body>
+</html>
diff --git a/fatfs/doc/en/fattime.html b/fatfs/doc/en/fattime.html index d8c245e..42fb1c8 100644 --- a/fatfs/doc/en/fattime.html +++ b/fatfs/doc/en/fattime.html @@ -13,7 +13,7 @@ <div class="para func">
<h2>get_fattime</h2>
-<p>The get_fattime function gets current time.</p>
+<p>The get_fattime function gets the current time.</p>
<pre>
DWORD get_fattime (void);
</pre>
@@ -22,7 +22,7 @@ DWORD get_fattime (void); <div class="para ret">
<h4>Return Value</h4>
-<p>Currnet time is returned with packed into a <tt>DWORD</tt> value. The bit field is as follows:</p>
+<p>Currnet local time is returned in bit-fields packed into a <tt>DWORD</tt> value. The bit field is as follows:</p>
<dl class="ret">
<dt>bit31:25</dt>
<dd>Year origin from the 1980 (0..127)</dd>
@@ -42,13 +42,13 @@ DWORD get_fattime (void); <div class="para desc">
<h4>Description</h4>
-<p>The <tt>get_fattime()</tt> function shall return any valid time even if the system does not support a real time clock. If a zero is returned, the file will not have a valid timestamp.</p>
+<p>The <tt>get_fattime</tt> function shall return any valid time even if the system does not support a real time clock. If a zero is returned, the file will not have a valid timestamp.</p>
</div>
<div class="para comp">
<h4>QuickInfo</h4>
-<p>This function is not needed when <tt>_FS_READONLY == 1</tt>.</p>
+<p>This function is not needed when <tt>_FS_READONLY == 1</tt> or <tt>_FS_NORTC == 1</tt>.</p>
</div>
diff --git a/fatfs/doc/en/fdisk.html b/fatfs/doc/en/fdisk.html index ad4e4fd..6581d87 100644 --- a/fatfs/doc/en/fdisk.html +++ b/fatfs/doc/en/fdisk.html @@ -16,9 +16,9 @@ <p>The f_fdisk fucntion divides a physical drive.</p>
<pre>
FRESULT f_fdisk (
- BYTE <span class="arg">pdrv</span>, <span class="c">/* [IN] Physical drive number */</span>
- const DWORD <span class="arg">part[]</span>, <span class="c">/* [IN] Partition size */</span>
- void* <span class="arg">work</span> <span class="c">/* [IN] Work area */</span>
+ BYTE <span class="arg">pdrv</span>, <span class="c">/* [IN] Physical drive number */</span>
+ const DWORD* <span class="arg">szt</span>, <span class="c">/* [IN] Partition map table */</span>
+ void* <span class="arg">work</span> <span class="c">/* [IN] Work area */</span>
);
</pre>
</div>
@@ -27,9 +27,9 @@ FRESULT f_fdisk ( <h4>Parameters</h4>
<dl class="par">
<dt>pdrv</dt>
-<dd>Specifies the <em>physical drive</em> to be divided.</dd>
-<dt>part[]</dt>
-<dd>Partition map table. It must have four items.</dd>
+<dd>Specifies the <em>physical drive</em> to be divided. This is not the logical drive number but the drive identifier passed to the low level disk functions.</dd>
+<dt>szt</dt>
+<dd>Pointer to the first item of the partition map table.</dd>
<dt>work</dt>
<dd>Pointer to the function work area. The size must be at least <tt>_MAX_SS</tt> bytes.</dd>
</dl>
@@ -48,7 +48,7 @@ FRESULT f_fdisk ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_fdisk()</tt> function creates a partition table into the MBR of the physical drive. The partitioning rule is in generic FDISK format, so that it can create upto four primary partitions. Logical volumes in the extended partition is not supported. The <tt class="arg">part[]</tt> with four items specifies how to divide the physical drive. The first item specifies the size of first primary partition and fourth item specifies the fourth primary partition. If the value is less than or equal to 100, it specifies percentage of the partition in the entire disk space. If it is larger than 100, it specifies the partition size in unit of sector.</p>
+<p>The <tt>f_fdisk</tt> function creates partitions on the physical drive. The partitioning format is in generic FDISK format, so that it can create upto four primary partitions. Logical volumes in the extended partition is not supported. The partition map table with four items specifies how to divide the physical drive. The first item specifies the size of first primary partition and fourth item specifies the fourth primary partition. If the value is less than or equal to 100, it specifies the partition size in percentage of the entire drive space. If it is larger than 100, it specifies the partition size in unit of sector. The partitions are located on the drive in order of from first item.</p>
</div>
<div class="para comp">
@@ -74,15 +74,10 @@ FRESULT f_fdisk ( DWORD plist[] = {50, 50, 0, 0}; <span class="c">/* Divide drive into two partitions */</span>
BYTE work[_MAX_SS];
- f_fdisk(0, plist, work); <span class="c">/* Divide physical drive 0 */</span>
+ f_fdisk(0, plist, work); <span class="c">/* Divide physical drive 0 */</span>
- f_mount(&fs, "0:", 0); <span class="c">/* Register work area to the logical drive 0 */</span>
- f_mkfs("0:", 0, 0); <span class="c">/* Create FAT volume on the logical drive 0. 2nd argument is ignored. */</span>
- f_mount(0, "0:", 0); <span class="c">/* Unregister work area from the logical drive 0 */</span>
-
- f_mount(&fs, "1:", 0); <span class="c">/* Register a work area to the logical drive 1 */</span>
- f_mkfs("1:", 0, 0); <span class="c">/* Create FAT volume on the logical drive 1. 2nd argument is ignored. */</span>
- f_mount(0, "1:", 0); <span class="c">/* Unregister work area from the logical drive 1 */</span>
+ f_mkfs("0:", FMT_ANY, work, sizeof work); <span class="c">/* Create FAT volume on the logical drive 0 */</span>
+ f_mkfs("1:", FMT_ANY, work, sizeof work); <span class="c">/* Create FAT volume on the logical drive 1 */</span>
</pre>
</div>
diff --git a/fatfs/doc/en/filename.html b/fatfs/doc/en/filename.html index 49dcc2d..ce8735b 100644 --- a/fatfs/doc/en/filename.html +++ b/fatfs/doc/en/filename.html @@ -12,16 +12,16 @@ <body>
<h1>Path Names</h1>
-<div class="para" id="nam">
+<div class="para doc" id="nam">
<h3>Format of the path names</h3>
<p>The format of path name on the FatFs module is similer to the filename specs of DOS/Windos as follows:</p>
<pre>"[<em>drive</em>:][/]<em>directory</em>/<em>file</em>"</pre>
-<p>The FatFs module supports long file name (LFN) and 8.3 format file name (SFN). The LFN can be used when LFN feature is enabled (<tt>_USE_LFN > 0</tt>). The sub directories are separated with a \ or / in the same way as DOS/Windows API. Duplicated separators are skipped and ignored. Only a difference is that the logical drive is specified in a numeral with a colon. When drive number is omitted, the drive number is assumed as <em>default drive</em> (drive 0 or current drive).</p>
+<p>The FatFs module supports long file name (LFN) and 8.3 format file name (SFN). The LFN can be used when (<tt><a href="config.html#use_lfn">_USE_LFN</a> != 0</tt>). The sub directories are separated with a \ or / in the same way as DOS/Windows API. Duplicated separators are skipped and ignored. Only a difference is that the logical drive is specified in a numeral with a colon. When drive number is omitted, the drive number is assumed as <em>default drive</em> (drive 0 or current drive).</p>
<p>Control characters (<tt>'\0'</tt> to <tt>'\x1F'</tt>) are recognized as end of the path name. Leading/embedded spaces in the path name are valid as a part of the name at LFN configuration but the space is recognized as end of the path name at non-LFN configuration. Trailing spaces and dots are ignored at both configurations.</p>
-<p>In default configuration (<tt>_FS_RPATH == 0</tt>), it does not have a concept of current directory like OS oriented file system. All objects on the volume are always specified in full path name that follows from the root directory. Dot directory names are not allowed. Heading separator is ignored and it can be exist or omitted. The default drive is fixed to drive 0.</p>
-<p>When relative path feature is enabled (<tt>_FS_RPATH == 1</tt>), specified path is followed from the root directory if a heading separator is exist. If not, it is followed from the current directory of the drive set by <a href="chdir.html">f_chdir</a> function. Dot names are also allowed for the path name. The default drive is the current drive set by <a href="chdrive.html">f_chdrive</a> function.</p>
+<p>In default configuration (<tt><a href="config.html#fs_rpath">_FS_RPATH</a> == 0</tt>), it does not have a concept of current directory like OS oriented file system. All objects on the volume are always specified in full path name that follows from the root directory. Dot directory names (<tt>".", ".."</tt>) are not allowed. Heading separator is ignored and it can be exist or omitted. The default drive is fixed to drive 0.</p>
+<p>When relative path is enabled (<tt>_FS_RPATH >= 1</tt>), specified path is followed from the root directory if a heading separator is exist. If not, it is followed from the current directory of the drive set by <a href="chdir.html">f_chdir</a> function. Dot names are also allowed for the path names. The default drive is the current drive set by <a href="chdrive.html">f_chdrive</a> function.</p>
<table class="lst2">
-<tr><td>Path name</td><td>_FS_RPATH == 0</td><td>_FS_RPATH == 1</td></tr>
+<tr><td>Path name</td><td>_FS_RPATH == 0</td><td>_FS_RPATH >= 1</td></tr>
<tr class="lst3"><td>file.txt</td><td>A file in the root directory of the drive 0</td><td>A file in the current directory of the current drive</td></tr>
<tr><td>/file.txt</td><td>A file in the root directory of the drive 0</td><td>A file in the root directory of the current drive</td></tr>
<tr><td></td><td>The root directory of the drive 0</td><td>The current directory of the current drive</td></tr>
@@ -31,17 +31,24 @@ <tr><td>2:file.txt</td><td>A file in the root directory of the drive 2</td><td>A file in the current directory of the drive 2</td></tr>
<tr><td>../file.txt</td><td>Invalid name</td><td>A file in the parent directory</td></tr>
<tr><td>.</td><td>Invalid name</td><td>This directory</td></tr>
-<tr><td>..</td><td>Invalid name</td><td>Parent directory of the current directory</td></tr>
+<tr><td>..</td><td>Invalid name</td><td>Parent directory of the current directory (*)</td></tr>
<tr><td>dir1/..</td><td>Invalid name</td><td>The current directory</td></tr>
<tr><td>/..</td><td>Invalid name</td><td>The root directory (sticks the top level)</td></tr>
</table>
-<p>When option <tt>_STR_VOLUME_ID</tt> is specified, also pre-defined strings can be used as drive identifier in the path name instead of a numeral. e.g. <tt>"sd:file1.txt"</tt> or <tt>"ram:swapfile.dat"</tt>.</p>
+<p>When option <tt><a href="config.html#str_volume_id">_STR_VOLUME_ID</a></tt> is specified, also pre-defined strings can be used as drive identifier in the path name instead of a numeral. e.g. <tt>"sd:file1.txt"</tt>, <tt>"ram:swapfile.dat"</tt> and DOS/Windows style drive letter, of course.</p>
+<p><em>Remark: In this revision, double dot name <tt>".."</tt> cannot follow the parent directory on the exFAT volume. It will work as <tt>"."</tt> and stay there.</em></p>
</div>
-<p><br></p>
-<div class="para" id="uni">
+<div class="para doc" id="case">
+<h3>Legal Characters and Case Sensitivity</h3>
+<p>On the FAT file system, legal characters for file name are, <tt>0-9 A-Z ! # $ % & ' ( ) - @ ^ _ ` { } ~</tt> and extended characters (<tt>\x80</tt>-<tt>\xFF</tt>). Under LFN supported system, also white space and <tt>+ , ; = [ ]</tt> are legal for the file name and the white spaces and periods can be placed anywhere in the name except for end of the name string.</p>
+<p>FAT file system is case-insensitive to the object names on the volume. All object names are compared in case-insensitive. For example, these three names, <tt>file.txt</tt>, <tt>File.Txt</tt> and <tt>FILE.TXT</tt>, are identical. This is applied to also extended charactres. When an object is created on the FAT volume, upper converted name is recorded to the SFN entry, and the raw name is recorded to the LFN entry.</p>
+<p>As for the DBCS language MS-DOS, it was case-sensitive to the extended characters. To follow this specification, FatFs works with case-sensitive to the extended characters at only non-LFN with DBCS configuration (DOS/DBCS specs). But at LFN configuration, FatFs works with case-insensitive to all characters (WindowsNT specs). This can cause a problem on compatibility with Windows system when an object with extended characters is created on the volume at non-LFN and DBCS configuration; therfore the object names with DBCS extended characters should not be used on the FAT volume shared by those systems.</p>
+</div>
+
+<div class="para doc" id="uni">
<h3>Unicode API</h3>
-<p>The path names are input/output in either ANSI/OEM code or Unicode depends on the configuration options. The type of arguments which specify the path names are defined as <tt>TCHAR</tt>. It is an alias of <tt>char</tt> by default. The code set used to the path name string is ANSI/OEM specifid by <tt>_CODE_PAGE</tt>. When <tt>_LFN_UNICODE</tt> is set to 1, the type of the <tt>TCHAR</tt> is switched to <tt>WCHAR</tt> to support Unicode (UTF-16 encoding). In this case, the LFN feature is fully supported and the Unicode specific characters, such as âœâ˜ªâœ¡â˜¸â˜, can also be used for the path name. It also affects data types and encoding of the string I/O functions. To define literal strings, <tt>_T(s)</tt> and <tt>_TEXT(s)</tt> macro are available to select either ANSI/OEM or Unicode automatically. The code shown below is an example to define the literal strings.</p>
+<p>The path names are input/output in either ANSI/OEM code or Unicode depends on the configuration options. The type of arguments which specify the path names are defined as <tt>TCHAR</tt>. It is an alias of <tt>char</tt> by default. The code set used to the path name string is ANSI/OEM specifid by <tt><a href="config.html#code_page">_CODE_PAGE</a></tt>. When <tt><a href="config.html#lfn_unicode">_LFN_UNICODE</a></tt> is set to 1, the type of the <tt>TCHAR</tt> is switched to <tt>WCHAR</tt> to support Unicode (UTF-16 encoding). In this case, the full-featured LFN specification is supported and the Unicode specific characters, such as âœâ˜ªâœ¡â˜¸â˜, can also be used for the path name. It also affects data types and encoding of the string I/O functions. To define literal strings, <tt>_T(s)</tt> and <tt>_TEXT(s)</tt> macro are available to select either ANSI/OEM or Unicode automatically. The code shown below is an example to define the literal strings.</p>
<pre>
f_open(fp, "filename.txt", FA_READ); <span class="c">/* ANSI/OEM string */</span>
f_open(fp, L"filename.txt", FA_READ); <span class="c">/* Unicode string */</span>
@@ -49,30 +56,30 @@ </pre>
</div>
-<p><br></p>
-<div class="para" id="vol">
+<div class="para doc" id="vol">
<h3>Volume Management</h3>
-<p>The FatFs module needs dynamic work area called <em>file system object</em> for each volume (logical drive). It is registered to the FatFs module by <tt>f_mount()</tt> function. By default, each logical drive is bound to the physical drive with the same drive number and an FAT volume on the drive is serched by auto detect feature. It loads boot sectors and checks it if it is an FAT boot sector in order of sector 0 as SFD format, 1st partition, 2nd partition, 3rd partition and 4th partition as FDISK format.</p>
-<p>When <tt>_MULTI_PARTITION == 1</tt> is specified by configuration option, each individual logical drive is bound to the partition on the physical drive specified by volume management table. The volume management table must be defined by user to resolve relationship between logical drives and partitions. Following code is an example of a volume management table.</p>
+<p>FatFs module needs dynamic work area, <em>file system object</em>, for each volume (logical drive). It is registered/unregistered to the FatFs module by <tt>f_mount</tt> function. By default, each logical drive is bound to the physical drive with the same drive number and an FAT volume on the drive is serched by the volume mount process. It reads boot sectors and checks it if it is an FAT boot sector in order of sector 0 as SFD format, 1st partition, 2nd partition, 3rd partition and 4th partition as FDISK format.</p>
+<p>When <tt><a href="config.html#multi_partition">_MULTI_PARTITION</a> == 1</tt> is specified by configuration option, each individual logical drive is bound to the partition on the physical drive specified by volume management table. The volume management table must be defined by user to resolve the relationship between logical drives and partitions. Following code is an example of a volume management table.</p>
<pre>
-Example: Logical drive 0-2 are tied to three pri-partitions on the physical drive 0 (fixed disk)
- Logical drive 3 is tied to an FAT volume on the physical drive 1 (removable disk)
+Example: Logical drive 0-2 are tied to three pri-partitions on the physical drive 0 (fixed drive)
+ Logical drive 3 is tied to an FAT volume on the physical drive 1 (removable drive)
PARTITION VolToPart[] = {
- {0, 1}, <span class="c">/* Logical drive 0 ==> Physical drive 0, 1st partition */</span>
- {0, 2}, <span class="c">/* Logical drive 1 ==> Physical drive 0, 2nd partition */</span>
- {0, 3}, <span class="c">/* Logical drive 2 ==> Physical drive 0, 3rd partition */</span>
- {1, 0} <span class="c">/* Logical drive 3 ==> Physical drive 1 (auto detection) */</span>
+ {0, 1}, <span class="c">/* "0:" ==> Physical drive 0, 1st partition */</span>
+ {0, 2}, <span class="c">/* "1:" ==> Physical drive 0, 2nd partition */</span>
+ {0, 3}, <span class="c">/* "2:" ==> Physical drive 0, 3rd partition */</span>
+ {1, 0} <span class="c">/* "3:" ==> Physical drive 1, auto detection */</span>
};
</pre>
-<div><img src="../img/f7.png" width="828" height="288" alt="relationship between logical drive and physical drive"></div>
-<p>There are some considerations on using <tt>_MULTI_PARTITION</tt> configuration.</p>
+<div><img src="../res/f7.png" width="828" height="288" alt="relationship between logical drive and physical drive"></div>
+<p>There are some considerations on using multi-partition configuration.</p>
<ul>
<li>The physical drive that has two or more mounted partitions must be non-removable. Media change while a system operation is prohibited.</li>
<li>Only four primary partitions can be specified. Extended partition is not supported.</li>
-<li>Windows does not support multiple volumes on the removable storage. Only first parition will be mounted.</li>
+<li>Windows does not support multiple volumes on the removable storage. Only first parition will be recognized.</li>
</ul>
</div>
+<p class="foot"><a href="../00index_e.html">Return</a></p>
</body>
</html>
diff --git a/fatfs/doc/en/findfirst.html b/fatfs/doc/en/findfirst.html new file mode 100644 index 0000000..61670ae --- /dev/null +++ b/fatfs/doc/en/findfirst.html @@ -0,0 +1,110 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta http-equiv="Content-Style-Type" content="text/css">
+<link rel="up" title="FatFs" href="../00index_e.html">
+<link rel="alternate" hreflang="ja" title="Japanese" href="../ja/findfirst.html">
+<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
+<title>FatFs - f_findfirst</title>
+</head>
+
+<body>
+
+<div class="para func">
+<h2>f_findfirst</h2>
+<p>The f_findfirst function searches a directroy for an item.</p>
+<pre>
+FRESULT f_findfirst (
+ DIR* <span class="arg">dp</span>, <span class="c">/* [OUT] Poninter to the directory object */</span>
+ FILINFO* <span class="arg">fno</span>, <span class="c">/* [OUT] Pointer to the file information structure */</span>
+ const TCHAR* <span class="arg">path</span>, <span class="c">/* [IN] Pointer to the directory name to be opened */</span>
+ const TCHAR* <span class="arg">pattern</span> <span class="c">/* [IN] Pointer to the matching pattern string */</span>
+);
+</pre>
+</div>
+
+<div class="para arg">
+<h4>Parameters</h4>
+<dl class="par">
+<dt>dp</dt>
+<dd>Pointer to the blank directory object.</dd>
+<dt>fno</dt>
+<dd>Pointer to the file information structure to store the information about the found item.</dd>
+<dt>path</dt>
+<dd>Pointer to the null-terminated string that specifies the <a href="filename.html">directory name</a> to be opened.</dd>
+<dt>pattern</dt>
+<dd>Pointer to the nul-terminated string that specifies the name matching pattern to be searched for. It is referred by also subsequent <tt>f_findnext</tt> function, so that the string must be valid while the successive function calls.</dd>
+</dl>
+</div>
+
+
+<div class="para ret">
+<h4>Return Values</h4>
+<p>
+<a href="rc.html#ok">FR_OK</a>,
+<a href="rc.html#de">FR_DISK_ERR</a>,
+<a href="rc.html#ie">FR_INT_ERR</a>,
+<a href="rc.html#nr">FR_NOT_READY</a>,
+<a href="rc.html#np">FR_NO_PATH</a>,
+<a href="rc.html#in">FR_INVALID_NAME</a>,
+<a href="rc.html#io">FR_INVALID_OBJECT</a>,
+<a href="rc.html#id">FR_INVALID_DRIVE</a>,
+<a href="rc.html#ne">FR_NOT_ENABLED</a>,
+<a href="rc.html#ns">FR_NO_FILESYSTEM</a>,
+<a href="rc.html#tm">FR_TIMEOUT</a>,
+<a href="rc.html#nc">FR_NOT_ENOUGH_CORE</a>,
+<a href="rc.html#tf">FR_TOO_MANY_OPEN_FILES</a>
+</p>
+</div>
+
+
+<div class="para desc">
+<h4>Description</h4>
+<p>After the directory specified by <tt class="arg">path</tt> could be opened, it starts to search the directory for items with the name specified by <tt class="arg">pattern</tt>. If the first item is found, the information about the object is stored into the file information structure. For more information about file information structure, refer to <a href="readdir.html"><tt>f_readdir</tt></a> function.</p>
+<p>The matching pattern can contain wildcard characters (<tt>?</tt> and <tt>*</tt>). A <tt>?</tt> matches an any character and an <tt>*</tt> matches an any string in length of zero or longer. When support of long file name is enabled, only <tt>fname[]</tt> is tested at <tt>_USE_FIND == 1</tt> and also <tt>altname[]</tt> is tested at <tt>_USE_FIND == 2</tt>. In this revision, there are some differences listed below between FatFs and standard systems in matching condition.</p>
+<ul>
+<li><tt>"*.*"</tt> never matches any name without extension while it matches any name with or without extension at the standard systems.</li>
+<li>Any patterns terminated with a period never matches any name while it matches any name without extensiton at the standard systems.</li>
+<li><a href="filename.html#case">DBCS extended characters</a> are compared in case-sensitive at LFN with non-Unicode configuration.</li>
+</ul>
+</div>
+
+
+<div class="para comp">
+<h4>QuickInfo</h4>
+<p>This is a wrapper function of <a href="opendir.html"><tt>f_opendir</tt></a> and <a href="readdir.html"><tt>f_readdir</tt></a> function. Available when <tt>_USE_FIND >= 1</tt> and <tt>_FS_MINIMIZE <= 1</tt>.</p>
+</div>
+
+
+<div class="para use">
+<h4>Examples</h4>
+<pre>
+<span class="c">/* Search a directory for objects and display it */</span>
+
+void find_image (void)
+{
+ FRESULT fr; <span class="c">/* Return value */</span>
+ DIR dj; <span class="c">/* Directory search object */</span>
+ FILINFO fno; <span class="c">/* File information */</span>
+
+ fr = f_findfirst(&dj, &fno, "", "dsc*.jpg"); <span class="c">/* Start to search for photo files */</span>
+
+ while (fr == FR_OK && fno.fname[0]) { <span class="c">/* Repeat while an item is found */</span>
+ printf("%s\n", fno.fname); <span class="c">/* Display the object name */</span>
+ fr = f_findnext(&dj, &fno); <span class="c">/* Search for next item */</span>
+ }
+ f_closedir(&dj);
+}
+</pre>
+</div>
+
+
+<div class="para ref">
+<h4>See Also</h4>
+<p><tt><a href="findnext.html">f_findnext</a>, <a href="closedir.html">f_closedir</a>, <a href="sdir.html">DIR</a>, <a href="sfileinfo.html">FILINFO</a></tt></p>
+</div>
+
+<p class="foot"><a href="../00index_e.html">Return</a></p>
+</body>
+</html>
diff --git a/fatfs/doc/en/findnext.html b/fatfs/doc/en/findnext.html new file mode 100644 index 0000000..c8dd3f5 --- /dev/null +++ b/fatfs/doc/en/findnext.html @@ -0,0 +1,69 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta http-equiv="Content-Style-Type" content="text/css">
+<link rel="up" title="FatFs" href="../00index_e.html">
+<link rel="alternate" hreflang="ja" title="Japanese" href="../ja/findnext.html">
+<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
+<title>FatFs - f_findnext</title>
+</head>
+
+<body>
+
+<div class="para func">
+<h2>f_findnext</h2>
+<p>The f_findnext function searches for a next matched object</p>
+<pre>
+FRESULT f_findnext (
+ DIR* <span class="arg">dp</span>, <span class="c">/* [IN] Poninter to the directory object */</span>
+ FILINFO* <span class="arg">fno</span> <span class="c">/* [OUT] Pointer to the file information structure */</span>
+);
+</pre>
+</div>
+
+<div class="para arg">
+<h4>Parameters</h4>
+<dl class="par">
+<dt>dp</dt>
+<dd>Pointer to the valid directory object created by <tt>f_findfirst</tt> function.</dd>
+<dt>fno</dt>
+<dd>Pointer to the file information structure to store the information about the found directory item.</dd>
+</dl>
+</div>
+
+
+<div class="para ret">
+<h4>Return Values</h4>
+<p>
+<a href="rc.html#ok">FR_OK</a>,
+<a href="rc.html#de">FR_DISK_ERR</a>,
+<a href="rc.html#ie">FR_INT_ERR</a>,
+<a href="rc.html#nr">FR_NOT_READY</a>,
+<a href="rc.html#io">FR_INVALID_OBJECT</a>,
+<a href="rc.html#tm">FR_TIMEOUT</a>,
+<a href="rc.html#nc">FR_NOT_ENOUGH_CORE</a>
+</p>
+</div>
+
+
+<div class="para desc">
+<h4>Description</h4>
+<p>It continues the search from a previous call to the <tt>f_findfirst</tt> or <tt>f_findnext</tt> function. If found, the information about the object is stored into the file information structure. If no item to be read, a null string will be returned into <tt>fno->fname[]</tt>.</p>
+</div>
+
+
+<div class="para comp">
+<h4>QuickInfo</h4>
+<p>This is a wrapper function of <a href="readdir.html"><tt>f_readdir</tt></a> function. Available when <tt>_USE_FIND == 1</tt> and <tt>_FS_MINIMIZE <= 1</tt>.</p>
+</div>
+
+
+<div class="para ref">
+<h4>See Also</h4>
+<p><tt><a href="findfirst.html">f_findfirst</a>, <a href="closedir.html">f_closedir</a>, <a href="sdir.html">DIR</a>, <a href="sfileinfo.html">FILINFO</a></tt></p>
+</div>
+
+<p class="foot"><a href="../00index_e.html">Return</a></p>
+</body>
+</html>
diff --git a/fatfs/doc/en/forward.html b/fatfs/doc/en/forward.html index 714c48d..eddb051 100644 --- a/fatfs/doc/en/forward.html +++ b/fatfs/doc/en/forward.html @@ -45,7 +45,6 @@ FRESULT f_forward ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>
</p>
@@ -54,13 +53,13 @@ FRESULT f_forward ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_forward()</tt> function reads the data from the file and forward it to the outgoing stream without data buffer. This is suitable for small memory system because it does not require any data buffer at application module. The file pointer of the file object increases in number of bytes forwarded. In case of <tt class="arg">*bf</tt> is less than <tt class="arg">btf</tt> without error, it means the requested bytes could not be transferred due to end of file or stream goes busy during data transfer.</p>
+<p>The <tt>f_forward</tt> function reads the data from the file and forward it to the outgoing stream without data buffer. This is suitable for small memory system because it does not require any data buffer at application module. The file pointer of the file object increases in number of bytes forwarded. In case of <tt class="arg">*bf</tt> is less than <tt class="arg">btf</tt> without error, it means the requested bytes could not be transferred due to end of file or stream goes busy during data transfer.</p>
</div>
<div class="para comp">
<h4>QuickInfo</h4>
-<p>Available when <tt>_USE_FORWARD == 1</tt> and <tt>_FS_TINY == 1</tt>.</p>
+<p>Available when <tt>_USE_FORWARD == 1</tt>.</p>
</div>
@@ -113,7 +112,7 @@ FRESULT play_file ( if (rc) return rc;
<span class="c">/* Repeat until the file pointer reaches end of the file */</span>
- while (rc == FR_OK && fil.fptr < fil.fsize) {
+ while (rc == FR_OK && !f_eof(&fil)) {
<span class="c">/* any other processes... */</span>
diff --git a/fatfs/doc/en/getcwd.html b/fatfs/doc/en/getcwd.html index 045cce4..52a7f3f 100644 --- a/fatfs/doc/en/getcwd.html +++ b/fatfs/doc/en/getcwd.html @@ -13,7 +13,7 @@ <div class="para func">
<h2>f_getcwd</h2>
-<p>The f_getcwd function retrieves the current directory.</p>
+<p>The f_getcwd function retrieves the current directory and current drive.</p>
<pre>
FRESULT f_getcwd (
TCHAR* <span class="arg">buff</span>, <span class="c">/* [OUT] Buffer to return path name */</span>
@@ -50,7 +50,8 @@ FRESULT f_getcwd ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_getcwd()</tt> function retrieves full path name of the current directory of the current drive. When <tt>_VOLUMES</tt> is larger than 1, a logical drive number is added to top of the path name.</p>
+<p>The <tt>f_getcwd</tt> function retrieves full path name of the current directory of the current drive. When <tt>_VOLUMES</tt> is larger than 1, a logical drive number is added to top of the path name.</p>
+<p><em>Note: In this revision, this function cannot retrieve the current directory path on the exFAT volume. It always returns the root directory path.</em></p>
</div>
diff --git a/fatfs/doc/en/getfree.html b/fatfs/doc/en/getfree.html index 5a68975..1cfc09a 100644 --- a/fatfs/doc/en/getfree.html +++ b/fatfs/doc/en/getfree.html @@ -27,7 +27,7 @@ FRESULT f_getfree ( <h4>Parameters</h4>
<dl class="par">
<dt>path</dt>
-<dd>Pinter to the null-terminated string that specifies the <a href="filename.html">logical drive</a>. A null-string means the default drive.</dd>
+<dd>Pointer to the null-terminated string that specifies the <a href="filename.html">logical drive</a>. A null-string means the default drive.</dd>
<dt>nclst</dt>
<dd>Pointer to the <tt>DWORD</tt> variable to store number of free clusters.</dd>
<dt>fatfs</dt>
@@ -53,7 +53,7 @@ FRESULT f_getfree ( <div class="para desc">
<h4>Descriptions</h4>
-<p>The <tt>f_getfree()</tt> function gets number of free clusters on the volume. The member <tt>csize</tt> in the file system object indicates number of sectors per cluster, so that the free space in unit of sector can be calcurated with this information. When FSINFO structure on the FAT32 volume is not in sync, this function can return an incorrect free cluster count. To avoid this problem, FatFs can be forced full FAT scan by <tt>_FS_NOFSINFO</tt> option.</p>
+<p>The <tt>f_getfree</tt> function gets number of free clusters on the volume. The member <tt>csize</tt> in the file system object indicates number of sectors per cluster, so that the free space in unit of sector can be calcurated with this information. When FSINFO structure on the FAT32 volume is not in sync, this function can return an incorrect free cluster count. To avoid this problem, FatFs can be forced full FAT scan by <tt><a href="config.html#fs_nofsinfo">_FS_NOFSINFO</a></tt> option.</p>
</div>
diff --git a/fatfs/doc/en/getlabel.html b/fatfs/doc/en/getlabel.html index 736792f..cec65aa 100644 --- a/fatfs/doc/en/getlabel.html +++ b/fatfs/doc/en/getlabel.html @@ -29,7 +29,7 @@ FRESULT f_getlabel ( <dt>path</dt>
<dd>Pointer to the null-terminated string that specifies the <a href="filename.html">logical drive</a>. Null-string specifies the default drive.</dd>
<dt>label</dt>
-<dd>Pointer to the buffer to store the volume label. The buffer size must be at least 12 items. If the volume has no label, a null-string will be returned. Set null pointer if this information is not needed.</dd>
+<dd>Pointer to the buffer to store the volume label. The buffer size must be at least 24 items at <tt>_LFN_UNICODE == 0</tt> or 12 items at <tt>_LFN_UNICODE == 1</tt>. If the volume has no label, a null-string will be returned. Set null pointer if this information is not needed.</dd>
<dt>vsn</dt>
<dd>Pointer to the <tt>DWORD</tt> variable to store the volume serial number. Set null pointer if this information is not needed.</dd>
</dl>
@@ -60,7 +60,7 @@ FRESULT f_getlabel ( <div class="para use">
<h4>Example</h4>
<pre>
- char str[12];
+ char str[24];
<span class="c">/* Get volume label of the default drive */</span>
f_getlabel("", str, 0);
diff --git a/fatfs/doc/en/gets.html b/fatfs/doc/en/gets.html index c843952..8059d35 100644 --- a/fatfs/doc/en/gets.html +++ b/fatfs/doc/en/gets.html @@ -44,14 +44,14 @@ TCHAR* f_gets ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_gets()</tt> function is a wrapper function of <a href="read.html"><tt>f_read()</tt></a> function. The read operation continues until a <tt>'\n'</tt> is stored, reached end of the file or the buffer is filled with <tt>len - 1</tt> characters. The read string is terminated with a <tt>'\0'</tt>. When no character to read or any error occured during read operation, it returns a null pointer. The status of EOF and error can be examined with <tt>f_eof()</tt> and <tt>f_error()</tt> macros.</p>
-<p>When FatFs is configured to Unicode API (<tt>_LFN_UNICODE == 1</tt>), data types on the srting fuctions, <tt>f_putc()</tt>, <tt>f_puts()</tt>, <tt>f_printf()</tt> and <tt>f_gets()</tt>, is also switched to Unicode. The character encoding on the file to be read/written via those functions is selected by <tt>_STRF_ENCODE</tt> option.</p>
+<p>The read operation continues until a <tt>'\n'</tt> is stored, reached end of the file or the buffer is filled with <tt>len - 1</tt> characters. The read string is terminated with a <tt>'\0'</tt>. When no character to read or any error occured during read operation, it returns a null pointer. The status of EOF and error can be examined with <tt>f_eof</tt> and <tt>f_error</tt> function.</p>
+<p>When FatFs is configured to Unicode API (<tt>_LFN_UNICODE == 1</tt>), data types on the srting fuctions, <tt>f_putc</tt>, <tt>f_puts</tt>, <tt>f_printf</tt> and <tt>f_gets</tt>, is also switched to Unicode. The character encoding on the file to be read/written via those functions is selected by <tt>_STRF_ENCODE</tt> option.</p>
</div>
<div class="para comp">
<h4>QuickInfo</h4>
-<p>Available when <tt>_USE_STRFUNC</tt> is 1 or 2. When it is set to 2, <tt>'\r'</tt>s contained in the file are stripped out.</p>
+<p>This is a wrapper function of <a href="read.html"><tt>f_read</tt></a> function. Available when <tt>_USE_STRFUNC</tt> is 1 or 2. When it is set to 2, <tt>'\r'</tt>s contained in the file are stripped out.</p>
</div>
diff --git a/fatfs/doc/en/lseek.html b/fatfs/doc/en/lseek.html index 0f22cf9..cf4f47e 100644 --- a/fatfs/doc/en/lseek.html +++ b/fatfs/doc/en/lseek.html @@ -17,8 +17,8 @@ <pre>
FRESULT f_lseek (
- FIL* <span class="arg">fp</span>, <span class="c">/* [IN] File object */</span>
- DWORD <span class="arg">ofs</span> <span class="c">/* [IN] File read/write pointer */</span>
+ FIL* <span class="arg">fp</span>, <span class="c">/* [IN] File object */</span>
+ FSIZE_t <span class="arg">ofs</span> <span class="c">/* [IN] File read/write pointer */</span>
);
</pre>
</div>
@@ -29,7 +29,7 @@ FRESULT f_lseek ( <dt>fp</dt>
<dd>Pointer to the open file object.</dd>
<dt>ofs</dt>
-<dd>Byte offset from top of the file.</dd>
+<dd>Byte offset from top of the file. The data type <tt>FSIZE_t</tt> is an alias of either <tt>DWORD</tt>(32-bit) or <tt>QWORD</tt>(64-bit) depends on the configuration option <tt>_FS_EXFAT</tt>.</dd>
</dl>
</div>
@@ -40,7 +40,6 @@ FRESULT f_lseek ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>
</p>
@@ -49,19 +48,19 @@ FRESULT f_lseek ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_lseek()</tt> function moves the file read/write pointer of an open file. The offset can be specified in only origin from top of the file. When an offset beyond the file size is specified at write mode, the file size is expanded to the specified offset. The file data in the expanded area is undefined because no data is written to the file. This is suitable to pre-allocate a cluster chain quickly, for fast write operation. After the <tt>f_lseek()</tt> function succeeded, the current read/write pointer should be checked in order to make sure the read/write pointer has been moved correctry. In case of the current read/write pointer is not the expected value, either of followings has been occured.</p>
+<p>The <tt>f_lseek</tt> function moves the file read/write pointer of an open file. The offset can be specified in only origin from top of the file. When an offset beyond the file size is specified at write mode, the file size is expanded to the specified offset. The file data in the expanded area is <em>undefined</em> because no data is written to the file in this process. This is suitable to pre-allocate a cluster chain quickly, for fast write operation. When a contiguous data area needs to be allocated to the file, use <tt>f_expand</tt> function instead. After the <tt>f_lseek</tt> function succeeded, the current read/write pointer should be checked in order to make sure the read/write pointer has been moved correctry. In case of the read/write pointer is not the expected value, either of followings has been occured.</p>
<ul>
<li>End of file. The specified <tt class="arg">ofs</tt> was clipped at end of the file because the file has been opened in read-only mode.</li>
-<li>Disk full. There is insufficient free space on the volume to expand the file.</li>
+<li>Disk full. There is no free space on the volume to expand the file.</li>
</ul>
-<p>Fast seek feature is enabled when <tt>_USE_FASTSEEK</tt> is set to 1 and the member <tt>cltbl</tt> in the file object is not NULL. This feature enables fast backward/long seek operations without FAT access by using CLMT (cluster link map table). The fast seek feature is also applied to <tt>f_read()/f_write()</tt> function, however, the file size cannot be expanded by <tt>f_write()/f_lseek()</tt> function.</p>
-<p>The CLMT must be created in the user defined <tt>DWORD</tt> array prior to use the fast seek feature. To create the CLMT, set address of the <tt>DWORD</tt> array to the member <tt>cltbl</tt> in the file object, set the array size in unit of items into the first item and call the <tt>f_lseek()</tt> function with <tt class="arg">ofs</tt><tt> = CREATE_LINKMAP</tt>. After the function succeeded and CLMT is created, no FAT access is occured at subsequent <tt>f_read()/f_write()/f_lseek()</tt> function to the file. If the function failed with <tt>FR_NOT_ENOUGH_CORE</tt>, the given array size is insufficient for the file and number of items required is returned into the first item of the array. The required array size is (number of fragments + 1) * 2 items. For example, when the file is fragmented in 5, 12 items will be required for the CLMT.</p>
+<p>The fast seek function enables fast backward/long seek operations without FAT access by using an on-memory CLMT (cluster link map table). It is applied to <tt>f_read</tt> and <tt>f_write</tt> function as well, however, the file size cannot be expanded by <tt>f_write</tt>, <tt>f_lseek</tt> function while the file is in fast seek mode.</p>
+<p>The fast seek function is enabled when the member <tt>cltbl</tt> in the file object is not NULL. The CLMT must be created into the <tt>DWORD</tt> array prior to use the fast seek function. To create the CLMT, set address of the <tt>DWORD</tt> array to the member <tt>cltbl</tt> in the open file object, set the size of array in unit of items to the first item and call the <tt>f_lseek</tt> function with <tt class="arg">ofs</tt><tt> = CREATE_LINKMAP</tt>. After the function succeeded and CLMT is created, no FAT access is occured in subsequent <tt>f_read</tt>, <tt>f_write</tt>, <tt>f_lseek</tt> function to the file. The number of items used or required is returned into the first item of the array. The number of items to be used is (number of the file fragments + 1) * 2. For example, when the file is fragmented in 5, 12 items in the array will be used. If the function failed with <tt>FR_NOT_ENOUGH_CORE</tt>, the given array size is insufficient for the file.</p>
</div>
<div class="para comp">
<h4>QuickInfo</h4>
-<p>Available when <tt>_FS_MINIMIZE <= 2</tt>.</p>
+<p>Available when <tt>_FS_MINIMIZE <= 2</tt>. To use fast seek function, <tt>_USE_FASTSEEK</tt> needs to be set 1.</p>
</div>
@@ -94,7 +93,7 @@ FRESULT f_lseek ( if (res || f_tell(fp) != PRE_SIZE) ... <span class="c">/* Check if the file has been expanded */</span>
res = f_lseek(fp, DATA_START); <span class="c">/* Record data stream WITHOUT cluster allocation delay */</span>
- ... <span class="c">/* DATA_START and write block size should be aligned to sector boundary */</span>
+ ... <span class="c">/* Write operation should be aligned to sector boundary to optimize the write throughput */</span>
res = f_truncate(fp); <span class="c">/* Truncate unused area */</span>
res = f_lseek(fp, 0); <span class="c">/* Put file header */</span>
@@ -103,13 +102,15 @@ FRESULT f_lseek ( res = f_close(fp);
</pre>
<pre>
-<span class="c">/* Using fast seek feature */</span>
+<span class="c">/* Using fast seek function */</span>
DWORD clmt[SZ_TBL]; <span class="c">/* Cluster link map table buffer */</span>
+ res = f_open(fp, fname, FA_READ | FA_WRITE); <span class="c">/* Open a file */</span>
+
res = f_lseek(fp, ofs1); <span class="c">/* This is normal seek (cltbl is nulled on file open) */</span>
- fp->cltbl = clmt; <span class="c">/* Enable fast seek feature (cltbl != NULL) */</span>
+ fp->cltbl = clmt; <span class="c">/* Enable fast seek function (cltbl != NULL) */</span>
clmt[0] = SZ_TBL; <span class="c">/* Set table size */</span>
res = f_lseek(fp, CREATE_LINKMAP); <span class="c">/* Create CLMT */</span>
...
@@ -121,7 +122,7 @@ FRESULT f_lseek ( <div class="para ref">
<h4>See Also</h4>
-<p><tt><a href="open.html">f_open</a>, <a href="truncate.html">f_truncate</a>, <a href="sfile.html">FIL</a></tt></p>
+<p><tt><a href="open.html">f_open</a>, <a href="truncate.html">f_truncate</a>, <a href="expand.html">f_expand</a>, <a href="sfile.html">FIL</a></tt></p>
</div>
<p class="foot"><a href="../00index_e.html">Return</a></p>
diff --git a/fatfs/doc/en/mkdir.html b/fatfs/doc/en/mkdir.html index c2c1f4d..970627c 100644 --- a/fatfs/doc/en/mkdir.html +++ b/fatfs/doc/en/mkdir.html @@ -53,7 +53,7 @@ FRESULT f_mkdir ( <div class="para desc">
<h4>Description</h4>
-<p>This function creates a new directory.</p>
+<p>This function creates a new directory. To remove a directory, use <a href="unlink.html"><tt>f_unlink</tt></a> function.</p>
</div>
diff --git a/fatfs/doc/en/mkfs.html b/fatfs/doc/en/mkfs.html index 5f733fa..51f8aac 100644 --- a/fatfs/doc/en/mkfs.html +++ b/fatfs/doc/en/mkfs.html @@ -13,12 +13,14 @@ <div class="para func">
<h2>f_mkfs</h2>
-<p>The f_mkfs fucntion creates an FAT file system on the logical drive.</p>
+<p>The f_mkfs fucntion creates an FAT/exFAT volume on the logical drive.</p>
<pre>
FRESULT f_mkfs (
const TCHAR* <span class="arg">path</span>, <span class="c">/* [IN] Logical drive number */</span>
- BYTE <span class="arg">sfd</span>, <span class="c">/* [IN] Partitioning rule */</span>
- UINT <span class="arg">au</span> <span class="c">/* [IN] Size of the allocation unit */</span>
+ BYTE <span class="arg">opt</span>, <span class="c">/* [IN] Format options */</span>
+ DWORD <span class="arg">au</span>, <span class="c">/* [IN] Size of the allocation unit */</span>
+ void* <span class="arg">work</span>, <span class="c">/* [-] Working buffer */</span>
+ UINT <span class="arg">len</span> <span class="c">/* [IN] Size of working buffer */</span>
);
</pre>
</div>
@@ -27,11 +29,15 @@ FRESULT f_mkfs ( <h4>Parameters</h4>
<dl class="par">
<dt>path</dt>
-<dd>Pinter to the null-terminated string that specifies the <a href="filename.html">logical drive</a> to be formatted. If there is no drive number, it means the default drive.</dd>
-<dt>sfd</dt>
-<dd>Specifies partitioning rule (FDISK(0) or SFD(1)). This argument will be ignored on some case.</dd>
+<dd>Pointer to the null-terminated string specifies the <a href="filename.html">logical drive</a> to be formatted. If there is no drive number in it, it means the default drive. The logical drive may or may not be mounted for the format process.</dd>
+<dt>opt</dt>
+<dd>Specifies the format option in combination of <tt>FM_FAT</tt>, <tt>FM_FAT32</tt>, <tt>FM_EXFAT</tt> and bitwise-or of these three, <tt>FM_ANY</tt>. <tt>FM_EXFAT</tt> is ignored when exFAT is not enabled. These flags specify which FAT type to be created on the volume. If two or more types are specified, one out of them will be selected depends on the volume size. The flag <tt>FM_SFD</tt> specifies to place the volume on the drive in SFD format.</dd>
<dt>au</dt>
-<dd>Specifies size of the allocation unit (cluter) in number of bytes or sectors. When the value is from 1 to 128, it specifies number of sectors. When the value is <tt>>= _MIN_SS</tt>, it specifies number of bytes. If any invalid value, zero or not power of 2, is given, the cluster size is automatically determined depends on the volume size.</dd>
+<dd>Specifies size of the allocation unit (cluter) in unit of byte. The valid value is N times the sector size. N is power of 2 from 1 to 128 for FAT volume and upto 16MiB for exFAT volume. If zero is given, the default allocation unit size is selected depends on the volume size.</dd>
+<dt>work</dt>
+<dd>Pointer to the working buffer used for the format process.</dd>
+<dt>len</dt>
+<dd>Size of the working buffer in unit of byte. It needs to be the sector size at least. Plenty of working buffer reduces number of write transaction to the device and the format process will be finished quickly.</dd>
</dl>
</div>
@@ -43,7 +49,6 @@ FRESULT f_mkfs ( <a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#wp">FR_WRITE_PROTECTED</a>,
<a href="rc.html#id">FR_INVALID_DRIVE</a>,
-<a href="rc.html#ne">FR_NOT_ENABLED</a>,
<a href="rc.html#ma">FR_MKFS_ABORTED</a>,
<a href="rc.html#ip">FR_INVALID_PARAMETER</a>
</p>
@@ -51,11 +56,11 @@ FRESULT f_mkfs ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_mkfs()</tt> function creates an FAT volume on the specified logical drive. When FDISK format is specified, a primary partition occupies entire space of the physical drive is created and then an FAT volume is created on the partition. When SFD format is specified, the FAT volume starts from the first sector of the physical drive.</p>
-<p>If the logical drive is bound to the specific partition (1-4) by multiple partition feature (<tt>_MULTI_PARTITION</tt>), the FAT volume is created into the partition. In this case, the second argument <tt class="arg">sfd</tt> is ignored. The physical drive must have been partitioned with <tt>f_fdisk()</tt> function or any other partitioning tools prior to create the FAT volume with this function.</p>
-<p>Note that there are two partitioning rules, FDISK and SFD. The FDISK partitioning is usually used for harddisk, MMC, SDC, CFC and U Disk. It can divide a physical drive into one or more partitions with a partition table on the MBR. However Windows does not support multiple partition on the removable disk. The SFD is non-partitioned method. The FAT volume starts from the first sector on the physical drive without partition table. It is usually used for floppy disk, Microdrive, optical disk and any type of super-floppy media.</p>
-<p>The FAT sub-type, FAT12/FAT16/FAT32, is determined by number of clusters on the volume and nothing else, according to the FAT specification issued by Microsoft. Thus which FAT sub-type is selected, is depends on the volume size and the specified cluster size. The cluster size affects read/write throughput and space usage efficiency. Larger cluster size increases the read/write throughput and decreases the space usage efficiency of the volume.</p>
-<p>In case of the number of clusters gets near the FAT sub-type boundaries, the function can fail with <tt>FR_MKFS_ABORTED</tt>.</p>
+<p>The FAT sub-type, FAT12/FAT16/FAT32, of FAT volume except exFAT is determined by only number of clusters on the volume and nothing else, according to the FAT specification issued by Microsoft. Thus which FAT sub-type is selected, is depends on the volume size and the specified cluster size. In case of the combination of FAT type and cluter size specified by argument cannot be valid on the volume, the function will fail with <tt>FR_MKFS_ABORTED</tt>.</p>
+<p>The allocation unit, also called 'cluster', is a unit of disk space allocation for files. When the size of allocation unit is 32768 bytes, a file with 100 bytes in size occupies 32768 bytes of disk space. The space efficiency of disk usage gets worse as increasing size of allocation unit, but, on the other hand, the read/write performance increases as the size of allocation unit. Therefore the allocation unit is a trade-off between space efficiency and performance. For the large storages in GB order, 32768 bytes or larger cluster (this is automatically selected by default) is recommended for most case unless extremely many files are created on a volume.</p>
+<p>There are two disk formats, FDISK and SFD. The FDISK format is usually used for harddisk, MMC, SDC, CFC and U Disk. It can divide a physical drive into one or more partitions with a partition table on the MBR (maser boot record, the first sector of the physical drive). The SFD (super-floppy disk) is non-partitioned disk format. The FAT volume starts at the first sector of the physical drive without any disk partitioning. It is usually used for floppy disk, Microdrive, optical disk and most type of super-floppy media. Some systems support only either one of two formats and other is not supported.</p>
+<p>When <tt>FM_SFD</tt> is not specified, a primary partition occupies whole drive space is created and then the FAT volume is created in it. When <tt>FM_SFD</tt> is specified, the FAT volume occupies from the first sector of the drive is created.</p>
+<p>If the logical drive to be formatted is bound to the specific partition (1-4) by support of multiple partition, <tt><a href="config.html#multi_partition">_MULTI_PARTITION</a></tt>, the FAT volume is created into the partition and <tt>FM_SFD</tt> flag is ignored. The physical drive needs to be partitioned with <tt>f_fdisk</tt> function or any other partitioning tools prior to create the FAT volume with this function.</p>
</div>
<div class="para comp">
@@ -66,42 +71,44 @@ FRESULT f_mkfs ( <div class="para use">
<h4>Example</h4>
<pre>
-<span class="c">/* Format the default drive */</span>
+<span class="c">/* Format default drive and create a file */</span>
int main (void)
{
- FATFS fs; <span class="c">/* File system object (volume work area) */</span>
- FIL fil; <span class="c">/* File object */</span>
- FRESULT res; <span class="c">/* API result code */</span>
- UINT bw; <span class="c">/* Bytes written */</span>
+ FATFS fs; <span class="c">/* File system object */</span>
+ FIL fil; <span class="c">/* File object */</span>
+ FRESULT res; <span class="c">/* API result code */</span>
+ UINT bw; <span class="c">/* Bytes written */</span>
+ BYTE work[_MAX_SS]; <span class="c">/* Work area (larger is better for process time) */</span>
+ <span class="c">/* Create FAT volume */</span>
+ res = f_mkfs("", FM_ANY, 0, work, sizeof work);
+ if (res) ...
+
<span class="c">/* Register work area */</span>
f_mount(&fs, "", 0);
- <span class="c">/* Create FAT volume with default cluster size */</span>
- res = f_mkfs("", 0, 0);
- if (res) ...
-
<span class="c">/* Create a file as new */</span>
- res = f_open(&fil, "hello.txt", FA_CREATE_NEW | FA_WRITE);
+ res = f_open(&fil, "hello.txt", FA_CREATE_NEW | FA_WRITE);
if (res) ...
<span class="c">/* Write a message */</span>
- f_write(&fil, "Hello, World!\r\n", 15, &bw);
+ f_write(&fil, "Hello, World!\r\n", 15, &bw);
if (bw != 15) ...
<span class="c">/* Close the file */</span>
- f_close(&fil);
+ f_close(&fil);
<span class="c">/* Unregister work area */</span>
f_mount(0, "", 0);
+ ...
</pre>
</div>
<div class="para ref">
<h4>See Also</h4>
-<p><tt><a href="filename.html#vol">Volume management</a>, <a href="fdisk.html">f_fdisk</a></tt></p>
+<p><a href="../res/mkfs.xls">Example of volume size and format parameters</a>, <a href="filename.html#vol">Volume management</a>, <tt><a href="fdisk.html">f_fdisk</a></tt></p>
</div>
<p class="foot"><a href="../00index_e.html">Return</a></p>
diff --git a/fatfs/doc/en/mount.html b/fatfs/doc/en/mount.html index 0edb73a..0999b9c 100644 --- a/fatfs/doc/en/mount.html +++ b/fatfs/doc/en/mount.html @@ -27,11 +27,11 @@ FRESULT f_mount ( <h4>Parameters</h4>
<dl class="par">
<dt>fs</dt>
-<dd>Pointer to the new file system object to be registered. Null pointer unregisters the registered file system object.</dd>
+<dd>Pointer to the file system object to be registered and cleared. Null pointer unregisters the registered file system object.</dd>
<dt>path</dt>
-<dd>Pointer to the null-terminated string that specifies the <a href="filename.html">logical drive</a>. The string with no drive number means the default drive.</dd>
+<dd>Pointer to the null-terminated string that specifies the <a href="filename.html">logical drive</a>. The string without drive number means the default drive.</dd>
<dt>opt</dt>
-<dd>Initialization option. 0: Do not mount now (to be mounted later), 1: Force mounted the volume to check if the FAT volume is available.</dd>
+<dd>Mounting option. 0: Do not mount now (to be mounted on the first access to the volume), 1: Force mounted the volume to check if it is ready to work.</dd>
</dl>
</div>
@@ -49,21 +49,21 @@ FRESULT f_mount ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_mount()</tt> function registers/unregisters a file system object used for the logical drive to the FatFs module as follows:</p>
+<p>The <tt>f_mount</tt> function registers/unregisters a file system object used for the volume (logical drive) to the FatFs module as follows:</p>
<ol>
<li>Determines the logical drive which specified by <tt class="arg">path</tt>.</li>
-<li>Clears and unregisters the regsitered work area of the drive.</li>
+<li>Clears and unregisters the regsitered work area of the drive if exist.</li>
<li>Clears and registers the new work area to the drive if <tt class="arg">fs</tt> is not NULL.</li>
-<li>Performs volume mount process to the drive if forced mount is specified.</li>
+<li>Performs volume mount process to the drive if forced mounting is specified.</li>
</ol>
-<p>The file system object is the work area needed for each logical drive. It must be given to the logical drive with this function prior to use any other file functions except for <tt>f_fdisk()</tt> function. To unregister a work area, specify a NULL to the <tt class="arg">fs</tt>, and then the work area can be discarded.</p>
-<p>If forced mount is not specified, this function always succeeds regardless of the physical drive status due to delayed mount feature. It only clears (de-initializes) the given work area and registers its address to the internal table. No activity of the physical drive in this function. It can also be used to force de-initialized the registered work area of a logical drive. The volume mount processes, initialize the corresponding physical drive, find the FAT volume in it and initialize the work area, is performed in the subsequent file access functions when either or both of following condition is true.</p>
+<p>The file system object is the work area needed for each logical drive. It must be given to the logical drive with this function prior to use any API functions except for <tt>f_mkfs/f_fdisk</tt> function to the logical drive.</p>
+<p>If forced mounting is not specified (<tt>opt = 0</tt>), this function always succeeds regardless of the physical drive status. It only clears (de-initializes) the given work area and registers its address to the internal table and no activity of the physical drive in this function. To unregister the work area, specify a NULL to the <tt class="arg">fs</tt>, and then the work area can be discarded. The volume mount processes, initialize the corresponding physical drive, find the FAT volume in it and initialize the work area, is performed in the subsequent file access functions when either or both of following condition is true.</p>
<ul>
-<li>File system object is not initialized. It is cleared by <tt>f_mount()</tt>.</li>
+<li>File system object has not been initialized. It is de-initialized by <tt>f_mount</tt> function.</li>
<li>Physical drive is not initialized. It is de-initialized by system reset or media removal.</li>
</ul>
-<p>If the function with forced mount failed, it means that the file system object has been registered successfully but the volume is currently not ready to use. Mount process will also be attempted in subsequent file access functions.</p>
-<p>If implementation of the disk I/O layer lacks media change detection, application program needs to perform a <tt>f_mount()</tt> after each media change to force cleared the file system object.</p>
+<p>If the function with forced mounting (<tt>opt = 1</tt>) failed, it means that the file system object has been registered successfully but the volume is currently not ready to work. The volume mount process will be attempted at subsequent file access functions if the file system object is not initialized. (delayed mounting)</p>
+<p>If implementation of the disk I/O layer lacks media change detection, application program needs to perform a <tt>f_mount</tt> function after each media change to force cleared the file system object.</p>
</div>
diff --git a/fatfs/doc/en/open.html b/fatfs/doc/en/open.html index d61a7a4..feade15 100644 --- a/fatfs/doc/en/open.html +++ b/fatfs/doc/en/open.html @@ -27,20 +27,20 @@ FRESULT f_open ( <h4>Parameters</h4>
<dl class="par">
<dt>fp</dt>
-<dd>Pointer to the blank file object structure to be created.</dd>
+<dd>Pointer to the blank file object structure.</dd>
<dt>path</dt>
-<dd>Pointer to a null-terminated string that specifies the <a href="filename.html">file name</a> to open or create.</dd>
+<dd>Pointer to the null-terminated string that specifies the <a href="filename.html">file name</a> to open or create.</dd>
<dt>mode</dt>
<dd>Mode flags that specifies the type of access and open method for the file. It is specified by a combination of following flags.<br>
<table class="lst">
-<tr><th>Value</th><th>Description</th></tr>
-<tr><td>FA_READ</td><td>Specifies read access to the object. Data can be read from the file. Combine with <tt>FA_WRITE</tt> for read-write access.</td></tr>
+<tr><th>Value</th><th>Meaning</th></tr>
+<tr><td>FA_READ</td><td>Specifies read access to the object. Data can be read from the file.</tr>
<tr><td>FA_WRITE</td><td>Specifies write access to the object. Data can be written to the file. Combine with <tt>FA_READ</tt> for read-write access.</td></tr>
<tr><td>FA_OPEN_EXISTING</td><td>Opens the file. The function fails if the file is not existing. (Default)</td></tr>
-<tr><td>FA_OPEN_ALWAYS</td><td>Opens the file if it is existing. If not, a new file is created.<br>
-To append data to the file, use <a href="lseek.html"><tt>f_lseek()</tt></a> function after file open in this method.</td></tr>
<tr><td>FA_CREATE_NEW</td><td>Creates a new file. The function fails with <tt>FR_EXIST</tt> if the file is existing.</td></tr>
<tr><td>FA_CREATE_ALWAYS</td><td>Creates a new file. If the file is existing, it will be truncated and overwritten.</td></tr>
+<tr><td>FA_OPEN_ALWAYS</td><td>Opens the file if it is existing. If not, a new file will be created.</td></tr>
+<tr><td>FA_OPEN_APPEND</td><td>Same as <tt>FA_OPEN_ALWAYS</tt> except read/write pointer is set end of the file.</td></tr>
</table>
</dd>
</dl>
@@ -74,15 +74,15 @@ To append data to the file, use <a href="lseek.html"><tt>f_lseek()</tt></a> func <div class="para desc">
<h4>Description</h4>
-<p>After <tt>f_open()</tt> function succeeded, the file object is valid. The file object is used for subsequent read/write functions to identify the file. To close an open file, use <a href="close.html"><tt>f_close()</tt></a> function. If the file is modified and not closed properly, the file data will be collapsed.</p>
-<p>If duplicated file open is needed, read <a href="appnote.html#dup">here</a> carefully. However duplicated open of a file with write mode flag is always prohibited.</p>
-<p>Before using any file function, a work area (file system object) must be registered to the logical drive with <a href="mount.html"><tt>f_mount()</tt></a> function. All API functions except for <a href="fdisk.html"><tt>f_fdisk()</tt></a> function can work after this procedure.</p>
+<p>Before using any file function, a work area (file system object) needs to be registered to the logical drive with <a href="mount.html"><tt>f_mount</tt></a> function. All API functions except for <tt>f_mkfs/f_fdisk</tt> function get ready to work after this procedure.</p>
+<p>After <tt>f_open</tt> function succeeded, the file object is valid. The file object is used for subsequent operations to the file to identify the file. Open file must be closed prior to power down, media removal or re-mount, or the file can be collapsed. To close an open file, use <a href="close.html"><tt>f_close</tt></a> function.</p>
+<p>If duplicated file open is needed, read <a href="appnote.html#dup">here</a> carefully. However duplicated open of a file with any write mode flag is always prohibited.</p>
</div>
<div class="para comp">
<h4>QuickInfo</h4>
-<p>Always available. The mode flags, <tt>FA_WRITE, FA_CREATE_ALWAYS, FA_CREATE_NEW and FA_OPEN_ALWAYS</tt>, are not available when <tt>_FS_READONLY == 1</tt>.</p>
+<p>Always available. Only <tt>FA_READ</tt> and <tt>FA_OPEN_EXISTING</tt> are supported when <tt>_FS_READONLY == 1</tt>.</p>
</div>
@@ -134,11 +134,11 @@ int main (void) f_mount(&fs[1], "1:", 0);
<span class="c">/* Open source file on the drive 1 */</span>
- fr = f_open(&fsrc, "1:file.bin", FA_OPEN_EXISTING | FA_READ);
+ fr = f_open(&fsrc, "1:file.bin", FA_READ);
if (fr) return (int)fr;
<span class="c">/* Create destination file on the drive 0 */</span>
- fr = f_open(&fdst, "0:file.bin", FA_CREATE_ALWAYS | FA_WRITE);
+ fr = f_open(&fdst, "0:file.bin", FA_WRITE | FA_CREATE_ALWAYS);
if (fr) return (int)fr;
<span class="c">/* Copy source to destination */</span>
diff --git a/fatfs/doc/en/opendir.html b/fatfs/doc/en/opendir.html index 2fd4e45..56e66b2 100644 --- a/fatfs/doc/en/opendir.html +++ b/fatfs/doc/en/opendir.html @@ -28,7 +28,7 @@ FRESULT f_opendir ( <dt>dp</dt>
<dd>Pointer to the blank directory object to create a new one.</dd>
<dt>path</dt>
-<dd>Pinter to the null-terminated string that specifies the <a href="filename.html">directory name</a> to be opened.</dd>
+<dd>Pointer to the null-terminated string that specifies the <a href="filename.html">directory name</a> to be opened.</dd>
</dl>
</div>
@@ -55,7 +55,7 @@ FRESULT f_opendir ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_opendir()</tt> function opens an exsisting directory and creates a directory object for subsequent <tt>f_readdir()</tt> function.</p>
+<p>The <tt>f_opendir</tt> function opens an exsisting directory and creates a directory object for subsequent <tt>f_readdir</tt> function.</p>
</div>
diff --git a/fatfs/doc/en/printf.html b/fatfs/doc/en/printf.html index 96a84b8..f603052 100644 --- a/fatfs/doc/en/printf.html +++ b/fatfs/doc/en/printf.html @@ -39,13 +39,13 @@ int f_printf ( <div class="para ret"> <h4>Return Values</h4> -<p>When the function succeeded, it returns number of characters written. When the function failed due to disk full or any error, an <tt>EOF (-1)</tt> will be returned.</p> +<p>When the function succeeded, it returns number of characters written. If the function could not write the generated string to the file due to disk full or an error, <tt>EOF (-1)</tt> will be returned.</p> </div> <div class="para desc"> <h4>Description</h4> -<p>The <tt>f_printf()</tt> is a wrapper function of <a href="write.html"><tt>f_write()</tt></a>. The format control directive is a sub-set of standard library shown as follos:</p> +<p>The format control directive is a sub-set of standard library shown as follos:</p> <ul> <li>Type: <tt>c C s S d D u U x X b B</tt></li> <li>Size: <tt>l L</tt></li> @@ -56,8 +56,8 @@ int f_printf ( <div class="para comp"> <h4>QuickInfo</h4> -<p>Available when <tt>_FS_READONLY == 0</tt> and <tt>_USE_STRFUNC</tt> is 1 or 2. When it is set to 2, <tt>'\n'</tt>s contained in the output are converted to <tt>'\r'+'\n'</tt>.</p> -<p>When FatFs is configured to Unicode API (<tt>_LFN_UNICODE == 1</tt>), data types on the srting fuctions, <tt>f_putc()</tt>, <tt>f_puts()</tt>, <tt>f_printf()</tt> and <tt>f_gets()</tt>, is also switched to Unicode. The character encoding on the file to be read/written via those functions is selected by <tt>_STRF_ENCODE</tt> option.</p> +<p>This is a wrapper function of <a href="write.html"><tt>f_write</tt></a> function. Available when <tt>_FS_READONLY == 0</tt> and <tt>_USE_STRFUNC</tt> is 1 or 2. When it is set to 2, <tt>'\n'</tt>s contained in the output are converted to <tt>'\r'+'\n'</tt>.</p> +<p>When FatFs is configured to Unicode API (<tt>_LFN_UNICODE == 1</tt>), data types on the srting fuctions, <tt>f_putc</tt>, <tt>f_puts</tt>, <tt>f_printf</tt> and <tt>f_gets</tt> function, is also switched to Unicode. The character encoding on the file to be read/written via those functions is selected by <tt>_STRF_ENCODE</tt> option.</p> </div> diff --git a/fatfs/doc/en/putc.html b/fatfs/doc/en/putc.html index 52db016..9a97bab 100644 --- a/fatfs/doc/en/putc.html +++ b/fatfs/doc/en/putc.html @@ -36,19 +36,13 @@ int f_putc ( <div class="para ret">
<h4>Return Values</h4>
<p>When the character was written successfuly, it returns number of characters written. When the function failed due to disk full or any error, an <tt>EOF (-1)</tt> will be returned.</p>
-<p>When FatFs is configured to Unicode API (<tt>_LFN_UNICODE == 1</tt>), character encoding on the string fuctions, <tt>f_putc()</tt>, <tt>f_puts()</tt>, <tt>f_printf()</tt> and <tt>f_gets()</tt>, is also switched to Unicode. The character encoding on the file to be read/written via those functions is selected by <tt>_STRF_ENCODE</tt> option.</p>
-</div>
-
-
-<div class="para desc">
-<h4>Description</h4>
-<p>The <tt>f_putc()</tt> function is a wrapper function of <a href="write.html"><tt>f_write()</tt></a> function.</p>
+<p>When FatFs is configured to Unicode API (<tt>_LFN_UNICODE == 1</tt>), character encoding on the string fuctions, <tt>f_putc</tt>, <tt>f_puts</tt>, <tt>f_printf</tt> and <tt>f_gets</tt> function, is also switched to Unicode. The character encoding on the file to be read/written via those functions is selected by <tt>_STRF_ENCODE</tt> option.</p>
</div>
<div class="para comp">
<h4>QuickInfo</h4>
-<p>Available when <tt>_FS_READONLY == 0</tt> and <tt>_USE_STRFUNC</tt> is 1 or 2. When it is set to 2, a <tt>'\n'</tt> is converted to <tt>'\r'+'\n'</tt>.</p>
+<p>This is a wrapper function of <a href="write.html"><tt>f_write</tt></a> function. Available when <tt>_FS_READONLY == 0</tt> and <tt>_USE_STRFUNC</tt> is 1 or 2. When it is set to 2, a <tt>'\n'</tt> is converted to <tt>'\r'+'\n'</tt>.</p>
</div>
diff --git a/fatfs/doc/en/puts.html b/fatfs/doc/en/puts.html index 30b1dd3..b213e44 100644 --- a/fatfs/doc/en/puts.html +++ b/fatfs/doc/en/puts.html @@ -36,19 +36,13 @@ int f_puts ( <div class="para ret">
<h4>Return Value</h4>
<p>When the function succeeded, it returns number of characters written. When the write operation is aborted due to disk full or any error, an <tt>EOF (-1)</tt> will be returned.</p>
-<p>When FatFs is configured to Unicode API (<tt>_LFN_UNICODE == 1</tt>), character encoding on the srting fuctions, <tt>f_putc()</tt>, <tt>f_puts()</tt>, <tt>f_printf()</tt> and <tt>f_gets()</tt>, is also switched to Unicode. The character encoding on the file to be read/written via those functions is selected by <tt>_STRF_ENCODE</tt> option.</p>
-</div>
-
-
-<div class="para desc">
-<h4>Description</h4>
-<p>The <tt>f_puts()</tt> function is a wrapper function of <a href="write.html"><tt>f_write()</tt></a> function.</p>
+<p>When FatFs is configured to Unicode API (<tt>_LFN_UNICODE == 1</tt>), character encoding on the srting fuctions, <tt>f_putc</tt>, <tt>f_puts</tt>, <tt>f_printf</tt> and <tt>f_gets</tt> function, is also switched to Unicode. The character encoding on the file to be read/written via those functions is selected by <tt>_STRF_ENCODE</tt> option.</p>
</div>
<div class="para comp">
<h4>QuickInfo</h4>
-<p>Available when <tt>_FS_READONLY == 0</tt> and <tt>_USE_STRFUNC</tt> is 1 or 2. When it is set to 2, <tt>'\n'</tt>s contained in the string are converted to <tt>'\r'+'\n'</tt>.</p>
+<p>This is a wrapper function of <a href="write.html"><tt>f_write</tt></a> function. Available when <tt>_FS_READONLY == 0</tt> and <tt>_USE_STRFUNC</tt> is 1 or 2. When it is set to 2, <tt>'\n'</tt>s contained in the string are converted to <tt>'\r'+'\n'</tt>.</p>
</div>
diff --git a/fatfs/doc/en/rc.html b/fatfs/doc/en/rc.html index 306671a..0e45fbe 100644 --- a/fatfs/doc/en/rc.html +++ b/fatfs/doc/en/rc.html @@ -6,34 +6,43 @@ <link rel="up" title="FatFs" href="../00index_e.html">
<link rel="alternate" hreflang="ja" title="Japanese" href="../ja/rc.html">
<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
-<title>FatFs - Return Codes</title>
+<title>FatFs - API Return Code</title>
</head>
<body>
-<h1>Return Code of the File Functions</h1>
-<p>On the FatFs API, most of file functions return common result code as enum type <tt>FRESULT</tt>. When a function succeeded, it returns zero, otherwise returns non-zero value that indicates type of error.</p>
+<h1>Return Code of API Functions</h1>
+<p>Most of API functions return common result code as enum type <tt>FRESULT</tt>. When an API function succeeded, it returns zero (<tt>FR_OK</tt>), otherwise it returns non-zero value indicates type of error.</p>
<dl class="ret">
+
<dt id="ok">FR_OK (0)</dt>
<dd>The function succeeded.</dd>
+
<dt id="de">FR_DISK_ERR</dt>
-<dd>An unrecoverable hard error occured in the lower layer, <tt>disk_read()</tt>, <tt>disk_write()</tt> or <tt>disk_ioctl()</tt> function.<br>Note that if once this error occured at any operation to an open file, the file object is aborted and all operations to the file except for close will be rejected.</dd>
+<dd>An unrecoverable hard error occured in the lower layer, <tt>disk_read</tt>, <tt>disk_write</tt> or <tt>disk_ioctl</tt> function.<br>Note that if once this error occured at any operation to an open file, the file object is aborted and all operations to the file except for close will be rejected.</dd>
+
<dt id="ie">FR_INT_ERR</dt>
<dd>Assertion failed. An insanity is detected in the internal process. One of the following possibilities is suspected.
<ul>
<li>Work area (file system object, file object or etc...) has been broken by stack overflow or any other tasks. This is the reason in most case.</li>
-<li>There is any error of the FAT structure on the volume.</li>
+<li>There is an error of the FAT structure on the volume.</li>
+<li>There is a bug in the FatFs module itself.</li>
</ul>
Note that if once this error occured at any operation to an open file, the file object is aborted and all operations to the file except for close will be rejected.
</dd>
+
<dt id="nr">FR_NOT_READY</dt>
-<dd>The disk drive cannot work due to incorrect medium removal or <tt>disk_initialize()</tt> function failed.</dd>
+<dd>The storage device cannot work due to a failure of <a href="dinit.html"><tt>disk_initialize</tt></a> function due to no medium or any other reason.</dd>
+
<dt id="nf">FR_NO_FILE</dt>
<dd>Could not find the file.</dd>
+
<dt id="np">FR_NO_PATH</dt>
<dd>Could not find the path.</dd>
+
<dt id="in">FR_INVALID_NAME</dt>
<dd>The given string is invalid as the <a href="filename.html">path name</a>.</dd>
+
<dt id="dn">FR_DENIED</dt>
<dd>The required access was denied due to one of the following reasons:
<ul>
@@ -42,46 +51,66 @@ Note that if once this error occured at any operation to an open file, the file <li>Deleting the non-empty directory or current directory.</li>
<li>Reading the file opened without <tt>FA_READ</tt> flag.</li>
<li>Any modification to the file opened without <tt>FA_WRITE</tt> flag.</li>
-<li>Could not create the file or directory due to the directory table is full.</li>
-<li>Could not create the directory due to the volume is full.</li>
+<li>Could not create the object due to root directory full or disk full.</li>
+<li>Could not allocate a contiguous area to the file.</li>
</ul>
</dd>
+
<dt id="ex">FR_EXIST</dt>
-<dd>Name collision. Any object that has the same name is already existing.</dd>
+<dd>Name collision. An object with the same name is already existing.</dd>
+
<dt id="io">FR_INVALID_OBJECT</dt>
-<dd>The file/directory object structure is invalid or a null pointer is given. All open objects of the logical drive are invalidated by the voulme mount process.</dd>
+<dd>The file/directory object is invalid or a null pointer is given. There are some reasons as follows:
+<ul>
+<li>It has been closed, it has not been opened or it has been collapsed.</li>
+<li>It has been invalidated by a voulme mount process. Open objects on the volume are invalidated by voulme mount process.</li>
+<li>Physical drive is not ready to work due to a media removal.</li>
+</ul>
+</dd>
+
<dt id="wp">FR_WRITE_PROTECTED</dt>
-<dd>Any write mode operation against the write-protected media.</dd>
+<dd>A write mode operation against the write-protected media.</dd>
+
<dt id="id">FR_INVALID_DRIVE</dt>
-<dd>Invalid drive number is specified in the path name. A null pointer is given as the path name. (Related option: <tt>_VOLUMES</tt>)</dd>
+<dd>Invalid drive number is specified in the path name. A null pointer is given as the path name. (Related option: <tt><a href="config.html#volumes">_VOLUMES</a></tt>)</dd>
+
<dt id="ne">FR_NOT_ENABLED</dt>
-<dd>Work area for the logical drive has not been registered by <tt>f_mount()</tt> function.</dd>
+<dd>Work area for the logical drive has not been registered by <tt>f_mount</tt> function.</dd>
+
<dt id="ns">FR_NO_FILESYSTEM</dt>
<dd>There is no valid FAT volume on the drive.</dd>
+
<dt id="ma">FR_MKFS_ABORTED</dt>
-<dd>The <tt>f_mkfs()</tt> function aborted before start in format due to a reason as follows:
+<dd>The <tt>f_mkfs</tt> function aborted before start in format due to a reason as follows:
<ul>
-<li>The disk/partition size is too small.</li>
-<li>Not allowable cluster size for this disk. This can occure when number of clusters gets near the boundaries of FAT sub-types.</li>
-<li>There is no partition related to the logical drive. (Related option: <tt>_MULTI_PARTITION</tt>)</li>
+<li>It is pmpossible to formart with the given parameters.</li>
+<li>The size of volume is too small.</li>
+<li>The size of given work area is too small.</li>
+<li>The partition bound to the logical drive coulud not be found. (Related option: <tt><a href="config.html#multi_partition">_MULTI_PARTITION</a></tt>)</li>
</ul>
</dd>
+
<dt id="tm">FR_TIMEOUT</dt>
-<dd>The function was canceled due to a timeout of <a href="appnote.html#reentrant">thread-safe control</a>. (Related option: <tt>_TIMEOUT</tt>)</dd>
+<dd>The function was canceled due to a timeout of <a href="appnote.html#reentrant">thread-safe control</a>. (Related option: <tt><a href="config.html#timeout">_TIMEOUT</a></tt>)</dd>
+
<dt id="lo">FR_LOCKED</dt>
-<dd>The operation to the object was rejected by <a href="appnote.html#dup">file sharing control</a>. (Related option: <tt>_FS_LOCK</tt>)</dd>
+<dd>The operation to the object was rejected by <a href="appnote.html#dup">file sharing control</a>. (Related option: <tt><a href="config.html#fs_lock">_FS_LOCK</a></tt>)</dd>
+
<dt id="nc">FR_NOT_ENOUGH_CORE</dt>
<dd>Not enough memory for the operation. There is one of the following reasons:
<ul>
-<li>Could not allocate a memory for LFN working buffer. (Related option: <tt>_USE_LFN</tt>)</li>
+<li>Could not allocate a memory for LFN working buffer. (Related option: <tt><a href="config.html#use_lfn">_USE_LFN</a></tt>)</li>
<li>Size of the given buffer is insufficient for the size required.</li>
</ul>
</dd>
+
<dt id="tf">FR_TOO_MANY_OPEN_FILES</dt>
-<dd>Number of open objects has been reached maximum value and no more object can be opened. (Related option: <tt>_FS_LOCK</tt>)</dd>
+<dd>Number of open objects has been reached maximum value and no more object can be opened. (Related option: <tt><a href="config.html#fs_lock">_FS_LOCK</a></tt>)</dd>
+
<dt id="ip">FR_INVALID_PARAMETER</dt>
-<dd>The given parameter is invalid or there is any inconsistent.</dd>
+<dd>The given parameter is invalid or there is an inconsistent for the volume.</dd>
</dl>
+<p class="foot"><a href="../00index_e.html">Return</a></p>
</body>
</html>
diff --git a/fatfs/doc/en/read.html b/fatfs/doc/en/read.html index de593f0..80811c9 100644 --- a/fatfs/doc/en/read.html +++ b/fatfs/doc/en/read.html @@ -34,7 +34,7 @@ FRESULT f_read ( <dt>btr</dt>
<dd>Number of bytes to read in range of <tt>UINT</tt> type.</dd>
<dt>br</dt>
-<dd>Pointer to the <tt>UINT</tt> variable to return number of bytes read. The value is always valid after the function call regardless of the result.</dd>
+<dd>Pointer to the <tt>UINT</tt> variable to return number of bytes read. The value is always valid after the function call regardless of the result code.</dd>
</dl>
</div>
@@ -45,7 +45,6 @@ FRESULT f_read ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>
</p>
@@ -54,7 +53,7 @@ FRESULT f_read ( <div class="para desc">
<h4>Description</h4>
-<p>The file read/write pointer of the file object advances number of bytes read. After the function succeeded, <tt class="arg">*br</tt> should be checked to detect end of the file. In case of <tt class="arg">*br</tt> is less than <tt class="arg">btr</tt>, it means the read/write pointer reached end of the file during read operation.</p>
+<p>The function starts to read data from the file at the position pointed by the read/write pointer. The read/write pointer advances as number of bytes read. After the function succeeded, <tt class="arg">*br</tt> should be checked to detect end of the file. In case of <tt class="arg">*br</tt> < <tt class="arg">btr</tt>, it means the read/write pointer reached end of the file during read operation.</p>
</div>
diff --git a/fatfs/doc/en/readdir.html b/fatfs/doc/en/readdir.html index bf83ebe..235beee 100644 --- a/fatfs/doc/en/readdir.html +++ b/fatfs/doc/en/readdir.html @@ -13,7 +13,7 @@ <div class="para func">
<h2>f_readdir</h2>
-<p>The f_readdir function reads directory entries.</p>
+<p>The f_readdir function reads an item of the directory.</p>
<pre>
FRESULT f_readdir (
DIR* <span class="arg">dp</span>, <span class="c">/* [IN] Directory object */</span>
@@ -26,9 +26,9 @@ FRESULT f_readdir ( <h4>Parameters</h4>
<dl class="par">
<dt>dp</dt>
-<dd>Pointer to the open directory object.</dd>
+<dd>Pointer to the open directory object or null pointer.</dd>
<dt>fno</dt>
-<dd>Pointer to the file information structure to store the read item.</dd>
+<dd>Pointer to the <a href="sfileinfo.html">file information structure</a> to store the information about read item.</dd>
</dl>
</div>
@@ -39,7 +39,6 @@ FRESULT f_readdir ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>,
<a href="rc.html#nc">FR_NOT_ENOUGH_CORE</a>
@@ -49,14 +48,14 @@ FRESULT f_readdir ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_readdir()</tt> function reads directory items, file and directory, in sequence. All items in the directory can be read by calling <tt>f_readdir()</tt> function repeatedly. When relative path feature is enabled (<tt>_FS_RPATH >= 1</tt>), dot entries ("." and "..") are not filtered out and they will appear in the read items. When all directory items have been read and no item to read, a null string is returned into the <tt>fname[]</tt> without any error. When a null pointer is given to the <tt class="arg">fno</tt>, the read index of the directory object is rewinded.</p>
-<p>When LFN feature is enabled, <tt>lfname</tt> and <tt>lfsize</tt> in the file information structure must be initialized with valid value prior to use it. The <tt>lfname</tt> is a pointer to the LFN read buffer. The <tt>lfsize</tt> is size of the LFN read buffer in unit of <tt>TCHAR</tt>. If the LFN is not needed, set a null pointer to the <tt>lfname</tt> and the LFN is not returned. A null string will be returned into the LFN read buffer in case of following conditions.</p>
+<p>The <tt>f_readdir</tt> function reads a directory item, informations about the object. All items in the directory can be read in sequence by <tt>f_readdir</tt> function calls. Dot entries (<tt>"."</tt> and <tt>".."</tt>) in the sub-directory are filtered out and they will never appear in the read items. When all directory items have been read and no item to read, a nul string is stored into the <tt>fno->fname[]</tt> without any error. When a null pointer is given to the <tt class="arg">fno</tt>, the read index of the directory object is rewinded.</p>
+<p>When support of long file name (LFN) is enabled, a member <tt>altname[]</tt> is defined in the file information structure to store the short file name of the object. In case of the some conditions listed below, short file name is stored into the <tt>fname[]</tt> and <tt>altname[]</tt> has a null string.</p>
<ul>
-<li>The directory item has no LFN information.</li>
-<li>Either the size of read buffer or LFN working buffer is insufficient for the LFN.</li>
-<li>The LFN contains any Unicode character that cannot be converted to OEM code. (not the case at Unicode API cfg.)</li>
+<li>The item has no long file name. (Not the case at exFAT volume)</li>
+<li>Setting of <tt>_MAX_LFN</tt> is insufficient for the long file name. (Not the case at <tt>_MAX_LFN == 255</tt>)</li>
+<li>The long file name contains any character not allowed in ANSI/OEM code. (Not the case at <tt>_LFN_UNICODE == 1</tt>)</li>
</ul>
-<p>When the directory item has no LFN information, lower case characters can be contained in the <tt>fname[]</tt>.</p>
+<p>There is a problem on reading a directory of exFAT volume. The exFAT does not support short file name. This means no name can be returned on the condition above. If it is the case, a "?" is returned as file name to indicate that the object is not accessible. To avoid this problem, configure FatFs <tt>_LFN_UNICODE = 1</tt> and <tt>_MAX_LFN = 255</tt> to support the full feature of LFN specification.</p>
</div>
@@ -70,40 +69,28 @@ FRESULT f_readdir ( <h4>Sample Code</h4>
<pre>
FRESULT scan_files (
- char* path <span class="c">/* Start node to be scanned (also used as work area) */</span>
+ char* path <span class="c">/* Start node to be scanned (***also used as work area***) */</span>
)
{
FRESULT res;
- FILINFO fno;
DIR dir;
- int i;
- char *fn; <span class="c">/* This function assumes non-Unicode configuration */</span>
-<span class="k">#if</span> _USE_LFN
- static char lfn[_MAX_LFN + 1]; <span class="c">/* Buffer to store the LFN */</span>
- fno.lfname = lfn;
- fno.lfsize = sizeof lfn;
-<span class="k">#endif</span>
+ UINT i;
+ static FILINFO fno;
res = f_opendir(&dir, path); <span class="c">/* Open the directory */</span>
if (res == FR_OK) {
- i = strlen(path);
for (;;) {
res = f_readdir(&dir, &fno); <span class="c">/* Read a directory item */</span>
if (res != FR_OK || fno.fname[0] == 0) break; <span class="c">/* Break on error or end of dir */</span>
- if (fno.fname[0] == '.') continue; <span class="c">/* Ignore dot entry */</span>
-<span class="k">#if</span> _USE_LFN
- fn = *fno.lfname ? fno.lfname : fno.fname;
-<span class="k">#else</span>
- fn = fno.fname;
-<span class="k">#endif</span>
if (fno.fattrib & AM_DIR) { <span class="c">/* It is a directory */</span>
- sprintf(&path[i], "/%s", fn);
- res = scan_files(path);
- path[i] = 0;
+ i = strlen(path);
+ sprintf(&path[i], "/%s", fno.fname);
+ res = scan_files(path); <span class="c">/* Enter the directory */</span>
if (res != FR_OK) break;
+ path[i] = 0;
} else { <span class="c">/* It is a file. */</span>
- printf("%s/%s\n", path, fn);
+ printf("%s/%s\n", path, fno.fname);
}
}
f_closedir(&dir)
@@ -111,6 +98,23 @@ FRESULT scan_files ( return res;
}
+
+
+int main (void)
+{
+ FATFS fs;
+ FRESULT res;
+ char buff[256];
+
+
+ res = f_mount(&fs, "", 1);
+ if (res == FR_OK) {
+ strcpy(buff, "/");
+ res = scan_files(buff);
+ }
+
+ return res;
+}
</pre>
</div>
diff --git a/fatfs/doc/en/rename.html b/fatfs/doc/en/rename.html index 2593e89..10cb4fd 100644 --- a/fatfs/doc/en/rename.html +++ b/fatfs/doc/en/rename.html @@ -13,7 +13,7 @@ <div class="para func">
<h2>f_rename</h2>
-<p>Renames a file or sub-directory.</p>
+<p>The f_rename function renames and/or moves a file or sub-directory.</p>
<pre>
FRESULT f_rename (
const TCHAR* <span class="arg">old_name</span>, <span class="c">/* [IN] Old object name */</span>
@@ -26,9 +26,9 @@ FRESULT f_rename ( <h4>Parameters</h4>
<dl class="par">
<dt>old_name</dt>
-<dd>Pointer to a null-terminated string that specifies an existing <a href="filename.html">file or sub-directory</a> to be renamed.</dd>
+<dd>Pointer to a null-terminated string that specifies the existing <a href="filename.html">file or sub-directory</a> to be renamed.</dd>
<dt>new_name</dt>
-<dd>Pointer to a null-terminated string that specifies the new object name. The drive number specified in this string is ignored and one determined by <tt class="arg">old_name</tt> is used instead.</dd>
+<dd>Pointer to a null-terminated string that specifies the new object name. A drive number may be specified in this string but it is ignored and assumed as the same drive of the <tt class="arg">old_name</tt>. Any object with this path name except <tt class="arg">old_name</tt> must not be exist, or the function fails with <tt>FR_EXIST</tt>.</dd>
</dl>
</div>
@@ -58,7 +58,7 @@ FRESULT f_rename ( <div class="para desc">
<h4>Description</h4>
-<p>Renames a file or sub-directory and can also move it to other directory within the same logical drive. <em>Do not rename open objects</em> or directry table can be broken.</p>
+<p>Renames a file or sub-directory and can also move it to other directory in the same volume. The object to be renamed must not be an open object, or <em>the FAT volume can be collapsed</em>. Such the wrong operation is rejected safely when <a href="appnote.html#dup">file lock function</a> is enabled.</p>
</div>
@@ -71,11 +71,14 @@ FRESULT f_rename ( <div class="para use">
<h4>Example</h4>
<pre>
- <span class="c">/* Rename an object */</span>
+ <span class="c">/* Rename an object in the default drive */</span>
f_rename("oldname.txt", "newname.txt");
- <span class="c">/* Rename and move an object to other directory */</span>
- f_rename("oldname.txt", "dir1/newname.txt");
+ <span class="c">/* Rename an object in the drive 2 */</span>
+ f_rename("2:oldname.txt", "newname.txt");
+
+ <span class="c">/* Rename an object and move it to other directory in the volume */</span>
+ f_rename("log.txt", "old/log0001.txt");
</pre>
</div>
diff --git a/fatfs/doc/en/sdir.html b/fatfs/doc/en/sdir.html index 7eba555..a01a716 100644 --- a/fatfs/doc/en/sdir.html +++ b/fatfs/doc/en/sdir.html @@ -13,23 +13,21 @@ <div class="para">
<h2>DIR</h2>
-<p>The <tt>DIR</tt> structure is used for the work area to read a directory by <tt>f_oepndir()/f_readdir()</tt> function. Application program must not modify any member in this structure.</p>
+<p>The <tt>DIR</tt> structure is used for the work area to read a directory by <tt>f_oepndir</tt>, <tt>f_readdir</tt>, <tt>f_findfirst</tt> and <tt>f_findnext</tt> function. Application program must not modify any member in this structure, or any data on the FAT volume can be collapsed.</p>
<pre>
<span class="k">typedef</span> <span class="k">struct</span> {
- FATFS* fs; <span class="c">/* Pointer to the owner file system object */</span>
- WORD id; <span class="c">/* Owner file system mount ID */</span>
- WORD index; <span class="c">/* Index of directory entry to start to search next */</span>
- DWORD sclust; <span class="c">/* Table start cluster (0:Root directory) */</span>
+ _FDID obj; <span class="c">/* Owner file sytem object and object identifier */</span>
+ DWORD dptr; <span class="c">/* Current read/write offset */</span>
DWORD clust; <span class="c">/* Current cluster */</span>
DWORD sect; <span class="c">/* Current sector */</span>
BYTE* dir; <span class="c">/* Pointer to the current SFN entry in the win[] */</span>
BYTE* fn; <span class="c">/* Pointer to the SFN buffer (in/out) {file[8],ext[3],status[1]} */</span>
-<span class="k">#if</span> _FS_LOCK
- UINT lockid; <span class="c">/* Sub-directory lock ID (0:Root directory) */</span>
-<span class="k">#endif</span>
<span class="k">#if</span> _USE_LFN
- WCHAR* lfn; <span class="c">/* Pointer to the LFN buffer (in/out) */</span>
- WORD lfn_idx; <span class="c">/* Index of the LFN entris (0xFFFF:No LFN) */</span>
+ DWORD blk_ofs; <span class="c">/* Offset of the entry block (0xFFFFFFFF:Invalid) */</span>
+ WCHAR* lfn; <span class="c">/* Pointer to the LFN working buffer (in/out) */</span>
+<span class="k">#endif</span>
+<span class="k">#if</span> _USE_FIND
+ const TCHAR* pat; <span class="c">/* Ponter to the matching pattern */</span>
<span class="k">#endif</span>
} DIR;
</pre>
diff --git a/fatfs/doc/en/setlabel.html b/fatfs/doc/en/setlabel.html index 91179fc..f7a8b0e 100644 --- a/fatfs/doc/en/setlabel.html +++ b/fatfs/doc/en/setlabel.html @@ -49,12 +49,14 @@ FRESULT f_setlabel ( <div class="para desc">
<h4>Description</h4>
-<p>When the string has a drive number, the volume label will be set to the volume specified by the drive number. If not, the label will be set to the default drive. If the given string is a null-string, the volume label on the volume will be removed. The format of the volume label is similar to the short file name but there are some differences shown below:</p>
+<p>When the string has a drive number, the volume label will be set to the volume specified by the drive number. If not, the volume label will be set to the default drive. If length of the given volume label is zero, the volume label on the volume will be removed. The format of the volume label on the FAT volume is similar to the file name but there are some differences shown below:</p>
<ul>
-<li>11 bytes or less in length as local character code. LFN extention is not applied to the volume label.</li>
-<li>Cannot contain period.</li>
-<li>Can contain spaces anywhere in the volume label. Trailing spaces are truncated off.</li>
+<li>Spaces can be contained anywhere in the volume label. Trailing spaces are truncated off at FAT volume.</li>
+<li>Period is not allowed.</li>
+<li>Up to 11 bytes long as conversion of OEM code page at FAT volume.</li>
+<li>Up to 11 characters long at exFAT volume. Case information is preserved.</li>
</ul>
+<p>Remark: The standard system (Windows) has a problem at handling of the volume label with a heading <tt>\xE5</tt> on the FAT volume. To avoid this problem, this function rejects such volume label as invalid name.</p>
</div>
<div class="para comp">
diff --git a/fatfs/doc/en/sfatfs.html b/fatfs/doc/en/sfatfs.html index b420850..e701f44 100644 --- a/fatfs/doc/en/sfatfs.html +++ b/fatfs/doc/en/sfatfs.html @@ -13,37 +13,45 @@ <div class="para">
<h2>FATFS</h2>
-<p>The <tt>FATFS</tt> structure (file system object) holds dynamic work area of individual logical drives. It is given by application program and registerd/unregisterd to the FatFs module with <tt>f_mount()</tt> function. Initialization is done on first API call after <tt>f_mount()</tt> function or media change. Application program must not modify any member in this structure.</p>
+<p>The <tt>FATFS</tt> structure (file system object) holds dynamic work area of individual logical drives. It is given by application program and registerd/unregisterd to the FatFs module with <tt>f_mount</tt> function. Initialization is done on first API call after <tt>f_mount</tt> function or media change. Application program must not modify any member in this structure, or any data on the FAT volume can be collapsed.</p>
<pre>
<span class="k">typedef</span> <span class="k">struct</span> {
- BYTE fs_type; <span class="c">/* FAT sub-type (0:Not mounted) */</span>
+ BYTE fs_type; <span class="c">/* File system type (0, FS_FAT12, FS_FAT16, FS_FAT32 or FS_EXFAT) */</span>
BYTE drv; <span class="c">/* Physical drive number */</span>
- BYTE csize; <span class="c">/* Sectors per cluster (1,2,4,...,128) */</span>
BYTE n_fats; <span class="c">/* Number of FAT copies (1,2) */</span>
BYTE wflag; <span class="c">/* win[] flag (b0:win[] is dirty) */</span>
BYTE fsi_flag; <span class="c">/* FSINFO flags (b7:Disabled, b0:Dirty) */</span>
WORD id; <span class="c">/* File system mount ID */</span>
WORD n_rootdir; <span class="c">/* Number of root directory entries (FAT12/16) */</span>
+ WORD csize; <span class="c">/* Sectors per cluster */</span>
<span class="k">#if</span> _MAX_SS != _MIN_SS
WORD ssize; <span class="c">/* Sector size (512,1024,2048 or 4096) */</span>
<span class="k">#endif</span>
+<span class="k">#if _FS_EXFAT</span>
+ BYTE* dirbuf; <span class="c">/* Directory entry block scratchpad buffer */</span>
+<span class="k">#endif</span>
<span class="k">#if</span> _FS_REENTRANT
_SYNC_t sobj; <span class="c">/* Identifier of sync object */</span>
<span class="k">#endif</span>
<span class="k">#if</span> !_FS_READONLY
- DWORD last_clust; <span class="c">/* FSINFO: Last allocated cluster */</span>
- DWORD free_clust; <span class="c">/* FSINFO: Number of free clusters */</span>
+ DWORD last_clust; <span class="c">/* FSINFO: Last allocated cluster (0xFFFFFFFF if invalid) */</span>
+ DWORD free_clust; <span class="c">/* FSINFO: Number of free clusters (0xFFFFFFFF if invalid) */</span>
<span class="k">#endif</span>
<span class="k">#if</span> _FS_RPATH
- DWORD cdir; <span class="c">/* Current directory start cluster (0:root) */</span>
+ DWORD cdir; <span class="c">/* Cluster number of current directory (0:root) */</span>
+<span class="k">#if _FS_EXFAT</span>
+ DWORD cdc_scl; <span class="c">/* Containing directory start cluster (invalid when cdir is 0) */</span>
+ DWORD cdc_size; <span class="c">/* b31-b8:Size of containing directory, b7-b0: Chain status */</span>
+ DWORD cdc_ofs; <span class="c">/* Offset in the containing directory (invalid when cdir is 0) */</span>
+<span class="k">#endif</span>
<span class="k">#endif</span>
- DWORD n_fatent; <span class="c">/* Number of FAT entries (== Number of clusters + 2) */</span>
+ DWORD n_fatent; <span class="c">/* Number of FAT entries (Number of clusters + 2) */</span>
DWORD fsize; <span class="c">/* Sectors per FAT */</span>
- DWORD volbase; <span class="c">/* Volume start sector */</span>
- DWORD fatbase; <span class="c">/* FAT area start sector */</span>
- DWORD dirbase; <span class="c">/* Root directory area start sector (FAT32: Cluster#) */</span>
- DWORD database; <span class="c">/* Data area start sector */</span>
- DWORD winsect; <span class="c">/* Current sector appearing in the win[] */</span>
+ DWORD volbase; <span class="c">/* Volume base LBA */</span>
+ DWORD fatbase; <span class="c">/* FAT base LBA */</span>
+ DWORD dirbase; <span class="c">/* Root directory base (LBA|Cluster) */</span>
+ DWORD database; <span class="c">/* Data base LBA */</span>
+ DWORD winsect; <span class="c">/* Sector LBA appearing in the win[] */</span>
BYTE win[_MAX_SS]; <span class="c">/* Disk access window for directory, FAT (and file data at tiny cfg) */</span>
} FATFS;
</pre>
diff --git a/fatfs/doc/en/sfile.html b/fatfs/doc/en/sfile.html index 1ed9899..5e53d16 100644 --- a/fatfs/doc/en/sfile.html +++ b/fatfs/doc/en/sfile.html @@ -13,31 +13,25 @@ <div class="para">
<h2>FIL</h2>
-<p>The <tt>FIL</tt> structure (file object) holds the state of an open file. It is created by <tt>f_open()</tt> function and discarded by <tt>f_close()</tt> function. Application program must not modify any member in this structure except for <tt>cltbl</tt>. Note that a sector buffer is defined in this structure at non-tiny configuration (<tt>_FS_TINY == 0</tt>), so that the <tt>FIL</tt> structures at that configuration should not be defined as auto variable.</p>
+<p>The <tt>FIL</tt> structure (file object) holds the state of an open file. It is created by <tt>f_open</tt> function and discarded by <tt>f_close</tt> function. Application program must not modify any member in this structure except for <tt>cltbl</tt>, or any data on the FAT volume can be collapsed. Note that a sector buffer is defined in this structure at non-tiny configuration (<tt>_FS_TINY == 0</tt>), so that the <tt>FIL</tt> structures at that configuration should not be defined as auto variable.</p>
<pre>
<span class="k">typedef</span> <span class="k">struct</span> {
- FATFS* fs; <span class="c">/* Pointer to the owner file system object */</span>
- WORD id; <span class="c">/* Owner file system mount ID */</span>
+ _FDID obj; <span class="c">/* Owner file sytem object and object identifier */</span>
BYTE flag; <span class="c">/* File object status flags */</span>
BYTE err; <span class="c">/* Abort flag (error code) */</span>
- DWORD fptr; <span class="c">/* File read/write pointer (Byte offset origin from top of the file) */</span>
- DWORD fsize; <span class="c">/* File size in unit of byte */</span>
- DWORD sclust; <span class="c">/* File start cluster */</span>
- DWORD clust; <span class="c">/* Current cluster */</span>
- DWORD dsect; <span class="c">/* Current data sector */</span>
+ FSIZE_t fptr; <span class="c">/* File read/write pointer (Byte offset origin from top of the file) */</span>
+ DWORD clust; <span class="c">/* Current cluster of fptr (One cluster behind if fptr is on the cluster boundary. Invalid if fptr == 0.) */</span>
+ DWORD sect; <span class="c">/* Current data sector (Can be invalid if fptr is on the cluster boundary.)*/</span>
<span class="k">#if</span> !_FS_READONLY
- DWORD dir_sect; <span class="c">/* Sector containing the directory entry */</span>
+ DWORD dir_sect; <span class="c">/* Sector number containing the directory entry */</span>
BYTE* dir_ptr; <span class="c">/* Ponter to the directory entry in the window */</span>
<span class="k">#endif</span>
<span class="k">#if</span> _USE_FASTSEEK
- DWORD* cltbl; <span class="c">/* Pointer to the cluster link map table (Nulled on file open) */</span>
-<span class="k">#endif</span>
-<span class="k">#if</span> _FS_LOCK
- UINT lockid; <span class="c">/* Fle lock ID */</span>
+ DWORD* cltbl; <span class="c">/* Pointer to the cluster link map table (Nulled on file open. Set by application.) */</span>
<span class="k">#endif</span>
<span class="k">#if</span> !_FS_TINY
- BYTE buf[_MAX_SS]; <span class="c">/* File private data transfer buffer */</span>
+ BYTE buf[_MAX_SS]; <span class="c">/* File private data transfer buffer (Always valid if fptr is not on the sector boundary but can be invalid if fptr is on the sector boundary.) */</span>
<span class="k">#endif</span>
} FIL;
</pre>
diff --git a/fatfs/doc/en/sfileinfo.html b/fatfs/doc/en/sfileinfo.html index ac254a1..6dae1fe 100644 --- a/fatfs/doc/en/sfileinfo.html +++ b/fatfs/doc/en/sfileinfo.html @@ -13,17 +13,18 @@ <div class="para">
<h2>FILINFO</h2>
-<p>The <tt>FILINFO</tt> structure holds a file information returned by <tt>f_readdir()</tt> and <tt>f_stat()</tt> function.</p>
+<p>The <tt>FILINFO</tt> structure holds information about the object returned by <tt>f_readdir</tt>, <tt>f_findfirst</tt>, <tt>f_findnext</tt> and <tt>f_stat</tt> function.</p>
<pre>
<span class="k">typedef struct</span> {
- DWORD fsize; <span class="c">/* File size */</span>
- WORD fdate; <span class="c">/* Last modified date */</span>
- WORD ftime; <span class="c">/* Last modified time */</span>
- BYTE fattrib; <span class="c">/* Attribute */</span>
- TCHAR fname[13]; <span class="c">/* Short file name (8.3 format) */</span>
-<span class="k">#if</span> _USE_LFN
- TCHAR* lfname; <span class="c">/* Pointer to the LFN buffer */</span>
- int lfsize; <span class="c">/* Size of the LFN buffer in unit of TCHAR */</span>
+ FSIZE_t fsize; <span class="c">/* File size */</span>
+ WORD fdate; <span class="c">/* Last modified date */</span>
+ WORD ftime; <span class="c">/* Last modified time */</span>
+ BYTE fattrib; <span class="c">/* Attribute */</span>
+<span class="k">#if</span> _USE_LFN != 0
+ TCHAR altname[13]; <span class="c">/* Alternative object name */</span>
+ TCHAR fname[_MAX_LFN + 1]; <span class="c">/* Primary object name */</span>
+<span class="k">#else</span>
+ TCHAR fname[13]; <span class="c">/* Object name */</span>
<span class="k">#endif</span>
} FILINFO;
</pre>
@@ -32,9 +33,9 @@ <h4>Members</h4>
<dl>
<dt>fsize</dt>
-<dd>Indicates size of the file in unit of byte. Always zero for directories.</dd>
+<dd>Indicates size of the file in unit of byte. <tt>FSIZE_t</tt> is an alias of integer type either <tt>DWORD</tt>(32-bit) or <tt>QWORD</tt>(64-bit) depends on the configuration option <tt>_FS_EXFAT</tt>. Do not care when the item is a directory.</dd>
<dt>fdate</dt>
-<dd>Indicates the date that the file was modified or the directory was created.<br>
+<dd>Indicates the date when the file was modified or the directory was created.<br>
<dl>
<dt>bit15:9</dt>
<dd>Year origin from 1980 (0..127)</dd>
@@ -45,7 +46,7 @@ </dl>
</dd>
<dt>ftime</dt>
-<dd>Indicates the time that the file was modified or the directory was created.<br>
+<dd>Indicates the time when the file was modified or the directory was created.<br>
<dl>
<dt>bit15:11</dt>
<dd>Hour (0..23)</dd>
@@ -58,11 +59,9 @@ <dt>fattrib</dt>
<dd>Indicates the file/directory attribute in combination of <tt>AM_DIR</tt>, <tt>AM_RDO</tt>, <tt>AM_HID</tt>, <tt>AM_SYS</tt> and <tt>AM_ARC</tt>.</dd>
<dt>fname[]</dt>
-<dd>Indicates the file/directory name in 8.3 format null-terminated string. It is always returnd with upper case in non-LFN configuration but it can be returned with lower case in LFN configuration.</dd>
-<dt>lfname</dt>
-<dd>Pointer to the LFN buffer to store the read LFN. This member must be initialized by application program prior to use this structure. Set a null pointer if LFN is not needed. Not available at non-LFN configuration.</dd>
-<dt>lfsize</dt>
-<dd>Size of the LFN buffer in unit of TCHAR. This member must be initialized by application program prior to use this structure. Not available at non-LFN configuration.</dd>
+<dd>The null-terminated object name is stored. A null string is stored when no item to read and it indicates this structure is invalid.</dd>
+<dt>altname[]</dt>
+<dd>Alternative object name is stored if available. This member is not available at non-LFN configuration.</dd>
</dl>
<p class="foot"><a href="../00index_e.html">Return</a></p>
diff --git a/fatfs/doc/en/size.html b/fatfs/doc/en/size.html index bb786c6..08990c6 100644 --- a/fatfs/doc/en/size.html +++ b/fatfs/doc/en/size.html @@ -15,7 +15,7 @@ <h2>f_size</h2>
<p>The f_size function gets the size of a file.</p>
<pre>
-DWORD f_size (
+FSIZE_t f_size (
FIL* <span class="arg">fp</span> <span class="c">/* [IN] File object */</span>
);
</pre>
@@ -39,9 +39,9 @@ DWORD f_size ( <div class="para desc">
<h4>Description</h4>
-<p>In this revision, the <tt>f_size()</tt> function is implemented as a macro.</p>
+<p>In this revision, the <tt>f_size</tt> function is implemented as a macro. It does not have any validation and mutual exclusion.</p>
<pre>
-<span class="k">#define</span> f_size(fp) ((fp)->fsize)
+<span class="k">#define</span> f_size(fp) ((fp)->obj.objsize)
</pre>
</div>
diff --git a/fatfs/doc/en/stat.html b/fatfs/doc/en/stat.html index db53c5d..2924660 100644 --- a/fatfs/doc/en/stat.html +++ b/fatfs/doc/en/stat.html @@ -54,8 +54,7 @@ FRESULT f_stat ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_stat()</tt> function checks the existence of a file or sub-directory. If not exist, the function returns with <tt>FR_NO_FILE</tt>. If exist, the function returns with <tt>FR_OK</tt> and the informations of the object, file size, timestamp, attribute and SFN, are stored to the file information structure. For details of the file information, refer to the <tt>FILINFO</tt> structure and <a href="readdir.html"><tt>f_readdir()</tt></a> function.</p>
-<p>When LFN feature is enabled, <tt>lfname</tt> in the file information structure must be NULLed prior to use it.</p>
+<p>The <tt>f_stat</tt> function checks the existence of a file or sub-directory. If not exist, the function returns with <tt>FR_NO_FILE</tt>. If exist, the function returns with <tt>FR_OK</tt> and the informations of the object, file size, timestamp and attribute, are stored to the file information structure. For details of the file information, refer to the <tt>FILINFO</tt> structure and <a href="readdir.html"><tt>f_readdir</tt></a> function.</p>
</div>
@@ -74,23 +73,20 @@ FRESULT f_stat ( printf("Test for 'file.txt'...\n");
-<span class="k">#if</span> _USE_LFN
- fno.lfname = 0;
-<span class="k">#endif</span>
fr = f_stat("file.txt", &fno);
switch (fr) {
case FR_OK:
- printf("Size: %u\n", fno.fsize);
+ printf("Size: %lu\n", fno.fsize);
printf("Timestamp: %u/%02u/%02u, %02u:%02u\n",
(fno.fdate >> 9) + 1980, fno.fdate >> 5 & 15, fno.fdate & 31,
fno.ftime >> 11, fno.ftime >> 5 & 63);
printf("Attributes: %c%c%c%c%c\n",
- (fno.fattrib & AM_DIR) ? 'D' : '-',
- (fno.fattrib & AM_RDO) ? 'R' : '-',
- (fno.fattrib & AM_HID) ? 'H' : '-',
- (fno.fattrib & AM_SYS) ? 'S' : '-',
- (fno.fattrib & AM_ARC) ? 'A' : '-');
+ (fno.fattrib & AM_DIR) ? 'D' : '-',
+ (fno.fattrib & AM_RDO) ? 'R' : '-',
+ (fno.fattrib & AM_HID) ? 'H' : '-',
+ (fno.fattrib & AM_SYS) ? 'S' : '-',
+ (fno.fattrib & AM_ARC) ? 'A' : '-');
break;
case FR_NO_FILE:
diff --git a/fatfs/doc/en/sync.html b/fatfs/doc/en/sync.html index 3e86b7f..3c16ac4 100644 --- a/fatfs/doc/en/sync.html +++ b/fatfs/doc/en/sync.html @@ -36,7 +36,6 @@ FRESULT f_sync ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>
</p>
@@ -45,8 +44,8 @@ FRESULT f_sync ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_sync()</tt> function performs the same process as <tt>f_close()</tt> function but the file is left opened and can continue read/write/seek operations to the file. This is suitable for the applications that open files for a long time in write mode, such as data logger. Performing <tt>f_sync()</tt> function of periodic or immediataly after <tt>f_write()</tt> function can minimize the risk of data loss due to a sudden blackout or an unintentional media removal. For more information, refer to <a href="appnote.html#critical">application note</a>.</p>
-<p>However there is no sense in <tt>f_sync()</tt> function immediataly before <tt>f_close()</tt> function because it performs <tt>f_sync()</tt> function in it. In other words, the differnce between those functions is that the file object is invalidated or not.</p>
+<p>The <tt>f_sync</tt> function performs the same process as <tt>f_close</tt> function but the file is left opened and can continue read/write/seek operations to the file. This is suitable for the applications that open files for a long time in write mode, such as data logger. Performing <tt>f_sync</tt> function of periodic or immediataly after <tt>f_write</tt> function can minimize the risk of data loss due to a sudden blackout or an unintentional media removal. For more information, refer to <a href="appnote.html#critical">application note</a>.</p>
+<p>However there is no sense in <tt>f_sync</tt> function immediataly before <tt>f_close</tt> function because it performs <tt>f_sync</tt> function in it. In other words, the differnce between those functions is that the file object is invalidated or not.</p>
</div>
diff --git a/fatfs/doc/en/tell.html b/fatfs/doc/en/tell.html index 93d03c9..7e0673c 100644 --- a/fatfs/doc/en/tell.html +++ b/fatfs/doc/en/tell.html @@ -15,7 +15,7 @@ <h2>f_tell</h2>
<p>The f_tell function gets the current read/write pointer of a file.</p>
<pre>
-DWORD f_tell (
+FSIZE_t f_tell (
FIL* <span class="arg">fp</span> <span class="c">/* [IN] File object */</span>
);
</pre>
@@ -39,7 +39,7 @@ DWORD f_tell ( <div class="para desc">
<h4>Description</h4>
-<p>In this revision, the <tt>f_tell()</tt> function is implemented as a macro.</p>
+<p>In this revision, the <tt>f_tell</tt> function is implemented as a macro. It does not have any validation and mutual exclusion.</p>
<pre>
<span class="k">#define</span> f_tell(fp) ((fp)->fptr)
</pre>
diff --git a/fatfs/doc/en/truncate.html b/fatfs/doc/en/truncate.html index 7dc980d..d0079d7 100644 --- a/fatfs/doc/en/truncate.html +++ b/fatfs/doc/en/truncate.html @@ -36,7 +36,7 @@ FRESULT f_truncate ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
+<a href="rc.html#dn">FR_DENIED</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>
</p>
@@ -45,7 +45,7 @@ FRESULT f_truncate ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_truncate()</tt> function truncates the file size to the current file read/write pointer. This function has no effect if the file read/write pointer is already pointing end of the file.</p>
+<p>The <tt>f_truncate</tt> function truncates the file size to the current file read/write pointer. This function has no effect if the file read/write pointer is already pointing end of the file.</p>
</div>
diff --git a/fatfs/doc/en/unlink.html b/fatfs/doc/en/unlink.html index fc884c3..4cd1f66 100644 --- a/fatfs/doc/en/unlink.html +++ b/fatfs/doc/en/unlink.html @@ -25,7 +25,7 @@ FRESULT f_unlink ( <h4>Parameter</h4>
<dl class="par">
<dt>path</dt>
-<dd>Pointer to the null-terminated string that specifies an <a href="filename.html">object</a> to be removed.</dd>
+<dd>Pointer to a null-terminated string that specifies the <a href="filename.html">file or sub-directory</a> to be removed.</dd>
</dl>
</div>
@@ -59,7 +59,7 @@ FRESULT f_unlink ( If condition of the object to be removed is applicable to the following terms, the function will be rejected.<ul>
<li>The file/sub-directory must not have read-only attribute (<tt>AM_RDO</tt>), or the function will be rejected with <tt>FR_DENIED</tt>.</li>
<li>The sub-directory must be empty and must not be current directory, or the function will be rejected with <tt>FR_DENIED</tt>.</li>
-<li>The file/sub-directory must not be opened, or the <em>FAT volume can be collapsed</em>. It can be rejected with <tt>FR_LOCKED</tt> when <a href="appnote.html#dup">file lock feature</a> is enabled.</li>
+<li>The file/sub-directory must not be opened, or the <em>FAT volume can be collapsed</em>. It will be rejected safely when <a href="appnote.html#dup">file lock function</a> is enabled.</li>
</ul>
</div>
diff --git a/fatfs/doc/en/utime.html b/fatfs/doc/en/utime.html index 7466c19..6b7f291 100644 --- a/fatfs/doc/en/utime.html +++ b/fatfs/doc/en/utime.html @@ -55,7 +55,7 @@ FRESULT f_utime ( <div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_utime()</tt> function changes the timestamp of a file or sub-directory</p>
+<p>The <tt>f_utime</tt> function changes the timestamp of a file or sub-directory</p>
</div>
@@ -85,7 +85,7 @@ FRESULT set_timestamp ( <div class="para comp">
<h4>QuickInfo</h4>
-<p>Available when <tt>_FS_READONLY == 0</tt> and <tt>_FS_MINIMIZE == 0</tt>.</p>
+<p>Available when <tt>_FS_READONLY == 0</tt> and <tt>_USE_CHMOD == 1</tt>.</p>
</div>
diff --git a/fatfs/doc/en/write.html b/fatfs/doc/en/write.html index 925fd56..7ca8ad6 100644 --- a/fatfs/doc/en/write.html +++ b/fatfs/doc/en/write.html @@ -34,7 +34,7 @@ FRESULT f_write ( <dt>btw</dt>
<dd>Specifies number of bytes to write in range of <tt>UINT</tt> type.</dd>
<dt>bw</dt>
-<dd>Pointer to the <tt>UINT</tt> variable to return the number of bytes written. The value is always valid after the function call regardless of the result.</dd>
+<dd>Pointer to the <tt>UINT</tt> variable to return the number of bytes written. The value is always valid after the function call regardless of the result code.</dd>
</dl>
</div>
@@ -45,7 +45,6 @@ FRESULT f_write ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>
</p>
@@ -54,7 +53,7 @@ FRESULT f_write ( <div class="para desc">
<h4>Description</h4>
-<p>The read/write pointer of the file object advances number of bytes written. After the function succeeded, <tt class="arg">*bw</tt> should be checked to detect the disk full. In case of <tt class="arg">*bw</tt> is less than <tt class="arg">btw</tt>, it means the volume got full during the write operation. The function can take a time when the volume is full or close to full.</p>
+<p>The function starts to write data to the file at the position pointed by the read/write pointer. The read/write pointer advances as number of bytes written. After the function succeeded, <tt class="arg">*bw</tt> should be checked to detect the disk full. In case of <tt class="arg">*bw</tt> < <tt class="arg">btw</tt>, it means the volume got full during the write operation. The function can take a time when the volume is full or close to full.</p>
</div>
diff --git a/fatfs/doc/img/f6.png b/fatfs/doc/img/f6.png Binary files differdeleted file mode 100644 index a7b0d71..0000000 --- a/fatfs/doc/img/f6.png +++ /dev/null diff --git a/fatfs/doc/img/f7.png b/fatfs/doc/img/f7.png Binary files differdeleted file mode 100644 index 392e8b8..0000000 --- a/fatfs/doc/img/f7.png +++ /dev/null diff --git a/fatfs/doc/img/funcs.png b/fatfs/doc/img/funcs.png Binary files differdeleted file mode 100644 index 03e7d6d..0000000 --- a/fatfs/doc/img/funcs.png +++ /dev/null diff --git a/fatfs/doc/img/layers.png b/fatfs/doc/img/layers.png Binary files differdeleted file mode 100644 index d485d6b..0000000 --- a/fatfs/doc/img/layers.png +++ /dev/null diff --git a/fatfs/doc/img/modules.png b/fatfs/doc/img/modules.png Binary files differdeleted file mode 100644 index ef4c78c..0000000 --- a/fatfs/doc/img/modules.png +++ /dev/null diff --git a/fatfs/doc/img/rwtest.png b/fatfs/doc/img/rwtest.png Binary files differdeleted file mode 100644 index a34bf06..0000000 --- a/fatfs/doc/img/rwtest.png +++ /dev/null diff --git a/fatfs/doc/ja/appnote.html b/fatfs/doc/ja/appnote.html index 4985bae..8b6cb66 100644 --- a/fatfs/doc/ja/appnote.html +++ b/fatfs/doc/ja/appnote.html @@ -17,7 +17,7 @@ <li><a href="#memory">メモリ使用é‡</a></li>
<li><a href="#reduce">モジュール サイズã®ç¸®å°</a></li>
<li><a href="#lfn">é•·ã„ファイルå</a></li>
-<li><a href="#jap">日本語ファイルåã®å¤§æ–‡å—変æ›</a></li>
+<li><a href="#exfat">exFATファイルシステム</a></li>
<li><a href="#unicode">Unicode入出力ã¸ã®å¯¾å¿œ</a></li>
<li><a href="#reentrant">リエントランシー</a></li>
<li><a href="#dup">多é‡ãƒ•ã‚¡ã‚¤ãƒ« アクセス</a></li>
@@ -27,13 +27,12 @@ <li><a href="#fs3">APIã®æ‹¡å¼µçš„使用例</a></li>
<li><a href="#license">FatFsã®ãƒ©ã‚¤ã‚»ãƒ³ã‚¹ã«ã¤ã„ã¦</a></li>
</ol>
-<hr>
-<div class="para" id="port">
+<div class="para doc" id="port">
<h3>ãƒãƒ¼ãƒ†ã‚£ãƒ³ã‚°ã®éš›ã«é…æ…®ã™ã¹ãã“ã¨</h3>
-<h4>移æ¤ã®éš›ã®å‰ææ¡ä»¶</h4>
-<p>FatFsモジュールã¯ç§»æ¤æ€§ã«é–¢ã—ã¦æ¬¡ã®ç‚¹ã‚’å‰æã¨ã—ã¦ã„ã¾ã™ã€‚</p>
+<h4>ãƒãƒ¼ãƒ†ã‚£ãƒ³ã‚°ã®éš›ã®å‰ææ¡ä»¶</h4>
+<p>FatFsモジュールã¯ãƒãƒ¼ã‚¿ãƒ“リティã«é–¢ã—ã¦æ¬¡ã®ç‚¹ã‚’å‰æã¨ã—ã¦ã„ã¾ã™ã€‚</p>
<ul>
<li>処ç†ç³»ã¯ANSI Cæº–æ‹ ã§ã‚ã‚‹ã“ã¨ã€‚<br>
FatFsモジュールã¯ANSI C(C89)æº–æ‹ ã§è¨˜è¿°ã•ã‚Œã¦ã„ã‚‹ã®ã§ã€æ™®é€šã®Cコンパイラãªã‚‰ç‰¹ã«å‡¦ç†ç³»ä¾å˜ã«ãªã‚‹ç‚¹ã¯ã‚ã‚Šã¾ã›ã‚“。</li>
@@ -43,12 +42,12 @@ FatFsモジュールã¯ANSI C(C89)æº–æ‹ ã§è¨˜è¿°ã•ã‚Œã¦ã„ã‚‹ã®ã§ã€æ™®é€šã <h4>システム構æˆ</h4>
<p>下ã«ç¤ºã™ä¾å˜é–¢ä¿‚図ã¯ã€FatFsモジュール利用ã®çµ„ã¿è¾¼ã¿ã‚·ã‚¹ãƒ†ãƒ ã«ãŠã‘る代表的ãªæ§‹æˆã‚’示ã—ã¾ã™ã€‚</p>
-<p><img src="../img/modules.png" width="580" height="280" alt="システム構æˆå›³"></p>
+<p><img src="../res/modules.png" width="580" height="280" alt="システム構æˆå›³"></p>
<p>(a) FatFs用ã«æ›¸ã‹ã‚ŒãŸãƒ‡ã‚£ã‚¹ã‚¯ モジュールãŒã‚ã‚‹å ´åˆã¯ã€ãã®ã¾ã¾è¿½åŠ ã™ã‚‹ã ã‘ã§ã™ã€‚ (b) ã—ã‹ã—ã€å¤šãã®æ—¢å˜ã®ãƒ‡ã‚£ã‚¹ã‚¯ モジュールã¯ãã®APIã‚’FatFsã«åˆã‚ã›ã‚‹ãŸã‚ã€ã‚°ãƒ«ãƒ¼é–¢æ•°ãŒå¿…è¦ã«ãªã‚‹ã§ã—ょã†ã€‚</p>
-<p><img src="../img/funcs.png" width="680" height="430" alt="functional diagram"></p>
+<p><img src="../res/funcs.png" width="750" height="420" alt="functional diagram"></p>
<h4>ユーザã®ä½œæˆã™ã‚‹é–¢æ•°</h4>
-<p>å¿…è¦ãªã®ã¯FatFsモジュールã®è¦æ±‚ã™ã‚‹ãƒ‡ã‚£ã‚¹ã‚¯é–¢æ•°ã‚’用æ„ã™ã‚‹ã“ã¨ã ã‘ã§ã€ãれ以外ã«ã™ã‚‹ã“ã¨ã¯ã‚ã‚Šã¾ã›ã‚“。既ã«å‹•ä½œã—ã¦ã„るディスク モジュールãŒã‚ã‚‹ãªã‚‰ã€ãã®APIã‚’FatFsã«åˆã‚ã›ã‚‹ã‹ã‚°ãƒ«ãƒ¼é–¢æ•°ã‚’介ã—ã¦ã¤ãªãã ã‘ã§æ¸ˆã¿ã¾ã™ãŒã€ç„¡ã„å ´åˆã¯ã»ã‹ã‹ã‚‰ç§»æ¤ã™ã‚‹ã‹æœ€åˆã‹ã‚‰æ›¸ãã‹ã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚定義ã•ã‚Œã¦ã„ã‚‹å…¨ã¦ã®é–¢æ•°ãŒå¸¸ã«å¿…è¦ãªã‚ã‘ã§ã¯ã‚ã‚Šã¾ã›ã‚“。例ãˆã°ã€ãƒªãƒ¼ãƒ‰ オンリー構æˆã§ã¯æ›¸ãè¾¼ã¿ç³»é–¢æ•°ã¯å¿…è¦ã‚ã‚Šã¾ã›ã‚“。次ã®è¡¨ã«æ§‹æˆã‚ªãƒ—ションã¨è¦æ±‚ã•ã‚Œã‚‹é–¢æ•°ã®å¯¾å¿œã‚’示ã—ã¾ã™ã€‚</p>
+<p>ãƒãƒ¼ãƒ†ã‚£ãƒ³ã‚°ä½œæ¥ã¯ã€è¦æ±‚ã•ã‚Œã‚‹ãƒ‡ãƒã‚¤ã‚¹åˆ¶å¾¡é–¢æ•°ã‚’用æ„ã™ã‚‹ã“ã¨ãŒå…¨ã¦ã§ã€ãれ以外ã«ã™ã‚‹ã“ã¨ã¯ä½•ã‚‚ã‚ã‚Šã¾ã›ã‚“。既ã«å‹•ä½œã—ã¦ã„るデãƒã‚¤ã‚¹åˆ¶å¾¡ãƒ¢ã‚¸ãƒ¥ãƒ¼ãƒ«ãŒã‚ã‚‹ãªã‚‰ã€ãã®ã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ã‚§ãƒ¼ã‚¹ã‚’FatFsã«åˆã‚ã›ã‚‹ã‹ã‚°ãƒ«ãƒ¼é–¢æ•°ã‚’介ã—ã¦ã¤ãªãã ã‘ã§æ¸ˆã¿ã¾ã™ãŒã€ç„¡ã„å ´åˆã¯ã»ã‹ã‹ã‚‰ç§»æ¤ã™ã‚‹ã‹æœ€åˆã‹ã‚‰æ›¸ãã‹ã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚定義ã•ã‚Œã¦ã„ã‚‹å…¨ã¦ã®é–¢æ•°ãŒå¸¸ã«å¿…è¦ãªã‚ã‘ã§ã¯ã‚ã‚Šã¾ã›ã‚“。例ãˆã°ã€ãƒªãƒ¼ãƒ‰ オンリ構æˆã§ã¯æ›¸ãè¾¼ã¿ç³»é–¢æ•°ã¯å¿…è¦ã‚ã‚Šã¾ã›ã‚“。次ã®è¡¨ã«æ§‹æˆã‚ªãƒ—ションã¨è¦æ±‚ã•ã‚Œã‚‹é–¢æ•°ã®å¯¾å¿œã‚’示ã—ã¾ã™ã€‚</p>
<table class="lst2">
<tr><th>å¿…è¦ãªé–¢æ•°</th><th>å¿…è¦ã¨ãªã‚‹æ¡ä»¶</th><th>備考</th></tr>
<tr><td>disk_status<br>disk_initialize<br>disk_read</td><td>常時</td><td rowspan="5">ffsample.zip (サンプル)<br>ãã®ä»–web上ã«å¤šæ•°</td></tr>
@@ -56,225 +55,227 @@ FatFsモジュールã¯ANSI C(C89)æº–æ‹ ã§è¨˜è¿°ã•ã‚Œã¦ã„ã‚‹ã®ã§ã€æ™®é€šã <tr><td>disk_ioctl (GET_SECTOR_COUNT)<br>disk_ioctl (GET_BLOCK_SIZE)</td><td>_USE_MKFS == 1</td></tr>
<tr><td>disk_ioctl (GET_SECTOR_SIZE)</td><td>_MAX_SS != _MIN_SS</td></tr>
<tr><td>disk_ioctl (CTRL_TRIM)</td><td>_USE_TRIM == 1</td></tr>
-<tr><td>ff_convert<br>ff_wtoupper</td><td>_USE_LFN >= 1</td><td>option/unicode.c</td></tr>
+<tr><td>ff_convert<br>ff_wtoupper</td><td>_USE_LFN != 0</td><td>option/unicode.cをプãƒã‚¸ã‚§ã‚¯ãƒˆã«<br>åŠ ãˆã‚Œã°ã‚ˆã„</td></tr>
<tr><td>ff_cre_syncobj<br>ff_rel_grant<br>ff_req_grant<br>ff_del_syncobj</td><td>_FS_REENTRANT == 1</td><td rowspan="2">option/syscall.c (サンプル)</td></tr>
<tr><td>ff_mem_alloc<br>ff_mem_free</td><td>_USE_LFN == 3</td></tr>
</table>
</div>
-<div class="para" id="limits">
+<div class="para doc" id="limits">
<h3>é™ç•Œå€¤</h3>
<ul>
-<li>FATタイプ: FAT12, FAT16, FAT32。</li>
+<li>ファイルシステム: FAT12, FAT16, FAT32(r0.0) ãŠã‚ˆã³ exFAT(r1.0)。</li>
<li>åŒæ™‚オープン ファイル数: 無制é™ã€‚(利用å¯èƒ½ãƒ¡ãƒ¢ãƒªã«ã‚ˆã‚‹)</li>
-<li>ボリューム数: 最大 10。</li>
-<li>ファイル サイズ: FATè¦æ ¼ã«ä¾å˜ã€‚(最大 4G-1ãƒã‚¤ãƒˆ)</li>
-<li>ボリュームサイズ: FATè¦æ ¼ã«ä¾å˜ã€‚(最大 2Tãƒã‚¤ãƒˆ(512ãƒã‚¤ãƒˆ/セクタ時))</li>
-<li>クラスタ サイズ: FATè¦æ ¼ã«ä¾å˜ã€‚(最大 64Kãƒã‚¤ãƒˆ(512ãƒã‚¤ãƒˆ/セクタ時))</li>
-<li>セクタ サイズ: FATè¦æ ¼ã«ä¾å˜ã€‚(512~4096ãƒã‚¤ãƒˆ)</li>
+<li>åŒæ™‚マウント ボリューム数: 最大 10。</li>
+<li>ファイル サイズ: 最大 4GiB - 1 (FATボリューム) ãŠã‚ˆã³ã€äº‹å®Ÿä¸Šç„¡åˆ¶é™(exFATボリューム)。</li>
+<li>ボリュームサイズ: 最大 2TiB (512B/セクタ時)。</li>
+<li>クラスタ サイズ: 最大 128セクタ (FATボリューム) ãŠã‚ˆã³ã€æœ€å¤§ 16MiB (exFATボリューム)。</li>
+<li>セクタ サイズ: 512B, 1KiB, 2KiB, 4KiB。</li>
</ul>
</div>
-<div class="para" id="memory">
+<div class="para doc" id="memory">
<h3>メモリ使用é‡</h3>
<p>次ã®è¡¨ã«ã„ãã¤ã‹ã®ã‚¿ãƒ¼ã‚²ãƒƒãƒˆã«ãŠã‘るメモリ使用é‡ã®ä¾‹ã‚’示ã—ã¾ã™ã€‚テスト時ã®æ§‹æˆã‚ªãƒ—ションã¯ãã®ä¸‹ã®é€šã‚Šã§ã™ã€‚数値ã®å˜ä½ã¯ãƒã‚¤ãƒˆã§ã€<em>V</em>ã¯ãƒœãƒªãƒ¥ãƒ¼ãƒ æ•°ã€<em>F</em>ã¯åŒæ™‚オープン ファイル数を示ã—ã¾ã™ã€‚コンパイラã®æœ€é©åŒ–オプションã¯ã‚³ãƒ¼ãƒ‰ サイズã¨ã—ã¦ã„ã¾ã™ã€‚</p>
<table class="lst2">
<tr><th></th><th>ARM7<small><br>32bit</small></th><th>ARM7<small><br>Thumb</small></th><th>CM3<small><br>Thumb-2</small></th><th>AVR</th><th>H8/300H</th><th>PIC24</th><th>RL78</th><th>V850ES</th><th>SH-2A</th><th>RX600</th><th>IA-32</th></tr>
-<tr class="cal"> <td>Compiler</td><td>GCC</td><td>GCC</td><td>GCC</td><td>GCC</td><td>CH38</td><td>C30</td><td>CC78K0R</td><td>CA850</td><td>SHC</td><td>RXC</td><td>VC6</td></tr>
-<tr class="cal"> <td>_WORD_ACCESS</td><td>0</td><td>0</td><td>0</td><td>1</td><td>0</td><td>0</td><td>0</td><td>1</td><td>0</td><td>1</td><td>1</td></tr>
-<!-- ARM Thumb CM3 AVR H8 PIC24 RL78 V850ES SH-2A RX600 IA-32 -->
-<tr class="lst3 ral"><td class="cal">text (Full, R/W)</td><td>10675</td><td>7171</td><td>6617</td><td>13355</td><td>10940</td><td>11722</td><td>13262</td><td>8113</td><td>9048</td><td>6032</td><td>7952</td></tr>
-<tr class="ral"> <td class="cal">text (Min, R/W)</td> <td>6727</td><td>4631</td><td>4331</td> <td>8569</td> <td>7262</td> <td>7720</td> <td>9088</td><td>5287</td><td>5800</td><td>3948</td><td>5183</td></tr>
-<tr class="ral"> <td class="cal">text (Full, R/O)</td> <td>4731</td><td>3147</td><td>2889</td> <td>6235</td> <td>5170</td> <td>5497</td> <td>6482</td><td>3833</td><td>3972</td><td>2862</td><td>3719</td></tr>
-<tr class="ral"> <td class="cal">text (Min, R/O)</td> <td>3559</td><td>2485</td><td>2295</td> <td>4575</td> <td>4064</td> <td>4240</td> <td>5019</td><td>2993</td><td>3104</td><td>2214</td><td>2889</td></tr>
-<tr class="ral"> <td class="cal">bss</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*2 + 2</td><td>V*4 + 2</td><td>V*2 + 2</td><td>V*2 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td></tr>
-<tr class="ral"> <td class="cal">Work area<br>(_FS_TINY == 0)</td><td>V*560<br>+ F*550</td><td>V*560<br>+ F*550</td><td>V*560<br>+ F*550</td><td>V*560<br>+ F*544</td><td>V*560<br>+ F*550</td><td>V*560<br>+ F*544</td><td>V*560<br>+ F*544</td><td>V*560<br>+ F*544</td><td>V*560<br>+ F*550</td><td>V*560<br>+ F*550</td><td>V*560<br>+ F*550</td></tr>
-<tr class="ral"> <td class="cal">Work area<br>(_FS_TINY == 1)</td><td>V*560<br>+ F*36</td><td>V*560<br>+ F*36</td><td>V*560<br>+ F*36</td><td>V*560<br>+ F*32</td><td>V*560<br>+ F*36</td><td>V*560<br>+ F*32</td><td>V*560<br>+ F*32</td><td>V*560<br>+ F*36</td><td>V*560<br>+ F*36</td><td>V*560<br>+ F*36</td><td>V*560<br>+ F*36</td></tr>
+<tr class="cal"> <td>Compiler</td><td>GCC</td><td>GCC</td><td>GCC</td><td>GCC</td><td>CH38</td><td>C30</td><td>CC78K0R</td><td>CA850</td><td>SHC</td><td>RXC</td><td>MSC</td></tr>
+<!-- ARM Thumb CM3 AVR H8 PIC24 RL78 V850ES SH-2A RX600 IA-32 -->
+<tr class="ral"><td class="cal">text (Full, R/W)</td><td>10.4k</td><td>6.8k</td><td>6.3k</td><td>12.4k</td> <td>9.8k</td><td>11.1k</td><td>12.8k</td><td>8.6k</td><td>8.9k</td><td>6.4k</td><td>8.5k</td></tr>
+<tr class="ral"><td class="cal">text (Min, R/W)</td> <td>6.8k</td><td>4.6k</td><td>4.3k</td> <td>8.2k</td> <td>6.7k</td> <td>7.6k</td> <td>9.1k</td><td>6.0k</td><td>5.9k</td><td>4.5k</td><td>5.9k</td></tr>
+<tr class="ral"><td class="cal">text (Full, R/O)</td> <td>4.8k</td><td>3.1k</td><td>2.8k</td> <td>5.6k</td> <td>4.6k</td> <td>5.3k</td> <td>6.3k</td><td>4.0k</td><td>3.9k</td><td>3.0k</td><td>3.9k</td></tr>
+<tr class="ral"><td class="cal">text (Min, R/O)</td> <td>3.6k</td><td>2.4k</td><td>2.3k</td> <td>4.4k</td> <td>3.5k</td> <td>4.0k</td> <td>4.9k</td><td>3.3k</td><td>3.0k</td><td>2.4k</td><td>3.1k</td></tr>
+<tr class="ral"><td class="cal">bss</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*2 + 2</td><td>V*4 + 2</td><td>V*2 + 2</td><td>V*2 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td><td>V*4 + 2</td></tr>
+<tr class="ral"><td class="cal">Work area<br><small>(_FS_TINY == 0)</small></td><td>V*564<br>+ F*552</td><td>V*564<br>+ F*552</td><td>V*564<br>+ F*552</td><td>V*560<br>+ F*546</td><td>V*560<br>+ F*546</td><td>V*560<br>+ F*546</td><td>V*560<br>+ F*546</td><td>V*564<br>+ F*552</td><td>V*564<br>+ F*552</td><td>V*564<br>+ F*552</td><td>V*564<br>+ F*552</td></tr>
+<tr class="ral"><td class="cal">Work area<br><small>(_FS_TINY == 1)</small></td><td>V*564<br>+ F*40</td><td>V*564<br>+ F*40</td><td>V*564<br>+ F*40</td><td>V*560<br>+ F*34</td><td>V*560<br>+ F*34</td><td>V*560<br>+ F*34</td><td>V*560<br>+ F*34</td><td>V*564<br>+ F*40</td><td>V*564<br>+ F*40</td><td>V*564<br>+ F*40</td><td>V*564<br>+ F*40</td></tr>
</table>
<pre>
-FatFs R0.10a options:
-_FS_READONLY 0 (R/W) or 1 (R/O)
-_FS_MINIMIZE 0 (Full function) or 3 (Minimized function)
-_USE_STRFUNC 0 (Disable string functions)
-_USE_MKFS 0 (Disable f_mkfs function)
-_USE_FORWARD 0 (Disable f_forward function)
-_USE_FASTSEEK 0 (Disable fast seek feature)
-_CODE_PAGE 932 (Japanese Shift_JIS)
-_USE_LFN 0 (Disable LFN feature)
-_MAX_SS 512 (Fixed sector size)
-_FS_RPATH 0 (Disable relative path feature)
-_FS_LABEL 0 (Disable volume label functions)
-_VOLUMES V (Number of logical drives to be used)
-_MULTI_PARTITION 0 (Single partition per drive)
-_FS_REENTRANT 0 (Disable thread safe)
-_FS_LOCK 0 (Disable file lock control)
+FatFs R0.12b options:
+_FS_READONLY 0 (R/W) or 1 (R/O)
+_FS_MINIMIZE 0 (Full, with all basic functions) or 3 (Min, with fully minimized)
+_FS_TINY 0 (Default) or 1 (Tiny file object)
+And any other options are left not changed from default setting.
</pre>
</div>
-<div class="para" id="reduce">
+<div class="para doc" id="reduce">
<h3>モジュール サイズã®ç¸®å°</h3>
-<p>次ã®è¡¨ã¯æ§‹æˆã‚ªãƒ—ションã®è¨å®šå€¤ã«ã‚ˆã‚Šã©ã®æ©Ÿèƒ½ãŒå‰Šé™¤ã•ã‚Œã‚‹ã‹ã‚’示ã—ã¾ã™ã€‚</p>
+<p>次ã®è¡¨ã¯<a href="config.html">構æˆã‚ªãƒ—ション</a>ã®è¨å®šå€¤ã«ã‚ˆã‚Šã©ã®æ©Ÿèƒ½ãŒå‰Šé™¤ã•ã‚Œã‚‹ã‹ã‚’示ã—ã¾ã™ã€‚API関数ã®è¡Œã«xãŒç„¡ã‘ã‚Œã°ãã®é–¢æ•°ã¯ä½¿ç”¨å¯èƒ½ã§ã™ã€‚</p>
<table class="lst2">
-<tr><td rowspan="2">Function</td><td colspan="4">_FS_MINIMIZE</td><td colspan="2">_FS_READONLY</td><td colspan="2">_USE_STRFUNC</td><td colspan="3">_FS_RPATH</td><td colspan="2">_FS_LABEL</td><td colspan="2">_USE_MKFS</td><td colspan="2">_USE_FORWARD</td><td colspan="2">_MULTI_PARTITION</td></tr>
-<tr><td>0</td><td>1</td><td>2</td><td>3</td><td>0</td><td>1</td><td>0 </td><td>1/2</td><td>0</td><td>1</td><td>2</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0/1</td><td>2</td></tr>
-<tr class="lst3"><td>f_mount</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_open</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_close</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_read</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_write</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_sync</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_lseek</td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_opendir</td><td></td><td></td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_closedir</td><td></td><td></td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_readdir</td><td></td><td></td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_stat</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_getfree</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_truncate</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_unlink</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_mkdir</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_chmod</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_utime</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_rename</td><td></td><td>x</td><td>x</td><td>x</td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_chdir</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_chdrive</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_getcwd</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_getlabel</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_setlabel</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_forward</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td></tr>
-<tr><td>f_mkfs</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_fdisk</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td>x</td><td></td></tr>
-<tr><td>f_putc</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_puts</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_printf</td><td></td><td></td><td></td><td></td><td></td><td>x</td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-<tr><td>f_gets</td><td></td><td></td><td></td><td></td><td></td><td></td><td>x</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
+<tr><td rowspan="2">Function</td><td colspan="4">_FS_<br>MINIMIZE</td><td colspan="2">_FS_<br>READONLY</td><td colspan="2">_USE_<br>STRFUNC</td><td colspan="3">_FS_<br>RPATH</td><td colspan="2">_USE_<br>FIND</td><td colspan="2">_USE_<br>CHMOD</td><td colspan="2">_USE_<br>EXPAND</td><td colspan="2">_USE_<br>LABEL</td><td colspan="2">_USE_<br>MKFS</td><td colspan="2">_USE_<br>FORWARD</td><td colspan="2">_MULTI_<br>PARTITION</td></tr>
+<tr> <td>0</td><td>1</td><td>2</td><td>3</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>2</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td></tr>
+<tr class="lst3">
+ <td>f_mount</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_open</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_close</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_read</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_write</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_sync</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_lseek</td> <td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_opendir</td> <td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_closedir</td> <td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_readdir</td> <td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_findfirst</td><td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_findnext</td> <td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_stat</td> <td> </td><td>x</td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_getfree</td> <td> </td><td>x</td><td>x</td><td>x</td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_truncate</td> <td> </td><td>x</td><td>x</td><td>x</td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_unlink</td> <td> </td><td>x</td><td>x</td><td>x</td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_mkdir</td> <td> </td><td>x</td><td>x</td><td>x</td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_rename</td> <td> </td><td>x</td><td>x</td><td>x</td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_chdir</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_chdrive</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_getcwd</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_chmod</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_utime</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_getlabel</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_setlabel</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_expand</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_forward</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_mkfs</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_fdisk</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td>x</td><td> </td></tr>
+<tr><td>f_putc</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_puts</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_printf</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
+<tr><td>f_gets</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td>x</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
</table>
</div>
-<div class="para" id="lfn">
+<div class="para doc" id="lfn">
<h3>é•·ã„ファイルå</h3>
-<p>FatFsモジュールã¯ã€é•·ã„ファイルå(LFN)をサãƒãƒ¼ãƒˆã—ã¾ã™ã€‚ファイルã«ä»˜ã‘られãŸ2ã¤ã®ç•°ãªã‚‹åå‰(çŸã„ファルåã¨é•·ã„ファイルå)ã¯ã€<tt>f_readdir()</tt>を除ãファイルæ“作関数ã«ãŠã„ã¦é€éŽã§ã™ã€‚デフォルト構æˆã§ã¯ã€LFN機能ã¯OFFã«ãªã£ã¦ã„ã¾ã™ã€‚LFN機能を有効ã«ã™ã‚‹ã«ã¯ã€<tt>_USE_LFN</tt>ã‚’1,2ã¾ãŸã¯3ã«è¨å®šã—ã€<tt>option/unicode.c</tt>をプãƒã‚¸ã‚§ã‚¯ãƒˆã«è¿½åŠ ã—ã¾ã™ã€‚LFN機能ã¯ã€åŠ ãˆã¦ã‚る程度ã®ãƒ¯ãƒ¼ã‚¯ エリア(LFNæ“作ãƒãƒƒãƒ•ã‚¡)ã‚’å¿…è¦ã¨ã—ã¾ã™ã€‚ãƒãƒƒãƒ•ã‚¡é•·ã¯ä½¿ç”¨ã§ãるメモリã«å¿œã˜ã¦<tt>_MAX_LFN</tt>オプションã§æ§‹æˆã•ã‚Œã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚LFNã®é•·ã•ã¯æœ€å¤§255æ–‡å—ã«é”ã™ã‚‹ã®ã§ã€LFN完全対応ã®ãŸã‚ã«ã¯<tt>_MAX_LFN</tt>ã¯255ã«è¨å®šã•ã‚Œã‚‹ã¹ãã§ã™ã€‚与ãˆã‚‰ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ«åã«å¯¾ã—ã¦ãƒãƒƒãƒ•ã‚¡é•·ãŒä¸è¶³ã—ãŸå ´åˆã€ãƒ•ã‚¡ã‚¤ãƒ«é–¢æ•°ã¯<tt>FR_INVALID_NAME</tt>ã§å¤±æ•—ã—ã¾ã™ã€‚</p>
-<p>ファイル関数ã«å†å…¥ã‚’è¡Œã†æ¡ä»¶ã®ä¸‹ã§LFN機能を使用ã™ã‚‹å ´åˆã¯ã€<tt>_USE_LFN</tt>ã¯2ã¾ãŸã¯3ã«è¨å®šã•ã‚Œãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。ã“ã®å ´åˆã€ãƒ•ã‚¡ã‚¤ãƒ«é–¢æ•°ã¯ãƒ¯ãƒ¼ã‚¯ エリアを動的ã«ç¢ºä¿(スタックã¾ãŸã¯ãƒ’ープ)ã—ã¾ã™ã€‚ãƒãƒƒãƒ•ã‚¡ サイズã¯ã€<tt>(_MAX_LFN + 1) * 2</tt>ãƒã‚¤ãƒˆã«ãªã‚‹ã®ã§ã€ã‚¹ã‚¿ãƒƒã‚¯ç‰ã®ã‚µã‚¤ã‚ºã¯ãれを考慮ã—ãŸå分ãªã‚µã‚¤ã‚ºã§ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。</p>
+<p>FatFsモジュールã¯ã€é•·ã„ファイルå(LFN)をサãƒãƒ¼ãƒˆã—ã¾ã™ã€‚ファイルã«ä»˜ã‘られãŸ2ã¤ã®ç•°ãªã‚‹åå‰(çŸã„ファルåã¨é•·ã„ファイルå)ã¯ã€<tt>f_readdir</tt>関数を除ãファイルæ“作関数ã«ãŠã„ã¦é€éŽã§ã™ã€‚デフォルト構æˆã§ã¯ã€LFN機能ã¯OFFã«ãªã£ã¦ã„ã¾ã™ã€‚LFN機能を有効ã«ã™ã‚‹ã«ã¯ã€<tt><a href="config.html#use_lfn">_USE_LFN</a></tt>ã‚’1,2ã¾ãŸã¯3ã«è¨å®šã—ã€<tt>option/unicode.c</tt>をプãƒã‚¸ã‚§ã‚¯ãƒˆã«è¿½åŠ ã—ã¾ã™ã€‚LFN機能ã¯ã€åŠ ãˆã¦ã‚る程度ã®ãƒ¯ãƒ¼ã‚¯ エリア(LFNæ“作ãƒãƒƒãƒ•ã‚¡)ã‚’å¿…è¦ã¨ã—ã¾ã™ã€‚ãƒãƒƒãƒ•ã‚¡é•·ã¯ä½¿ç”¨ã§ãるメモリã«å¿œã˜ã¦<tt><a href="config.html#max_lfn">_MAX_LFN</a></tt>ã§æ§‹æˆã•ã‚Œã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚LFNã®é•·ã•ã¯æœ€å¤§255æ–‡å—ã«é”ã™ã‚‹ã®ã§ã€LFN完全対応ã®ãŸã‚ã«ã¯<tt>_MAX_LFN</tt>ã¯255ã«è¨å®šã•ã‚Œã‚‹ã¹ãã§ã™ã€‚与ãˆã‚‰ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ«åã«å¯¾ã—ã¦ãƒãƒƒãƒ•ã‚¡é•·ãŒä¸è¶³ã—ãŸå ´åˆã€ãƒ•ã‚¡ã‚¤ãƒ«é–¢æ•°ã¯<tt>FR_INVALID_NAME</tt>ã§å¤±æ•—ã—ã¾ã™ã€‚</p>
+<p>ファイル関数ã«å†å…¥ã‚’è¡Œã†æ¡ä»¶ã®ä¸‹ã§LFN機能を使用ã™ã‚‹å ´åˆã¯ã€<tt>_USE_LFN</tt>ã¯2ã¾ãŸã¯3ã«è¨å®šã•ã‚Œãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。ã“ã®å ´åˆã€ãƒ•ã‚¡ã‚¤ãƒ«é–¢æ•°ã¯ãƒ¯ãƒ¼ã‚¯ エリアを動的ã«ç¢ºä¿(スタックã¾ãŸã¯ãƒ’ープ)ã—ã¾ã™ã€‚ワーク エリアã®ã‚µã‚¤ã‚ºã¯ã€<tt>(_MAX_LFN + 1) * 2</tt>ãƒã‚¤ãƒˆ(exFAT利用時ã¯ã•ã‚‰ã«+608ãƒã‚¤ãƒˆ)ã«ãªã‚‹ã®ã§ã€ã‚¹ã‚¿ãƒƒã‚¯ç‰ã®ã‚µã‚¤ã‚ºã¯ãれを考慮ã—ãŸå分ãªä½™è£•ãŒãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。</p>
<table class="lst2 rset">
-<caption>LFN cfg on ARM7</caption>
-<tr><th>コードページ</th><th>コードサイズ[bytes]</th></tr>
-<tr><td>SBCS</td><td>+3721</td></tr>
-<tr><td>932(Shift_JIS)</td><td>+62609</td></tr>
-<tr><td>936(GBK)</td><td>+177797</td></tr>
-<tr><td>949(Korean)</td><td>+139857</td></tr>
-<tr><td>950(Big5)</td><td>+111497</td></tr>
+<caption>LFNæ§‹æˆ at CM3</caption>
+<tr><th><tt>_CODE_PAGE</tt></th><th>è¿½åŠ ã‚³ãƒ¼ãƒ‰</th></tr>
+<tr><td>SBCS</td><td>+2.8K</td></tr>
+<tr><td>932(Shift_JIS)</td><td>+62.6k</td></tr>
+<tr><td>936(GBK)</td><td>+177k</td></tr>
+<tr><td>949(Korean)</td><td>+139k</td></tr>
+<tr><td>950(Big5)</td><td>+111k</td></tr>
</table>
<p>LFN機能ã®ä¸Šæ‰‹ãªä½¿ã„æ–¹ã¯ã€ãれを使ã‚ãªã„ã¨ã„ã†ã“ã¨ã§ã™ã€‚実際ã€çµ„ã¿è¾¼ã¿ç”¨é€”ã§ã¯LFN機能ãŒã©ã†ã—ã¦ã‚‚å¿…è¦ã«ãªã‚‹ã¨ã„ã†ã“ã¨ã¯ã»ã¨ã‚“ã©ç„¡ã„ã¯ãšã§ã™ã€‚LFNを有効ã«ã™ã‚‹ã¨ã€é¸æŠžã•ã‚ŒãŸã‚³ãƒ¼ãƒ‰ ページã«å¿œã˜ã¦ãƒ¢ã‚¸ãƒ¥ãƒ¼ãƒ« サイズãŒå¢—大ã—ã¾ã™ã€‚å³ã®è¡¨ã«å„コード ページã«ãŠã‘ã‚‹LFNを有効ã«ã—ãŸã¨ãã®ãƒ¢ã‚¸ãƒ¥ãƒ¼ãƒ« サイズã®é•ã„を示ã—ã¾ã™ã€‚特ã«ã€CJK地域ã§ã¯æ•°ä¸‡ã®æ–‡å—ãŒä½¿ã‚ã‚Œã¦ã„ã¾ã™ãŒã€ä¸å¹¸ãªã“ã¨ã«ãã‚Œã¯å·¨å¤§ãªOEMï¼Unicode相互変æ›ãƒ†ãƒ¼ãƒ–ルをè¦æ±‚ã—ã€ãƒ¢ã‚¸ãƒ¥ãƒ¼ãƒ« サイズã¯åŠ‡çš„ã«å¢—大ã—ã¾ã™ã€‚ãã®çµæžœã€ãれらã®ã‚³ãƒ¼ãƒ‰ ページã«ãŠã„ã¦LFNを有効ã«ã—ãŸFatFsモジュールã¯ã€å¤šãã®8ビット マイコンã«ã‚¤ãƒ³ãƒ—リメントã™ã‚‹ã“ã¨ãŒã§ãã¾ã›ã‚“。</p>
-<p>LFN機能ã®ãƒãƒ¼ãƒ‰ãƒ«ã¯ãã‚Œã ã‘ã§ã¯ã‚ã‚Šã¾ã›ã‚“。マイクãƒã‚½ãƒ•ãƒˆç¤¾ã¯FATファイル システムã«ã¤ã„ã¦ã„ãã¤ã‹ã®ç‰¹è¨±ã‚’ä¿æœ‰ã—ã¦ã„ã¾ã™ã€‚ã„ãšã‚Œã‚‚LFN機能ã®å®Ÿè£…ã«é–¢ã™ã‚‹ã‚‚ã®ã§ã€ãã®åˆ©ç”¨ã«å¯¾ã—ã¦$0.25/unitã®ãƒ©ã‚¤ã‚»ãƒ³ã‚¹æ–™ã‚’è¦æ±‚ã—ã¦ã„ã¾ã™ã€‚ã“ã®ãŸã‚ã€å•†ç”¨è£½å“ã§LFN機能を利用ã™ã‚‹ã¨ãã¯ã€æœ€çµ‚仕å‘地ã«ã‚ˆã£ã¦ã¯ãƒ©ã‚¤ã‚»ãƒ³ã‚¹ãŒå¿…è¦ã«ãªã‚Šã¾ã™ã€‚最近ã®FAT32ドライãƒã®å¤šãã¯LFN機能をå«ã‚“ã§ã„ã‚‹ãŸã‚ã€ãれらã®ä½¿ç”¨ã«å½“ãŸã£ã¦ãƒ©ã‚¤ã‚»ãƒ³ã‚¹ãŒå¿…è¦ã«ãªã‚Šã¾ã™ãŒã€FatFsã§ã¯LFN機能を構æˆã‚ªãƒ—ションã§ä»»æ„ã«ON/OFFã§ãã‚‹ãŸã‚ã€ç„¡åŠ¹ã«ã—ã¦ãƒ©ã‚¤ã‚»ãƒ³ã‚¹å•é¡Œã‚’回é¿ã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã€‚</p>
+<p>LFN機能ã®ãƒãƒ¼ãƒ‰ãƒ«ã¯ãã‚Œã ã‘ã§ã¯ã‚ã‚Šã¾ã›ã‚“。マイクãƒã‚½ãƒ•ãƒˆç¤¾ã¯FATファイルシステムã«ã¤ã„ã¦ã„ãã¤ã‹ã®ç‰¹è¨±ã‚’ä¿æœ‰ã—ã¦ã„ã¾ã™ã€‚ã„ãšã‚Œã‚‚LFN機能ã®å®Ÿè£…ã«é–¢ã™ã‚‹ã‚‚ã®ã§ã€ãã®åˆ©ç”¨ã«å¯¾ã—ã¦$0.25/unitã®ãƒ©ã‚¤ã‚»ãƒ³ã‚¹æ–™ã‚’è¦æ±‚ã—ã¦ã„ã¾ã™ã€‚ã“ã®ãŸã‚ã€å•†ç”¨è£½å“ã§LFN機能を利用ã™ã‚‹å ´åˆã¯ã€è£½å“ã®æœ€çµ‚仕å‘地ã«ã‚ˆã£ã¦ã¯ãƒ©ã‚¤ã‚»ãƒ³ã‚¹ãŒå¿…è¦ã«ãªã‚Šã¾ã™ã€‚最近ã®FAT32ドライãƒã®å¤šãã¯LFN機能をå«ã‚“ã§ã„ã‚‹ãŸã‚ã€ãれらã®ä½¿ç”¨ã«å½“ãŸã£ã¦ãƒ©ã‚¤ã‚»ãƒ³ã‚¹ãŒå¿…è¦ã«ãªã‚Šã¾ã™ãŒã€FatFsã¯æ§‹æˆã‚ªãƒ—ションã§LFN機能を任æ„ã«ON/OFFã§ãã‚‹ãŸã‚ã€ç„¡åŠ¹ã«ã—ã¦ãƒ©ã‚¤ã‚»ãƒ³ã‚¹å•é¡Œã‚’回é¿ã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã€‚</p>
</div>
-<div class="para" id="jap">
-<h3>日本語ファイルåã®å¤§æ–‡å—変æ›</h3>
-<p>CP932(Shift_JIS)ã§ã‹ã¤éžLFN構æˆã®ã¨ãã¯ã€æ‹¡å¼µæ–‡å—ã®å°æ–‡å—(2ãƒã‚¤ãƒˆè‹±å—・ã‚リル文å—・ギリシャ文å—)ã«å¯¾ã—ã¦å¤§æ–‡å—変æ›ã‚’è¡Œã‚ãšã€å°æ–‡å—ã®ã¾ã¾SFNエントリã«è¨˜éŒ²ãƒ»æ¤œç´¢ã•ã‚Œã¾ã™(日本語MSDOS仕様)。ã“ã®ãŸã‚ã€éžLFN構æˆã§å…¨è§’å°æ–‡å—ã‚’å«ã‚€ãƒ•ã‚¡ã‚¤ãƒ«ã‚’作æˆã™ã‚‹ã¨ã€NTç³»Windowsã§ãã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’é–‹ã‘ãªããªã‚Šã¾ã™ã€‚LFN構æˆã§ã¯å¤§æ–‡å—変æ›ã‚’è¡Œã„ã¾ã™(NTç³»Windows仕様)。</p>
+<div class="para doc" id="unicode">
+<h3>Unicode入出力ã¸ã®å¯¾å¿œ</h3>
+<p>FatFs API上ã«ãŠã‘るファイルåç‰ã®æ–‡å—列データã®å…¥å‡ºåŠ›ã¯ã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã§ã¯ANSI/OEMコードã§è¡Œã‚ã‚Œã¾ã™ãŒã€ã“れをUnicode(UTF-16)ã«åˆ‡ã‚Šæ›¿ãˆã‚‹ã“ã¨ã‚‚ã§ãã¾ã™(<tt><a href="config.html#lfn_unicode">_LFN_UNICODE</a></tt>ã§è¨å®š)。ã¤ã¾ã‚Šã€ã“ã‚Œã¯FatFsãŒLFN機能ã«å®Œå…¨å¯¾å¿œã—ã¦ã„ã‚‹ã“ã¨ã‚’æ„味ã—ã¾ã™ã€‚Unicodeã®ãƒ•ã‚¡ã‚¤ãƒ«åã«é–¢ã™ã‚‹è©³ç´°ã¯ã€<a href="filename.html#uni">パスåã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆ</a>ã‚’å‚ç…§ã—ã¦ãã ã•ã„。</p>
</div>
-<div class="para" id="unicode">
-<h3>Unicode入出力ã¸ã®å¯¾å¿œ</h3>
-<p>FatFs API上ã«ãŠã‘るファイルåç‰ã®æ–‡å—列データã®å…¥å‡ºåŠ›ã¯ã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã§ã¯ANSI/OEMコードã§è¡Œã‚ã‚Œã¾ã™ãŒã€ã“れをUnicode(UTF-16)ã«åˆ‡ã‚Šæ›¿ãˆã‚‹ã“ã¨ã‚‚ã§ãã¾ã™(<tt>_LFN_UNICODE</tt>オプションã§è¨å®š)。ã¤ã¾ã‚Šã€ã“ã‚Œã¯FatFsãŒLFN機能ã«å®Œå…¨å¯¾å¿œã—ã¦ã„ã‚‹ã“ã¨ã‚’æ„味ã—ã¾ã™ã€‚Unicodeã®ãƒ•ã‚¡ã‚¤ãƒ«åã«é–¢ã™ã‚‹è©³ç´°ã¯ã€<a href="filename.html">ファイルå</a>ã‚’å‚ç…§ã—ã¦ãã ã•ã„。</p>
+<div class="para doc" id="exfat">
+<h3>exFATファイルシステム</h3>
+<p>exFAT(Microsoft's Extended File Allocation Table)ファイルシステムã¯ã€æ—¢ã«çµ„ã¿è¾¼ã¿ã‚·ã‚¹ãƒ†ãƒ ã‚„æƒ…å ±å®¶é›»ã§åºƒã使ã‚ã‚Œã¦ã„ã‚‹FATファイルシステムを置ãæ›ãˆã‚‹ç›®çš„ã§é–‹ç™ºã•ã‚Œã¾ã—ãŸã€‚exFATã¯ã€64GiB以上ã®SDメモリ カードã§æ¨™æº–ファイルシステムã«æŽ¡ç”¨ã•ã‚Œã‚‹ãªã©ã€FATã«ä¸¦ã³ãƒªãƒ ーãƒãƒ–ル メディアã®æ¨™æº–ファイルシステムã®ä¸€ã¤ã¨ãªã‚Šã¤ã¤ã‚ã‚Šã¾ã™ã€‚</p>
+<p>exFATボリュームã§ã¯ã€FATボリュームã§åˆ¶ç´„ã¨ãªã£ã¦ã„ãŸ4GiB以上ã®ã‚µã‚¤ã‚ºã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’扱ãˆã€ãƒ•ã‚¡ã‚¤ãƒ«ã‚·ã‚¹ãƒ†ãƒ ã®ã‚ªãƒ¼ãƒãƒ¼ãƒ˜ãƒƒãƒ‰(特ã«ãƒ•ã‚¡ã‚¤ãƒ« ã‚¢ãƒã‚±ãƒ¼ã‚·ãƒ§ãƒ³ ディレイ)も大幅ã«ä½Žæ¸›ã•ã‚Œã€æ›¸ãè¾¼ã¿ã‚¹ãƒ«ãƒ¼ãƒ—ットãŒFATよりå‘上ã—ã¦ã„ã¾ã™ã€‚ã—ã‹ã—ã€ç¾ãƒªãƒ“ジョンã®FatFsã§ã¯ã€å®Ÿè£…上ã®ç†ç”±ã‹ã‚‰ä¸é€£ç¶šãƒ•ã‚¡ã‚¤ãƒ«ã¸ã®ã‚µã‚¤ã‚ºæ‹¡å¤§ã‚’ä¼´ã†æ›¸ãè¾¼ã¿æ™‚ã®ã¨ãã€ã‚¹ãƒ«ãƒ¼ãƒ—ットãŒFATより低下ã—ã¾ã™ã€‚<tt>f_expand</tt>関数ã«ã‚ˆã‚‹é€£ç¶šé ˜åŸŸã®å‰²ã‚Šå½“ã¦æ©Ÿèƒ½ã¯ã€ã“ã®å•é¡Œã®å›žé¿ã«æœ‰åŠ¹ã‹ã‚‚ã—ã‚Œã¾ã›ã‚“。</p>
+<p>exFATã¯ãƒžã‚¤ã‚¯ãƒã‚½ãƒ•ãƒˆç¤¾ãŒé–‹ç™ºã—ãŸã‚‚ã®ãªã®ã§ã€ãƒžã‚¤ã‚¯ãƒã‚½ãƒ•ãƒˆç¤¾ã¯exFATã«ã¤ã„ã¦ã„ãã¤ã‹ã®ç‰¹è¨±ã‚’ä¿æœ‰ã—ã¦ã„ã¾ã™ã€‚FatFsã®exFAT機能ã¯ã€ãれ㮠US. Pat. App. Pub. No. 2009/0164440 A1 ã«åŸºã¥ã„ãŸå®Ÿè£…ã§ã™ã€‚ã“ã®ãŸã‚ã€å•†ç”¨è£½å“ã§exFAT機能を利用ã™ã‚‹å ´åˆã€è£½å“ã®æœ€çµ‚仕å‘地ã«ã‚ˆã£ã¦ã¯ãƒ©ã‚¤ã‚»ãƒ³ã‚¹ãŒå¿…è¦ã«ãªã‚Šã¾ã™ã€‚最近ã®FATドライãƒã®å¤šãã¯exFAT機能をå«ã‚“ã§ã„ã‚‹ãŸã‚ã€ãれらã®ä½¿ç”¨ã«å½“ãŸã£ã¦ãƒ©ã‚¤ã‚»ãƒ³ã‚¹ãŒå¿…è¦ã«ãªã‚Šã¾ã™ãŒã€FatFsã¯æ§‹æˆã‚ªãƒ—ションã§exFAT機能を任æ„ã«ON/OFFã§ãã‚‹ãŸã‚ã€ç„¡åŠ¹ã«ã—ã¦ãƒ©ã‚¤ã‚»ãƒ³ã‚¹å•é¡Œã‚’回é¿ã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã€‚</p>
+<p><em>exFATを有効ã«ã™ã‚‹ã¨ã€FatFsモジュールã®C89互æ›ã¯å¤±ã‚ã‚Œã¾ã™(64ビット整数型ãŒå¿…è¦ãªãŸã‚)。</em></p>
</div>
-<div class="para" id="reentrant">
+<div class="para doc" id="reentrant">
<h3>リエントランシー</h3>
-<p>互ã„ã«ç•°ãªã‚‹ãƒœãƒªãƒ¥ãƒ¼ãƒ ã«å¯¾ã™ã‚‹ãƒ•ã‚¡ã‚¤ãƒ«æ“作ã¯ãƒªã‚¨ãƒ³ãƒˆãƒ©ãƒ³ãƒˆã§ã€å¸¸ã«åŒæ™‚平行ã«å‹•ä½œã§ãã¾ã™ã€‚åŒã˜ãƒœãƒªãƒ¥ãƒ¼ãƒ ã«å¯¾ã—ã¦ã¯ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã§ã¯ãƒªã‚¨ãƒ³ãƒˆãƒ©ãƒ³ãƒˆã§ã¯ã‚ã‚Šã¾ã›ã‚“ãŒã€<tt>_FS_REENTRANT</tt>オプションã§ãƒªã‚¨ãƒ³ãƒˆãƒ©ãƒ³ãƒˆ(スレッド セーフ)ã«ã™ã‚‹ã“ã¨ã¯ã§ãã¾ã™ã€‚ã“ã®å ´åˆã€OSä¾å˜ã®åŒæœŸã‚ªãƒ–ジェクトæ“作関数<tt>ff_cre_syncobj(), ff_del_syncobj(), ff_req_grant(), ff_rel_grant()</tt>ã‚‚ã¾ãŸãƒ—ãƒã‚¸ã‚§ã‚¯ãƒˆã«è¿½åŠ ã•ã‚Œãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。サンプル コードã¨è§£èª¬ã¯<tt>option/syncobj.c</tt>ã«ã‚ã‚Šã¾ã™ã€‚</p>
-<p>ã“ã®å ´åˆã€ã‚るタスクãŒãƒœãƒªãƒ¥ãƒ¼ãƒ を使用ä¸ã«ä»–ã®ã‚¿ã‚¹ã‚¯ã‹ã‚‰ãã®ãƒœãƒªãƒ¥ãƒ¼ãƒ ã«å¯¾ã™ã‚‹ãƒ•ã‚¡ã‚¤ãƒ«é–¢æ•°ãŒå‘¼ã³å‡ºã•ã‚Œã‚‹ã¨ã€ãã®ã‚¢ã‚¯ã‚»ã‚¹ã¯å…ˆã®ã‚¿ã‚¹ã‚¯ãŒãƒ•ã‚¡ã‚¤ãƒ«é–¢æ•°ã‚’抜ã‘ã‚‹ã¾ã§ãƒ–ãƒãƒƒã‚¯ã•ã‚Œã¾ã™ã€‚ã‚‚ã—ã€å¾…ã¡æ™‚é–“ãŒ<tt>_TIMEOUT</tt>ã§æŒ‡å®šã•ã‚ŒãŸæœŸé–“を越ã™ã¨ã€ãã®é–¢æ•°ã¯<tt>FR_TIMEOUT</tt>ã§ã‚¢ãƒœãƒ¼ãƒˆã—ã¾ã™ã€‚ã„ãã¤ã‹ã®RTOSã§ã¯ã‚¿ã‚¤ãƒ アウト機能ã¯ã‚µãƒãƒ¼ãƒˆã•ã‚Œãªã„ã‹ã‚‚知れã¾ã›ã‚“。</p>
-<p>ã²ã¨ã¤ã®ä¾‹å¤–ãŒ<tt>f_mount(), f_mkfs(), f_fdisk()</tt>ã«ã‚ã‚Šã¾ã™ã€‚ã“れらã®é–¢æ•°ã¯åŒã˜ãƒœãƒªãƒ¥ãƒ¼ãƒ (ã¾ãŸã¯é–¢é€£ã™ã‚‹ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–)ã«å¯¾ã—ã¦ãƒªã‚¨ãƒ³ãƒˆãƒ©ãƒ³ãƒˆã§ã¯ã‚ã‚Šã¾ã›ã‚“。ã“れらã®é–¢æ•°ã‚’使用ã™ã‚‹ã¨ãã¯ã€ã‚¢ãƒ—リケーション レベルã§æŽ’他制御ã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。</p>
-<p>注: ã“ã®ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã¯FatFsモジュールãれ自体ã®ãƒªã‚¨ãƒ³ãƒˆãƒ©ãƒ³ã‚·ãƒ¼ã«ã¤ã„ã¦èª¬æ˜Žã—ã¦ã„ã¾ã™ã€‚ãã®ä¸‹ä½ã®ãƒ‡ã‚£ã‚¹ã‚¯I/Oモジュールã®ãƒªã‚¨ãƒ³ãƒˆãƒ©ãƒ³ã‚·ãƒ¼ã«é–¢ã—ã¦ã¯ä½•ã®å‰æã‚‚ã‚ã‚Šã¾ã›ã‚“。</p>
+<p>互ã„ã«ç•°ãªã‚‹ãƒœãƒªãƒ¥ãƒ¼ãƒ ã«å¯¾ã™ã‚‹ãƒ•ã‚¡ã‚¤ãƒ«æ“作ã¯ã€<tt>_USE_LFN == 1</tt>を除ã„ã¦æ§‹æˆã«ã‹ã‹ã‚らãšãƒªã‚¨ãƒ³ãƒˆãƒ©ãƒ³ãƒˆã§ã€å¸¸ã«åŒæ™‚平行ã«å‹•ä½œã§ãã¾ã™ã€‚</p>
+<p>åŒã˜ãƒœãƒªãƒ¥ãƒ¼ãƒ ã«å¯¾ã—ã¦ã¯ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã§ã¯ãƒªã‚¨ãƒ³ãƒˆãƒ©ãƒ³ãƒˆã§ã¯ã‚ã‚Šã¾ã›ã‚“ãŒã€<tt><a href="config.html#fs_reentrant">_FS_REENTRANT</a></tt>ã§ãƒªã‚¨ãƒ³ãƒˆãƒ©ãƒ³ãƒˆ(スレッド セーフ)ã«ã™ã‚‹ã“ã¨ã¯ã§ãã¾ã™ã€‚ã“ã®å ´åˆã€OSä¾å˜ã®åŒæœŸã‚ªãƒ–ジェクトæ“作関数<tt>ff_cre_syncobj, ff_del_syncobj, ff_req_grant, ff_rel_grant</tt>関数もã¾ãŸãƒ—ãƒã‚¸ã‚§ã‚¯ãƒˆã«è¿½åŠ ã•ã‚Œãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。サンプル コードã¨è§£èª¬ã¯<tt>option/syncobj.c</tt>ã«ã‚ã‚Šã¾ã™ã€‚</p>
+<p>ã“ã®å ´åˆã€ã‚るタスクãŒãƒœãƒªãƒ¥ãƒ¼ãƒ を使用ä¸ã«ä»–ã®ã‚¿ã‚¹ã‚¯ã‹ã‚‰ãã®ãƒœãƒªãƒ¥ãƒ¼ãƒ ã«å¯¾ã™ã‚‹ãƒ•ã‚¡ã‚¤ãƒ«é–¢æ•°ãŒå‘¼ã³å‡ºã•ã‚Œã‚‹ã¨ã€ãã®ã‚¢ã‚¯ã‚»ã‚¹ã¯å…ˆã®ã‚¿ã‚¹ã‚¯ãŒãƒ•ã‚¡ã‚¤ãƒ«é–¢æ•°ã‚’抜ã‘ã‚‹ã¾ã§ã‚µã‚¹ãƒšãƒ³ãƒ‰ã•ã‚Œã¾ã™ã€‚å¾…ã¡æ™‚é–“ãŒ<tt>_TIMEOUT</tt>ã§æŒ‡å®šã•ã‚ŒãŸæœŸé–“を越ãˆãŸå ´åˆã€ãã®é–¢æ•°ã¯<tt>FR_TIMEOUT</tt>ã§ã‚¢ãƒœãƒ¼ãƒˆã—ã¾ã™ã€‚ã„ãã¤ã‹ã®RTOSã§ã¯ã‚¿ã‚¤ãƒ アウト機能ã¯ã‚µãƒãƒ¼ãƒˆã•ã‚Œãªã„ã‹ã‚‚知れã¾ã›ã‚“。</p>
+<p>ã²ã¨ã¤ã®ä¾‹å¤–ãŒ<tt>f_mount, f_mkfs, f_fdisk</tt>関数ã«ã‚ã‚Šã¾ã™ã€‚ã“れらã®ãƒœãƒªãƒ¥ãƒ¼ãƒ 制御関数ã¯åŒã˜ãƒœãƒªãƒ¥ãƒ¼ãƒ (ã¾ãŸã¯é–¢é€£ã™ã‚‹ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–)ã«å¯¾ã—ã¦ãƒªã‚¨ãƒ³ãƒˆãƒ©ãƒ³ãƒˆã§ã¯ã‚ã‚Šã¾ã›ã‚“。ã“れらã®é–¢æ•°ã‚’使用ã™ã‚‹ã¨ãã¯ã€ã‚¢ãƒ—リケーション レベルã§æŽ’他制御ã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。</p>
+<p>注: ã“ã®ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã¯FatFsモジュールãれ自体ã®ãƒªã‚¨ãƒ³ãƒˆãƒ©ãƒ³ã‚·ãƒ¼ã«ã¤ã„ã¦èª¬æ˜Žã—ã¦ã„ã¾ã™ã€‚<tt>_FS_REENTRANT</tt>ã¯ã€å„ファイルシステムオブジェクトã®æŽ’他制御を行ã†ã®ã¿ã§ã€ä¸‹ä½ã®ãƒ‡ã‚£ã‚¹ã‚¯é–¢æ•°ã¸ã®å†å…¥ã‚’防æ¢ã™ã‚‹ã‚‚ã®ã§ã¯ã‚ã‚Šã¾ã›ã‚“。ãŸã¨ãˆã°ã€ã‚·ãƒ³ã‚°ãƒ« ボリューム構æˆã§ã¯<tt>disk_status</tt>関数ã®ã¿å†å…¥ã•ã‚Œã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã€ãƒžãƒ«ãƒ ボリューム構æˆã§ã¯ã©ã®ãƒ‡ã‚£ã‚¹ã‚¯é–¢æ•°ã‚‚å†å…¥ã•ã‚Œã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚ã“ã®ã‚ˆã†ã«ã€è¤‡æ•°ã®ã‚¿ã‚¹ã‚¯ã‹ã‚‰åŒæ™‚ã«FatFs APIを使ã†æ¡ä»¶ã§ã¯ã€ãƒ‡ã‚£ã‚¹ã‚¯I/Oモジュールã¯ã‚¹ãƒ¬ãƒƒãƒ‰ セーフã§ã‚ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚</p>
</div>
-<div class="para" id="dup">
+<div class="para doc" id="dup">
<h3>多é‡ãƒ•ã‚¡ã‚¤ãƒ« アクセス</h3>
<p>FatFsモジュールã§ã¯ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã§ã¯å¤šé‡ã‚¢ã‚¯ã‚»ã‚¹åˆ¶å¾¡æ©Ÿèƒ½ã‚’サãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã›ã‚“。ファイルã«å¯¾ã™ã‚‹å¤šé‡ã‚¢ã‚¯ã‚»ã‚¹ã¯ã€ãã®ã‚¢ã‚¯ã‚»ã‚¹ モードã«ã‚ˆã£ã¦åˆ¶é™ã•ã‚Œã¾ã™ã€‚一ã¤ã®ãƒ•ã‚¡ã‚¤ãƒ«ã«å¯¾ã™ã‚‹å¤šé‡ã‚ªãƒ¼ãƒ—ンã¯ã€ãれらãŒå…¨ã¦ãƒªãƒ¼ãƒ‰ モードã®ã¨ãã«é™ã£ã¦è¨±å¯ã•ã‚Œã¾ã™ã€‚書ãè¾¼ã¿ãƒ¢ãƒ¼ãƒ‰ã‚’å«ã‚€å¤šé‡ã‚ªãƒ¼ãƒ—ンã€ã¾ãŸé–‹ã‹ã‚Œã¦ã„るファイルã«å¯¾ã™ã‚‹ãƒªãƒãƒ¼ãƒ や削除を行ã£ã¦ã¯ãªã‚Šã¾ã›ã‚“。ã•ã‚‚ãªã„ã¨ã€ãã®ãƒœãƒªãƒ¥ãƒ¼ãƒ ã®FATæ§‹é€ ãŒç ´å£Šã•ã‚Œã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚</p>
-<p><tt>_FS_LOCK</tt>ã«1以上ã®å€¤(値ã¯åŒæ™‚ã«ç®¡ç†ã§ãるファイル数)をセットã™ã‚‹ã“ã¨ã§å¤šé‡ã‚¢ã‚¯ã‚»ã‚¹åˆ¶å¾¡æ©Ÿèƒ½ãŒæœ‰åŠ¹ã«ãªã‚Šã€ãƒ•ã‚¡ã‚¤ãƒ«å˜ä½ã®ã‚¢ã‚¯ã‚»ã‚¹åˆ¶å¾¡ã‚’自動ã§è¡Œã†ã“ã¨ã‚‚ã§ãã¾ã™ã€‚ã“ã®å ´åˆã€ä¸Šè¨˜ã®ãƒ«ãƒ¼ãƒ«ã‚’ç ´ã£ãŸã‚ªãƒ¼ãƒ—ン・リãƒãƒ¼ãƒ ・削除を試ã¿ã‚‹ã¨ã€ãã®é–¢æ•°ã¯<tt>FR_LOCKED</tt>ã§å¤±æ•—ã—ã¾ã™ã€‚ã¾ãŸã€<tt>_FS_LOCK</tt>を越ãˆã‚‹æ•°ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚„サブ ディレクトリをåŒæ™‚ã«ã‚ªãƒ¼ãƒ—ンã—よã†ã¨ã™ã‚‹ã¨ã€<tt>FR_TOO_MANY_OPEN_FILES</tt>ã§å¤±æ•—ã—ã¾ã™ã€‚</p>
+<p><tt><a href="config.html#fs_lock">_FS_LOCK</a></tt>ã«1以上ã®å€¤(値ã¯åŒæ™‚ã«ç®¡ç†ã§ãるファイル数)をセットã™ã‚‹ã“ã¨ã§å¤šé‡ã‚¢ã‚¯ã‚»ã‚¹åˆ¶å¾¡æ©Ÿèƒ½ãŒæœ‰åŠ¹ã«ãªã‚Šã€ãƒ•ã‚¡ã‚¤ãƒ«å˜ä½ã®ã‚¢ã‚¯ã‚»ã‚¹åˆ¶å¾¡ã‚’自動ã§è¡Œã†ã“ã¨ã‚‚ã§ãã¾ã™ã€‚ã“ã®å ´åˆã€ä¸Šè¨˜ã®ãƒ«ãƒ¼ãƒ«ã‚’ç ´ã£ãŸã‚ªãƒ¼ãƒ—ン・リãƒãƒ¼ãƒ ・削除を試ã¿ã‚‹ã¨ã€ãã®é–¢æ•°ã¯<tt>FR_LOCKED</tt>ã§å¤±æ•—ã—ã¾ã™ã€‚ã¾ãŸã€<tt>_FS_LOCK</tt>を越ãˆã‚‹æ•°ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚„サブ ディレクトリをåŒæ™‚ã«ã‚ªãƒ¼ãƒ—ンã—よã†ã¨ã™ã‚‹ã¨ã€<tt>FR_TOO_MANY_OPEN_FILES</tt>ã§å¤±æ•—ã—ã¾ã™ã€‚</p>
</div>
-<div class="para" id="fs1">
+<div class="para doc" id="fs1">
<h3>効率的ãªãƒ•ã‚¡ã‚¤ãƒ« アクセス</h3>
-<p>å°è¦æ¨¡ãªçµ„込システムã§ã®ãƒ•ã‚¡ã‚¤ãƒ«ã®èªã¿æ›¸ãã«ãŠã‘る効率ã®è‰¯ã„アクセスã®ãŸã‚ã€ã‚¢ãƒ—リケーション プãƒã‚°ãƒ©ãƒžã¯FatFsモジュールã®ä¸ã§ã©ã®ã‚ˆã†ãªå‡¦ç†ãŒè¡Œã‚ã‚Œã¦ã„ã‚‹ã‹è€ƒæ…®ã™ã¹ãã§ã™ã€‚ストレージ上ã®ãƒ‡ãƒ¼ã‚¿ã¯<tt>f_read()</tt>ã«ã‚ˆã‚Šæ¬¡ã®ã‚·ãƒ¼ã‚±ãƒ³ã‚¹ã§è»¢é€ã•ã‚Œã¾ã™ã€‚</p>
+<p>å°è¦æ¨¡ãªçµ„込システムã§ã®ãƒ•ã‚¡ã‚¤ãƒ«ã®èªã¿æ›¸ãã«ãŠã‘る効率ã®è‰¯ã„アクセスã®ãŸã‚ã€ã‚¢ãƒ—リケーション プãƒã‚°ãƒ©ãƒžã¯FatFsモジュールã®ä¸ã§ã©ã®ã‚ˆã†ãªå‡¦ç†ãŒè¡Œã‚ã‚Œã¦ã„ã‚‹ã‹è€ƒæ…®ã™ã¹ãã§ã™ã€‚ストレージ上ã®ãƒ‡ãƒ¼ã‚¿ã¯<tt>f_read</tt>関数ã«ã‚ˆã‚Šæ¬¡ã®ã‚·ãƒ¼ã‚±ãƒ³ã‚¹ã§è»¢é€ã•ã‚Œã¾ã™ã€‚</p>
<p>図1. セクタ ミスアラインド リード (ショート)<br>
-<img src="../img/f1.png" width="490" height="110" alt="fig.1">
+<img src="../res/f1.png" width="490" height="110" alt="fig.1">
</p>
<p>図2. セクタ ミスアラインド リード (ãƒãƒ³ã‚°)<br>
-<img src="../img/f2.png" width="490" height="140" alt="fig.2">
+<img src="../res/f2.png" width="490" height="140" alt="fig.2">
</p>
<p>図3. セクタ アラインド リード<br>
-<img src="../img/f3.png" width="490" height="119" alt="fig.3">
+<img src="../res/f3.png" width="490" height="119" alt="fig.3">
</p>
-<p>ファイルI/Oãƒãƒƒãƒ•ã‚¡ã¯ã‚»ã‚¯ã‚¿ã®ä¸€éƒ¨ã®ãƒ‡ãƒ¼ã‚¿ã‚’èªã¿æ›¸ãã™ã‚‹ãŸã‚ã®ã‚»ã‚¯ã‚¿ ãƒãƒƒãƒ•ã‚¡ã‚’æ„味ã—ã¾ã™ã€‚セクタ ãƒãƒƒãƒ•ã‚¡ã¯ã€ãã‚Œãžã‚Œã®ãƒ•ã‚¡ã‚¤ãƒ« オブジェクト内ã®ãƒ—ライベート セクタ ãƒãƒƒãƒ•ã‚¡ã¾ãŸã¯ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクト内ã®å…±æœ‰ã‚»ã‚¯ã‚¿ ãƒãƒƒãƒ•ã‚¡ã®ã©ã¡ã‚‰ã‹ã§ã™ã€‚ãƒãƒƒãƒ•ã‚¡æ§‹æˆã‚ªãƒ—ションã®<tt>_FS_TINY</tt>ã¯ã€ãƒ‡ãƒ¼ã‚¿è»¢é€ã«ã©ã¡ã‚‰ã‚’使ã†ã‹ã‚’決定ã—ã¾ã™ã€‚タイニー ãƒãƒƒãƒ•ã‚¡(1)ãŒé¸æŠžã•ã‚Œã‚‹ã¨ãƒ‡ãƒ¼ã‚¿ メモリã®æ¶ˆè²»ã¯ãã‚Œãžã‚Œã®ãƒ•ã‚¡ã‚¤ãƒ« オブジェクトã§<tt>_MAX_SS</tt>ãƒã‚¤ãƒˆæ¸›å°‘ã•ã‚Œã¾ã™ã€‚ã“ã®å ´åˆã€FatFsモジュールã¯ãƒ•ã‚¡ã‚¤ãƒ« データã®è»¢é€ã¨FAT/ディレクトリ アクセスã«ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクト内ã®ã‚»ã‚¯ã‚¿ ãƒãƒƒãƒ•ã‚¡ã ã‘を使用ã—ã¾ã™ã€‚タイニー ãƒãƒƒãƒ•ã‚¡ã®æ¬ 点ã¯ã€ã‚»ã‚¯ã‚¿ ãƒãƒƒãƒ•ã‚¡ã«ã‚ャッシュã•ã‚ŒãŸFATデータãŒãƒ•ã‚¡ã‚¤ãƒ« データã®è»¢é€ã«ã‚ˆã‚Šå¤±ã‚ã‚Œã€ã‚¯ãƒ©ã‚¹ã‚¿å¢ƒç•Œã®æ¯Žã«ãƒªãƒãƒ¼ãƒ‰ã•ã‚Œãªã‘ã‚Œã°ãªã‚‰ãªã„ã“ã¨ã§ã™ã€‚ã§ã‚‚ã€æ‚ªããªã„性能ã¨å°‘ãªã„メモリ消費ã®è¦–点ã‹ã‚‰å¤šãã®ã‚¢ãƒ—リケーションã«é©ã™ã‚‹ã§ã—ょã†ã€‚</p>
-<p>図1ã¯ã‚»ã‚¯ã‚¿ã®ä¸€éƒ¨ã®ãƒ‡ãƒ¼ã‚¿ãŒãƒ•ã‚¡ã‚¤ãƒ«I/Oãƒãƒƒãƒ•ã‚¡ã‚’経由ã§è»¢é€ã•ã‚Œã‚‹ã“ã¨ã‚’示ã—ã¾ã™ã€‚図2ã«ç¤ºã•ã‚Œã‚‹é•·ã„データã®è»¢é€ã§ã¯ã€è»¢é€ãƒ‡ãƒ¼ã‚¿ã®ä¸é–“ã®1セクタã¾ãŸã¯ãれ以上ã®ã‚»ã‚¯ã‚¿ã«ã¾ãŸãŒã‚‹è»¢é€ãƒ‡ãƒ¼ã‚¿ãŒã‚¢ãƒ—リケーション ãƒãƒƒãƒ•ã‚¡ã«ç›´æŽ¥è»¢é€ã•ã‚Œã¦ã„ã¾ã™ã€‚図3ã¯è»¢é€ãƒ‡ãƒ¼ã‚¿å…¨ä½“ãŒã‚»ã‚¯ã‚¿å¢ƒç•Œã«ã‚¢ãƒ©ã‚¤ãƒ¡ãƒ³ãƒˆã•ã‚Œã¦ã„ã‚‹å ´åˆã‚’示ã—ã¦ã„ã¾ã™ã€‚ã“ã®å ´åˆã€ãƒ•ã‚¡ã‚¤ãƒ«I/Oãƒãƒƒãƒ•ã‚¡ã¯ä½¿ç”¨ã•ã‚Œã¾ã›ã‚“。直接転é€ã«ãŠã„ã¦ã¯æœ€å¤§ã®ç¯„囲ã®ã‚»ã‚¯ã‚¿ãŒ<tt>disk_read()</tt>ã§ä¸€åº¦ã«èªã¿è¾¼ã¾ã‚Œã¾ã™ãŒã€ã‚¯ãƒ©ã‚¹ã‚¿å¢ƒç•Œã‚’越ãˆã‚‹ãƒžãƒ«ãƒ セクタ転é€ã¯ãã‚ŒãŒéš£æŽ¥ã§ã‚ã£ã¦ã‚‚è¡Œã‚ã‚Œã¾ã›ã‚“。</p>
+<p>ファイルI/Oãƒãƒƒãƒ•ã‚¡ã¯ã‚»ã‚¯ã‚¿ã®ä¸€éƒ¨ã®ãƒ‡ãƒ¼ã‚¿ã‚’èªã¿æ›¸ãã™ã‚‹ãŸã‚ã®ã‚»ã‚¯ã‚¿ ãƒãƒƒãƒ•ã‚¡ã‚’æ„味ã—ã¾ã™ã€‚セクタ ãƒãƒƒãƒ•ã‚¡ã¯ã€ãã‚Œãžã‚Œã®ãƒ•ã‚¡ã‚¤ãƒ« オブジェクト内ã®ãƒ—ライベート セクタ ãƒãƒƒãƒ•ã‚¡ã¾ãŸã¯ãƒ•ã‚¡ã‚¤ãƒ«ã‚·ã‚¹ãƒ†ãƒ オブジェクト内ã®å…±æœ‰ã‚»ã‚¯ã‚¿ ãƒãƒƒãƒ•ã‚¡ã®ã©ã¡ã‚‰ã‹ã§ã™ã€‚ãƒãƒƒãƒ•ã‚¡æ§‹æˆã‚ªãƒ—ションã®<tt><a href="config.html#fs_tiny">_FS_TINY</a></tt>ã¯ã€ãƒ‡ãƒ¼ã‚¿è»¢é€ã«ã©ã¡ã‚‰ã‚’使ã†ã‹ã‚’決定ã—ã¾ã™ã€‚タイニー ãƒãƒƒãƒ•ã‚¡(1)ãŒé¸æŠžã•ã‚Œã‚‹ã¨ãƒ‡ãƒ¼ã‚¿ メモリã®æ¶ˆè²»ã¯ãã‚Œãžã‚Œã®ãƒ•ã‚¡ã‚¤ãƒ« オブジェクトã§<tt>_MAX_SS</tt>ãƒã‚¤ãƒˆæ¸›å°‘ã•ã‚Œã¾ã™ã€‚ã“ã®å ´åˆã€FatFsモジュールã¯ãƒ•ã‚¡ã‚¤ãƒ« データã®è»¢é€ã¨FAT/ディレクトリ アクセスã«ãƒ•ã‚¡ã‚¤ãƒ«ã‚·ã‚¹ãƒ†ãƒ オブジェクト内ã®ã‚»ã‚¯ã‚¿ ãƒãƒƒãƒ•ã‚¡ã ã‘を使用ã—ã¾ã™ã€‚タイニー ãƒãƒƒãƒ•ã‚¡ã®æ¬ 点ã¯ã€ã‚»ã‚¯ã‚¿ ãƒãƒƒãƒ•ã‚¡ã«ã‚ャッシュã•ã‚ŒãŸFATデータãŒãƒ•ã‚¡ã‚¤ãƒ« データã®è»¢é€ã«ã‚ˆã‚Šå¤±ã‚ã‚Œã€ã‚¯ãƒ©ã‚¹ã‚¿å¢ƒç•Œã®æ¯Žã«ãƒªãƒãƒ¼ãƒ‰ã•ã‚Œãªã‘ã‚Œã°ãªã‚‰ãªã„ã“ã¨ã§ã™ã€‚ã§ã‚‚ã€æ‚ªããªã„性能ã¨å°‘ãªã„メモリ消費ã®è¦–点ã‹ã‚‰å¤šãã®ã‚¢ãƒ—リケーションã«é©ã™ã‚‹ã§ã—ょã†ã€‚</p>
+<p>図1ã¯ã‚»ã‚¯ã‚¿ã®ä¸€éƒ¨ã®ãƒ‡ãƒ¼ã‚¿ãŒãƒ•ã‚¡ã‚¤ãƒ«I/Oãƒãƒƒãƒ•ã‚¡ã‚’経由ã§è»¢é€ã•ã‚Œã‚‹ã“ã¨ã‚’示ã—ã¾ã™ã€‚図2ã«ç¤ºã•ã‚Œã‚‹é•·ã„データã®è»¢é€ã§ã¯ã€è»¢é€ãƒ‡ãƒ¼ã‚¿ã®ä¸é–“ã®1セクタã¾ãŸã¯ãれ以上ã®ã‚»ã‚¯ã‚¿ã«ã¾ãŸãŒã‚‹è»¢é€ãƒ‡ãƒ¼ã‚¿ãŒã‚¢ãƒ—リケーション ãƒãƒƒãƒ•ã‚¡ã«ç›´æŽ¥è»¢é€ã•ã‚Œã¦ã„ã¾ã™ã€‚図3ã¯è»¢é€ãƒ‡ãƒ¼ã‚¿å…¨ä½“ãŒã‚»ã‚¯ã‚¿å¢ƒç•Œã«ã‚¢ãƒ©ã‚¤ãƒ¡ãƒ³ãƒˆã•ã‚Œã¦ã„ã‚‹å ´åˆã‚’示ã—ã¦ã„ã¾ã™ã€‚ã“ã®å ´åˆã€ãƒ•ã‚¡ã‚¤ãƒ«I/Oãƒãƒƒãƒ•ã‚¡ã¯ä½¿ç”¨ã•ã‚Œã¾ã›ã‚“。直接転é€ã«ãŠã„ã¦ã¯æœ€å¤§ã®ç¯„囲ã®ã‚»ã‚¯ã‚¿ãŒ<tt>disk_read</tt>関数ã§ä¸€åº¦ã«èªã¿è¾¼ã¾ã‚Œã¾ã™ãŒã€ã‚¯ãƒ©ã‚¹ã‚¿å¢ƒç•Œã‚’越ãˆã‚‹ãƒžãƒ«ãƒ セクタ転é€ã¯ãã‚ŒãŒéš£æŽ¥ã§ã‚ã£ã¦ã‚‚è¡Œã‚ã‚Œã¾ã›ã‚“。</p>
<p>ã“ã®ã‚ˆã†ã«ã€ã‚»ã‚¯ã‚¿ã«ã‚¢ãƒ©ã‚¤ãƒ¡ãƒ³ãƒˆã—ãŸãƒ•ã‚¡ã‚¤ãƒ«ã®èªã¿æ›¸ãã¸ã®é…æ…®ã¯ãƒãƒƒãƒ•ã‚¡çµŒç”±ã®ãƒ‡ãƒ¼ã‚¿è»¢é€ã‚’é¿ã‘ã€èªã¿æ›¸ã性能ã¯æ”¹å–„ã•ã‚Œã‚‹ã§ã—ょã†ã€‚ãã®åŠ¹æžœã«åŠ ãˆã€ã‚¿ã‚¤ãƒ‹ãƒ¼æ§‹æˆã§ã‚ャッシュã•ã‚ŒãŸFATデータãŒãƒ•ã‚¡ã‚¤ãƒ« データã®è»¢é€ã«ã‚ˆã‚Šãƒ•ãƒ©ãƒƒã‚·ãƒ¥ã•ã‚Œãšã€éžã‚¿ã‚¤ãƒ‹ãƒ¼æ§‹æˆã¨åŒã˜æ€§èƒ½ã‚’å°ã•ãªãƒ¡ãƒ¢ãƒª フットプリントã§é”æˆã§ãã¾ã™ã€‚</p>
</div>
-<div class="para" id="fs2">
+<div class="para doc" id="fs2">
<h3>フラッシュ メモリã®ç‰¹æ€§ã¸ã®é…æ…®</h3>
<p>HDDãªã©ã®ãƒ‡ã‚£ã‚¹ã‚¯ メディアã¨ã¯ç•°ãªã‚Šã€SDCã‚„CFCãªã©ã®ãƒ•ãƒ©ãƒƒã‚·ãƒ¥ メモリ メディアã®æ€§èƒ½ã‚’引ã出ã™ã«ã¯ã€ãã®ç‰¹æ€§ã‚’æ„è˜ã—ãŸåˆ¶å¾¡ãŒå¿…è¦ã«ãªã‚Šã¾ã™ã€‚</p>
<h4>マルムセクタ書ãè¾¼ã¿</h4>
<div class="rset">
図6. マルãƒ/シングル セクタ ライトã®æ¯”較<br>
-<img src="../img/f6.png" width="630" height="148" alt="fig.6">
+<img src="../res/f6.png" width="630" height="148" alt="fig.6">
</div>
-<p>フラッシュ メモリ メディアã®æ›¸ãè¾¼ã¿é€Ÿåº¦ã¯ã‚·ãƒ³ã‚°ãƒ« セクタ書ãè¾¼ã¿ã®æ™‚ã«æœ€ã‚‚低ã„ã‚‚ã®ã«ãªã‚Šã€ä¸€å›žã®ãƒˆãƒ©ãƒ³ã‚¶ã‚¯ã‚·ãƒ§ãƒ³ã§è»¢é€ã•ã‚Œã‚‹ã‚»ã‚¯ã‚¿æ•°ãŒå¤§ãããªã‚‹ã»ã©æ›¸ãè¾¼ã¿é€Ÿåº¦ã¯å‘上ã—ã¾ã™ã€‚ã“ã®åŠ¹æžœã¯ãƒã‚¹é€Ÿåº¦ãŒé«˜é€Ÿã«ãªã‚‹ã»ã©é¡•è‘—ã§ã€10å€ä»¥ä¸Šã®å·®ãŒç¾ã‚Œã‚‹ã“ã¨ã‚‚çã—ãã‚ã‚Šã¾ã›ã‚“。<a href="../img/rwtest2.png">テストçµæžœ</a>ã¯ã€ãƒžãƒ«ãƒ セクタ書ãè¾¼ã¿(W:16K, 32 sectors)ãŒã‚·ãƒ³ã‚°ãƒ« セクタ書ãè¾¼ã¿(W:100, 1 sector)よりã©ã®ç¨‹åº¦é€Ÿã„ã‹ã‚’明確ã«ç¤ºã—ã¦ã„ã¾ã™ã€‚大容é‡ãƒ¡ãƒ‡ã‚£ã‚¢ã»ã©ã‚·ãƒ³ã‚°ãƒ« セクタ書ãè¾¼ã¿ãŒé…ããªã‚‹ç‚¹ã‚‚ã¾ãŸé‡è¦ã§ã™ã€‚書ãè¾¼ã¿ãƒˆãƒ©ãƒ³ã‚¶ã‚¯ã‚·ãƒ§ãƒ³ã®å›žæ•°ã¯ã¾ãŸã€ãƒ¡ãƒ‡ã‚£ã‚¢ã®å¯¿å‘½ã«ã‚‚影響ã—ã¦ãã¾ã™ã€‚ã“ã®ãŸã‚ã€ã‚¢ãƒ—リケーションã¯ãªã‚‹ã¹ã大ããªãƒ–ãƒãƒƒã‚¯(クラスタ サイズã¾ãŸã¯2ã®ç´¯ä¹—セクタ境界ã«ã‚¢ãƒ©ã‚¤ãƒ¡ãƒ³ãƒˆã—ãŸ)ã§èªã¿æ›¸ãã‚’è¡Œã†å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚ã‚‚ã¡ã‚ã‚“ã€ã‚¢ãƒ—リケーションã‹ã‚‰ãƒ¡ãƒ‡ã‚£ã‚¢ã«è‡³ã‚‹å…¨ã¦ã®ãƒ¬ã‚¤ãƒ¤ãŒãƒžãƒ«ãƒ セクタ転é€ã«å¯¾å¿œã—ã¦ã„ãªã„ã¨æ„味ãŒã‚ã‚Šã¾ã›ã‚“。残念ãªãŒã‚‰ã€æ—¢å˜ã®ã‚ªãƒ¼ãƒ—ン ソースã®ãƒ‰ãƒ©ã‚¤ãƒã®å¤šãã¯ãƒžãƒ«ãƒ セクタ転é€ã«æœªå¯¾å¿œã§ã™ã€‚ãªãŠã€FatFsモジュールãŠã‚ˆã³ã‚µãƒ³ãƒ—ル ドライãƒã¯ãƒžãƒ«ãƒ セクタ転é€ã«å¯¾å¿œã—ã¦ã„ã¾ã™ã€‚</p>
+<p>フラッシュ メモリ メディアã®æ›¸ãè¾¼ã¿é€Ÿåº¦ã¯ã‚·ãƒ³ã‚°ãƒ« セクタ書ãè¾¼ã¿ã®æ™‚ã«æœ€ã‚‚低ã„ã‚‚ã®ã«ãªã‚Šã€ä¸€å›žã®ãƒˆãƒ©ãƒ³ã‚¶ã‚¯ã‚·ãƒ§ãƒ³ã§è»¢é€ã•ã‚Œã‚‹ã‚»ã‚¯ã‚¿æ•°ãŒå¤§ãããªã‚‹ã»ã©æ›¸ãè¾¼ã¿é€Ÿåº¦ã¯å‘上ã—ã¾ã™(図6)。ã“ã®åŠ¹æžœã¯ãƒã‚¹é€Ÿåº¦ãŒé«˜é€Ÿã«ãªã‚‹ã»ã©å¤§ããã€10å€ä»¥ä¸Šã®å·®ãŒç¾ã‚Œã‚‹ã“ã¨ã‚‚çã—ãã‚ã‚Šã¾ã›ã‚“。<a href="../res/rwtest2.png">テストçµæžœ</a>ã¯ã€ãƒžãƒ«ãƒ セクタ書ãè¾¼ã¿(W:16K, 32 sectors)ãŒã‚·ãƒ³ã‚°ãƒ« セクタ書ãè¾¼ã¿(W:100, 1 sector)よりã©ã®ç¨‹åº¦é€Ÿã„ã‹ã‚’明確ã«ç¤ºã—ã¦ã„ã¾ã™ã€‚大容é‡ãƒ¡ãƒ‡ã‚£ã‚¢ã»ã©ã‚·ãƒ³ã‚°ãƒ« セクタ書ãè¾¼ã¿ãŒé…ããªã‚‹ç‚¹ã‚‚ã¾ãŸé‡è¦ã§ã™ã€‚書ãè¾¼ã¿ãƒˆãƒ©ãƒ³ã‚¶ã‚¯ã‚·ãƒ§ãƒ³ã®å›žæ•°ã¯ã¾ãŸã€ãƒ¡ãƒ‡ã‚£ã‚¢ã®å¯¿å‘½ã«ã‚‚影響ã—ã¦ãã¾ã™ã€‚ã¤ã¾ã‚Šã€åŒã˜é‡ã®ãƒ‡ãƒ¼ã‚¿ã‚’書ãè¾¼ã‚€å ´åˆã€å›³6上ã®ã‚·ãƒ³ã‚°ãƒ« セクタ書ãè¾¼ã¿ã¯ã€å›³6下ã®ãƒžãƒ«ãƒ セクタ書ãè¾¼ã¿ã«æ¯”ã¹ã¦16å€æ—©ãフラッシュ メモリ メディアを消耗ã•ã›ã¦ã—ã¾ã†ã¨ã„ã†ã“ã¨ã§ã™ã€‚</p>
+<p>ã“ã®ã‚ˆã†ã«ã€ã‚¢ãƒ—リケーションã¯ãªã‚‹ã¹ã大ããªãƒ–ãƒãƒƒã‚¯(クラスタ サイズã¾ãŸã¯2ã®ç´¯ä¹—セクタ境界ã«ã‚¢ãƒ©ã‚¤ãƒ¡ãƒ³ãƒˆã—ãŸ)ã§èªã¿æ›¸ãã‚’è¡Œã†å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚ã‚‚ã¡ã‚ã‚“ã€ã‚¢ãƒ—リケーションã‹ã‚‰ãƒ¡ãƒ‡ã‚£ã‚¢ã«è‡³ã‚‹å…¨ã¦ã®ãƒ¬ã‚¤ãƒ¤ãŒãƒžãƒ«ãƒ セクタ転é€ã«å¯¾å¿œã—ã¦ã„ãªã„ã¨æ„味ãŒã‚ã‚Šã¾ã›ã‚“。残念ãªãŒã‚‰ã€æ—¢å˜ã®ã‚ªãƒ¼ãƒ—ン ソースã®ãƒ‰ãƒ©ã‚¤ãƒã®å¤šãã¯ãƒžãƒ«ãƒ セクタ転é€ã«æœªå¯¾å¿œã§ã™ã€‚ãªãŠã€FatFsモジュールãŠã‚ˆã³ã‚µãƒ³ãƒ—ル ドライãƒã¯ãƒžãƒ«ãƒ セクタ転é€ã«å¯¾å¿œã—ã¦ã„ã¾ã™ã€‚</p>
<h4>明示的ãªãƒ¡ãƒ¢ãƒªæ¶ˆåŽ»</h4>
-<p>通常ã®ãƒ•ã‚¡ã‚¤ãƒ«æ¶ˆåŽ»ã§ã¯ã€è¨˜éŒ²ã•ã‚ŒãŸãƒ‡ãƒ¼ã‚¿ã«å¯¾ã—ã¦ä½•ã‚‰ã‹ã®åˆ¶å¾¡ãŒè¡Œã‚れるã‚ã‘ã§ã¯ãªãã€å˜ã«FAT上ã«æœªä½¿ç”¨ã‚¯ãƒ©ã‚¹ã‚¿ã¨ã—ã¦è¨˜éŒ²ã•ã‚Œã¦ã„ã‚‹ã ã‘ã§ã™ã€‚ã“ã®ãŸã‚ã€ãƒ•ã‚¡ã‚¤ãƒ«ãŒæ¶ˆåŽ»ã•ã‚ŒãŸã‚ã¨ã‚‚ãれらã¯æœ‰åŠ¹ãªãƒ¡ãƒ¢ãƒª ブãƒãƒƒã‚¯ã¨ã—ã¦ãƒ•ãƒ©ãƒƒã‚·ãƒ¥ メモリ上ã«æ®‹ã‚Šã¾ã™ã€‚ãã“ã§ã€ãƒ•ã‚¡ã‚¤ãƒ«ã‚’消去ã™ã‚‹ã¨ãã€å 有ã—ã¦ã„ãŸãƒ‡ãƒ¼ã‚¿ セクタを明示的ã«æ¶ˆåŽ»(ã¤ã¾ã‚Šæœªä½¿ç”¨ãƒ–ãƒãƒƒã‚¯ã«ã™ã‚‹)ã™ã‚‹ã“ã¨ã«ã‚ˆã‚Šã€ãƒ¡ãƒ‡ã‚£ã‚¢å†…ã®ç©ºãブãƒãƒƒã‚¯ã‚’増やã™ã“ã¨ãŒã§ãã¾ã™ã€‚ã“ã‚Œã«ã‚ˆã‚Šã€æ¬¡ã«ãã®ãƒ–ãƒãƒƒã‚¯ã«æ›¸ã込むã¨ãã®æ¶ˆåŽ»å‹•ä½œãŒç„¡ããªã‚Šã€æ›¸ãè¾¼ã¿æ€§èƒ½ãŒå‘上ã™ã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚ã¾ãŸã€ã‚¦ã‚§ã‚¢ãƒ¬ãƒ™ãƒªãƒ³ã‚°ã«ä½¿ãˆã‚‹ãƒ–ãƒãƒƒã‚¯ãŒå¢—ãˆã€ãƒ¡ãƒ‡ã‚£ã‚¢ã®è€ä¹…性もå‘上ã™ã‚‹ã‹ã‚‚知れã¾ã›ã‚“。ã“ã®æ©Ÿèƒ½ã‚’有効ã«ã™ã‚‹ã«ã¯ã€æ§‹æˆã‚ªãƒ—ションã®<tt>_USE_TRIM</tt>ã«1ã‚’è¨å®šã—ã¾ã™ã€‚ã“ã‚Œã¯ãƒ•ãƒ©ãƒƒã‚·ãƒ¥ メモリ メディアã®å†…部動作ã«æœŸå¾…ã—ãŸåˆ¶å¾¡ãªã®ã§ã€åŠ¹æžœãŒã‚ã‚‹ã¨ã¯é™ã‚Šã¾ã›ã‚“。ã¾ãŸã€ãƒ•ã‚¡ã‚¤ãƒ«æ¶ˆåŽ»ã®æ™‚é–“ãŒå»¶ã³ã‚‹ã“ã¨ã‚‚考慮ã«å…¥ã‚Œã‚‹ã¹ãã§ã™ã€‚</p>
+<p>通常ã®ãƒ•ã‚¡ã‚¤ãƒ«æ¶ˆåŽ»ã§ã¯ã€è¨˜éŒ²ã•ã‚ŒãŸãƒ‡ãƒ¼ã‚¿ã«å¯¾ã—ã¦ä½•ã‚‰ã‹ã®å‡¦ç†ãŒè¡Œã‚れるã‚ã‘ã§ã¯ãªãã€å˜ã«FAT上ã«ãã®é ˜åŸŸã‚’未使用ã¨è¨˜éŒ²ã—ã¦ã„ã‚‹ã ã‘ã§ã™ã€‚ã“ã®ãŸã‚ã€ãƒ•ã‚¡ã‚¤ãƒ«ãŒæ¶ˆåŽ»ã•ã‚ŒãŸã‚ã¨ã‚‚ãれらã¯æœ‰åŠ¹ãªãƒ‡ãƒ¼ã‚¿ ブãƒãƒƒã‚¯ã¨ã—ã¦ãƒ•ãƒ©ãƒƒã‚·ãƒ¥ メモリ上ã«æ®‹ã‚Šã¾ã™ã€‚ãã“ã§ã€ãƒ•ã‚¡ã‚¤ãƒ«ã‚’消去ã™ã‚‹ã¨ãã€å 有ã—ã¦ã„ãŸãƒ‡ãƒ¼ã‚¿ セクタを明示的ã«æ¶ˆåŽ»(ã¤ã¾ã‚Šæœªä½¿ç”¨ãƒ–ãƒãƒƒã‚¯ã«ã™ã‚‹)ã™ã‚‹ã“ã¨ã«ã‚ˆã‚Šã€ãƒ¡ãƒ‡ã‚£ã‚¢å†…ã®ç©ºãブãƒãƒƒã‚¯ã‚’増やã™ã“ã¨ãŒã§ãã¾ã™ã€‚ã“ã‚Œã«ã‚ˆã‚Šã€æ¬¡ã«ãã®ãƒ–ãƒãƒƒã‚¯ã«æ›¸ã込むã¨ãã®æ¶ˆåŽ»å‹•ä½œãŒç„¡ããªã‚Šã€æ›¸ãè¾¼ã¿æ€§èƒ½ãŒå‘上ã™ã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚ã¾ãŸã€ã‚¦ã‚§ã‚¢ãƒ¬ãƒ™ãƒªãƒ³ã‚°ã«ä½¿ãˆã‚‹ãƒ–ãƒãƒƒã‚¯ãŒå¢—ãˆã€ãƒ¡ãƒ‡ã‚£ã‚¢ã®è€ä¹…性もå‘上ã™ã‚‹ã‹ã‚‚知れã¾ã›ã‚“。ã“ã®æ©Ÿèƒ½ã‚’有効ã«ã™ã‚‹ã«ã¯ã€<tt><a href="config.html#use_trim">_USE_TRIM</a></tt>ã«1ã‚’è¨å®šã—ã¾ã™ã€‚ã“ã‚Œã¯ãƒ•ãƒ©ãƒƒã‚·ãƒ¥ メモリ ドライブã®å†…部動作ã«æœŸå¾…ã—ãŸåˆ¶å¾¡ãªã®ã§ã€åŠ¹æžœãŒã‚ã‚‹ã¨ã¯é™ã‚Šã¾ã›ã‚“。ã¾ãŸã€ãƒ•ã‚¡ã‚¤ãƒ«æ¶ˆåŽ»ã®æ™‚é–“ãŒå»¶ã³ã‚‹ã“ã¨ã‚‚考慮ã«å…¥ã‚Œã‚‹ã¹ãã§ã™ã€‚</p>
</div>
-<div class="para" id="critical">
+<div class="para doc" id="critical">
<h3>クリãƒã‚«ãƒ« セクション</h3>
<p>ストレージ上ã®FATæ§‹é€ ã‚’æ“作ã—ã¦ã„る途ä¸ã§ã€åœé›»ã€ä¸æ£ãªãƒ¡ãƒ‡ã‚£ã‚¢ã®å–り外ã—ã€å›žå¾©ä¸èƒ½ãªãƒ‡ãƒ¼ã‚¿ エラーç‰ã®éšœå®³ãŒç™ºç”Ÿã™ã‚‹ã¨ã€å‡¦ç†ãŒä¸é€”åŠç«¯ãªçŠ¶æ…‹ã§ä¸æ–ã•ã‚Œã€ãã®çµæžœã¨ã—ã¦FATボリュームã®æ§‹é€ ãŒç ´å£Šã•ã‚Œã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚次ã«FatFsモジュールã«ãŠã‘るクリãƒã‚«ãƒ« セクションã¨ã€ãã®é–“ã®éšœå®³ã«ã‚ˆã‚Šèµ·ãã†ã‚‹ã‚¨ãƒ©ãƒ¼ã®çŠ¶æ…‹ã‚’示ã—ã¾ã™ã€‚</p>
<div class="lset">
図4. é•·ã„クリãƒã‚«ãƒ« セクション<br>
-<img src="../img/f4.png" width="320" height="436" alt="fig.4">
+<img src="../res/f4.png" width="320" height="436" alt="fig.4">
</div>
<div class="lset">
図5. 最å°åŒ–ã—ãŸã‚¯ãƒªãƒã‚«ãƒ« セクション<br>
-<img src="../img/f5.png" width="320" height="436" alt="fig.5">
+<img src="../res/f5.png" width="320" height="436" alt="fig.5">
</div>
<br class="clr">
-<p>赤ã§ç¤ºã—ãŸã‚»ã‚¯ã‚·ãƒ§ãƒ³ã‚’実行ä¸ã«éšœå®³ãŒç™ºç”Ÿã—ãŸå ´åˆã€ã‚¯ãƒã‚¹ リンクãŒç™ºç”Ÿã—ã¦æ“作対象ã®ãƒ•ã‚¡ã‚¤ãƒ« ディレクトリãŒå¤±ã‚れるå¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚黄色ã§ç¤ºã—ãŸã‚»ã‚¯ã‚·ãƒ§ãƒ³ã‚’実行ä¸ã«éšœå®³ãŒç™ºç”Ÿã—ãŸå ´åˆã€ã¤ãŽã®ã†ã¡ã„ãšã‚Œã‹ã¾ãŸã¯è¤‡æ•°ã®çµæžœãŒç”Ÿã˜ã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚</p>
+<p>赤ã§ç¤ºã—ãŸã‚»ã‚¯ã‚·ãƒ§ãƒ³ã‚’実行ä¸ã«ä¸æ–ãŒç™ºç”Ÿã—ãŸå ´åˆã€ã‚¯ãƒã‚¹ リンクãŒç™ºç”Ÿã—ã¦æ“作ä¸ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚„ディレクトリãŒå¤±ã‚れるå¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚黄色ã§ç¤ºã—ãŸã‚»ã‚¯ã‚·ãƒ§ãƒ³ã‚’実行ä¸ã«ä¸æ–ãŒç™ºç”Ÿã—ãŸå ´åˆã€æ¬¡ã®ã†ã¡ã„ãšã‚Œã‹ã¾ãŸã¯è¤‡æ•°ã®çµæžœãŒç”Ÿã˜ã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚</p>
<ul>
-<li>書ãæ›ãˆä¸ã®ãƒ•ã‚¡ã‚¤ãƒ«ã®ãƒ‡ãƒ¼ã‚¿ãŒç ´å£Šã•ã‚Œã‚‹ã€‚</li>
-<li>追記ä¸ã®ãƒ•ã‚¡ã‚¤ãƒ«ãŒã‚ªãƒ¼ãƒ—ンå‰ã®çŠ¶æ…‹ã«æˆ»ã‚‹ã€‚</li>
-<li>æ–°è¦ã«ä½œæˆã•ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ«ãŒæ¶ˆãˆã‚‹ã€‚</li>
-<li>æ–°è¦ã¾ãŸã¯ä¸Šæ›¸ãã§ä½œæˆã•ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ«ã®é•·ã•ãŒã‚¼ãƒã«ãªã£ã¦æ®‹ã‚‹ã€‚</li>
-<li>ãƒã‚¹ãƒˆãƒã‚§ãƒ¼ãƒ³ã®ç™ºç”Ÿã«ã‚ˆã‚Šãƒœãƒªãƒ¥ãƒ¼ãƒ ã®åˆ©ç”¨åŠ¹çŽ‡ãŒæ‚ªåŒ–ã™ã‚‹ã€‚</li>
+<li>ファイルã®ä¸€éƒ¨ã‚’書ãæ›ãˆä¸: 書ãæ›ãˆãŒä¸é€”åŠç«¯ãªçŠ¶æ…‹ã¨ãªã‚Šã€çµæžœãƒ‡ãƒ¼ã‚¿ãŒç ´å£Šã•ã‚Œã‚‹ã€‚</li>
+<li>追記モードã§ãƒ‡ãƒ¼ã‚¿è¨˜éŒ²ä¸: ファイルãŒè¨˜éŒ²é–‹å§‹ã®å‰ã®çŠ¶æ…‹ã«æˆ»ã‚‹ã€‚</li>
+<li>æ–°è¦ä½œæˆã—ãŸãƒ•ã‚¡ã‚¤ãƒ«ã«è¨˜éŒ²ä¸: ãã®ãƒ•ã‚¡ã‚¤ãƒ«ãŒæ¶ˆãˆã‚‹ã€‚</li>
+<li>æ–°è¦ã¾ãŸã¯ä¸Šæ›¸ãã§ä½œæˆã—ãŸãƒ•ã‚¡ã‚¤ãƒ«ã«è¨˜éŒ²ä¸: ファイルã®é•·ã•ãŒã‚¼ãƒã«ãªã£ã¦æ®‹ã‚‹ã€‚</li>
+<li>ã“れらã®éšœå®³ã®çµæžœã€ãƒã‚¹ãƒˆ クラスタãŒç™ºç”Ÿã—ã¦ãƒœãƒªãƒ¥ãƒ¼ãƒ ã®åˆ©ç”¨åŠ¹çŽ‡ãŒæ‚ªåŒ–ã™ã‚‹ã€‚</li>
</ul>
-<p>ã„ãšã‚Œã‚‚書ãè¾¼ã¿ä¸ã‚„æ“作ã®å¯¾è±¡ã§ãªã„ファイルã«ã¯å½±éŸ¿ã¯ã‚ã‚Šã¾ã›ã‚“。ã“れらã®ã‚¯ãƒªãƒã‚«ãƒ« セクションã¯ã€ãƒ•ã‚¡ã‚¤ãƒ«ã‚’書ãè¾¼ã¿ãƒ¢ãƒ¼ãƒ‰ã§é–‹ã„ã¦ã„る時間を最å°é™ã«ã™ã‚‹ã‹ã€<tt>f_sync()</tt>ã‚’é©å®œä½¿ç”¨ã™ã‚‹ã“ã¨ã§å›³5ã®ã‚ˆã†ã«ãƒªã‚¹ã‚¯ã‚’最å°åŒ–ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚</p>
+<p>ã„ãšã‚Œã®å ´åˆã‚‚æ“作ã®å¯¾è±¡ã§ãªã„ファイルã«ã¯å½±éŸ¿ã¯ã‚ã‚Šã¾ã›ã‚“。ã“れらã®ã‚¯ãƒªãƒã‚«ãƒ« セクションã¯ã€ãƒ•ã‚¡ã‚¤ãƒ«ã‚’書ãè¾¼ã¿ãƒ¢ãƒ¼ãƒ‰ã§é–‹ã„ã¦ã„る時間を最å°é™ã«ã™ã‚‹ã‹ã€<tt>f_sync</tt>関数をé©å®œä½¿ç”¨ã™ã‚‹ã“ã¨ã§å›³5ã®ã‚ˆã†ã«ãƒªã‚¹ã‚¯ã‚’最å°åŒ–ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚</p>
</div>
-<div class="para" id="fs3">
+<div class="para doc" id="fs3">
<h3>APIã®æ‹¡å¼µçš„使用例</h3>
<p>FatFs APIã®æ‹¡å¼µçš„使用例ã§ã™ã€‚有用ãªã‚³ãƒ¼ãƒ‰ãŒã‚ã£ãŸå ´åˆã¯ã€éšæ™‚è¿½åŠ ã—ã¦ã„ãã¾ã™ã€‚。</p>
<ol>
-<li><a href="../img/app1.c">追記モードã§ã®ã‚ªãƒ¼ãƒ—ン/æ–°è¦ä½œæˆ</a></li>
-<li><a href="../img/app2.c">ディレクトリを空ã«ã™ã‚‹</a></li>
-<li><a href="../img/app3.c">ファイルã«é€£ç¶šé ˜åŸŸã‚’割り当ã¦ã‚‹</a></li>
-<li><a href="../img/app4.c">ディスクI/Oモジュールã®æ©Ÿèƒ½/互æ›æ€§ãƒã‚§ãƒƒã‚«ãƒ¼</a></li>
-<li><a href="../img/mkfatimg.zip">FATイメージ作æˆãƒ„ール</a></li>
+<li><a href="../res/app1.c">追記モードã§ã®ã‚ªãƒ¼ãƒ—ン/æ–°è¦ä½œæˆ</a>(R0.12以å‰)</li>
+<li><a href="../res/app2.c">ディレクトリを空ã«ã™ã‚‹</a></li>
+<li><a href="../res/app3.c">ファイルã«é€£ç¶šé ˜åŸŸã‚’割り当ã¦ã‚‹</a>(R0.11a以å‰)</li>
+<li><a href="../res/app4.c">ディスクI/Oモジュールã®æ©Ÿèƒ½/互æ›æ€§ãƒã‚§ãƒƒã‚«ãƒ¼</a></li>
+<li><a href="../res/mkfatimg.zip">FATイメージ作æˆãƒ„ール</a></li>
</ol>
</div>
-<div class="para" id="license">
+<div class="para doc" id="license">
<h3>FatFsã®ãƒ©ã‚¤ã‚»ãƒ³ã‚¹ã«ã¤ã„ã¦</h3>
-<p>ソース ファイルã®ãƒ˜ãƒƒãƒ€ã«ãƒ©ã‚¤ã‚»ãƒ³ã‚¹æ¡ä»¶ãŒè¨˜è¿°ã•ã‚Œã¦ã„ã‚‹ã®ã§ã€åˆ©ç”¨ã®éš›ã¯ãã‚Œã«å¾“ã†ã“ã¨ã€‚英語をèªã‚ãªã„æ–¹ã®ãŸã‚ã«ä»¥ä¸‹ã«æ—¥æœ¬èªžè¨³ã‚’示ã—ã¦ãŠãã¾ã™ã€‚</p>
-<pre>/*----------------------------------------------------------------------------/
-/ FatFs - FAT file system module R0.10b (C)ChaN, 2014
+<p>FatFsã¯ã€ä½œè€…(ChaN)ã®å€‹äººãƒ—ãƒã‚¸ã‚§ã‚¯ãƒˆã¨ã—ã¦é–‹ç™ºã•ã‚Œã¦ã„ã¾ã™ã€‚ç¾åœ¨ã¾ã§ã®ãƒªãƒ“ジョンã«ãŠã„ã¦ã‚³ãƒ³ãƒˆãƒªãƒ“ューターã¯ã„ãªã„ãŸã‚ã€ä½œè€…以外ã®æ›¸ã„ãŸã‚½ãƒ¼ã‚¹ コードã¯å«ã¾ã‚Œã¾ã›ã‚“。ソース ファイルã«ãƒ©ã‚¤ã‚»ãƒ³ã‚¹æ¡ä»¶ãŒè¨˜è¿°ã•ã‚Œã¦ã„ã‚‹ã®ã§ã€åˆ©ç”¨ã®éš›ã¯ãã‚Œã«å¾“ã†ã“ã¨ã€‚原文ã¯è‹±èªžã§ã™ãŒã€å‚考ã¾ã§ã«ä»¥ä¸‹ã«æ—¥æœ¬èªžè¨³ã‚’示ã—ã¦ãŠãã¾ã™ã€‚</p>
+<pre>
+/*----------------------------------------------------------------------------/
+/ FatFs - Generic FAT file system module R0.12a /
/-----------------------------------------------------------------------------/
-/ FatFsモジュールã¯ã€å°è¦æ¨¡ãªçµ„ã¿è¾¼ã¿ã‚·ã‚¹ãƒ†ãƒ å‘ã‘ã®æ±Žç”¨FATファイルシステãƒ
-/ モジュールã§ã™ã€‚ã“ã‚Œã¯ãƒ•ãƒªãƒ¼ ソフトウェアã¨ã—ã¦ã€æ•™è‚²ãƒ»ç ”究・開発ã®ãŸã‚ã«
-/ 以下ã®ãƒ©ã‚¤ã‚»ãƒ³ã‚¹ ãƒãƒªã‚·ãƒ¼ã®ä¸‹ã§å…¬é–‹ã•ã‚Œã¦ã„ã¾ã™ã€‚
/
-/ Copyright (C) 2014, ChaN, all right reserved.
+/ Copyright (C) 2016, ChaN, all right reserved.
/
-/ * FatFsモジュールã¯ãƒ•ãƒªãƒ¼ ソフトウェアã§ã‚ã‚Šã€ã¾ãŸ<em>ç„¡ä¿è¨¼ã§ã™</em>。
-/ * 用途ã«åˆ¶é™ã¯ã‚ã‚Šã¾ã›ã‚“。<em>ã‚ãªãŸã®è²¬ä»»ã®ä¸‹ã«ãŠã„ã¦</em>ã€å€‹äººçš„・éžå–¶åˆ©çš„ãª
-/ ã‚‚ã®ã‹ã‚‰å•†ç”¨è£½å“ã®é–‹ç™ºã«åŠã¶ç›®çš„ã«ä½¿ç”¨ãƒ»æ”¹å¤‰ãƒ»å†é…布ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚
-/ * ソース コードをå†é…布ã™ã‚‹ã¨ãã¯ã€ä¸Šè¨˜ã®è‘—作権表示をä¿æŒã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。
+/ FatFsモジュールã¯ã‚ªãƒ¼ãƒ—ンソースソフトウェアã§ã™ã€‚FatFsã®å†é…布ãŠã‚ˆã³ä½¿ç”¨ã¯ã€
+/ ソースコードã‹ãƒã‚¤ãƒŠãƒªå½¢å¼ã‹ã€ã¾ãŸå¤‰æ›´ã®æœ‰ç„¡ã«ã‹ã‹ã‚らãšã€æ¬¡ã®æ¡ä»¶ãŒæº€ãŸã•ã‚Œ
+/ ã‚‹å ´åˆã«é™ã‚Šè¨±å¯ã•ã‚Œã¾ã™ã€‚
/
-/-----------------------------------------------------------------------------/</pre>
-<p>è¦ã™ã‚‹ã«FatFsã¯ã‚¿ãƒ€ã§è‡ªç”±ã«ä½¿ãˆã‚‹ã¨ã„ã†ã“ã¨ã§ã™ã€‚ソース コードをå†é…布ã™ã‚‹ã¨ãã¯ã€ã“ã®ãƒ–ãƒãƒƒã‚¯ã‚’ãã®ã¾ã¾ä¿æŒã—ã¦ãŠãã“ã¨ã€‚ã“ã®ã‚ˆã†ã«FatFsã¯BSDライクãªãƒ©ã‚¤ã‚»ãƒ³ã‚¹ã¨ã—ã¦ã„ã¾ã™ãŒã€ä¸€ã¤å¤§ããªé•ã„ãŒã‚ã‚Šã¾ã™ã€‚特ã«çµ„ã¿è¾¼ã¿ç”¨é€”ã§ã®åˆ©ç”¨ä¾¡å€¤ã‚’高ã‚ã‚‹ãŸã‚ã€ãƒã‚¤ãƒŠãƒªå½¢å¼(ソース コードをå«ã¾ãªã„å½¢å¼å…¨ã¦)ã§ã®å†é…布ã«ã¤ã„ã¦ã¯ã€æ¡ä»¶ã¯è¨ã‘ã¦ã„ã¾ã›ã‚“。ãã®å ´åˆã¯ã€FatFsãŠã‚ˆã³ãã®ãƒ©ã‚¤ã‚»ãƒ³ã‚¹æ–‡æ›¸ã«ã¤ã„ã¦ã¯ãƒ‰ã‚ュメントã«æ˜Žè¨˜ã—ã¦ã‚‚ã—ãªãã¦ã‚‚ã‹ã¾ã„ã¾ã›ã‚“。ã“ã‚Œã¯ã€ä¸€æ¡é …BSDライセンスã¨ç‰ä¾¡ã¨ã„ã†ã“ã¨ã§ã™ã€‚ã‚‚ã¡ã‚ã‚“GNU GPLプãƒã‚¸ã‚§ã‚¯ãƒˆã¨ã‚‚å…±å˜å¯èƒ½ã§ã™ã€‚何らã‹ã®å¤‰æ›´ã‚’åŠ ãˆã¦å†é…布ã™ã‚‹éš›ã¯ã€çŸ›ç›¾ã—ãªã„ä»–ã®ãƒ©ã‚¤ã‚»ãƒ³ã‚¹(GNU GPLã‚„ä¿®æ£BSDライセンスãªã©)ã«å¤‰æ›´ã™ã‚‹ã“ã¨ã‚‚å¯èƒ½ã§ã™ã€‚</p>
+/ 1. ソースコードã§å†é…布ã™ã‚‹ã¨ãã¯ã€ãã®ä¸ã«ä¸Šè¨˜ã®è‘—作権表示ã€ã“ã®æ¡ä»¶ã€ãŠã‚ˆã³
+/ 次ã®å…è²¬äº‹é …ã‚’ä¿æŒã™ã‚‹ã“ã¨ã€‚
+/
+/ ã“ã®ã‚½ãƒ•ãƒˆã‚¦ã‚§ã‚¢ã¯ã€è‘—作権者らãŠã‚ˆã³ã‚³ãƒ³ãƒˆãƒªãƒ“ューターらã«ã‚ˆã£ã¦<em>ç¾çŠ¶ã®ã¾ã¾</em>
+/ æä¾›ã•ã‚Œã¦ãŠã‚Šã€<em>ã„ã‹ãªã‚‹ä¿è¨¼ã‚‚ã‚ã‚Šã¾ã›ã‚“</em>。
+/ 著作権者もコントリビューターもã€ã“ã®ã‚½ãƒ•ãƒˆã‚¦ã‚§ã‚¢ã®ä½¿ç”¨ã«ã‚ˆã‚Šç™ºç”Ÿã™ã‚‹ã„ã‹ãªã‚‹
+/ æ害ã«ã¤ã„ã¦ã‚‚ã€<em>è²¬ä»»ã‚’è² ã„ã¾ã›ã‚“</em>。
+/----------------------------------------------------------------------------*/
+</pre>
+<p>ã“ã®ã‚ˆã†ã«FatFsã¯BSDライクãªãƒ©ã‚¤ã‚»ãƒ³ã‚¹ã¨ã—ã¦ã„ã¾ã™ãŒã€ä¸€ã¤å¤§ããªé•ã„ãŒã‚ã‚Šã¾ã™ã€‚FatFsã¯ä¸»ã«çµ„ã¿è¾¼ã¿å‘ã‘ã¨ã—ã¦é–‹ç™ºã•ã‚ŒãŸãŸã‚ã€ãƒã‚¤ãƒŠãƒªå½¢å¼(ソース コードをå«ã¾ãªã„å½¢å¼å…¨ã¦)ã§ã®å†é…布ã«ã¤ã„ã¦ã¯ã€å•†ç”¨ã§ã®ä½¿ã„ã‚„ã™ã•ã‚’考慮ã—ã¦é…布時ã®æ¡ä»¶ã‚’è¨ã‘ã¦ã„ã¾ã›ã‚“。ã¤ã¾ã‚Šã€ãƒã‚¤ãƒŠãƒªé…布ã®å ´åˆã¯ã€FatFsãŠã‚ˆã³ãã®ãƒ©ã‚¤ã‚»ãƒ³ã‚¹æ–‡æ›¸ã«ã¤ã„ã¦ãƒ‰ã‚ュメントã«æ˜Žè¨˜ã—ã¦ã‚‚ã—ãªãã¦ã‚‚ã‹ã¾ã„ã¾ã›ã‚“。ã“ã‚Œã¯ã€ä¸€æ¡é …BSDライセンスã¨ç‰ä¾¡ã¨ã„ã†ã“ã¨ã§ã™ã€‚ã‚‚ã¡ã‚ã‚“ã€GNU GPLãªã©ã»ã¨ã‚“ã©å…¨ã¦ã®ã‚ªãƒ¼ãƒ—ン ソース ライセンスã®ä¸‹ã®ãƒ—ãƒã‚¸ã‚§ã‚¯ãƒˆã«ãŠã„ã¦å…±å˜å¯èƒ½ã§ã™ã€‚FatFsã‹ã‚‰ãƒ•ã‚©ãƒ¼ã‚¯ã‚’作æˆã—公開ã™ã‚‹å ´åˆã¯ã€çŸ›ç›¾ã—ãªã„ä»–ã®ã‚ªãƒ¼ãƒ—ン ソース ライセンス(GNU GPLã‚„ä¿®æ£BSDライセンスãªã©)ã«å¤‰æ›´ã™ã‚‹ã“ã¨ã‚‚å¯èƒ½ã§ã™ã€‚</p>
</div>
<p class="foot"><a href="../00index_j.html">戻る</a></p>
diff --git a/fatfs/doc/ja/close.html b/fatfs/doc/ja/close.html index 71d3c01..f9c4c27 100644 --- a/fatfs/doc/ja/close.html +++ b/fatfs/doc/ja/close.html @@ -36,7 +36,6 @@ FRESULT f_close ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>
</p>
diff --git a/fatfs/doc/ja/config.html b/fatfs/doc/ja/config.html new file mode 100644 index 0000000..f01fb19 --- /dev/null +++ b/fatfs/doc/ja/config.html @@ -0,0 +1,209 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="ja">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta http-equiv="Content-Style-Type" content="text/css">
+<link rel="up" title="FatFs" href="../00index_j.html">
+<link rel="alternate" hreflang="en" title="English" href="../en/config.html">
+<link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
+<style type="text/css" media="screen" title="ELM Default">
+div.doc h3 {margin-top: 4em }
+div.doc h4 {margin-top: 2em }
+</style>
+<title>FatFs - 構æˆã‚ªãƒ—ション</title>
+</head>
+
+<body>
+<h1>構æˆã‚ªãƒ—ション</h1>
+<p>FatFsã«ã¯å¤šãã®æ§‹æˆã‚ªãƒ—ションãŒã‚ã‚Šã€ãã‚Œãžã‚Œã®ãƒ—ãƒã‚¸ã‚§ã‚¯ãƒˆã®è¦æ±‚ã«å¿œã˜ã¦æŸ”軟ã«æ©Ÿèƒ½ã‚’構æˆã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚構æˆã‚ªãƒ—ションã¯ã€<tt>ffconf.h</tt>ã«è¨˜è¿°ã•ã‚Œã¾ã™ã€‚</p>
+
+<div class="para doc" id="func">
+<h3>基本機能ã®è¨å®š</h3>
+
+<h4 id="fs_readonly">_FS_READONLY</h4>
+<p>0:リード/ライト or 1:リード オンリ。リード オンリ構æˆã§ã¯ã€<tt>f_write</tt>ã€<tt>f_sync</tt>ã€<tt>f_unlink</tt>ã€<tt>f_mkdir</tt>ã€<tt>f_chmod</tt>ã€<tt>f_rename</tt>ã€<tt>f_truncate</tt>ã€<tt>f_getfree</tt>ã®åŸºæœ¬API関数ãŠã‚ˆã³ã‚ªãƒ—ションã®æ›¸ãè¾¼ã¿ç³»API関数ãŒå‰Šé™¤ã•ã‚Œã¾ã™ã€‚</p>
+
+<h4 id="fs_minimize">_FS_MINIMIZE</h4>
+<p>基本API関数を段階的ã«å‰Šé™¤ã—ã¾ã™ã€‚</p>
+<table class="lst1">
+<tr><th>値</th><th>解説</th></tr>
+<tr><td>0</td><td>å…¨ã¦ã®åŸºæœ¬API関数ãŒåˆ©ç”¨å¯èƒ½ã€‚</td></tr>
+<tr><td>1</td><td><tt>f_stat</tt>ã€<tt>f_getfree</tt>ã€<tt>f_unlink</tt>ã€<tt>f_mkdir</tt>ã€<tt>f_chmod</tt>ã€<tt>f_utime</tt>ã€<tt>f_truncate</tt>ã€<tt>f_rename</tt>関数ãŒå‰Šé™¤ã•ã‚Œã‚‹ã€‚</td></tr>
+<tr><td>2</td><td>1ã«åŠ ãˆã€<tt>f_opendir</tt>ã€<tt>f_readdir</tt>ã€<tt>f_closedir</tt>関数ãŒå‰Šé™¤ã•ã‚Œã‚‹ã€‚</td></tr>
+<tr><td>3</td><td>2ã«åŠ ãˆã€<tt>f_lseek</tt>関数ãŒå‰Šé™¤ã•ã‚Œã‚‹ã€‚</td></tr>
+</table>
+
+<h4 id="use_strfunc">_USE_STRFUNC</h4>
+<p>æ–‡å—列入出力API関数<tt>f_gets</tt>, <tt>f_putc</tt>, <tt>f_puts</tt> and <tt>f_printf</tt>ã®æ§‹æˆã€‚</p>
+<table class="lst1">
+<tr><th>値</th><th>解説</th></tr>
+<tr><td>0</td><td>æ–‡å—列入出力API関数を使用ã—ãªã„。</td></tr>
+<tr><td>1</td><td>æ–‡å—列入出力API関数を使用ã™ã‚‹ã€‚データã®LF-CRLF変æ›ã¯ã—ãªã„。</td></tr>
+<tr><td>2</td><td>æ–‡å—列入出力API関数を使用ã™ã‚‹ã€‚データã®LF-CRLF変æ›ã‚’ã™ã‚‹ã€‚</td></tr>
+</table>
+
+<h4 id="use_find">_USE_FIND</h4>
+<p>フィルタ付ãディレクトリèªã¿å‡ºã—機能ã®æ§‹æˆ(0:無効 ã¾ãŸã¯ 1:有効)。有効ã«ã™ã‚‹ã¨ã€<tt>f_findfirst</tt>ã€<tt>f_findnext</tt>関数ãŒåˆ©ç”¨å¯èƒ½ã«ãªã‚Šã¾ã™ã€‚<tt>_FS_MINIMIZE</tt>ã¯ã€1以下ã§ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。</p>
+
+<h4 id="use_mkfs">_USE_MKFS</h4>
+<p>ボリューム作æˆæ©Ÿèƒ½ã®æ§‹æˆ(0:無効 ã¾ãŸã¯ 1:有効)。有効ã«ã™ã‚‹ã¨<tt>f_mkfs</tt>関数ãŒåˆ©ç”¨å¯èƒ½ã«ãªã‚Šã¾ã™ã€‚</p>
+
+<h4 id="use_fastseek">_USE_FASTSEEK</h4>
+<p>高速シーク機能ã®æ§‹æˆ(0:無効 ã¾ãŸã¯ 1:有効)。有効ã«ã™ã‚‹ã¨ã€<tt>f_lseek</tt>ã€<tt>f_read</tt>ã€<tt>f_write</tt>関数ã«ãŠã„ã¦é«˜é€ŸåŒ–モードãŒåˆ©ç”¨å¯èƒ½ã«ãªã‚Šã¾ã™ã€‚詳ã—ãã¯ã€<a href="lseek.html">ã“ã¡ã‚‰</a>ã‚’å‚ç…§ã—ã¦ãã ã•ã„。</p>
+
+<h4 id="use_expand">_USE_EXPAND</h4>
+<p>é€£ç¶šé ˜åŸŸå‰²ã‚Šå½“ã¦æ©Ÿèƒ½ã®æ§‹æˆ(0:無効 ã¾ãŸã¯ 1:有効)。有効ã«ã™ã‚‹ã¨<tt>f_expand</tt>関数ãŒåˆ©ç”¨å¯èƒ½ã«ãªã‚Šã¾ã™ã€‚<tt>_FS_READONLY</tt>ã¯0ã§ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。</p>
+
+<h4 id="use_chmod">_USE_CHMOD</h4>
+<p>メタデータæ“作機能ã®æ§‹æˆ(0:無効 ã¾ãŸã¯ 1:有効)。有効ã«ã™ã‚‹ã¨ã€<tt>f_chmod</tt>ã€<tt>f_utime</tt>関数ãŒåˆ©ç”¨å¯èƒ½ã«ãªã‚Šã¾ã™ã€‚<tt>_FS_READONLY</tt>ã¯0ã§ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。</p>
+
+<h4 id="use_label">_USE_LABEL</h4>
+<p>ボリュームラベルæ“作機能ã®æ§‹æˆ(0:無効 ã¾ãŸã¯ 1:有効)。有効ã«ã™ã‚‹ã¨ã€<tt>f_getlabel</tt>ã€<tt>f_setlabel</tt>関数(<tt>_FS_READONLY == 0</tt>ã®ã¨ã)ãŒåˆ©ç”¨å¯èƒ½ã«ãªã‚Šã¾ã™ã€‚</p>
+
+<h4 id="use_forward">_USE_FORWARD</h4>
+<p>ストリーミングèªã¿å‡ºã—機能(<tt>f_forward</tt>関数)ã®æ§‹æˆ(0:無効 ã¾ãŸã¯ 1:有効)。</p>
+
+</div>
+
+
+<div class="para doc" id="name">
+<h3>åå‰ç©ºé–“ã¨ãƒã‚±ãƒ¼ãƒ«ã®è¨å®š</h3>
+
+<h4 id="code_page">_CODE_PAGE</h4>
+<p>パスåç‰ã®æ–‡å—列データã®ã‚³ãƒ¼ãƒ‰ ページを指定ã—ã¾ã™ã€‚ä¸é©åˆ‡ãªè¨å®šã¯ã€ãƒ•ã‚¡ã‚¤ãƒ« オープン エラーã®åŽŸå› ã«ãªã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚拡張文å—ãŒå…¨ã使ã‚ã‚Œãªã„å ´åˆã¯ã€ã©ã‚Œã‚’é¸ã‚“ã§ã‚‚åŒã˜ã§ã™ã€‚</p>
+<table class="lst1">
+<tr><th>値</th><th>解説</th></tr>
+<tr><td>1</td><td>ASCII (éžLFN構æˆã§ã®ã¿æœ‰åŠ¹)</td></tr>
+<tr><td>437</td><td>U.S.</td></tr>
+<tr><td>720</td><td>Arabic</td></tr>
+<tr><td>737</td><td>Greek</td></tr>
+<tr><td>771</td><td>KBL</td></tr>
+<tr><td>775</td><td>Baltic</td></tr>
+<tr><td>850</td><td>Latin 1</td></tr>
+<tr><td>852</td><td>Latin 2</td></tr>
+<tr><td>855</td><td>Cyrillic</td></tr>
+<tr><td>857</td><td>Turkish</td></tr>
+<tr><td>860</td><td>Portuguese</td></tr>
+<tr><td>861</td><td>Icelandic</td></tr>
+<tr><td>862</td><td>Hebrew</td></tr>
+<tr><td>863</td><td>Canadian French</td></tr>
+<tr><td>864</td><td>Arabic</td></tr>
+<tr><td>865</td><td>Nordic</td></tr>
+<tr><td>866</td><td>Russian</td></tr>
+<tr><td>869</td><td>Greek 2</td></tr>
+<tr><td>932</td><td>日本語 (DBCS)</td></tr>
+<tr><td>936</td><td>簡体å—ä¸å›½èªž (DBCS)</td></tr>
+<tr><td>949</td><td>韓国語 (DBCS)</td></tr>
+<tr><td>950</td><td>ç¹ä½“å—ä¸å›½èªž (DBCS)</td></tr>
+</table>
+
+<h4 id="use_lfn">_USE_LFN</h4>
+<p>LFN(é•·ã„ファイルå)対応をè¨å®šã—ã¾ã™ã€‚LFN機能を有効ã«ã™ã‚‹ã¨ãã¯ã€Unicodeæ“作関数<tt>option/unicode.c</tt>をプãƒã‚¸ã‚§ã‚¯ãƒˆã«åŠ ãˆã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚ã¾ãŸã€LFNæ“作ã®ãƒ¯ãƒ¼ã‚¯ エリアã¨ã—ã¦<tt>(_MAX_LFN + 1) * 2</tt>ãƒã‚¤ãƒˆ(exFAT構æˆæ™‚ã¯ã•ã‚‰ã«608ãƒã‚¤ãƒˆ)を使用ã—ã¾ã™ã€‚ã“ã®ãŸã‚ã€ãƒãƒƒãƒ•ã‚¡ã‚’スタックã«ç¢ºä¿ã™ã‚‹ã¨ãã¯ã€ã‚¹ã‚¿ãƒƒã‚¯ オームフãƒãƒ¼ã«æ³¨æ„ã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚ヒープã«ç¢ºä¿ã™ã‚‹ã¨ãã¯ã€ãƒ¡ãƒ¢ãƒªæ“作関数(<tt>ff_memalloc</tt>ã¨<tt>ff_memfree</tt>(<tt>option/syscall.c</tt>ã«ã‚µãƒ³ãƒ—ルã‚ã‚Š))をプãƒã‚¸ã‚§ã‚¯ãƒˆã«åŠ ãˆã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚</p>
+<table class="lst1">
+<tr><th>値</th><th>解説</th></tr>
+<tr><td>0</td><td>LFN機能を使ã‚ãªã„。8.3å½¢å¼ã®åå‰ã®ã¿ä½¿ç”¨å¯èƒ½ã€‚</td></tr>
+<tr><td>1</td><td>LFN機能を使ã†ã€‚ワーク エリアã¯é™çš„ã«ç¢ºä¿ã€‚常ã«ã‚¹ãƒ¬ãƒƒãƒ‰ セーフã§ã¯ãªã„。</td></tr>
+<tr><td>2</td><td>LFN機能を使ã†ã€‚ワーク エリアã¯ã‚¹ã‚¿ãƒƒã‚¯ã«ç¢ºä¿ã€‚</td></tr>
+<tr><td>3</td><td>LFN機能を使ã†ã€‚ワーク エリアã¯ãƒ’ープã«ç¢ºä¿ã€‚</td></tr>
+</table>
+
+<h4 id="max_lfn">_MAX_LFN</h4>
+<p>LFNæ“作ãƒãƒƒãƒ•ã‚¡ã®ã‚µã‚¤ã‚ºã‚’æ–‡å—å˜ä½ã§æŒ‡å®š(12~255)ã—ã¾ã™ã€‚LFN機能ãŒç„¡åŠ¹ã®ã¨ãã¯æ„味をæŒã¡ã¾ã›ã‚“。</p>
+
+<h4 id="lfn_unicode">_LFN_UNICODE</h4>
+<p>ファイルAPI上ã«ãŠã‘ã‚‹Unicode対応機能をè¨å®šã—ã¾ã™ã€‚éžLFN構æˆã®ã¨ãã¯ã€0ã§ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。LFN構æˆã®ã¨ãã«1ã‚’é¸æŠžã™ã‚‹ã¨ã€ãƒ•ã‚¡ã‚¤ãƒ«API上ã®æ–‡å—列データ<tt>TCHAR</tt>åž‹ã®å®šç¾©ãŒåˆ‡ã‚Šæ›¿ã‚ã‚Šã€ãƒ‘スåç‰ã«Unicodeを使用ã™ã‚‹ã‚ˆã†ã«ãªã‚Šã¾ã™ã€‚ã“ã®æ©Ÿèƒ½ã¯ã€æ–‡å—列入出力関数ã«ã‚‚影響ã—ã¾ã™ã€‚詳ã—ãã¯ã€<a href="filename.html#uni">ã“ã¡ã‚‰</a>ã‚’å‚ç…§ã—ã¦ãã ã•ã„。</p>
+
+<h4 id="strf_encode">_STRF_ENCODE</h4>
+<p>Unicode API構æˆã®ã¨ãã€æ–‡å—列入出力関数ã€<tt>f_gets</tt>ã€<tt>f_putc</tt>ã€<tt>f_puts</tt>ã€<tt>f_printf</tt>ã€ã«ãŠã‘るファイル上ã®ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‡ã‚£ãƒ³ã‚°ã‚’指定ã—ã¾ã™ã€‚éžUnicode API構æˆã®ã¨ãã¯æ„味をæŒã¡ã¾ã›ã‚“。</p>
+<table class="lst1">
+<tr><th>値</th><th>解説</th></tr>
+<tr><td>0</td><td>ANSI/OEM</td></tr>
+<tr><td>1</td><td>UTF-16LE</td></tr>
+<tr><td>2</td><td>UTF-16BE</td></tr>
+<tr><td>3</td><td>UTF-8</td></tr>
+</table>
+
+<h4 id="fs_rpath">_FS_RPATH</h4>
+<p>相対パス機能をè¨å®šã—ã¾ã™ã€‚ã“ã®æ©Ÿèƒ½ã¯ã€ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªèªã¿å‡ºã—関数ã®å‡ºåŠ›ã«ã‚‚影響ã—ã¾ã™ã€‚詳ã—ãã¯ã€<a href="filename.html#nam">ã“ã¡ã‚‰</a>ã‚’å‚ç…§ã—ã¦ãã ã•ã„。</p>
+<table class="lst1">
+<tr><th>値</th><th>解説</th></tr>
+<tr><td>0</td><td>相対パス機能を使ã‚ãªã„。パスåã¯å¸¸ã«ãƒ«ãƒ¼ãƒˆ ディレクトリã‹ã‚‰è¾¿ã‚‹ã€‚</td></tr>
+<tr><td>1</td><td>相対パス機能を使ã†ã€‚<tt>f_chdir</tt>ã€<tt>f_chdrive</tt>関数ãŒåˆ©ç”¨å¯èƒ½ã«ãªã‚‹ã€‚</td></tr>
+<tr><td>2</td><td>1ã«åŠ ãˆã€<tt>f_getcwd</tt>関数ãŒåˆ©ç”¨å¯èƒ½ã«ãªã‚‹ã€‚</td></tr>
+</table>
+
+</div>
+
+
+<div class="para doc" id="volume">
+<h3>ボリューム/物ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®è¨å®š</h3>
+
+<h4 id="volumes">_VOLUMES</h4>
+<p>利用ã™ã‚‹ãƒœãƒªãƒ¥ãƒ¼ãƒ (è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–)ã®æ•°ã‚’1~9ã®ç¯„囲ã§è¨å®šã—ã¾ã™ã€‚</p>
+
+<h4 id="str_volume_id">_STR_VOLUME_ID</h4>
+<p>æ–‡å—列ボリュームIDã®è¨å®š(0:無効 ã¾ãŸã¯ 1:有効)。パスåä¸ã®ãƒœãƒªãƒ¥ãƒ¼ãƒ IDã«æ•°å—ã«åŠ ãˆä»»æ„ã®æ–‡å—列も使用ã§ãるよã†ã«ã™ã‚‹ã‚ªãƒ—ションã§ã™ã€‚ボリュームIDæ–‡å—列ã¯<tt>_VOLUME_STRS</tt>ã§å®šç¾©ã—ã¾ã™ã€‚</p>
+
+<h4 id="volume_strs">_VOLUME_STRS</h4>
+<p>ボリュームIDæ–‡å—列を定義ã—ã¾ã™ã€‚<tt>_VOLUMES</tt>ã§è¨å®šã•ã‚ŒãŸå€‹æ•°ã®æ–‡å—列を<tt>"RAM","SD","CF",...</tt> ã®ã‚ˆã†ã«æŒ™åˆ—ã—ã¾ã™ã€‚使用å¯èƒ½ãªæ–‡å—ã¯A~ZãŠã‚ˆã³0~9ã§ã€å…ˆé ã®é …ç›®ãŒè«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–0ã«å¯¾å¿œã—ã¾ã™ã€‚</p>
+
+<h4 id="multi_partition">_MULTI_PARTITION</h4>
+<p>マルãƒåŒºç”»æ©Ÿèƒ½ã®è¨å®š(0:無効 ã¾ãŸã¯ 1:有効)。無効ã®ã¨ãã¯ã€å€‹ã€…ã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã¯åŒã˜ç•ªå·ã®ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«1:1ã§å¯¾å¿œã—ã€ãã‚Œãžã‚Œã®ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ä¸ã®æœ€åˆã®åŒºç”»ã«çµã³ã¤ã‘られã¾ã™ã€‚マルãƒåŒºç”»æ©Ÿèƒ½ã‚’有効ã«ã™ã‚‹ã¨ã€è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã¯ãã‚Œãžã‚Œä»»æ„ã®ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®ä»»æ„ã®åŒºç”»ã«çµã³ã¤ã‘ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚マッピングã¯ã€ãƒ¦ãƒ¼ã‚¶å®šç¾©ã®å¤‰æ›ãƒ†ãƒ¼ãƒ–ル<tt>VolToPart[]</tt>ã«ã‚ˆã£ã¦è¡Œã„ã¾ã™ã€‚ã¾ãŸã€<tt>f_fdisk</tt>関数ãŒåˆ©ç”¨å¯èƒ½ã«ãªã‚Šã¾ã™ã€‚詳ã—ãã¯ã€<a href="filename.html#vol">ã“ã¡ã‚‰</a>ã‚’å‚ç…§ã—ã¦ãã ã•ã„。</p>
+
+<h4 id="max_ss">_MIN_SSã€_MAX_SS</h4>
+<p>使用ã™ã‚‹ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®ã‚»ã‚¯ã‚¿ サイズ(データã®èªã¿æ›¸ãã®æœ€å°å˜ä½)ã‚’è¨å®šã—ã¾ã™ã€‚有効ãªå€¤ã¯ã€512ã€1024ã€2048ã€4096ã§ã™ã€‚<tt>_MIN_SS</tt>ã¯æœ€å°ã‚µã‚¤ã‚ºã€<tt>_MAX_SS</tt>ã¯æœ€å¤§ã‚µã‚¤ã‚ºã‚’è¨å®šã—ã¾ã™ã€‚メモリ カードやãƒãƒ¼ãƒ‰ãƒ‡ã‚£ã‚¹ã‚¯ã§ã¯ã€å¸¸ã«ä¸¡æ–¹ã«512ã‚’è¨å®šã—ã¾ã™ãŒã€ã‚ªãƒ³ãƒœãƒ¼ãƒ‰ メモリや一部ã®å…‰å¦ãƒ¡ãƒ‡ã‚£ã‚¢ã§ã¯å¤§ããªå€¤ã‚’è¨å®šã™ã‚‹å¿…è¦ãŒã‚ã‚‹ã‹ã‚‚知れã¾ã›ã‚“。<tt>_MAX_SS > _MIN_SS</tt>ã«è¨å®šã—ãŸã¨ãã¯å¯å¤‰ã‚»ã‚¯ã‚¿ サイズ構æˆã¨ãªã‚Šã€<tt>disk_ioctl</tt>関数ã«ã¯<tt>GET_SECTOR_SIZE</tt>コマンドを実装ã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚</p>
+
+<h4 id="use_trim">_USE_TRIM</h4>
+<p>ATA-TRIM機能ã®ä½¿ç”¨ã®è¨å®š(0:無効 ã¾ãŸã¯ 1:有効)。ã“ã®æ©Ÿèƒ½ã‚’有効ã«ã—ãŸã¨ãã¯ã€<tt>disk_ioctl</tt>関数ã«<tt>CTRL_TRIM</tt>コマンドを実装ã™ã‚‹ã¹ãã§ã™ã€‚</p>
+
+<h4 id="fs_nofsinfo">_FS_NOFSINFO</h4>
+<p>FAT32ボリュームã®FSINFOã®ä½¿ç”¨ã®è¨å®š(0~3)。FAT32ボリュームã§å¿…ãšæ£ç¢ºãªç©ºã容é‡ã‚’å–å¾—ã™ã‚‹å¿…è¦ãŒã‚ã‚‹ã¨ãã€è¨å®šå€¤ã®ãƒ“ット0をセットã™ã‚‹ã¨<tt>f_getfree</tt>関数ã¯FSINFOã®æƒ…å ±ã‚’ä½¿ã‚ãšã«å…¨FATスã‚ャンを行ã£ã¦ç©ºã容é‡ã‚’å¾—ã¾ã™ã€‚ビット1ã¯æœ€çµ‚割り当ã¦ã‚¯ãƒ©ã‚¹ã‚¿ç•ªå·ã®åˆ©ç”¨ã®åˆ¶å¾¡ã§ã™ã€‚</p>
+<table class="lst1">
+<tr><th>値</th><th>解説</th></tr>
+<tr><td>bit0=0</td><td>FSINFOã®ç©ºãã‚¯ãƒ©ã‚¹ã‚¿æƒ…å ±ãŒæœ‰åŠ¹ãªã¨ãã¯ãれを利用ã™ã‚‹ã€‚</td></tr>
+<tr><td>bit0=1</td><td>FSINFOã®ç©ºãã‚¯ãƒ©ã‚¹ã‚¿æƒ…å ±ã‚’åˆ©ç”¨ã—ãªã„。</td></tr>
+<tr><td>bit1=0</td><td>FSINFOã®æœ€çµ‚割り当ã¦ã‚¯ãƒ©ã‚¹ã‚¿ç•ªå·ãŒæœ‰åŠ¹ãªã¨ãã¯ãれを利用ã™ã‚‹ã€‚</td></tr>
+<tr><td>bit1=1</td><td>FSINFOã®æœ€çµ‚割り当ã¦ã‚¯ãƒ©ã‚¹ã‚¿ç•ªå·ã‚’利用ã—ãªã„。</td></tr>
+</table>
+
+</div>
+
+
+<div class="para doc" id="system">
+<h3>システムã®è¨å®š</h3>
+
+<h4 id="fs_tiny">_FS_TINY</h4>
+<p>ファイル データ転é€ãƒãƒƒãƒ•ã‚¡ã®æ§‹æˆ(0:ノーマル ã¾ãŸã¯ 1:タイニ)。タイニ構æˆã§ã¯ã€ãƒ•ã‚¡ã‚¤ãƒ« オブジェクト<tt>FIL</tt>内ã®ãƒ—ライベート セクタ ãƒãƒƒãƒ•ã‚¡ãŒå‰Šé™¤ã•ã‚Œã€<tt>_MAX_SS</tt>ãƒã‚¤ãƒˆå°ã•ããªã‚Šã¾ã™ã€‚ファイル データã®è»¢é€ã«ã¯ã€ä»£ã‚ã‚Šã«ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクト<tt>FATFS</tt>内ã®ãƒœãƒªãƒ¥ãƒ¼ãƒ 共有セクタ ãƒãƒƒãƒ•ã‚¡ãŒä½¿ã‚ã‚Œã¾ã™ã€‚</p>
+
+<h4 id="fs_exfat">_FS_EXFAT</h4>
+<p>exFATã®ã‚µãƒãƒ¼ãƒˆ(0:使用ã—ãªã„ ã¾ãŸã¯ 1:使用ã™ã‚‹)。exFATを使用ã™ã‚‹ã«ã¯ã€LFN機能を有効ã«ã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。ã¾ãŸã€exFATã®å®Œå…¨ã‚µãƒãƒ¼ãƒˆã®ãŸã‚ã«ã¯ã€<tt>_LFN_UNICODE = 1</tt>ã¨<tt>_MAX_LFN = 255</tt>ã®è¨å®šãŒæŽ¨å¥¨ã•ã‚Œã¾ã™ã€‚exFAT機能ã§ã¯64ビット整数を使用ã™ã‚‹ãŸã‚ã€ã“れを有効ã«ã™ã‚‹ã¨C89(ANSI C)互æ›ãŒå¤±ã‚ã‚Œã¾ã™ã€‚</p>
+
+<h4 id="fs_nortc">_FS_NORTC</h4>
+<p>RTC機能ã®ä½¿ç”¨ã®è¨å®š(0:使用ã™ã‚‹ ã¾ãŸã¯ 1:使用ã—ãªã„)。システムãŒRTC(カレンダ時計)をサãƒãƒ¼ãƒˆã—ãªã„å ´åˆã¯ã€1をセットã—ã¾ã™ã€‚ã“ã®å ´åˆã€FatFsãŒå¤‰æ›´ã‚’åŠ ãˆãŸã‚ªãƒ–ジェクトã®ã‚¿ã‚¤ãƒ スタンプã¯ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã®æ—¥æ™‚ã‚’æŒã¡ã¾ã™ã€‚RTCãŒä½¿ç”¨å¯èƒ½ãªã¨ãã¯ã€0ã‚’è¨å®šã—ã€<tt>get_fattime</tt>関数をプãƒã‚¸ã‚§ã‚¯ãƒˆã«åŠ ãˆã¾ã™ã€‚リード オンリ構æˆã§ã¯ã“ã®ã‚ªãƒ—ションã¯æ„味をæŒã¡ã¾ã›ã‚“。</p>
+
+<h4 id="nortc_time">_NORTC_MONã€_NORTC_MDAYã€_NORTC_YEAR</h4>
+<p>デフォルト日時ã®è¨å®šã€‚<tt>_FS_NORTC</tt>ãŒ1ã®ã¨ãã€å›ºå®šã—ã¦ä¸Žãˆã‚‰ã‚Œã‚‹æ—¥ä»˜ã‚’指定ã—ã¾ã™ã€‚<tt>_FS_NORTC</tt>ãŒ0ã®ã¨ãã€ãŠã‚ˆã³ãƒªãƒ¼ãƒ‰ オンリ構æˆã§ã¯ã“れらã®ã‚ªãƒ—ションã¯æ„味をæŒã¡ã¾ã›ã‚“。</p>
+
+<h4 id="fs_lock">_FS_LOCK</h4>
+<p>ファイル ãƒãƒƒã‚¯æ©Ÿèƒ½ã®è¨å®šã€‚ã“ã®ã‚ªãƒ—ションã¯ã€é–‹ã‹ã‚ŒãŸã‚ªãƒ–ジェクトã«å¯¾ã™ã‚‹ä¸æ£ãªæ“作ã®åˆ¶å¾¡æ©Ÿèƒ½ã‚’è¨å®šã—ã¾ã™ã€‚リード オンリ構æˆã§ã¯0ã«è¨å®šã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。ãªãŠã€ãƒ•ã‚¡ã‚¤ãƒ« ãƒãƒƒã‚¯æ©Ÿèƒ½ã¯ãƒªã‚¨ãƒ³ãƒˆãƒ©ãƒ³ã‚·ãƒ¼ã¨ã¯é–¢ä¿‚ã‚ã‚Šã¾ã›ã‚“。</p>
+
+<table class="lst1">
+<tr><th>値</th><th>解説</th></tr>
+<tr><td>0</td><td>ファイル ãƒãƒƒã‚¯æ©Ÿèƒ½ã‚’使ã‚ãªã„。ボリュームã®ç ´æを防ããŸã‚ã€ã‚¢ãƒ—リケーションã¯ä¸æ£ãªãƒ•ã‚¡ã‚¤ãƒ«æ“作をé¿ã‘ãªã‘ã‚Œã°ãªã‚‰ãªã„。</td></tr>
+<tr><td>>0</td><td>ファイル ãƒãƒƒã‚¯æ©Ÿèƒ½ã‚’使ã†ã€‚数値ã¯åŒæ™‚ã«ã‚ªãƒ¼ãƒ—ンã§ãるファイルやサブ ディレクトリã®æ•°ã‚’è¨å®šã—ã¾ã™ã€‚</td></tr>
+</table>
+
+<h4 id="fs_reentrant">_FS_REENTRANT</h4>
+<p>リエントランシーã®è¨å®š(0:無効 ã¾ãŸã¯ 1:有効)。ã“ã®ã‚ªãƒ—ションã¯ã€FatFsモジュール自体ã®ãƒªã‚¨ãƒ³ãƒˆãƒ©ãƒ³ã‚·ãƒ¼(スレッド セーフ)ã®è¨å®šã‚’ã—ã¾ã™ã€‚ç•°ãªã‚‹ãƒœãƒªãƒ¥ãƒ¼ãƒ ã«å¯¾ã™ã‚‹ãƒ•ã‚¡ã‚¤ãƒ« アクセスã¯ã“ã®ã‚ªãƒ—ションã«é–¢ä¿‚ãªã常ã«ãƒªã‚¨ãƒ³ãƒˆãƒ©ãƒ³ãƒˆã§ã€<tt>f_mount</tt>ã€<tt>f_mkfs</tt>ã€<tt>f_fdisk</tt>ãªã©ã®ãƒœãƒªãƒ¥ãƒ¼ãƒ æ“作関数ã¯ã“ã®ã‚ªãƒ—ションã«é–¢ä¿‚ãªã常ã«ãƒªã‚¨ãƒ³ãƒˆãƒ©ãƒ³ãƒˆã§ã¯ã‚ã‚Šã¾ã›ã‚“。åŒã˜ãƒœãƒªãƒ¥ãƒ¼ãƒ ã«å¯¾ã™ã‚‹ãƒ•ã‚¡ã‚¤ãƒ« アクセス(ã¤ã¾ã‚Šã€ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトã®æŽ’他使用)ã®ã¿ãŒã“ã®ã‚ªãƒ—ションã®åˆ¶å¾¡ä¸‹ã«ã‚ã‚Šã¾ã™ã€‚ã“ã®ã‚ªãƒ—ションを有効ã«ã—ãŸã¨ãã¯ã€åŒæœŸé–¢æ•°ã§ã‚ã‚‹<tt>ff_req_grant</tt>ã€<tt>ff_rel_grant</tt>ã€<tt>ff_del_syncobj</tt>ã€<tt>ff_cre_syncobj</tt>をプãƒã‚¸ã‚§ã‚¯ãƒˆã«è¿½åŠ ã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚サンプルãŒ<tt>option/syscall.c</tt>ã«ã‚ã‚Šã¾ã™ã€‚</p>
+
+<h4 id="fs_timeout">_FS_TIMEOUT</h4>
+<p>タイムアウト時間ã®è¨å®šã€‚å¾…ã¡åˆã‚ã›æ™‚é–“ãŒé•·ã„ã¨ãã«<tt>FR_TIMEOUT</tt>ã§ãƒ•ã‚¡ã‚¤ãƒ«é–¢æ•°ã‚’アボートã™ã‚‹æ™‚é–“ã‚’è¨å®šã—ã¾ã™ã€‚<tt>_FS_REENTRANT</tt>ãŒ0ã®ã¨ãã¯æ„味をæŒã¡ã¾ã›ã‚“。</p>
+
+<h4 id="sync_t">_SYNC_t</h4>
+<p>O/S定義ã®åŒæœŸã‚ªãƒ–ジェクトã®åž‹ã‚’è¨å®šã—ã¾ã™ã€‚例: <tt>HANDLE</tt>ã€<tt>ID</tt>ã€<tt>OS_EVENT*</tt>ã€<tt>SemaphoreHandle_t</tt>ãªã©ã€‚ã¾ãŸã€O/S機能ã®ãƒ˜ãƒƒãƒ€ ファイルを<tt>ff.c</tt>ã®ã‚¹ã‚³ãƒ¼ãƒ—内ã«ã‚¤ãƒ³ã‚¯ãƒ«ãƒ¼ãƒ‰ã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚<tt>_FS_REENTRANT</tt>ãŒ0ã®ã¨ãã¯æ„味をæŒã¡ã¾ã›ã‚“。</p>
+
+</div>
+
+<p class="foot"><a href="../00index_j.html">戻る</a></p>
+</body>
+</html>
diff --git a/fatfs/doc/ja/dinit.html b/fatfs/doc/ja/dinit.html index 6329150..68f4cc3 100644 --- a/fatfs/doc/ja/dinit.html +++ b/fatfs/doc/ja/dinit.html @@ -32,13 +32,13 @@ DSTATUS disk_initialize ( <div class="para ret">
<h4>戻り値</h4>
-<p>ã“ã®é–¢æ•°ã¯æˆ»ã‚Šå€¤ã¨ã—ã¦ãƒ‡ã‚£ã‚¹ã‚¯ ステータスを返ã—ã¾ã™ã€‚ディスク ステータスã®è©³ç´°ã«é–¢ã—ã¦ã¯<tt><a href="dstat.html">disk_status()</a></tt>ã‚’å‚ç…§ã—ã¦ãã ã•ã„。</p>
+<p>ã“ã®é–¢æ•°ã¯æˆ»ã‚Šå€¤ã¨ã—ã¦ãƒ‡ã‚£ã‚¹ã‚¯ ステータスを返ã—ã¾ã™ã€‚ディスク ステータスã®è©³ç´°ã«é–¢ã—ã¦ã¯<a href="dstat.html"><tt>disk_status</tt></a>関数をå‚ç…§ã—ã¦ãã ã•ã„。</p>
</div>
<div class="para desc">
<h4>解説</h4>
<p>ストレージ デãƒã‚¤ã‚¹ã‚’åˆæœŸåŒ–ã—ã€ãƒ‡ãƒ¼ã‚¿ã®èªã¿æ›¸ããªã©å…¨ã¦ã®å‹•ä½œãŒå¯èƒ½ãªçŠ¶æ…‹ã«ã—ã¾ã™ã€‚関数ãŒæˆåŠŸã™ã‚‹ã¨ã€æˆ»ã‚Šå€¤ã®<tt>STA_NOINIT</tt>フラグãŒã‚¯ãƒªã‚¢ã•ã‚Œã¾ã™ã€‚</p>
-<p><em>アプリケーションã‹ã‚‰ã¯ã“ã®é–¢æ•°ã‚’呼ã³å‡ºã—ã¦ã¯ãªã‚Šã¾ã›ã‚“。ã•ã‚‚ãªã„ã¨ã€FATボリュームãŒç ´å£Šã•ã‚Œã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚エラーç‰ã«ã‚ˆã‚Šå†åˆæœŸåŒ–ãŒå¿…è¦ãªã¨ãã¯ã€<tt>f_mount()</tt>を使用ã—ã¦ãã ã•ã„。</em>FatFsモジュールã¯ã€è‡ªå‹•ãƒžã‚¦ãƒ³ãƒˆå‹•ä½œã«ã‚ˆã‚Šã€å¿…è¦ã«å¿œã˜ã¦ã“ã®é–¢æ•°ã‚’呼ã³å‡ºã—ã¾ã™ã€‚</p>
+<p>ã“ã®é–¢æ•°ã¯FatFsã®ç®¡ç†ä¸‹ã«ã‚ã‚Šã€è‡ªå‹•ãƒžã‚¦ãƒ³ãƒˆå‹•ä½œã«ã‚ˆã‚Šå¿…è¦ã«å¿œã˜ã¦å‘¼ã³å‡ºã•ã‚Œã¾ã™ã€‚<em>アプリケーションã‹ã‚‰ã¯ã“ã®é–¢æ•°ã‚’呼ã³å‡ºã—ã¦ã¯ãªã‚Šã¾ã›ã‚“。ã•ã‚‚ãªã„ã¨ã€FATボリュームãŒç ´å£Šã•ã‚Œã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚å†åˆæœŸåŒ–ãŒå¿…è¦ãªã¨ãã¯ã€<tt>f_mount</tt>関数を使用ã—ã¦ãã ã•ã„。</em></p>
</div>
<p class="foot"><a href="../00index_j.html">戻る</a></p>
diff --git a/fatfs/doc/ja/dioctl.html b/fatfs/doc/ja/dioctl.html index 120d798..b37ffea 100644 --- a/fatfs/doc/ja/dioctl.html +++ b/fatfs/doc/ja/dioctl.html @@ -27,7 +27,7 @@ DRESULT disk_ioctl ( <h4>引数</h4>
<dl class="par">
<dt>pdrv</dt>
-<dd>対象ã®ãƒ‡ãƒã‚¤ã‚¹ã‚’示ã™ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–番å·(0-9)ãŒæŒ‡å®šã•ã‚Œã¾ã™ã€‚</dd>
+<dd>対象ã®ãƒ‡ãƒã‚¤ã‚¹ã‚’è˜åˆ¥ã™ã‚‹ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–番å·(0-9)ãŒæŒ‡å®šã•ã‚Œã¾ã™ã€‚</dd>
<dt>cmd</dt>
<dd>制御コマンド コードãŒæŒ‡å®šã•ã‚Œã¾ã™ã€‚</dd>
<dt>buff</dt>
@@ -55,10 +55,10 @@ DRESULT disk_ioctl ( <table class="lst">
<caption>標準ioctlコマンド</caption>
<tr><th>コマンド</th><th>解説</th></tr>
-<tr><td>CTRL_SYNC</td><td>デãƒã‚¤ã‚¹ã®ãƒ‡ãƒ¼ã‚¿æ›¸ãè¾¼ã¿å‡¦ç†ã‚’完了ã•ã›ã¾ã™ã€‚ドライãƒãŒãƒ©ã‚¤ãƒˆ ãƒãƒƒã‚¯ ã‚ャッシュãªã©ã‚’æŒã£ã¦ã„ã‚‹å ´åˆã¯ã€æ›¸ãè¾¼ã¾ã‚Œã¦ã„ãªã„データをå³æ™‚書ãè¾¼ã¿ã¾ã™ã€‚メディア上ã¸ã®æ›¸ãè¾¼ã¿ãŒãã‚Œãžã‚Œ<tt>disk_write()</tt>ã®ä¸ã§å®Œäº†ã™ã‚‹å ´åˆã¯ã€ã“ã®ã‚³ãƒžãƒ³ãƒ‰ã«å¯¾ã—ã¦ã™ã‚‹ã“ã¨ã¯ã‚ã‚Šã¾ã›ã‚“。</td></tr>
-<tr><td>GET_SECTOR_COUNT</td><td>ç·ã‚»ã‚¯ã‚¿æ•°ã®å–得。<tt class="arg">buff</tt>ã®æŒ‡ã™<tt>DWORD</tt>型変数ã«ãƒ‰ãƒ©ã‚¤ãƒ–上ã®ç·ã‚»ã‚¯ã‚¿æ•°ã‚’è¿”ã—ã¾ã™ã€‚<tt>f_mkfs()</tt>ãŠã‚ˆã³<tt>f_fdisk()</tt>内ã‹ã‚‰å‘¼ã³å‡ºã•ã‚Œã€ä½œæˆã™ã‚‹ãƒœãƒªãƒ¥ãƒ¼ãƒ ã®ã‚µã‚¤ã‚ºã‚’決定ã™ã‚‹ãŸã‚ã«ä½¿ç”¨ã•ã‚Œã¾ã™ã€‚</td></tr>
-<tr><td>GET_SECTOR_SIZE</td><td>セクタ サイズã®å–得。<tt class="arg">buff</tt>ã®æŒ‡ã™<tt>WORD</tt>型変数ã«ãƒ‰ãƒ©ã‚¤ãƒ–ã®ã‚»ã‚¯ã‚¿ サイズを返ã—ã¾ã™ã€‚有効値ã¯512ã€1024ã€2048ã¾ãŸã¯4096ã§ã™ã€‚セクタ サイズãŒå›ºå®š(<tt>_MAX_SS ==_MIN_SS</tt>)ã®ã¨ãã¯ã“ã®ã‚³ãƒžãƒ³ãƒ‰ã¯ä½¿ã‚れるã“ã¨ã¯ãªãã€ãƒ‡ãƒã‚¤ã‚¹ã¯å¸¸ã«ãã®ã‚»ã‚¯ã‚¿ サイズã§å‹•ä½œã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。</td></tr>
-<tr><td>GET_BLOCK_SIZE</td><td>消去ブãƒãƒƒã‚¯ サイズã®å–得。<tt class="arg">buff</tt>ã®æŒ‡ã™<tt>DWORD</tt>型変数ã«ãƒ•ãƒ©ãƒƒã‚·ãƒ¥ メモリã®æ¶ˆåŽ»ãƒ–ãƒãƒƒã‚¯ サイズ(セクタå˜ä½)ã‚’è¿”ã—ã¾ã™ã€‚1ã‹ã‚‰32768ã®ç¯„囲ã§2ã®ç´¯ä¹—ã®å€¤ã§ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。ブãƒãƒƒã‚¯ サイズä¸æ˜Žã¾ãŸã¯ãƒ•ãƒ©ãƒƒã‚·ãƒ¥ メモリ以外ã®ãƒ‡ãƒã‚¤ã‚¹ã§ã¯1ã‚’è¿”ã—ã¾ã™ã€‚<tt>f_mkfs()</tt>内ã§ã®ã¿ä½¿ç”¨ã•ã‚Œã€ä½œæˆã•ã‚Œã‚‹ãƒœãƒªãƒ¥ãƒ¼ãƒ ã®ãƒ‡ãƒ¼ã‚¿é ˜åŸŸã¯ã“ã®å¢ƒç•Œã«ã‚¢ãƒ©ã‚¤ãƒ¡ãƒ³ãƒˆã•ã‚Œã¾ã™ã€‚</td></tr>
+<tr><td>CTRL_SYNC</td><td>デãƒã‚¤ã‚¹ã®ãƒ‡ãƒ¼ã‚¿æ›¸ãè¾¼ã¿å‡¦ç†ã‚’完了ã•ã›ã¾ã™ã€‚ドライãƒãŒãƒ©ã‚¤ãƒˆ ãƒãƒƒã‚¯ ã‚ャッシュãªã©ã‚’æŒã£ã¦ã„ã‚‹å ´åˆã¯ã€æ›¸ãè¾¼ã¾ã‚Œã¦ã„ãªã„データをå³æ™‚書ãè¾¼ã¿ã¾ã™ã€‚メディア上ã¸ã®æ›¸ãè¾¼ã¿ãŒãã‚Œãžã‚Œ<tt>disk_write</tt>関数ã®ä¸ã§å®Œäº†ã™ã‚‹å ´åˆã¯ã€ã“ã®ã‚³ãƒžãƒ³ãƒ‰ã«å¯¾ã—ã¦ã™ã‚‹ã“ã¨ã¯ã‚ã‚Šã¾ã›ã‚“。</td></tr>
+<tr><td>GET_SECTOR_COUNT</td><td>ç·ã‚»ã‚¯ã‚¿æ•°ã®å–得。<tt class="arg">buff</tt>ã®æŒ‡ã™<tt>DWORD</tt>型変数ã«ãƒ‰ãƒ©ã‚¤ãƒ–上ã®ç·ã‚»ã‚¯ã‚¿æ•°ã‚’è¿”ã—ã¾ã™ã€‚<tt>f_mkfs, f_fdisk</tt>関数内ã‹ã‚‰å‘¼ã³å‡ºã•ã‚Œã€ä½œæˆã™ã‚‹ãƒœãƒªãƒ¥ãƒ¼ãƒ ã®ã‚µã‚¤ã‚ºã‚’決定ã™ã‚‹ãŸã‚ã«ä½¿ç”¨ã•ã‚Œã¾ã™ã€‚</td></tr>
+<tr><td>GET_SECTOR_SIZE</td><td>セクタ サイズã®å–得。セクタ サイズå¯å¤‰(<tt>_MAX_SS > _MIN_SS</tt>)ã®ã¨ãã€<tt>disk_initailize</tt>関数ã®æˆåŠŸã«ç¶šã呼ã³å‡ºã•ã‚Œã‚‹ã®ã§ã€<tt class="arg">buff</tt>ã®æŒ‡ã™<tt>WORD</tt>型変数ã«ç¾åœ¨ã®ã‚»ã‚¯ã‚¿ サイズを返ã—ã¾ã™ã€‚有効値ã¯512ã€1024ã€2048ã¾ãŸã¯4096ã§ã™ã€‚セクタ サイズ固定(<tt>_MAX_SS == _MIN_SS</tt>)ã®ã¨ãã¯ã“ã®ã‚³ãƒžãƒ³ãƒ‰ã¯ä½¿ã‚れるã“ã¨ã¯ãªãã€ãƒ‡ãƒã‚¤ã‚¹ã¯å¸¸ã«ãã®ã‚»ã‚¯ã‚¿ サイズã§å‹•ä½œã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。</td></tr>
+<tr><td>GET_BLOCK_SIZE</td><td>消去ブãƒãƒƒã‚¯ サイズã®å–得。<tt class="arg">buff</tt>ã®æŒ‡ã™<tt>DWORD</tt>型変数ã«ãƒ•ãƒ©ãƒƒã‚·ãƒ¥ メモリã®æ¶ˆåŽ»ãƒ–ãƒãƒƒã‚¯ サイズ(セクタå˜ä½)ã‚’è¿”ã—ã¾ã™ã€‚1ã‹ã‚‰32768ã®ç¯„囲ã§2ã®ç´¯ä¹—ã®å€¤ã§ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。ブãƒãƒƒã‚¯ サイズä¸æ˜Žã¾ãŸã¯ãƒ•ãƒ©ãƒƒã‚·ãƒ¥ メモリ以外ã®ãƒ‡ãƒã‚¤ã‚¹ã§ã¯1ã‚’è¿”ã—ã¾ã™ã€‚<tt>f_mkfs</tt>関数内ã§ã®ã¿ä½¿ç”¨ã•ã‚Œã€ä½œæˆã•ã‚Œã‚‹ãƒœãƒªãƒ¥ãƒ¼ãƒ ã®ãƒ‡ãƒ¼ã‚¿é ˜åŸŸã¯ã“ã®å¢ƒç•Œã«ã‚¢ãƒ©ã‚¤ãƒ¡ãƒ³ãƒˆã•ã‚Œã¾ã™ã€‚</td></tr>
<tr><td>CTRL_TRIM</td><td>ä¸å¿…è¦ã‚»ã‚¯ã‚¿ã®é€šçŸ¥ã€‚<tt class="arg">buff</tt>ã®æŒ‡ã™<tt>DWORD</tt>åž‹é…列ã«ã¯ä¸å¿…è¦ã«ãªã£ãŸé ˜åŸŸ {開始セクタ,終了セクタ} を指定ã—ã¦å‘¼ã³å‡ºã•ã‚Œã¾ã™ã€‚TRIM機能ãŒæœ‰åŠ¹(<tt>_USE_TRIM == 1</tt>)ã§ã€ã‚¯ãƒ©ã‚¹ã‚¿ãŒè§£æ”¾ã•ã‚Œã‚‹ã¨ãã€ãŠã‚ˆã³ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆæ™‚ã«å‘¼ã³å‡ºã•ã‚Œã¾ã™ã€‚ã“ã‚Œã¯ã€ATAコマンド セットã®Trimコマンドã¨ç‰ä¾¡ã§ã€ã“ã®æ©Ÿèƒ½ã‚’サãƒãƒ¼ãƒˆã—ãªã„デãƒã‚¤ã‚¹ã¯ä½•ã‚‚ã™ã‚‹å¿…è¦ã¯ã‚ã‚Šã¾ã›ã‚“。ã¾ãŸã€æˆ»ã‚Šå€¤ã¯ãƒã‚§ãƒƒã‚¯ã•ã‚Œãšã€çµæžœã«ã‚ˆã£ã¦FatFsã®å‹•ä½œãŒå½±éŸ¿ã‚’å—ã‘ã‚‹ã“ã¨ã¯ã‚ã‚Šã¾ã›ã‚“。</td></tr>
</table>
@@ -68,7 +68,7 @@ DRESULT disk_ioctl ( <tr><th>コマンド</th><th>解説</th></tr>
<tr><td>CTRL_FORMAT</td><td>メディアã®ç‰©ç†ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆã‚’è¡Œã„ã¾ã™ã€‚<tt class="arg">buff</tt>ã¯NULLã§ãªã„ã¨ãã€é€²è¡Œè¡¨ç¤ºã®ãŸã‚ã®ã‚³ãƒ¼ãƒ«ãƒãƒƒã‚¯é–¢æ•°ã®ã‚¢ãƒ‰ãƒ¬ã‚¹ã‚’示ã—ã¾ã™ã€‚</td></tr>
<tr><td>CTRL_POWER_IDLE</td><td>デãƒã‚¤ã‚¹ã‚’アイドル状態ã«ã—ã¾ã™ã€‚通常ã®èªã¿æ›¸ãè¦æ±‚ã§ã‚¢ã‚¯ãƒ†ã‚£ãƒ–状態ã«æˆ»ã‚‹ãªã‚‰ã€<tt>STA_NOINIT</tt>フラグをセットã™ã‚‹å¿…è¦ã¯ã‚ã‚Šã¾ã›ã‚“。</td></tr>
-<tr><td>CTRL_POWER_OFF</td><td>デãƒã‚¤ã‚¹ã‚’シャットダウン状態ã«ã—ã¾ã™ã€‚<tt>STA_NOINIT</tt>ã¯ã‚»ãƒƒãƒˆã•ã‚Œã¾ã™ã€‚デãƒã‚¤ã‚¹ã¯<tt>disk_initialize()</tt>ã§ã‚¢ã‚¯ãƒ†ã‚£ãƒ–状態ã«æˆ»ã‚Šã¾ã™ã€‚</td></tr>
+<tr><td>CTRL_POWER_OFF</td><td>デãƒã‚¤ã‚¹ã‚’シャットダウン状態ã«ã—ã¾ã™ã€‚<tt>STA_NOINIT</tt>ã¯ã‚»ãƒƒãƒˆã•ã‚Œã¾ã™ã€‚デãƒã‚¤ã‚¹ã¯<tt>disk_initialize</tt>関数ã§ã‚¢ã‚¯ãƒ†ã‚£ãƒ–状態ã«æˆ»ã‚Šã¾ã™ã€‚</td></tr>
<tr><td>CTRL_LOCK</td><td>ユーザã«ã‚ˆã‚‹ãƒ¡ãƒ‡ã‚£ã‚¢ã®å–り出ã—ã‚’ç¦æ¢ã—ã¾ã™ã€‚</td></tr>
<tr><td>CTRL_UNLOCK</td><td>ユーザã«ã‚ˆã‚‹ãƒ¡ãƒ‡ã‚£ã‚¢ã®å–り出ã—を許å¯ã—ã¾ã™ã€‚</td></tr>
<tr><td>CTRL_EJECT</td><td>メディアを排出ã—ã¾ã™ã€‚完了後ã€<tt>STA_NOINIT</tt>ã¨<tt>STA_NODISK</tt>フラグã¯ã‚»ãƒƒãƒˆã•ã‚Œã¾ã™ã€‚</td></tr>
@@ -80,6 +80,9 @@ DRESULT disk_ioctl ( <tr><td>ATA_GET_REV</td><td>リビジョン コードを<tt class="arg">buff</tt>ã®ç¤ºã™16ãƒã‚¤ãƒˆã®ãƒãƒƒãƒ•ã‚¡ã«èªã¿å‡ºã—ã¾ã™ã€‚(ATA/CFカード専用)</td></tr>
<tr><td>ATA_GET_MODEL</td><td>モデル コードを<tt class="arg">buff</tt>ã®ç¤ºã™40ãƒã‚¤ãƒˆã®ãƒãƒƒãƒ•ã‚¡ã«èªã¿å‡ºã—ã¾ã™ã€‚(ATA/CFカード専用)</td></tr>
<tr><td>ATA_GET_SN</td><td>シリアル番å·ã‚’<tt class="arg">buff</tt>ã®ç¤ºã™20ãƒã‚¤ãƒˆã®ãƒãƒƒãƒ•ã‚¡ã«èªã¿å‡ºã—ã¾ã™ã€‚(ATA/CFカード専用)</td></tr>
+<tr><td>ISDIO_READ</td><td><tt class="arg">buff</tt>ã®ç¤ºã™ã‚³ãƒžãƒ³ãƒ‰æ§‹é€ 体ã«å¾“ã„iSDIOレジスタã‹ã‚‰ãƒ‡ãƒ¼ã‚¿ã‚’èªã¿å‡ºã—ã¾ã™ã€‚(FlashAir専用)</td></tr>
+<tr><td>ISDIO_WRITE</td><td><tt class="arg">buff</tt>ã®ç¤ºã™ã‚³ãƒžãƒ³ãƒ‰æ§‹é€ 体ã«å¾“ã„iSDIOレジスタã«ãƒ‡ãƒ¼ã‚¿ã‚’書ãè¾¼ã¿ã¾ã™ã€‚(FlashAir専用)</td></tr>
+<tr><td>ISDIO_MRITE</td><td><tt class="arg">buff</tt>ã®ç¤ºã™ã‚³ãƒžãƒ³ãƒ‰æ§‹é€ 体ã«å¾“ã„iSDIOレジスタã®ä¸€éƒ¨ã®ãƒ“ットを書ãæ›ãˆã¾ã™ã€‚(FlashAir専用)</td></tr>
</table>
</div>
diff --git a/fatfs/doc/ja/dread.html b/fatfs/doc/ja/dread.html index 2dac64e..4c8ddba 100644 --- a/fatfs/doc/ja/dread.html +++ b/fatfs/doc/ja/dread.html @@ -28,13 +28,13 @@ DRESULT disk_read ( <h4>引数</h4>
<dl class="par">
<dt>pdrv</dt>
-<dd>対象ã®ãƒ‡ãƒã‚¤ã‚¹ã‚’示ã™ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–番å·(0-9)ãŒæŒ‡å®šã•ã‚Œã¾ã™ã€‚シングル ドライブ システムã§ã¯ã€å¸¸ã«0ãŒæŒ‡å®šã•ã‚Œã¾ã™ã€‚</dd>
+<dd>対象ã®ãƒ‡ãƒã‚¤ã‚¹ã‚’è˜åˆ¥ã™ã‚‹ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–番å·(0-9)ãŒæŒ‡å®šã•ã‚Œã¾ã™ã€‚シングル ドライブ システムã§ã¯ã€å¸¸ã«0ãŒæŒ‡å®šã•ã‚Œã¾ã™ã€‚</dd>
<dt>buff</dt>
<dd>ストレージ デãƒã‚¤ã‚¹ã‹ã‚‰èªã¿å‡ºã—ãŸãƒ‡ãƒ¼ã‚¿ã‚’æ ¼ç´ã™ã‚‹<em>ãƒã‚¤ãƒˆé…列</em>ãŒæŒ‡å®šã•ã‚Œã¾ã™ã€‚</dd>
<dt>sector</dt>
<dd>èªã¿å‡ºã—を開始ã™ã‚‹ã‚»ã‚¯ã‚¿ç•ªå·ã€‚32ビットLBAã§æŒ‡å®šã•ã‚Œã¾ã™ã€‚</dd>
<dt>count</dt>
-<dd>èªã¿å‡ºã™ã‚»ã‚¯ã‚¿æ•°(1~128)。</dd>
+<dd>èªã¿å‡ºã™ã‚»ã‚¯ã‚¿æ•°(1以上ã®å€¤)ãŒæŒ‡å®šã•ã‚Œã¾ã™ã€‚</dd>
</dl>
</div>
@@ -45,23 +45,23 @@ DRESULT disk_read ( <dt>RES_OK (0)</dt>
<dd>æ£å¸¸çµ‚了。</dd>
<dt>RES_ERROR</dt>
-<dd>èªã¿è¾¼ã¿ä¸ã«ã‚¨ãƒ©ãƒ¼ãŒç™ºç”Ÿã—ã€ãã®å›žå¾©ã«ã‚‚失敗ã—ãŸã€‚</dd>
+<dd>回復ä¸èƒ½ãªã‚¨ãƒ©ãƒ¼ã«ã‚ˆã‚Šã€èªã¿å‡ºã—æ“作を完了ã§ããªã‹ã£ãŸã€‚</dd>
<dt>RES_PARERR</dt>
<dd>パラメータãŒä¸æ£ã€‚</dd>
<dt>RES_NOTRDY</dt>
-<dd>ドライブãŒå‹•ä½œå¯èƒ½çŠ¶æ…‹ã§ã¯ãªã„(åˆæœŸåŒ–ã•ã‚Œã¦ã„ãªã„)。</dd>
+<dd>ストレージ デãƒã‚¤ã‚¹ãŒå‹•ä½œå¯èƒ½ãªçŠ¶æ…‹ã§ã¯ãªã„ (åˆæœŸåŒ–ã•ã‚Œã¦ã„ãªã„)。</dd>
</dl>
</div>
<div class="para desc">
<h4>解説</h4>
-<p>ストレージ デãƒã‚¤ã‚¹ã«å¯¾ã™ã‚‹ãƒ‡ãƒ¼ã‚¿ã®èªã¿æ›¸ãã¯ã€ã‚»ã‚¯ã‚¿å˜ä½ã§è¡Œã‚ã‚Œã¾ã™ã€‚FatFsã§ã¯512~4096ãƒã‚¤ãƒˆã®ã‚»ã‚¯ã‚¿ サイズをサãƒãƒ¼ãƒˆã—ã¾ã™ã€‚固定セクタ サイズ構æˆ(<tt>_MIN_SS == MAX_SS</tt>)ã®ã¨ãã¯ã€æš—黙的ã«ãã®ã‚»ã‚¯ã‚¿ サイズã§å‹•ä½œã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。å¯å¤‰ã‚»ã‚¯ã‚¿ サイズ構æˆ(<tt>_MIN_SS < MAX_SS</tt>)</p>ã®ã¨ãã¯ã€åˆæœŸåŒ–後<tt>disk_ioctl()</tt>ã§ã‚»ã‚¯ã‚¿ サイズをå•ã„åˆã‚ã›ã¦ãã‚‹ã®ã§ã€ãã‚Œã«å¯¾ã—ã¦æ£ã—ã„値を返ã™å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚</t>
+<p>ストレージ デãƒã‚¤ã‚¹ã«å¯¾ã™ã‚‹ãƒ‡ãƒ¼ã‚¿ã®èªã¿æ›¸ãã¯ã€ã‚»ã‚¯ã‚¿å˜ä½ã§è¡Œã‚ã‚Œã¾ã™ã€‚FatFsã§ã¯512~4096ãƒã‚¤ãƒˆã®ã‚»ã‚¯ã‚¿ サイズをサãƒãƒ¼ãƒˆã—ã¾ã™ã€‚固定セクタ サイズ構æˆ(<tt>_MIN_SS == MAX_SS</tt>)ã®ã¨ãã¯ã€æš—黙的ã«ãã®ã‚»ã‚¯ã‚¿ サイズã§å‹•ä½œã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。å¯å¤‰ã‚»ã‚¯ã‚¿ サイズ構æˆ(<tt>_MIN_SS < MAX_SS</tt>)ã®ã¨ãã¯ã€<tt>disk_initialize</tt>関数ã«ç¶šã„ã¦<tt>disk_ioctl</tt>関数ã§ã‚»ã‚¯ã‚¿ サイズをå•ã„åˆã‚ã›ã¦ãã‚‹ã®ã§ã€ãã‚Œã«å¯¾ã—ã¦æ£ã—ã„値を返ã™å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚</p>
<p><tt class="arg">buff</tt>ã¯<tt>BYTE</tt>åž‹ãªã®ã§ã€æŒ‡å®šã•ã‚Œã‚‹ã‚¢ãƒ‰ãƒ¬ã‚¹ã¯<em>常ã«ãƒ¯ãƒ¼ãƒ‰ アライメントã•ã‚Œã¦ã„ã‚‹ã¨ã¯é™ã‚Šã¾ã›ã‚“</em>。éžã‚¢ãƒ©ã‚¤ãƒ¡ãƒ³ãƒˆ アドレスã¸ã®è»¢é€ã¯ã€<a href="appnote.html#fs1">直接転é€</a>ã«ãŠã„ã¦ç™ºç”Ÿã™ã‚‹ã“ã¨ãŒã‚ã‚Šã¾ã™ã€‚ã‚‚ã—ã‚‚ã€ãƒãƒ¼ãƒ‰ã‚¦ã‚§ã‚¢ä¸Šã®åˆ¶ç´„ã§ãã®ã‚ˆã†ãªè»¢é€ãŒä¸å¯èƒ½ãªã¨ãã¯ã€ã“ã®é–¢æ•°å†…ã§äºŒæ®µè»¢é€ã™ã‚‹ãªã©ã—ã¦è§£æ±ºã™ã‚‹ã‹ã€ã¾ãŸã¯åˆ¥ã®æ–¹æ³•ã§å¯¾å¿œã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。次ã«ã„ãã¤ã‹ã®å¯¾å¿œæ–¹æ³•ã‚’示ã—ã¾ã™(ã„ãšã‚Œã‹ä¸€ã¤ã§OK)。</p>
<ul>
<li>ã“ã®é–¢æ•°å†…ã§è§£æ±ºã™ã‚‹ - 推奨</li>
-<li><tt>f_read()</tt>ã«ãŠã„ã¦ã€ã‚»ã‚¯ã‚¿å…¨ä½“ã‚’å«ã‚€è»¢é€ã‚’é¿ã‘ã‚‹ - 直接転é€ãŒç™ºç”Ÿã—ãªã„</li>
-<li><tt>f_read(fp, buff, btr, &br)</tt>ã«ãŠã„ã¦ã€<tt>(((UINT)buff & 3) == (f_tell(fp) & 3))</tt>を満足ã•ã›ã‚‹ - <tt class="arg">buff</tt>ã®ãƒ¯ãƒ¼ãƒ‰ アライメントãŒä¿è¨¼ã•ã‚Œã‚‹</li>
+<li>å…¨ã¦ã®<tt>f_read()</tt>ã«ãŠã„ã¦ã€ã‚»ã‚¯ã‚¿å…¨ä½“ã‚’å«ã‚€è»¢é€ã‚’é¿ã‘ã‚‹ - 直接転é€ãŒç™ºç”Ÿã—ãªã„</li>
+<li><tt>f_read(fp, data, btr, &br)</tt>ã«ãŠã„ã¦ã€<tt>(((UINT)data & 3) == (f_tell(fp) & 3))</tt>を満足ã•ã›ã‚‹ - 直接転é€ã§ã®<tt class="arg">buff</tt>ã®ãƒ¯ãƒ¼ãƒ‰ アライメントãŒä¿è¨¼ã•ã‚Œã‚‹</li>
</ul>
<p>一般的ã«ã€è¤‡æ•°ã‚»ã‚¯ã‚¿ã®è»¢é€è¦æ±‚ã¯ã€ã‚¹ãƒˆãƒ¬ãƒ¼ã‚¸ デãƒã‚¤ã‚¹ã«å¯¾ã—ã¦å¯èƒ½ãªé™ã‚Šãƒžãƒ«ãƒ セクタ転é€ã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。複数ã®ã‚·ãƒ³ã‚°ãƒ« セクタèªã¿å‡ºã—ã«åˆ†è§£ã•ã‚ŒãŸå ´åˆã€ã‚¹ãƒ«ãƒ¼ãƒ—ットãŒä½Žä¸‹ã™ã‚‹ã“ã¨ãŒã‚ã‚Šã¾ã™ã€‚</p>
</div>
diff --git a/fatfs/doc/ja/dstat.html b/fatfs/doc/ja/dstat.html index 6a30944..f965649 100644 --- a/fatfs/doc/ja/dstat.html +++ b/fatfs/doc/ja/dstat.html @@ -35,7 +35,7 @@ DSTATUS disk_status ( <p>ç¾åœ¨ã®ã‚¹ãƒˆãƒ¬ãƒ¼ã‚¸ デãƒã‚¤ã‚¹ã®çŠ¶æ…‹ã‚’次ã®ãƒ•ãƒ©ã‚°ã®çµ„ã¿åˆã‚ã›å€¤ã§è¿”ã—ã¾ã™ã€‚</p>
<dl class="ret">
<dt>STA_NOINIT</dt>
-<dd>デãƒã‚¤ã‚¹ãŒåˆæœŸåŒ–ã•ã‚Œã¦ã„ãªã„ã“ã¨ã‚’示ã™ãƒ•ãƒ©ã‚°ã€‚システムリセットやメディアã®å–り外ã—ç‰ã§ã‚»ãƒƒãƒˆã•ã‚Œã€<tt>disk_initialize()</tt>ã®æ£å¸¸çµ‚了ã§ã‚¯ãƒªã‚¢ã€å¤±æ•—ã§ã‚»ãƒƒãƒˆã•ã‚Œã¾ã™ã€‚メディア交æ›ã¯éžåŒæœŸã«ç™ºç”Ÿã™ã‚‹ã‚¤ãƒ™ãƒ³ãƒˆãªã®ã§ã€éŽåŽ»ã«ãƒ¡ãƒ‡ã‚£ã‚¢äº¤æ›ãŒã‚ã£ãŸå ´åˆã‚‚ã“ã®ãƒ•ãƒ©ã‚°ã«åæ˜ ã•ã›ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚FatFsモジュールã¯ã€ã“ã®ãƒ•ãƒ©ã‚°ã‚’å‚ç…§ã—ã¦ãƒžã‚¦ãƒ³ãƒˆå‹•ä½œãŒå¿…è¦ã‹ã©ã†ã‹ã‚’判æ–ã—ã¾ã™ã€‚</dd>
+<dd>デãƒã‚¤ã‚¹ãŒåˆæœŸåŒ–ã•ã‚Œã¦ã„ãªã„ã“ã¨ã‚’示ã™ãƒ•ãƒ©ã‚°ã€‚システムリセットやメディアã®å–り外ã—ç‰ã§ã‚»ãƒƒãƒˆã•ã‚Œã€<tt>disk_initialize</tt>関数ã®æ£å¸¸çµ‚了ã§ã‚¯ãƒªã‚¢ã€å¤±æ•—ã§ã‚»ãƒƒãƒˆã•ã‚Œã¾ã™ã€‚メディア交æ›ã¯éžåŒæœŸã«ç™ºç”Ÿã™ã‚‹ã‚¤ãƒ™ãƒ³ãƒˆãªã®ã§ã€éŽåŽ»ã«ãƒ¡ãƒ‡ã‚£ã‚¢äº¤æ›ãŒã‚ã£ãŸå ´åˆã‚‚ã“ã®ãƒ•ãƒ©ã‚°ã«åæ˜ ã•ã›ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚FatFsモジュールã¯ã€ã“ã®ãƒ•ãƒ©ã‚°ã‚’å‚ç…§ã—ã¦ãƒžã‚¦ãƒ³ãƒˆå‹•ä½œãŒå¿…è¦ã‹ã©ã†ã‹ã‚’判æ–ã—ã¾ã™ã€‚</dd>
<dt>STA_NODISK</dt>
<dd>メディアãŒå˜åœ¨ã—ãªã„ã“ã¨ã‚’示ã™ãƒ•ãƒ©ã‚°ã€‚メディアãŒå–り外ã•ã‚Œã¦ã„ã‚‹é–“ã¯ã‚»ãƒƒãƒˆã•ã‚Œã€ã‚»ãƒƒãƒˆã•ã‚Œã¦ã„ã‚‹é–“ã¯ã‚¯ãƒªã‚¢ã•ã‚Œã¾ã™ã€‚固定ディスクã§ã¯å¸¸ã«ã‚¯ãƒªã‚¢ã—ã¾ã™ã€‚ãªãŠã€ã“ã®ãƒ•ãƒ©ã‚°ã¯FatFsモジュールã§ã¯å‚ç…§ã•ã‚Œã¾ã›ã‚“。</dd>
<dt>STA_PROTECT</dt>
diff --git a/fatfs/doc/ja/dwrite.html b/fatfs/doc/ja/dwrite.html index 15d4ead..fa0de8d 100644 --- a/fatfs/doc/ja/dwrite.html +++ b/fatfs/doc/ja/dwrite.html @@ -28,13 +28,13 @@ DRESULT disk_write ( <h4>引数</h4>
<dl class="par">
<dt>pdrv</dt>
-<dd>対象ã®ãƒ‡ãƒã‚¤ã‚¹ã‚’示ã™ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–番å·(0-9)ãŒæŒ‡å®šã•ã‚Œã¾ã™ã€‚</dd>
+<dd>対象ã®ãƒ‡ãƒã‚¤ã‚¹ã‚’è˜åˆ¥ã™ã‚‹ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–番å·(0-9)ãŒæŒ‡å®šã•ã‚Œã¾ã™ã€‚</dd>
<dt>buff</dt>
-<dd>ストレージ デãƒã‚¤ã‚¹ã«æ›¸ã込むセクタ データãŒæ ¼ç´ã•ã‚ŒãŸ<em>ãƒã‚¤ãƒˆé…列</em>ãŒæŒ‡å®šã•ã‚Œã¾ã™ã€‚ãƒã‚¤ãƒˆæ•°ã¯ã€ã‚»ã‚¯ã‚¿ サイズ*<tt class="arg">count</tt>ã¨ãªã‚Šã¾ã™ã€‚</dd>
+<dd>ストレージ デãƒã‚¤ã‚¹ã«æ›¸ã込むセクタ データãŒæ ¼ç´ã•ã‚ŒãŸ<em>ãƒã‚¤ãƒˆé…列</em>ãŒæŒ‡å®šã•ã‚Œã¾ã™ã€‚データã®ãƒã‚¤ãƒˆæ•°ã¯ã€ã‚»ã‚¯ã‚¿ サイズ*<tt class="arg">count</tt>ã¨ãªã‚Šã¾ã™ã€‚</dd>
<dt>sector</dt>
<dd>書ãè¾¼ã¿ã‚’開始ã™ã‚‹ã‚»ã‚¯ã‚¿ç•ªå·ã€‚32ビットLBAã§æŒ‡å®šã•ã‚Œã¾ã™ã€‚</dd>
<dt>count</dt>
-<dd>書ã込むセクタ数(1~128)。</dd>
+<dd>書ã込むセクタ数(1以上ã®å€¤)ãŒæŒ‡å®šã•ã‚Œã¾ã™ã€‚</dd>
</dl>
</div>
@@ -45,22 +45,22 @@ DRESULT disk_write ( <dt>RES_OK (0)</dt>
<dd>æ£å¸¸çµ‚了。</dd>
<dt>RES_ERROR</dt>
-<dd>書ãè¾¼ã¿ä¸ã«ã‚¨ãƒ©ãƒ¼ãŒç™ºç”Ÿã—ã€ãã®å›žå¾©ã«ã‚‚失敗ã—ãŸã€‚</dd>
+<dd>回復ä¸èƒ½ãªã‚¨ãƒ©ãƒ¼ã«ã‚ˆã‚Šã€æ›¸ãè¾¼ã¿æ“作を完了ã§ããªã‹ã£ãŸã€‚</dd>
<dt>RES_WRPRT</dt>
<dd>メディアãŒæ›¸ãè¾¼ã¿ç¦æ¢çŠ¶æ…‹ã€‚</dd>
<dt>RES_PARERR</dt>
<dd>パラメータãŒä¸æ£ã€‚</dd>
<dt>RES_NOTRDY</dt>
-<dd>デãƒã‚¤ã‚¹ãŒå‹•ä½œå¯èƒ½çŠ¶æ…‹ã§ã¯ãªã„(åˆæœŸåŒ–ã•ã‚Œã¦ã„ãªã„)。</dd>
+<dd>ストレージ デãƒã‚¤ã‚¹ãŒå‹•ä½œå¯èƒ½ãªçŠ¶æ…‹ã§ã¯ãªã„ (åˆæœŸåŒ–ã•ã‚Œã¦ã„ãªã„)。</dd>
</dl>
</div>
<div class="para desc">
<h4>解説</h4>
-<p><tt class="arg">buff</tt>ã«æŒ‡å®šã•ã‚Œã‚‹ã‚¢ãƒ‰ãƒ¬ã‚¹ã¯<em>常ã«ãƒ¯ãƒ¼ãƒ‰ アライメントã•ã‚Œã¦ã„ã‚‹ã¨ã¯é™ã‚Šã¾ã›ã‚“</em>。詳細ã¯ã€<a href="dread.html"><tt>disk_read()</tt></a>ã®è§£èª¬ã‚’å‚ç…§ã—ã¦ãã ã•ã„。</p>
+<p><tt class="arg">buff</tt>ã«æŒ‡å®šã•ã‚Œã‚‹ã‚¢ãƒ‰ãƒ¬ã‚¹ã¯<em>常ã«ãƒ¯ãƒ¼ãƒ‰ アライメントã•ã‚Œã¦ã„ã‚‹ã¨ã¯é™ã‚Šã¾ã›ã‚“</em>。ã“ã‚Œã«ã¤ã„ã¦ã¯ã€<a href="dread.html"><tt>disk_read</tt></a>関数ã®è§£èª¬ã‚’å‚ç…§ã—ã¦ãã ã•ã„。</p>
<p>一般的ã«ã€è¤‡æ•°ã‚»ã‚¯ã‚¿ã®è»¢é€è¦æ±‚ã¯ã€ãƒ‡ãƒã‚¤ã‚¹ã«å¯¾ã—ã¦å¯èƒ½ãªé™ã‚Šãƒžãƒ«ãƒ セクタ転é€ã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。複数ã®ã‚·ãƒ³ã‚°ãƒ« セクタ書ãè¾¼ã¿ã«åˆ†è§£ã•ã‚ŒãŸå ´åˆã€ã‚¹ãƒ«ãƒ¼ãƒ—ットãŒè‘—ã—ã低下ã™ã‚‹ã“ã¨ãŒã‚ã‚Šã¾ã™ã€‚</p>
-<p>FatFsã¯ãƒ‡ã‚£ã‚¹ã‚¯é–¢æ•°ãŒé…延書ãè¾¼ã¿æ©Ÿèƒ½ã‚’æŒã¤ã“ã¨ã‚‚想定ã—ã¦ã„ã¾ã™ã€‚ã“ã®é–¢æ•°ã‹ã‚‰æˆ»ã‚‹ã¨ãã€ãƒ‡ãƒã‚¤ã‚¹ãŒæ›¸ãè¾¼ã¿ä¸ã¨ã‹ã‚ャッシュã«æ›¸ãè¾¼ã¾ã‚ŒãŸã ã‘ãªã©ã€å¿…ãšã—もメディアã¸ã®æ›¸ãè¾¼ã¿ãŒå®Œäº†ã—ã¦ã„ã‚‹å¿…è¦ã¯ã‚ã‚Šã¾ã›ã‚“。ãŸã ã—ã€<tt class="arg">buff</tt>ã®ãƒ‡ãƒ¼ã‚¿ã¯ã€ã“ã®é–¢æ•°ã‹ã‚‰æˆ»ã‚‹ã¨ç„¡åŠ¹ã¨ãªã‚Šã¾ã™ã€‚書ãè¾¼ã¿å®Œäº†ã®è¦æ±‚ã¯ã€<tt><a href="dioctl.html">disk_ioctl()</a></tt>ã®<tt>CTRL_SYNC</tt>コマンドã«ã‚ˆã£ã¦è¡Œã‚ã‚Œã¾ã™ã€‚ã“ã®ã‚ˆã†ãªé…延書ãè¾¼ã¿æ©Ÿèƒ½ãŒå®Ÿè£…ã•ã‚ŒãŸå ´åˆã€ã‚¹ãƒ«ãƒ¼ãƒ—ットをã•ã‚‰ã«å‘上ã•ã›ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚</p>
+<p>FatFsã¯ãƒ‡ã‚£ã‚¹ã‚¯åˆ¶å¾¡ãƒ¬ã‚¤ãƒ¤ãŒé…延書ãè¾¼ã¿æ©Ÿèƒ½ã‚’æŒã¤ã“ã¨ã‚‚想定ã—ã¦ã„ã¾ã™ã€‚ã“ã®é–¢æ•°ã‹ã‚‰æˆ»ã‚‹ã¨ãã€ãƒ‡ãƒã‚¤ã‚¹ãŒæ›¸ãè¾¼ã¿ã‚’実行ä¸ã ã£ãŸã‚Šå˜ã«ãƒ©ã‚¤ãƒˆãƒãƒƒã‚¯ ã‚ャッシュã«æ›¸ãè¾¼ã¾ã‚ŒãŸã ã‘ãªã©ã€å¿…ãšã—もメディアã¸ã®æ›¸ãè¾¼ã¿ãŒå®Œäº†ã—ã¦ã„ã‚‹å¿…è¦ã¯ã‚ã‚Šã¾ã›ã‚“。ãŸã ã—ã€<tt class="arg">buff</tt>ã®ãƒ‡ãƒ¼ã‚¿ã¯ã€ã“ã®é–¢æ•°ã‹ã‚‰æˆ»ã‚‹ã¨ç„¡åŠ¹ã¨ãªã‚Šã¾ã™ã€‚書ãè¾¼ã¿å®Œäº†ã®è¦æ±‚ã¯ã€<a href="dioctl.html"><tt>disk_ioctl</tt></a>関数ã®<tt>CTRL_SYNC</tt>コマンドã«ã‚ˆã£ã¦è¡Œã‚ã‚Œã¾ã™ã€‚ã“ã®ã‚ˆã†ãªé…延書ãè¾¼ã¿æ©Ÿèƒ½ãŒå®Ÿè£…ã•ã‚ŒãŸå ´åˆã€æ›¸ãè¾¼ã¿ã‚¹ãƒ«ãƒ¼ãƒ—ットをå‘上ã•ã›ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚</p>
<p><em>アプリケーションã‹ã‚‰ã¯ã“ã®é–¢æ•°ã‚’呼ã³å‡ºã—ã¦ã¯ãªã‚Šã¾ã›ã‚“。ã•ã‚‚ãªã„ã¨ã€FATボリュームãŒç ´å£Šã•ã‚Œã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚</em></p>
</div>
diff --git a/fatfs/doc/ja/eof.html b/fatfs/doc/ja/eof.html index b9098b3..7b38141 100644 --- a/fatfs/doc/ja/eof.html +++ b/fatfs/doc/ja/eof.html @@ -39,7 +39,7 @@ int f_eof ( <div class="para desc">
<h4>解説</h4>
-<p>f_eof関数ã¯ã€ç¾ãƒªãƒ“ジョンã§ã¯ãƒžã‚¯ãƒã¨ã—ã¦å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã™ã€‚</p>
+<p>ã“ã®é–¢æ•°ã¯ã€ç¾ãƒªãƒ“ジョンã§ã¯ãƒžã‚¯ãƒã¨ã—ã¦å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã™ã€‚ファイル オブジェクトã®æ£å½“性ãƒã‚§ãƒƒã‚¯ã‚„排他制御ã¯è¡Œã„ã¾ã›ã‚“。</p>
<pre>
<span class="k">#define</span> f_eof(fp) ((int)((fp)->fptr == (fp)->fsize))
</pre>
diff --git a/fatfs/doc/ja/error.html b/fatfs/doc/ja/error.html index bb01d80..1979686 100644 --- a/fatfs/doc/ja/error.html +++ b/fatfs/doc/ja/error.html @@ -39,7 +39,7 @@ int f_error ( <div class="para desc">
<h4>解説</h4>
-<p>f_error関数ã¯ã€ç¾ãƒªãƒ“ジョンã§ã¯ãƒžã‚¯ãƒã¨ã—ã¦å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã™ã€‚</p>
+<p>ã“ã®é–¢æ•°ã¯ã€ç¾ãƒªãƒ“ジョンã§ã¯ãƒžã‚¯ãƒã¨ã—ã¦å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã™ã€‚ファイル オブジェクトã®æ£å½“性ãƒã‚§ãƒƒã‚¯ã‚„排他制御ã¯è¡Œã„ã¾ã›ã‚“。</p>
<pre>
<span class="k">#define</span> f_error(fp) ((fp)->err)
</pre>
diff --git a/fatfs/doc/ja/expand.html b/fatfs/doc/ja/expand.html new file mode 100644 index 0000000..98667d1 --- /dev/null +++ b/fatfs/doc/ja/expand.html @@ -0,0 +1,116 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="ja">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta http-equiv="Content-Style-Type" content="text/css">
+<link rel="up" title="FatFs" href="../00index_j.html">
+<link rel="alternate" hreflang="ja" title="English" href="../en/expand.html">
+<link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
+<title>FatFs - f_expand</title>
+</head>
+
+<body>
+
+<div class="para func">
+<h2>f_expand</h2>
+<p>ファイルã«é€£ç¶šã—ãŸãƒ‡ãƒ¼ã‚¿é ˜åŸŸã‚’割り当ã¦ã¾ã™ã€‚</p>
+
+<pre>
+FRESULT f_expand (
+ FIL* <span class="arg">fp</span>, <span class="c">/* [IN] ファイル ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆæ§‹é€ ä½“ã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
+ FSIZE_t <span class="arg">fsz</span>, <span class="c">/* [IN] 割り当ã¦ã‚µã‚¤ã‚º */</span>
+ BYTE <span class="arg">opt</span> <span class="c">/* [IN] 動作オプション */</span>
+);
+</pre>
+</div>
+
+<div class="para arg">
+<h4>Parameters</h4>
+<dl class="par">
+<dt>fp</dt>
+<dd>対象ã¨ãªã‚‹ãƒ•ã‚¡ã‚¤ãƒ« ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆæ§‹é€ ä½“ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
+<dt>fsz</dt>
+<dd>ファイルã«å‰²ã‚Šå½“ã¦ã‚‹ãƒã‚¤ãƒˆå˜ä½ã®ã‚µã‚¤ã‚ºã€‚データ型<tt>FSIZE_t</tt>ã¯ã€<tt>DWORD</tt>(32-bit)ã¾ãŸã¯<tt>QWORD</tt>(64-bit)ã®ã‚¨ãƒªã‚¢ã‚¹ã§ã€exFATサãƒãƒ¼ãƒˆã®æœ‰ç„¡ã«ã‚ˆã‚Šåˆ‡ã‚Šæ›¿ã‚ã‚Šã¾ã™ã€‚</dd>
+<dt>opt</dt>
+<dd>実際ã«å‰²ã‚Šå½“ã¦ã‚’è¡Œã†ã‹ã©ã†ã‹æŒ‡å®šã™ã‚‹ãƒ•ãƒ©ã‚°ã€‚</dd>
+</dl>
+</div>
+
+
+<div class="para ret">
+<h4>Return Values</h4>
+<p>
+<a href="rc.html#ok">FR_OK</a>,
+<a href="rc.html#de">FR_DISK_ERR</a>,
+<a href="rc.html#ie">FR_INT_ERR</a>,
+<a href="rc.html#io">FR_INVALID_OBJECT</a>,
+<a href="rc.html#dn">FR_DENIED</a>,
+<a href="rc.html#tm">FR_TIMEOUT</a>
+</p>
+</div>
+
+
+<div class="para desc">
+<h4>解説</h4>
+<p><tt class="arg">opt</tt>ã«1を指定ã™ã‚‹ã¨ã€ãƒ•ã‚¡ã‚¤ãƒ«ã«é€£ç¶šã—ãŸãƒ‡ãƒ¼ã‚¿é ˜åŸŸã‚’割り当ã¦ã¾ã™ã€‚<tt>f_lseek</tt>ã«ã‚ˆã‚‹ã‚µã‚¤ã‚ºæ‹¡å¼µã¨ã¯ç•°ãªã‚Šã€å¯¾è±¡ãƒ•ã‚¡ã‚¤ãƒ«ã®ã‚µã‚¤ã‚ºã¯0(ã¤ã¾ã‚Šãƒ‡ãƒ¼ã‚¿é ˜åŸŸæœªå‰²ã‚Šå½“ã¦)ã§ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。ã¾ãŸã€ãƒªãƒ¼ãƒ‰/ライト ãƒã‚¤ãƒ³ã‚¿ã¯ã€ãƒ•ã‚¡ã‚¤ãƒ«å…ˆé ã«ç•™ã¾ã‚Šã¾ã™ã€‚ã“ã®é–¢æ•°ã«ã‚ˆã‚Šå‰²ã‚Šå½“ã¦ã‚‰ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ«ã®å†…容ã¯æœªå®šç¾©ãªã®ã§ã€ãã‚Œã«å¯¾ã—ã¦ä½•ã®å‰æã‚‚æŒã¤ã¹ãã§ã¯ã‚ã‚Šã¾ã›ã‚“。ã“ã®é–¢æ•°ã¯ã€æ¬¡ã®ç†ç”±ã«ã‚ˆã‚Š<tt>FR_DENIED</tt>ã§å¤±æ•—ã™ã‚‹ã“ã¨ãŒã‚ã‚Šã¾ã™ã€‚</p>
+<ul>
+<li>ボリューム上ã«é€£ç¶šã—ãŸç©ºãé ˜åŸŸãŒè¦‹ã¤ã‹ã‚‰ãªã‹ã£ãŸã€‚</li>
+<li>ファイルã®ã‚µã‚¤ã‚ºãŒ0ã§ã¯ãªã‹ã£ãŸã€‚</li>
+<li>ファイルãŒéžæ›¸ãè¾¼ã¿ãƒ¢ãƒ¼ãƒ‰ã§é–‹ã‹ã‚Œã¦ã„る。</li>
+<li>指定ã•ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ« サイズãŒç„¡åŠ¹ã€‚(FATボリューム上㧠>=4GiB)</li>
+</ul>
+<p><tt class="arg">opt</tt>ã«0を指定ã—ãŸã¨ãã¯ã€é€£ç¶šã—ãŸãƒ‡ãƒ¼ã‚¿é ˜åŸŸã‚’探ã™ã®ã¿ã§ã€ãã®æ™‚点ã§ã¯ãƒ•ã‚¡ã‚¤ãƒ«ã¸ã®å‰²ã‚Šå½“ã¦ã‚’è¡Œã‚ãšã€ä»£ã‚ã‚Šã«ãれを検索開始ãƒã‚¤ãƒ³ãƒˆã¨ã—ã¦ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトã«ã‚»ãƒƒãƒˆã—ã¾ã™ã€‚ã“ã‚Œã«ã‚ˆã‚Šã€ãã®ãƒœãƒªãƒ¥ãƒ¼ãƒ 上ã§åˆ¥ã®æ“作(FAT変更を伴ã†)ãŒè¡Œã‚ã‚Œãªã„é™ã‚Šã€æ›¸ãè¾¼ã¾ã‚Œã‚‹ãƒ•ã‚¡ã‚¤ãƒ«ã¯å°‘ãªãã¨ã‚‚ãã®ã‚µã‚¤ã‚ºã¾ã§ã¯é€£ç¶šæ€§ãŒä¿è¨¼ã•ã‚Œã€é…延無ã書ãè¾¼ã‚ã‚‹ã“ã¨ã«ãªã‚Šã¾ã™ã€‚</p>
+<p>時間的制約ã®ã‚るファイルèªã¿æ›¸ãæ“作ã«ãŠã„ã¦ã€é€£ç¶šãƒ‡ãƒ¼ã‚¿é ˜åŸŸã‚’割り当ã¦ã‚‰ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ«ã¯æœ‰åˆ©ã¨ãªã‚Šã¾ã™ã€‚ã“ã‚Œã¯ã€åˆ†å‰²ã•ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ«ã«ã‚ˆã‚Šã‚‚ãŸã‚‰ã•ã‚Œã‚‹ç„¡ç”¨ãªãƒ©ãƒ³ãƒ€ãƒ アクセスãŒæ¸›ã‚‹ã“ã¨ã«ã‚ˆã‚Šã€ãƒ•ã‚¡ã‚¤ãƒ« システムやストレージ デãƒã‚¤ã‚¹ã®å‡¦ç†ã®ã‚ªãƒ¼ãƒãƒ¼ãƒ˜ãƒƒãƒ‰ãŒå‰Šæ¸›ã•ã‚Œã‚‹ã‹ã‚‰ã§ã™ã€‚特ã«exFATボリューム上ã®é€£ç¶šãƒ•ã‚¡ã‚¤ãƒ«ã§ã¯ä¸€åˆ‡ã®FATアクセスãŒç™ºç”Ÿã›ãšã€åŠ¹çŽ‡çš„ãªã‚·ãƒ¼ã‚±ãƒ³ã‚·ãƒ£ãƒ« アクセスãŒè¡Œãˆã¾ã™ã€‚</p>
+<p>連続ファイルã«å¯¾ã—ã¦ä½Žãƒ¬ãƒ™ãƒ«I/Oを使用ã—ãŸã•ã‚‰ã«åŠ¹çŽ‡çš„ãªç›´æŽ¥ã‚¢ã‚¯ã‚»ã‚¹ã‚‚容易ã«è¡Œãˆã¾ã™ãŒã€ã“ã‚Œã¯å°†æ¥ã®äº’æ›æ€§ã®ç‚¹ã§æŽ¨å¥¨ã¯ã•ã‚Œã¾ã›ã‚“。</p>
+</div>
+
+<div class="para comp">
+<h4>å¯¾å¿œæƒ…å ±</h4>
+<p><tt>_USE_EXPAND == 1</tt>ã§ã€ã‹ã¤<tt>_FS_READONLY == 0</tt>ã®ã¨ã使用å¯èƒ½ã§ã™ã€‚</p>
+</div>
+
+
+<div class="para use">
+<h4>使用例</h4>
+<pre>
+ <span class="c">/* 連続ファイルã®ä½œæˆ */</span>
+
+ <span class="c">/* æ–°ã—ã„ファイルã®ä½œæˆ */</span>
+ res = f_open(fp = malloc(sizeof (FIL)), "file.dat", FA_WRITE|FA_CREATE_ALWAYS);
+ if (res) { <span class="c">/* ファイルãŒé–‹ã‹ã‚ŒãŸã‹ãƒã‚§ãƒƒã‚¯ */</span>
+ free(fp);
+ ...
+ }
+
+ <span class="c">/* 100 MiB ã®é€£ç¶šé ˜åŸŸã‚’割り当ã¦ã‚‹ */</span>
+ res = f_expand(fp, 104857600, 1);
+ if (res) { <span class="c">/* 割り当ã¦ã‚‰ã‚ŒãŸã‹ãƒã‚§ãƒƒã‚¯ */</span>
+ ...
+ free(fp);
+ ...
+ }
+ <span class="c">/* 連続ファイル作æˆæˆåŠŸ fp ã§ã‚¢ã‚¯ã‚»ã‚¹å¯èƒ½ */</span>
+
+</pre>
+<pre>
+ <span class="c">/* ファイル システムを介ã•ãšç›´æŽ¥ã‚¢ã‚¯ã‚»ã‚¹ã™ã‚‹ä¾‹ */</span>
+
+ <span class="c">/* ファイル データã®ç‰©ç†çš„ä½ç½®ã‚’å–å¾— */</span>
+ drv = fp->obj.fs->drv;
+ sect = fp->obj.fs->database + fp->obj.fs->csize * (fp->obj.sclust - 2);
+
+ <span class="c">/* ファイル先é ã‹ã‚‰2048セクタを書ã込㿠*/</span>
+ res = disk_write(drv, buffer, sect, 2048);
+
+</pre>
+</div>
+
+
+<div class="para ref">
+<h4>å‚ç…§</h4>
+<p><tt><a href="open.html">f_open</a>, <a href="lseek.html">f_lseek</a>, <a href="sfile.html">FIL</a></tt></p>
+</div>
+
+<p class="foot"><a href="../00index_j.html">戻る</a></p>
+</body>
+</html>
diff --git a/fatfs/doc/ja/fattime.html b/fatfs/doc/ja/fattime.html index c8bbed7..ef694ca 100644 --- a/fatfs/doc/ja/fattime.html +++ b/fatfs/doc/ja/fattime.html @@ -48,7 +48,7 @@ DWORD get_fattime (void); <div class="para comp">
<h4>å¯¾å¿œæƒ…å ±</h4>
-<p>リード オンリー構æˆ(<tt>_FS_READONLY == 1</tt>)ã§ã¯ã“ã®é–¢æ•°ã¯å¿…è¦ã¨ã•ã‚Œã¾ã›ã‚“。</p>
+<p>リード オンリー構æˆ(<tt>_FS_READONLY == 1</tt>)ã¾ãŸã¯ã€éžRTCサãƒãƒ¼ãƒˆæ§‹æˆ(<tt>_RTC_NOUSE == 1</tt>)ã§ã¯ã“ã®é–¢æ•°ã¯å¿…è¦ã¨ã•ã‚Œã¾ã›ã‚“。</p>
</div>
diff --git a/fatfs/doc/ja/fdisk.html b/fatfs/doc/ja/fdisk.html index 53b6cbb..2598f7e 100644 --- a/fatfs/doc/ja/fdisk.html +++ b/fatfs/doc/ja/fdisk.html @@ -16,9 +16,9 @@ <p>物ç†ãƒ‰ãƒ©ã‚¤ãƒ–を分割ã—ã¾ã™ã€‚</p>
<pre>
FRESULT f_fdisk (
- BYTE <span class="arg">pdrv</span>, <span class="c">/* [IN] 物ç†ãƒ‰ãƒ©ã‚¤ãƒ–ç•ªå· */</span>
- const DWORD <span class="arg">part[]</span>, <span class="c">/* [IN] 区画マップ テーブル */</span>
- void* <span class="arg">work</span> <span class="c">/* [-] ワークエリア */</span>
+ BYTE <span class="arg">pdrv</span>, <span class="c">/* [IN] 物ç†ãƒ‰ãƒ©ã‚¤ãƒ–ç•ªå· */</span>
+ const DWORD* <span class="arg">szt</span>, <span class="c">/* [IN] 区画サイズ テーブル */</span>
+ void* <span class="arg">work</span> <span class="c">/* [-] ワークエリア */</span>
);
</pre>
</div>
@@ -27,9 +27,9 @@ FRESULT f_fdisk ( <h4>引数</h4>
<dl class="par">
<dt>pdrv</dt>
-<dd>分割ã™ã‚‹<em>物ç†ãƒ‰ãƒ©ã‚¤ãƒ–</em>ã®ãƒ‰ãƒ©ã‚¤ãƒ–番å·ã‚’指定ã—ã¾ã™ã€‚</dd>
-<dt>part[]</dt>
-<dd>区画マップ テーブルã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
+<dd>分割ã™ã‚‹<em>物ç†ãƒ‰ãƒ©ã‚¤ãƒ–</em>を指定ã—ã¾ã™ã€‚ã“ã‚Œã¯è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–番å·ã§ã¯ãªãã€ãƒ‡ã‚£ã‚¹ã‚¯é–¢æ•°ã«æ¸¡ã•ã‚Œã‚‹ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–番å·ã§ã™ã€‚</dd>
+<dt>szt</dt>
+<dd>区画サイズ テーブルã®å…ˆé é …ç›®ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
<dt>work</dt>
<dd>ワークエリアã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚サイズã¯<tt>_MAX_SS</tt>ãƒã‚¤ãƒˆå¿…è¦ã§ã™ã€‚</dd>
</dl>
@@ -48,7 +48,7 @@ FRESULT f_fdisk ( <div class="para desc">
<h4>説明</h4>
-<p>ã“ã®é–¢æ•°ã¯ã€æŒ‡å®šã•ã‚ŒãŸç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®MBRã«åŒºç”»ãƒ†ãƒ¼ãƒ–ルを作æˆã—ã¾ã™ã€‚区画分ã‘ã¯ä¸€èˆ¬çš„ãªFDISKå½¢å¼ã§è¡Œã†ãŸã‚ã€æœ€å¤§4ã¤ã®åŸºæœ¬åŒºç”»ã‚’作æˆã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚拡張区画ã«ã¯å¯¾å¿œã—ã¦ã„ã¾ã›ã‚“。区画マップテーブル<tt class="arg">part[]</tt>ã«ã¯ãƒ‰ãƒ©ã‚¤ãƒ–ã‚’ã©ã®ã‚ˆã†ã«åˆ†å‰²ã™ã‚‹ã‹æŒ‡å®šã—ã¦æ¸¡ã—ã¾ã™ã€‚ã“ã®é…列ã¯4ã¤ã®é …ç›®ã‹ã‚‰æˆã‚Šã€å…ˆé ã®é …ç›®ãŒ1番目ã®ã€æœ€å¾Œã®é …ç›®ãŒ4番目ã®åŒºç”»ã®ã‚µã‚¤ã‚ºã‚’示ã—ã¾ã™ã€‚値ãŒ100以下ã®å ´åˆã€ãƒ‰ãƒ©ã‚¤ãƒ–ã®ç·å®¹é‡ã«å¯¾ã™ã‚‹å‰²åˆã‚’パーセントå˜ä½ã§æŒ‡å®šã—ã¾ã™ã€‚100を超ãˆã‚‹å€¤ã®å ´åˆã¯ã‚»ã‚¯ã‚¿æ•°ã®ç›´æŽ¥æŒ‡å®šã«ãªã‚Šã¾ã™ã€‚</p>
+<p>ã“ã®é–¢æ•°ã¯ã€æŒ‡å®šã•ã‚ŒãŸç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®MBRã«åŒºç”»ãƒ†ãƒ¼ãƒ–ルを作æˆã—ã¾ã™ã€‚区画分ã‘ã¯ä¸€èˆ¬çš„ãªFDISKå½¢å¼ã§è¡Œã†ãŸã‚ã€æœ€å¤§4ã¤ã®åŸºæœ¬åŒºç”»ã‚’作æˆã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚拡張区画ã«ã¯å¯¾å¿œã—ã¦ã„ã¾ã›ã‚“。区画サイズ テーブルã«ã¯ãƒ‰ãƒ©ã‚¤ãƒ–ã‚’ã©ã®ã‚ˆã†ã«åˆ†å‰²ã™ã‚‹ã‹æŒ‡å®šã—ã¾ã™ã€‚ã“ã®é…列ã¯4ã¤ã®é …ç›®ã‹ã‚‰æˆã‚Šã€å…ˆé ã®é …ç›®ãŒ1番目ã®åŒºç”»ã®ã‚µã‚¤ã‚ºã‚’示ã—ã¾ã™ã€‚é …ç›®ã®å€¤ãŒ100以下ã®å ´åˆã€ãã®åŒºç”»ã®ãƒ‰ãƒ©ã‚¤ãƒ–ã®ç·å®¹é‡ã«å¯¾ã™ã‚‹å‰²åˆã‚’パーセントå˜ä½ã§æŒ‡å®šã—ã¾ã™ã€‚100を超ãˆã‚‹å€¤ã®å ´åˆã¯ã‚»ã‚¯ã‚¿æ•°ã®ç›´æŽ¥æŒ‡å®šã«ãªã‚Šã¾ã™ã€‚ドライブ上ã¸ã®åŒºç”»ã®é…ç½®é †ã¯ã€é …ç›®é †ã«ãªã‚Šã¾ã™ã€‚</p>
</div>
<div class="para comp">
@@ -71,27 +71,22 @@ FRESULT f_fdisk ( <span class="c">/* æ–°ã—ã„物ç†ãƒ‰ãƒ©ã‚¤ãƒ–(0)ã®åˆæœŸåŒ– */</span>
FATFS fs;
- DWORD plist[] = {50, 50, 0, 0}; <span class="c">/* 2分割 */</span>
+ DWORD plist[] = {50, 50, 0, 0}; <span class="c">/* 第1区画,第2区画ãã‚Œãžã‚Œã«50%ãšã¤å‰²ã‚Šå½“㦠*/</span>
BYTE work[_MAX_SS];
- f_fdisk(0, plist, work); <span class="c">/* 物ç†ãƒ‰ãƒ©ã‚¤ãƒ– 0 ã®åˆ†å‰² */</span>
+ f_fdisk(0, plist, work); <span class="c">/* 物ç†ãƒ‰ãƒ©ã‚¤ãƒ– 0 ã®åˆ†å‰² */</span>
- f_mount(&fs "0:", 0);
- f_mkfs("0:", 0, 0); <span class="c">/* è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ– 0 ã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆ. 第二引数ã¯ç„¡è¦–ã•ã‚Œã‚‹. */</span>
- f_mount(0, "0:", 0);
-
- f_mount(&fs, "1:", 0);
- f_mkfs("1:", 0, 0); <span class="c">/* è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ– 0 ã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆ. 第二引数ã¯ç„¡è¦–ã•ã‚Œã‚‹. */</span>
- f_mount(0, "1:", 0);
+ f_mkfs("0:", FMT_ANY, work, sizeof work); <span class="c">/* è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ– 0: ã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆ */</span>
+ f_mkfs("1:", FMT_ANY, work, sizeof work); <span class="c">/* è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ– 1: ã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆ */</span>
</pre>
</div>
<div class="para ref">
-<h4>See Also</h4>
-<p><tt><a href="filename.html#vol">Volume management</a>, <a href="mkfs.html">f_mkfs</a></tt></p>
+<h4>å‚ç…§</h4>
+<p><tt><a href="filename.html#vol">ボリューム管ç†</a>, <a href="mkfs.html">f_mkfs</a></tt></p>
</div>
-<p class="foot"><a href="../00index_j.html">Return</a></p>
+<p class="foot"><a href="../00index_j.html">戻る</a></p>
</body>
</html>
diff --git a/fatfs/doc/ja/filename.html b/fatfs/doc/ja/filename.html index 524566c..5f38eaa 100644 --- a/fatfs/doc/ja/filename.html +++ b/fatfs/doc/ja/filename.html @@ -11,16 +11,16 @@ <body>
<h1>パスåã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆ</h1>
-<div class="para" id="nam">
+<div class="para doc" id="nam">
<h3>ファイル ディレクトリå</h3>
-<p>FatFsモジュールã§ã®ãƒ•ã‚¡ã‚¤ãƒ«ã€ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã€ãƒ‰ãƒ©ã‚¤ãƒ–ã®æŒ‡å®šæ–¹æ³•ã¯DOS/Windows APIã¨ã»ã¼åŒã˜ã§ã™ã€‚パスåã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆã¯æ¬¡ã®é€šã‚Šã§ã™ã€‚</p>
+<p>FatFsモジュールã§ã¯ã€ãƒ‘スåã«ã‚ˆã‚‹ãƒ•ã‚¡ã‚¤ãƒ«ã€ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã€ãƒ‰ãƒ©ã‚¤ãƒ–ã®æŒ‡å®šæ–¹æ³•ã¯DOS/Windows APIã¨ã»ã¼åŒã˜ã§ã™ã€‚パスåã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆã¯æ¬¡ã®é€šã‚Šã§ã™ã€‚</p>
<pre>"[è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–番å·:][/]ディレクトリå/ファイルå"</pre>
-<p>FatFsモジュールã¯é•·ã„ファイルå(LFN)ãŠã‚ˆã³8.3å½¢å¼ãƒ•ã‚¡ã‚¤ãƒ«å(SFN)ã«å¯¾å¿œã—ã¦ã„ã¾ã™ã€‚LFNã¯ã€(<tt>_USE_LFN > 0</tt>)ã®ã¨ã使用å¯èƒ½ã«ãªã‚Šã¾ã™ã€‚ディレクトリ セパレータã«ã¯DOS/Windows APIã¨åŒã˜ã<tt>'/'</tt>ã¨<tt>'\'</tt>を使用ã—ã¾ã™ã€‚連続ã—ãŸã‚»ãƒ‘レータã¯ç„¡è¦–ã•ã‚Œ1個ã¨ã—ã¦æ‰±ã‚ã‚Œã¾ã™ã€‚唯一ã®é•ã„ã¯ã€è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®æŒ‡å®šã ã‘ã§ã™ã€‚è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–番å·ã¯ã€<tt>'0'</tt>~<tt>'9'</tt>ã®ä¸€æ–‡å—ã®æ•°å—ã¨ã‚³ãƒãƒ³ã§æŒ‡å®šã—ã€çœç•¥ã—ãŸå ´åˆã¯<em>デフォルト ドライブ</em>(0ã¾ãŸã¯ã‚«ãƒ¬ãƒ³ãƒˆ ドライブ)ãŒé¸æŠžã•ã‚Œã¾ã™ã€‚</p>
+<p>FatFsモジュールã¯é•·ã„ファイルå(LFN)ãŠã‚ˆã³8.3å½¢å¼ãƒ•ã‚¡ã‚¤ãƒ«å(SFN)ã«å¯¾å¿œã—ã¦ã„ã¾ã™ã€‚LFNã¯ã€(<tt><a href="config.html#use_lfn">_USE_LFN</a> > 0</tt>)ã®ã¨ã使用å¯èƒ½ã«ãªã‚Šã¾ã™ã€‚ディレクトリ セパレータã«ã¯DOS/Windows APIã¨åŒã˜ã<tt>'/'</tt>ã¨<tt>'\'</tt>を使用ã—ã¾ã™ã€‚連続ã—ãŸã‚»ãƒ‘レータã¯ç„¡è¦–ã•ã‚Œ1個ã¨ã—ã¦æ‰±ã‚ã‚Œã¾ã™ã€‚唯一ã®é•ã„ã¯ã€è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®æŒ‡å®šã ã‘ã§ã™ã€‚è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–番å·ã¯ã€<tt>'0'</tt>~<tt>'9'</tt>ã®ä¸€æ–‡å—ã®æ•°å—ã¨ã‚³ãƒãƒ³ã§æŒ‡å®šã—ã€çœç•¥ã—ãŸå ´åˆã¯<em>デフォルト ドライブ</em>(0ã¾ãŸã¯ã‚«ãƒ¬ãƒ³ãƒˆ ドライブ)ãŒé¸æŠžã•ã‚Œã¾ã™ã€‚</p>
<p>ヌル文å—や制御文å—(<tt>'\0'</tt>~<tt>'\x1F'</tt>)ã¯ã€ãƒ‘スåã®çµ‚端ã¨ã—ã¦èªè˜ã•ã‚Œã¾ã™ã€‚パスåã«å…ˆè¡Œã‚ã‚‹ã„ã¯ä¸ã«å«ã¾ã‚Œã‚‹ã‚¹ãƒšãƒ¼ã‚¹ã¯ã€LFN構æˆã§ã¯åå‰ã®ä¸€éƒ¨ã¨ã—ã¦æœ‰åŠ¹ã§ã™ãŒã€éžLFN構æˆã§ã¯ã‚¹ãƒšãƒ¼ã‚¹ã¯ãƒ‘スåã®çµ‚端ã¨ã—ã¦èªè˜ã•ã‚Œã¾ã™ã€‚</p>
-<p>標準構æˆ(<tt>_FS_RPATH == 0</tt>)ã®ã¨ãã¯ã€å…¨ã¦ã®ã‚ªãƒ–ジェクトãŒãƒ«ãƒ¼ãƒˆ ディレクトリã‹ã‚‰è¾¿ã‚‹çµ¶å¯¾ãƒ‘スã§æŒ‡å®šã•ã‚Œã¾ã™ã€‚OS指å‘ãªã‚«ãƒ¬ãƒ³ãƒˆ ディレクトリã¨ã„ã†æ¦‚念ã¯ç„¡ãã€ã¾ãŸãƒ‰ãƒƒãƒˆ ディレクトリ("."ã‚„"..")ã¯ä½¿ç”¨ã§ãã¾ã›ã‚“。パスåå…ˆé ã®ã‚»ãƒ‘レータã¯ç„¡è¦–ã•ã‚Œã¾ã™ã€‚デフォルト ドライブ番å·ã¯å¸¸ã«0ã«ãªã‚Šã¾ã™ã€‚</p>
-<p>相対パスを有効(<tt>_FS_RPATH == 1</tt>)ã«ã—ãŸã¨ãã¯ã€å…ˆè¡Œã™ã‚‹ã‚»ãƒ‘レータã®æœ‰ç„¡ã«ã‚ˆã£ã¦æ¤œç´¢é–‹å§‹ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªãŒå¤‰ã‚ã‚Šã€ã‚»ãƒ‘レータãŒã‚ã‚‹å ´åˆã¯ãƒ«ãƒ¼ãƒˆ ディレクトリã‹ã‚‰ã€ç„¡ã„å ´åˆã¯<a href="chdir.html"><tt>f_chdir()</tt></a>ã§è¨å®šã•ã‚Œã‚‹ã‚«ãƒ¬ãƒ³ãƒˆ ディレクトリã‹ã‚‰ã«ãªã‚Šã¾ã™ã€‚ã¾ãŸãƒ‘スåã«ãƒ‰ãƒƒãƒˆ ディレクトリãŒä½¿ç”¨ã§ãã¾ã™ã€‚デフォルト ドライブ番å·ã¯<a href="chdrive.html"><tt>f_chdrive()</tt></a>ã§è¨å®šã•ã‚ŒãŸå€¤ã¨ãªã‚Šã¾ã™ã€‚</p>
+<p>標準構æˆ(<tt><a href="config.html#fs_rpath">_FS_RPATH</a> == 0</tt>)ã®ã¨ãã¯ã€å…¨ã¦ã®ã‚ªãƒ–ジェクトãŒãƒ«ãƒ¼ãƒˆ ディレクトリã‹ã‚‰è¾¿ã‚‹çµ¶å¯¾ãƒ‘スã§æŒ‡å®šã•ã‚Œã¾ã™ã€‚OS指å‘ãªã‚«ãƒ¬ãƒ³ãƒˆ ディレクトリã¨ã„ã†æ¦‚念ã¯ç„¡ãã€ã¾ãŸãƒ‰ãƒƒãƒˆ ディレクトリ(<tt>"."</tt>ã‚„<tt>".."</tt>)ã¯ä½¿ç”¨ã§ãã¾ã›ã‚“。パスåå…ˆé ã®ã‚»ãƒ‘レータã¯ç„¡è¦–ã•ã‚Œã¾ã™ã€‚デフォルト ドライブ番å·ã¯å¸¸ã«0ã«ãªã‚Šã¾ã™ã€‚</p>
+<p>相対パスを有効(<tt>_FS_RPATH >= 1</tt>)ã«ã—ãŸã¨ãã¯ã€å…ˆè¡Œã™ã‚‹ã‚»ãƒ‘レータã®æœ‰ç„¡ã«ã‚ˆã£ã¦æ¤œç´¢é–‹å§‹ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªãŒå¤‰ã‚ã‚Šã€ã‚»ãƒ‘レータãŒã‚ã‚‹å ´åˆã¯ãƒ«ãƒ¼ãƒˆ ディレクトリã‹ã‚‰ã€ç„¡ã„å ´åˆã¯<a href="chdir.html"><tt>f_chdir</tt></a>関数ã§è¨å®šã•ã‚Œã‚‹ã‚«ãƒ¬ãƒ³ãƒˆ ディレクトリã‹ã‚‰ã«ãªã‚Šã¾ã™ã€‚ã¾ãŸãƒ‘スåã«ãƒ‰ãƒƒãƒˆ ディレクトリãŒä½¿ç”¨ã§ãã¾ã™ã€‚デフォルト ドライブ番å·ã¯<a href="chdrive.html"><tt>f_chdrive</tt></a>関数ã§è¨å®šã•ã‚ŒãŸå€¤ã¨ãªã‚Šã¾ã™ã€‚</p>
<table class="lst2">
-<tr><td>パスåã®ä¾‹</td><td>_FS_RPATH == 0</td><td>_FS_RPATH == 1</td></tr>
+<tr><td>パスåã®ä¾‹</td><td>_FS_RPATH == 0</td><td>_FS_RPATH >= 1</td></tr>
<tr class="lst3"><td>file.txt</td><td>ドライブ0ã®ãƒ«ãƒ¼ãƒˆ ディレクトリ下ã®ãƒ•ã‚¡ã‚¤ãƒ«</td><td>カレント ドライブã®ã‚«ãƒ¬ãƒ³ãƒˆ ディレクトリ下ã®ãƒ•ã‚¡ã‚¤ãƒ«</td></tr>
<tr><td>/file.txt</td><td>ドライブ0ã®ãƒ«ãƒ¼ãƒˆ ディレクトリ下ã®ãƒ•ã‚¡ã‚¤ãƒ«</td><td>カレント ドライブã®ãƒ«ãƒ¼ãƒˆ ディレクトリ下ã®ãƒ•ã‚¡ã‚¤ãƒ«</td></tr>
<tr><td></td><td>ドライブ0ã®ãƒ«ãƒ¼ãƒˆ ディレクトリ</td><td>カレント ドライブã®ã‚«ãƒ¬ãƒ³ãƒˆ ディレクトリ</td></tr>
@@ -33,13 +33,20 @@ <tr><td>dir1/..</td><td>無効</td><td>カレント ディレクトリ</td></tr>
<tr><td>/..</td><td>無効</td><td>ルート ディレクトリ(ãã®ä¸Šã¯è¾¿ã‚Œãªã„)</td></tr>
</table>
-<p>ã¾ãŸã€<tt>_STR_VOLUME_ID</tt>オプションを有効ã«ã™ã‚‹ã“ã¨ã§ãƒ‰ãƒ©ã‚¤ãƒ–番å·ã®è˜åˆ¥ã«ã¯æ•°å—ã®ã»ã‹ã€<tt>"sd:file1.txt"</tt>ã‚„<tt>"ram:swapfile.dat"</tt>ã®ã‚ˆã†ã«ã€ä»»æ„ã®æ–‡å—列を使用ã™ã‚‹ã“ã¨ã‚‚å¯èƒ½ã«ãªã‚Šã¾ã™ã€‚</p>
+<p>ã¾ãŸã€<tt><a href="config.html#str_volume_id">_STR_VOLUME_ID</a></tt>オプションを有効ã«ã™ã‚‹ã“ã¨ã§ãƒ‰ãƒ©ã‚¤ãƒ–番å·ã®è˜åˆ¥ã«ã¯æ•°å—ã®ã»ã‹ã€<tt>"sd:file1.txt"</tt>ã‚„<tt>"ram:swapfile.dat"</tt>ã®ã‚ˆã†ã«ã€ä»»æ„ã®æ–‡å—列(ã‚‚ã¡ã‚ã‚“DOS/Windowsライクãªãƒ‰ãƒ©ã‚¤ãƒ–æ–‡å—ã‚‚)を使用ã™ã‚‹ã“ã¨ã‚‚å¯èƒ½ã«ãªã‚Šã¾ã™ã€‚</p>
+<p><em>ã€æ³¨æ„】ç¾ãƒªãƒ“ジョン(R0.12)ã§ã¯ã€exFATボリューム上ã«ãŠã„ã¦ãƒ€ãƒ–ル ドット<tt>".."</tt>ã¯ã‚·ãƒ³ã‚°ãƒ« ドット<tt>"."</tt>ã¨ã—ã¦æ©Ÿèƒ½ã—ã€è¦ªãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’辿るã“ã¨ã¯ã§ãã¾ã›ã‚“。</em></p>
</div>
-<p><br></p>
-<div class="para" id="uni">
+<div class="para doc" id="case">
+<h3>使用å¯èƒ½ãªæ–‡å—ã¨å¤§æ–‡å—å°æ–‡å—ã®è˜åˆ¥</h3>
+<p>FATファイル システムã§ãƒ•ã‚¡ã‚¤ãƒ«åã«ä½¿ç”¨å¯èƒ½ãªæ–‡å—ã¯ã€<tt>0~9 A~Z ! # $ % & ' ( ) - @ ^ _ ` { } ~</tt>ãŠã‚ˆã³æ‹¡å¼µæ–‡å—(<tt>\x80</tt>~<tt>\xFF</tt>)ã¨ãªã£ã¦ã„ã¾ã™ã€‚LFNæ‹¡å¼µã§ã¯ã“れらã«åŠ ãˆã€<tt>+ , ; = [ ]</tt>ãŠã‚ˆã³ã‚¹ãƒšãƒ¼ã‚¹ãŒä½¿ç”¨å¯èƒ½ã«ãªã‚Šã€ã‚¹ãƒšãƒ¼ã‚¹ã¨ãƒ”リオドã¯ãƒ•ã‚¡ã‚¤ãƒ«åã®æœ«å°¾ã‚’除ãä»»æ„ã®ä½ç½®ã«æŒ¿å…¥ã§ãã¾ã™ã€‚</p>
+<p>FATファイル システムã§ã¯ã€ãƒ‘スåã«ã¤ã„ã¦ã‚±ãƒ¼ã‚¹ インセンシティブã§ã™ã€‚ãŸã¨ãˆã°ã€<tt>file.txt, File.Txt, FILE.TXT</tt>ã®3ã¤ã®åå‰ã¯åŒã˜ç‰©ã¨ã—ã¦æ‰±ã‚ã‚Œã¾ã™ã€‚ã“ã‚Œã¯ã€ASCIIæ–‡å—ã ã‘ã§ãªã拡張文å—ã«ã¤ã„ã¦ã‚‚é©ç”¨ã•ã‚Œã¾ã™ã€‚ファイルãŒä½œæˆã•ã‚Œã‚‹éš›ã€SFNエントリã«ã¯å…¨ã¦å¤§æ–‡å—ã«å¤‰æ›ã•ã‚ŒãŸåå‰ãŒè¨˜éŒ²ã•ã‚Œã¾ã™ã€‚LFN対応システムã§ã¯ã€LFNエントリã«ã¯å¤§æ–‡å—変æ›ã•ã‚Œãªã„åå‰ãŒè¨˜éŒ²ã•ã‚Œã¾ã™ã€‚</p>
+<p>å¤ã„日本語MS-DOSã§ã¯æ‹¡å¼µæ–‡å—(ã„ã‚ゆる全角文å—)ã«ã¤ã„ã¦ã¯ã‚±ãƒ¼ã‚¹ センシティブã§ã—ãŸã€‚FatFsモジュールã§ã¯ã“ã‚Œã«ã—ãŸãŒã„ã€éžLFN構æˆã§æ–‡å—コードã«DBCSãŒé¸æŠžã•ã‚ŒãŸã¨ãã«é™ã‚Šã€æ‹¡å¼µæ–‡å—ã«å¯¾ã—ã¦å¤§æ–‡å—変æ›ã‚’è¡Œã‚ãšã«SFNエントリã«è¨˜éŒ²ãŠã‚ˆã³æ¤œç´¢ã•ã‚Œã¾ã™(日本語MSDOS仕様)。LFN構æˆã§ã¯æ‹¡å¼µæ–‡å—ã«ã¤ã„ã¦ã‚‚大文å—変æ›ã‚’è¡Œã„ã¾ã™(WindowsNT仕様)。ã“ã®ãŸã‚ã€éžLFN構æˆã§å…¨è§’å°æ–‡å—ã‚’å«ã‚€åå‰ã§ãƒ•ã‚¡ã‚¤ãƒ«ã‚’作æˆã™ã‚‹ã¨ã€Windowsã§ãã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’é–‹ã‘ãªããªã‚‹ãªã©ã®äº’æ›æ€§å•é¡Œã‚’èµ·ã“ã™ã®ã§ã€ãれらã®ã‚·ã‚¹ãƒ†ãƒ ã§ç›¸äº’利用ã™ã‚‹ãƒœãƒªãƒ¥ãƒ¼ãƒ 上ã§ã¯DBCS拡張文å—ã®ä½¿ç”¨ã¯é¿ã‘ã‚‹ã¹ãã§ã™ã€‚</p>
+</div>
+
+<div class="para doc" id="uni">
<h3>Unicode API</h3>
-<p>ファイル関数ã®å…¥å‡ºåŠ›ã®ã†ã¡ãƒ•ã‚¡ã‚¤ãƒ«åやパスåを指定ã™ã‚‹å¼•æ•°ã®åž‹ã¯ã€<tt>TCHAR</tt>ã§å®šç¾©ã•ã‚Œã¦ã„ã¾ã™ãŒã€ã“ã‚Œã¯é€šå¸¸ã¯<tt>char</tt>ã®ã‚¨ãƒªã‚¢ã‚¹ã«ãªã£ã¦ã„ã¾ã™ã€‚ãã—ã¦ã€<tt>_CODE_PAGE</tt>ã§æŒ‡å®šã•ã‚Œã‚‹ANSI/OEMコード(SBCSã¾ãŸã¯DBCS)ã®æ–‡å—列ã¨ã—ã¦æ‰±ã‚ã‚Œã¾ã™ã€‚ファイルå入出力をUnicodeã¨ã™ã‚‹æ§‹æˆ(<tt>_LFN_UNICODE == 1</tt>)ã«ã—ãŸã¨ãã¯ã€<tt>TCHAR</tt>ã¯ãƒ¯ã‚¤ãƒ‰æ–‡å—(<tt>WCHAR, unsigned short</tt>)ã«åˆ‡ã‚Šæ›¿ã‚ã‚Šã€ãƒ‘スåã®å…¥å‡ºåŠ›ã«Unicodeを使用ã™ã‚‹ã‚ˆã†ã«ãªã‚Šã¾ã™ã€‚ã“ã‚Œã«ã‚ˆã‚ŠLFNè¦æ ¼ã«å®Œå…¨å¯¾å¿œã¨ãªã‚Šã€ANSI/OEMコードã«ãªã„æ–‡å—(ãŸã¨ãˆã° âœâ˜ªâœ¡â˜¸â˜ãªã©)も使用ã§ãã¾ã™ã€‚ã“ã®è¨å®šã¯æ–‡å—列入出力関数ã®ãƒ‡ãƒ¼ã‚¿åž‹ã¨ãƒ•ã‚¡ã‚¤ãƒ«ä¸Šã®ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‡ã‚£ãƒ³ã‚°ã«ã‚‚影響を与ãˆã¾ã™ã€‚リテラル文å—列を定義ã™ã‚‹ã¨ãã€æ¬¡ã«ç¤ºã™ã‚ˆã†ã«<tt>_T(s)</tt>ãŠã‚ˆã³<tt>_TEXT(s)</tt>マクãƒã‚’使ã£ã¦ANSI/OEMã¨Unicodeを自動切り替ãˆã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚</p>
+<p>ファイル関数ã®å…¥å‡ºåŠ›ã®ã†ã¡ãƒ•ã‚¡ã‚¤ãƒ«åやパスåを指定ã™ã‚‹å¼•æ•°ã®åž‹ã¯ã€<tt>TCHAR</tt>ã§å®šç¾©ã•ã‚Œã¦ã„ã¾ã™ãŒã€ã“ã‚Œã¯é€šå¸¸ã¯<tt>char</tt>ã®ã‚¨ãƒªã‚¢ã‚¹ã«ãªã£ã¦ã„ã¾ã™ã€‚ãã—ã¦ã€<tt><a href="config.html#code_page">_CODE_PAGE</a></tt>ã§æŒ‡å®šã•ã‚Œã‚‹ANSI/OEMコード(SBCSã¾ãŸã¯DBCS)ã®æ–‡å—列ã¨ã—ã¦æ‰±ã‚ã‚Œã¾ã™ã€‚ファイルå入出力をUnicodeã¨ã™ã‚‹æ§‹æˆ(<tt><a href="config.html#lfn_unicode">_LFN_UNICODE</a> == 1</tt>)ã«ã—ãŸã¨ãã¯ã€<tt>TCHAR</tt>ã¯ãƒ¯ã‚¤ãƒ‰æ–‡å—(<tt>WCHAR, unsigned short</tt>)ã«åˆ‡ã‚Šæ›¿ã‚ã‚Šã€ãƒ‘スåã®å…¥å‡ºåŠ›ã«Unicodeを使用ã™ã‚‹ã‚ˆã†ã«ãªã‚Šã¾ã™ã€‚ã“ã‚Œã«ã‚ˆã‚ŠLFNè¦æ ¼ã«å®Œå…¨å¯¾å¿œã¨ãªã‚Šã€ãƒ•ã‚¡ã‚¤ãƒ«åã¨ã—ã¦ANSI/OEMコードã«ãªã„æ–‡å—(ãŸã¨ãˆã° âœâ˜ªâœ¡â˜¸â˜ãªã©)も使用ã§ãã¾ã™ã€‚ã“ã®è¨å®šã¯æ–‡å—列入出力関数ã«ãŠã„ã¦ã¯ã€ãƒ‡ãƒ¼ã‚¿åž‹ã¨ãƒ•ã‚¡ã‚¤ãƒ«ä¸Šã®ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‡ã‚£ãƒ³ã‚°ã«å½±éŸ¿ã‚’与ãˆã¾ã™ã€‚リテラル文å—列を定義ã™ã‚‹ã¨ãã€æ¬¡ã«ç¤ºã™ã‚ˆã†ã«<tt>_T(s)</tt>ãŠã‚ˆã³<tt>_TEXT(s)</tt>マクãƒã‚’使ã£ã¦ANSI/OEMã¨Unicodeを自動切り替ãˆã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚</p>
<pre>
f_open(fp, "filename.txt", FA_READ); <span class="c">/* ANSI/OEM専用コード */</span>
f_open(fp, L"filename.txt", FA_READ); <span class="c">/* Unicode専用コード */</span>
@@ -47,23 +54,22 @@ </pre>
</div>
-<p><br></p>
-<div class="para" id="vol">
+<div class="para doc" id="vol">
<h3>ボリューム管ç†</h3>
-<p>デフォルトã®æ§‹æˆã§ã¯ã€ãã‚Œãžã‚Œã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã¯åŒã˜ç•ªå·ã®ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«1:1ã§çµã³ã¤ã‘られã¦ã„ã¦ã€è‡ªå‹•æ¤œå‡ºæ©Ÿèƒ½ã«ã‚ˆã‚Šãã®ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–上ã®ä¸€ã¤ã®FATボリュームãŒãƒžã‚¦ãƒ³ãƒˆã•ã‚Œã¾ã™ã€‚FATボリュームã®æ¤œå‡ºã¯ã€ã‚»ã‚¯ã‚¿0ã€ç¬¬ä¸€åŒºç”»ï½žç¬¬å››åŒºç”»ã®é †ã«è¡Œã‚ã‚Œã¾ã™ã€‚</p>
-<p><tt>_MULTI_PARTITION</tt>ã«1を指定ã™ã‚‹ã¨ã€ãã‚Œãžã‚Œã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«å¯¾ã—ã¦å€‹åˆ¥ã«ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–番å·ã¨åŒºç”»ã‚’指定ã§ãるよã†ã«ãªã‚Šã¾ã™ã€‚ã“ã®æ§‹æˆã§ã¯ã€è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã¨åŒºç”»ã®å¯¾å¿œã‚’解決ã™ã‚‹ãŸã‚ã®ãƒ†ãƒ¼ãƒ–ルを次ã«ç¤ºã™ã‚ˆã†ã«å®šç¾©ã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚</p>
+<p>デフォルトã®æ§‹æˆã§ã¯ã€ãã‚Œãžã‚Œã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã¯åŒã˜ç•ªå·ã®ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«1:1ã§çµã³ã¤ã‘られã¦ã„ã¦ã€è‡ªå‹•æ¤œå‡ºæ©Ÿèƒ½ã«ã‚ˆã‚Šãã®ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–上ã®ä¸€ã¤ã®FATボリュームãŒãƒžã‚¦ãƒ³ãƒˆã•ã‚Œã¾ã™ã€‚FATボリュームã®æ¤œå‡ºã¯ã€ã‚»ã‚¯ã‚¿0(SFD)ã€ç¬¬ä¸€åŒºç”»ï½žç¬¬å››åŒºç”»(FDISK)ã®é †ã«è¡Œã‚ã‚Œã¾ã™ã€‚</p>
+<p><tt><a href="config.html#multi_partition">_MULTI_PARTITION</a></tt>ã«1を指定ã™ã‚‹ã¨ã€ãã‚Œãžã‚Œã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«å¯¾ã—ã¦å€‹åˆ¥ã«ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–番å·ã¨åŒºç”»ã‚’指定ã§ãるよã†ã«ãªã‚Šã¾ã™ã€‚ã“ã®æ§‹æˆã§ã¯ã€è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã¨åŒºç”»ã®å¯¾å¿œã‚’解決ã™ã‚‹ãŸã‚ã®ãƒ†ãƒ¼ãƒ–ルを次ã«ç¤ºã™ã‚ˆã†ã«å®šç¾©ã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚</p>
<pre>
例:è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–0~2を物ç†ãƒ‰ãƒ©ã‚¤ãƒ–0(éžãƒªãƒ ーãƒãƒ–ル)ã®3ã¤ã®åŸºæœ¬åŒºç”»ã«å‰²ã‚Šå½“ã¦ã€
è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–3を物ç†ãƒ‰ãƒ©ã‚¤ãƒ–1(リムーãƒãƒ–ル)ã«å‰²ã‚Šå½“ã¦ã‚‹å ´åˆã€‚
PARTITION VolToPart[] = {
- {0, 1}, <span class="c">/* è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ– 0 ==> 物ç†ãƒ‰ãƒ©ã‚¤ãƒ– 0, 第1区画 */</span>
- {0, 2}, <span class="c">/* è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ– 1 ==> 物ç†ãƒ‰ãƒ©ã‚¤ãƒ– 0, 第2区画 */</span>
- {0, 3}, <span class="c">/* è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ– 2 ==> 物ç†ãƒ‰ãƒ©ã‚¤ãƒ– 0, 第3区画 */</span>
- {1, 0} <span class="c">/* è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ– 3 ==> 物ç†ãƒ‰ãƒ©ã‚¤ãƒ– 1, 自動検出 */</span>
+ {0, 1}, <span class="c">/* "0:" ==> 物ç†ãƒ‰ãƒ©ã‚¤ãƒ– 0, 第1区画 */</span>
+ {0, 2}, <span class="c">/* "1:" ==> 物ç†ãƒ‰ãƒ©ã‚¤ãƒ– 0, 第2区画 */</span>
+ {0, 3}, <span class="c">/* "2:" ==> 物ç†ãƒ‰ãƒ©ã‚¤ãƒ– 0, 第3区画 */</span>
+ {1, 0} <span class="c">/* "3:" ==> 物ç†ãƒ‰ãƒ©ã‚¤ãƒ– 1, 自動検出 */</span>
};
</pre>
-<div><img src="../img/f7.png" width="828" height="288" alt="è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã¨ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®é–¢ä¿‚"></div>
+<div><img src="../res/f7.png" width="828" height="288" alt="è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã¨ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®é–¢ä¿‚"></div>
<p>複数区画指定を使用ã™ã‚‹å ´åˆã€æ¬¡ã®ç‚¹ã«æ³¨æ„ã—ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。
<ul>
<li>複数ã®ãƒžã‚¦ãƒ³ãƒˆã•ã‚ŒãŸåŒºç”»ã‚’æŒã¤ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã¯ã€éžãƒªãƒ ーãƒãƒ–ルã§ãªã‘ã‚Œã°ãªã‚‰ãšã€ã‚·ã‚¹ãƒ†ãƒ 動作ä¸ã®ãƒ¡ãƒ‡ã‚£ã‚¢äº¤æ›ã¯ç¦æ¢ã€‚</li>
@@ -72,5 +78,6 @@ PARTITION VolToPart[] = { </ul>
</div>
+<p class="foot"><a href="../00index_j.html">戻る</a></p>
</body>
</html>
diff --git a/fatfs/doc/ja/findfirst.html b/fatfs/doc/ja/findfirst.html new file mode 100644 index 0000000..c788768 --- /dev/null +++ b/fatfs/doc/ja/findfirst.html @@ -0,0 +1,110 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="ja">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta http-equiv="Content-Style-Type" content="text/css">
+<link rel="up" title="FatFs" href="../00index_j.html">
+<link rel="alternate" hreflang="en" title="English" href="../en/findfirst.html">
+<link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
+<title>FatFs - f_findfirst</title>
+</head>
+
+<body>
+
+<div class="para func">
+<h2>f_findfirst</h2>
+<p>ディレクトリ内ã®ã‚ªãƒ–ジェクトã®æ¤œç´¢ã‚’開始ã—ã¾ã™ã€‚</p>
+<pre>
+FRESULT f_findfirst (
+ DIR* <span class="arg">dp</span>, <span class="c">/* [OUT] ディレクトリ ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆæ§‹é€ ä½“ã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
+ FILINFO* <span class="arg">fno</span>, <span class="c">/* [OUT] ãƒ•ã‚¡ã‚¤ãƒ«æƒ…å ±æ§‹é€ ä½“ã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
+ const TCHAR* <span class="arg">path</span>, <span class="c">/* [IN] ディレクトリåã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
+ const TCHAR* <span class="arg">pattern</span> <span class="c">/* [IN] マッムパターン文å—列ã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
+);
+</pre>
+</div>
+
+<div class="para arg">
+<h4>引数</h4>
+<dl class="par">
+<dt>dp</dt>
+<dd>空ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒª ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆæ§‹é€ ä½“ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
+<dt>fno</dt>
+<dd>最åˆã«ãƒžãƒƒãƒã—ãŸãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªé …ç›®ã‚’æ ¼ç´ã™ã‚‹ãƒ•ã‚¡ã‚¤ãƒ«æƒ…å ±æ§‹é€ ä½“ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
+<dt>path</dt>
+<dd>オープンã™ã‚‹ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®<a href="filename.html">パスå</a>を示ã™ãƒŒãƒ«æ–‡å—<tt>'\0'</tt>終端ã®æ–‡å—列ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
+<dt>pattern</dt>
+<dd>検索ã™ã‚‹åå‰ã‚’示ã™ãƒŒãƒ«æ–‡å—<tt>'\0'</tt>終端ã®æ–‡å—列ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚ã“ã®æ–‡å—列ã¯ã€ç¶šã<tt>f_findnext</tt>関数ã§ã‚‚å‚ç…§ã•ã‚Œã‚‹ãŸã‚ã€ä¸€é€£ã®å‡¦ç†ãŒçµ‚了ã™ã‚‹ã¾ã§æœ‰åŠ¹ã§ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。</dd>
+</dl>
+</div>
+
+
+<div class="para ret">
+<h4>戻り値</h4>
+<p>
+<a href="rc.html#ok">FR_OK</a>,
+<a href="rc.html#de">FR_DISK_ERR</a>,
+<a href="rc.html#ie">FR_INT_ERR</a>,
+<a href="rc.html#nr">FR_NOT_READY</a>,
+<a href="rc.html#np">FR_NO_PATH</a>,
+<a href="rc.html#in">FR_INVALID_NAME</a>,
+<a href="rc.html#io">FR_INVALID_OBJECT</a>,
+<a href="rc.html#id">FR_INVALID_DRIVE</a>,
+<a href="rc.html#ne">FR_NOT_ENABLED</a>,
+<a href="rc.html#ns">FR_NO_FILESYSTEM</a>,
+<a href="rc.html#tm">FR_TIMEOUT</a>,
+<a href="rc.html#nc">FR_NOT_ENOUGH_CORE</a>,
+<a href="rc.html#tf">FR_TOO_MANY_OPEN_FILES</a>
+</p>
+</div>
+
+
+<div class="para desc">
+<h4>解説</h4>
+<p><tt class="arg">path</tt>ã§æŒ‡å®šã•ã‚Œã‚‹ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’é–‹ãã€ãã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªå†…ã®é …ç›®ã®æ¤œç´¢ã‚’開始ã—ã¾ã™ã€‚æ£å¸¸çµ‚了ã™ã‚‹ã¨ã€ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒª ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆæ§‹é€ ä½“ãŒä½œæˆã•ã‚Œã€æœ€åˆã«æ¤œç´¢åæ–‡å—列ã«åå‰ãŒãƒžãƒƒãƒã—ãŸé …ç›®ã®æƒ…å ±ãŒ<tt class="arg">fno</tt>ã®æŒ‡å®šã™ã‚‹ãƒ•ã‚¡ã‚¤ãƒ«æƒ…å ±æ§‹é€ ä½“ã«ã‚¹ãƒˆã‚¢ã•ã‚Œã¾ã™ã€‚åå‰ã®ãƒžãƒƒãƒã™ã‚‹é …ç›®ãŒè¦‹ã¤ã‹ã‚‰ãªã‹ã£ãŸå ´åˆã¯ã€<tt>fno->fname[]</tt>ã«ãƒŒãƒ«æ–‡å—列ãŒè¿”ã•ã‚Œã¾ã™ã€‚ãƒ•ã‚¡ã‚¤ãƒ«æƒ…å ±æ§‹é€ ä½“ã®ä½¿ã„æ–¹ã«ã¤ã„ã¦ã¯ã€<a href="readdir.html"><tt>f_readdir</tt></a>関数をå‚ç…§ã—ã¦ãã ã•ã„。</p>
+<p>マッムパターン文å—列ã¯ã€ãƒ¯ã‚¤ãƒ«ãƒ‰ã‚«ãƒ¼ãƒ‰æ–‡å—(<tt>?</tt>ã¨<tt>*</tt>)ã‚’å«ã‚€ã“ã¨ãŒã§ãã¾ã™ã€‚<tt>?</tt>ã¯ä»»æ„ã®1æ–‡å—ã«ã€<tt>*</tt>ã¯0æ–‡å—以上ã®ä»»æ„ã®æ–‡å—列ã«ãƒžãƒƒãƒã—ã¾ã™ã€‚LFN構æˆã§ã¯ã€<tt>_USE_FIND = 1</tt>ã®ã¨ã<tt>fname[]</tt>ã®ã¿ãƒ†ã‚¹ãƒˆã—ã€<tt>_USE_FIND = 2</tt>ã®ã¨ãã¯<tt>altname[]</tt>もテストã—ã¾ã™ã€‚ç¾ãƒªãƒ“ジョンã§ã¯ãƒ‘ターン マッãƒãƒ³ã‚°ã«ãŠã„ã¦æ¬¡ã®ç‚¹ã§æ¨™æº–システムã¨ã¯ç•°ãªã‚‹å‹•ä½œã¨ãªã‚Šã¾ã™ã€‚</p>
+<ul>
+<li><tt>"*.*"</tt>ã¯æ‹¡å¼µåãªã—ã®åå‰ã«ãƒžãƒƒãƒã—ãªã„。(標準システムã§ã¯å…¨ã¦ã®åå‰ã«ãƒžãƒƒãƒ)</li>
+<li>ピリオドã§çµ‚ã‚るパターンã¯ã€ã©ã®åå‰ã«ã‚‚マッãƒã—ãªã„。(標準システムã§ã¯æ‹¡å¼µåç„¡ã—ã®åå‰ã«ãƒžãƒƒãƒ)</li>
+<li><a href="filename.html#case">DBCS拡張文å—</a>ã«ã¤ã„ã¦ã¯ã€LFN構æˆã§ã‚‚éžUnicode API構æˆã§ã¯ã‚±ãƒ¼ã‚¹ センシティブã¨ãªã‚‹ã€‚</li>
+</ul>
+</div>
+
+
+<div class="para comp">
+<h4>å¯¾å¿œæƒ…å ±</h4>
+<p>ã“ã®é–¢æ•°ã¯ã€<a href="opendir.html"><tt>f_opendir</tt></a>関数ãŠã‚ˆã³<a href="readdir.html"><tt>f_readdir</tt></a>関数ã®ãƒ©ãƒƒãƒ‘ー関数ã§ã™ã€‚<tt>_USE_FIND >= 1</tt>ã§ã€ã‹ã¤<tt>_FS_MINIMIZE <= 1</tt>ã®ã¨ã使用å¯èƒ½ã«ãªã‚Šã¾ã™ã€‚</p>
+</div>
+
+
+<div class="para use">
+<h4>使用例</h4>
+<pre>
+<span class="c">/* ディレクトリ内ã®ã‚ªãƒ–ジェクトã®æ¤œç´¢ã¨è¡¨ç¤º */</span>
+
+void find_image (void)
+{
+ FRESULT fr; <span class="c">/* API戻り値 */</span>
+ DIR dj; <span class="c">/* ディレクトリ オブジェクト */</span>
+ FILINFO fno; <span class="c">/* ãƒ•ã‚¡ã‚¤ãƒ«æƒ…å ± */</span>
+
+ fr = f_findfirst(&dj, &fno, "", "dsc*.jpg"); <span class="c">/* "dsc"ã§å§‹ã¾ã‚‹JPEGファイルを検索 */</span>
+
+ while (fr == FR_OK && fno.fname[0]) { <span class="c">/* 見ã¤ã‹ã‚‹é–“繰り返㗠*/</span>
+ printf("%s\n", fno.fname); <span class="c">/* 見ã¤ã‘ãŸé …ç›®ã®åå‰ã‚’表示 */</span>
+ fr = f_findnext(&dj, &fno); <span class="c">/* 次を検索 */</span>
+ }
+ f_closedir(&dj);
+}
+</pre>
+</div>
+
+
+<div class="para ref">
+<h4>å‚ç…§</h4>
+<p><tt><a href="findnext.html">f_findnext</a>, <a href="closedir.html">f_closedir</a>, <a href="sdir.html">DIR</a>, <a href="sfileinfo.html">FILINFO</a></tt></p>
+</div>
+
+<p class="foot"><a href="../00index_j.html">戻る</a></p>
+</body>
+</html>
diff --git a/fatfs/doc/ja/findnext.html b/fatfs/doc/ja/findnext.html new file mode 100644 index 0000000..e7c1331 --- /dev/null +++ b/fatfs/doc/ja/findnext.html @@ -0,0 +1,68 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="ja">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta http-equiv="Content-Style-Type" content="text/css">
+<link rel="up" title="FatFs" href="../00index_j.html">
+<link rel="alternate" hreflang="en" title="English" href="../en/findnext.html">
+<link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
+<title>FatFs - f_findnext</title>
+</head>
+
+<body>
+
+<div class="para func">
+<h2>f_findnext</h2>
+<p>次ã«ãƒžãƒƒãƒã™ã‚‹ã‚ªãƒ–ジェクトを検索ã—ã¾ã™ã€‚</p>
+<pre>
+FRESULT f_findnext (
+ DIR* <span class="arg">dp</span>, <span class="c">/* [IN] ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªæ§‹é€ ä½“ã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
+ FILINFO* <span class="arg">fno</span> <span class="c">/* [OUT] ãƒ•ã‚¡ã‚¤ãƒ«æƒ…å ±æ§‹é€ ä½“ã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
+);
+</pre>
+</div>
+
+<div class="para arg">
+<h4>引数</h4>
+<dl class="par">
+<dt>dp</dt>
+<dd><tt>f_findfirst</tt>関数ã§ä½œæˆã•ã‚ŒãŸæœ‰åŠ¹ãªãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªæ§‹é€ 体ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
+<dt>fno</dt>
+<dd>マッãƒã—ãŸãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªé …ç›®ã‚’æ ¼ç´ã™ã‚‹ãƒ•ã‚¡ã‚¤ãƒ«æƒ…å ±æ§‹é€ ä½“ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
+</dl>
+</div>
+
+
+<div class="para ret">
+<h4>戻り値</h4>
+<p>
+<a href="rc.html#ok">FR_OK</a>,
+<a href="rc.html#de">FR_DISK_ERR</a>,
+<a href="rc.html#ie">FR_INT_ERR</a>,
+<a href="rc.html#io">FR_INVALID_OBJECT</a>,
+<a href="rc.html#tm">FR_TIMEOUT</a>,
+<a href="rc.html#nc">FR_NOT_ENOUGH_CORE</a>
+</p>
+</div>
+
+
+<div class="para desc">
+<h4>解説</h4>
+<p>次ã«åå‰ã®ãƒžãƒƒãƒã™ã‚‹ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªé …目を検索ã—ã€è¦‹ã¤ã‹ã£ãŸé …ç›®ã‚’ãƒ•ã‚¡ã‚¤ãƒ«æƒ…å ±æ§‹é€ ä½“ã«ã‚¹ãƒˆã‚¢ã—ã¾ã™ã€‚åå‰ã®ãƒžãƒƒãƒã™ã‚‹é …ç›®ãŒè¦‹ã¤ã‹ã‚‰ãšãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®æœ€å¾Œã¾ã§é”ã—ãŸå ´åˆã¯ã€<tt>fno->fname[]</tt>ã«ãƒŒãƒ«æ–‡å—列ãŒè¿”ã•ã‚Œã¾ã™ã€‚</p>
+</div>
+
+
+<div class="para comp">
+<h4>å¯¾å¿œæƒ…å ±</h4>
+<p>ã“ã®é–¢æ•°ã¯ã€<a href="readdir.html"><tt>f_readdir</tt></a>関数ã®ãƒ©ãƒƒãƒ‘ー関数ã§ã™ã€‚<tt>_USE_FIND >= 1</tt>ã§ã€ã‹ã¤<tt>_FS_MINIMIZE <= 1</tt>ã®ã¨ã使用å¯èƒ½ã«ãªã‚Šã¾ã™ã€‚</p>
+</div>
+
+
+<div class="para ref">
+<h4>å‚ç…§</h4>
+<p><tt><a href="findfirst.html">f_findfirst</a>, <a href="closedir.html">f_closedir</a>, <a href="sdir.html">DIR</a>, <a href="sfileinfo.html">FILINFO</a></tt></p>
+</div>
+
+<p class="foot"><a href="../00index_j.html">戻る</a></p>
+</body>
+</html>
diff --git a/fatfs/doc/ja/forward.html b/fatfs/doc/ja/forward.html index e9212ce..34f4f48 100644 --- a/fatfs/doc/ja/forward.html +++ b/fatfs/doc/ja/forward.html @@ -45,7 +45,6 @@ FRESULT f_forward ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#de">FR_DENIED</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>
@@ -61,7 +60,7 @@ FRESULT f_forward ( <div class="para comp">
<h4>å¯¾å¿œæƒ…å ±</h4>
-<p><tt>_USE_FORWARD == 1</tt>ã§ã€ä¸”ã¤<tt>_FS_TINY == 1</tt>ã®ã¨ãã«ä½¿ç”¨å¯èƒ½ã§ã™ã€‚</p>
+<p><tt>_USE_FORWARD == 1</tt>ã®ã¨ãã«ä½¿ç”¨å¯èƒ½ã§ã™ã€‚</p>
</div>
@@ -114,7 +113,7 @@ FRESULT play_file ( if (rc) return rc;
<span class="c">/* å…¨ã¦ã®ãƒ‡ãƒ¼ã‚¿ãŒè»¢é€ã•ã‚Œã‚‹ã‹ã‚¨ãƒ©ãƒ¼ãŒç™ºç”Ÿã™ã‚‹ã¾ã§ç¶šã‘ã‚‹ */</span>
- while (rc == FR_OK && fil.fptr < fil.fsize) {
+ while (rc == FR_OK && !f_eof(&fil)) {
<span class="c">/* ã»ã‹ã®å‡¦ç†... */</span>
diff --git a/fatfs/doc/ja/getcwd.html b/fatfs/doc/ja/getcwd.html index 24e4844..e5e4a62 100644 --- a/fatfs/doc/ja/getcwd.html +++ b/fatfs/doc/ja/getcwd.html @@ -51,6 +51,7 @@ FRESULT f_getcwd ( <div class="para desc">
<h4>解説</h4>
<p>カレント ドライブã®ã‚«ãƒ¬ãƒ³ãƒˆ ディレクトリã®ãƒ•ãƒ« パス文å—列をå–å¾—ã—ã¾ã™ã€‚<tt>_VOLUMES</tt>ãŒ2以上ã®ã¨ãã¯ã€è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–番å·ã®ä»˜åŠ ã•ã‚ŒãŸãƒ‘スåã¨ãªã‚Šã¾ã™ã€‚</p>
+<p><em>ç¾ãƒªãƒ“ジョン(R0.12)ã§ã¯ã€exFATボリューム上ã§ã¯ã‚«ãƒ¬ãƒ³ãƒˆ ディレクトリを得るã“ã¨ãŒå‡ºæ¥ã¾ã›ã‚“。常ã«ãƒ«ãƒ¼ãƒˆ ディレクトリを返ã—ã¾ã™ã€‚</em></p>
</div>
diff --git a/fatfs/doc/ja/getfree.html b/fatfs/doc/ja/getfree.html index 8b99c76..bb2a452 100644 --- a/fatfs/doc/ja/getfree.html +++ b/fatfs/doc/ja/getfree.html @@ -53,7 +53,7 @@ FRESULT f_getfree ( <div class="para desc">
<h4>解説</h4>
-<p>è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–上ã®ç©ºãé ˜åŸŸã®ã‚µã‚¤ã‚ºã‚’クラスタå˜ä½ã§å–å¾—ã—ã¾ã™ã€‚è¿”ã•ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトã®<tt>csize</tt>メンãƒãŒã‚¯ãƒ©ã‚¹ã‚¿ã‚ãŸã‚Šã®ã‚»ã‚¯ã‚¿æ•°ã‚’示ã—ã¦ã„ã‚‹ã®ã§ã€ã“れを元ã«ã‚»ã‚¯ã‚¿å˜ä½ã®ç©ºãサイズãŒè¨ˆç®—ã§ãã¾ã™ã€‚FAT32ボリュームã«ãŠã„ã¦ã¯ã€FSINFOã®æƒ…å ±ãŒå®Ÿéš›ã®ç©ºãクラスタ数ã¨åŒæœŸã—ã¦ã„ãªã„å ´åˆã€ä¸æ£ç¢ºãªå€¤ã‚’è¿”ã™å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚ã“ã®å•é¡Œã‚’é¿ã‘ã‚‹ãŸã‚ã€<tt>_FS_NOFSINFO</tt>オプションã§ãƒžã‚¦ãƒ³ãƒˆå¾Œã®åˆå›žã¯å¿…ãšãƒ•ãƒ«FATスã‚ャンをã™ã‚‹ã‚ˆã†ã«æ§‹æˆã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã€‚</p>
+<p>è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–上ã®ç©ºãé ˜åŸŸã®ã‚µã‚¤ã‚ºã‚’クラスタå˜ä½ã§å–å¾—ã—ã¾ã™ã€‚è¿”ã•ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトã®<tt>csize</tt>メンãƒãŒã‚¯ãƒ©ã‚¹ã‚¿ã‚ãŸã‚Šã®ã‚»ã‚¯ã‚¿æ•°ã‚’示ã—ã¦ã„ã‚‹ã®ã§ã€ã“れを元ã«ã‚»ã‚¯ã‚¿å˜ä½ã®ç©ºãサイズãŒè¨ˆç®—ã§ãã¾ã™ã€‚FAT32ボリュームã«ãŠã„ã¦ã¯ã€FSINFOã®æƒ…å ±ãŒå®Ÿéš›ã®ç©ºãクラスタ数ã¨åŒæœŸã—ã¦ã„ãªã„å ´åˆã€ä¸æ£ç¢ºãªå€¤ã‚’è¿”ã™å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚ã“ã®å•é¡Œã‚’é¿ã‘ã‚‹ãŸã‚ã€<tt><a href="config.html#fs_nofsinfo">_FS_NOFSINFO</a></tt>オプションã§ãƒžã‚¦ãƒ³ãƒˆå¾Œã®åˆå›žã¯å¿…ãšãƒ•ãƒ«FATスã‚ャンをã™ã‚‹ã‚ˆã†ã«æ§‹æˆã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã€‚</p>
</div>
@@ -78,7 +78,7 @@ FRESULT f_getfree ( tot_sect = (fs->n_fatent - 2) * fs->csize;
fre_sect = fre_clust * fs->csize;
- <span class="c">/* ボリューム全体ã®ã‚µã‚¤ã‚ºã¨ç©ºãã®ã‚µã‚¤ã‚ºã‚’表示 (512ãƒã‚¤ãƒˆ/セクタã¨ä»®å®š) */</span>
+ <span class="c">/* ボリュームã®ã‚µã‚¤ã‚ºã¨ç©ºãサイズを表示 (512ãƒã‚¤ãƒˆ/セクタã¨ä»®å®š) */</span>
printf("%10lu KiB total drive space.\n%10lu KiB available.\n",
tot_sect / 2, fre_sect / 2);
</pre>
diff --git a/fatfs/doc/ja/getlabel.html b/fatfs/doc/ja/getlabel.html index bfcad0d..da84632 100644 --- a/fatfs/doc/ja/getlabel.html +++ b/fatfs/doc/ja/getlabel.html @@ -29,7 +29,7 @@ FRESULT f_getlabel ( <dt>path</dt>
<dd>対象ã¨ãªã‚‹è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®<a href="filename.html">パスå</a>を示ã™ãƒŒãƒ«æ–‡å—<tt>'\0'</tt>終端ã®æ–‡å—列ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚ヌル文å—列ã®å ´åˆã¯ã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆ ドライブを指定ã—ãŸã“ã¨ã«ãªã‚Šã¾ã™ã€‚</dd>
<dt>label</dt>
-<dd>ボリュームåã‚’æ ¼ç´ã™ã‚‹é…列ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚å°‘ãªãã¨ã‚‚12è¦ç´ ã®ã‚µã‚¤ã‚ºãŒå¿…è¦ã§ã™ã€‚ボリュームåãŒãªã„å ´åˆã¯ãƒŒãƒ«æ–‡å—列ãŒè¿”ã•ã‚Œã¾ã™ã€‚ã“ã®æƒ…å ±ãŒä¸è¦ãªã¨ãã¯ãƒŒãƒ« ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¦ãã ã•ã„。</dd>
+<dd>ボリュームåã‚’æ ¼ç´ã™ã‚‹é…列ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚<tt>_LFN_UNICODE == 0</tt>ã§ã¯å°‘ãªãã¨ã‚‚24è¦ç´ ã€<tt>_LFN_UNICODE == 1</tt>ã§ã¯å°‘ãªãã¨ã‚‚12è¦ç´ ã®ã‚µã‚¤ã‚ºãŒå¿…è¦ã§ã™ã€‚ボリュームåãŒãªã„å ´åˆã¯ãƒŒãƒ«æ–‡å—列ãŒè¿”ã•ã‚Œã¾ã™ã€‚ã“ã®æƒ…å ±ãŒä¸è¦ãªã¨ãã¯ãƒŒãƒ« ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¦ãã ã•ã„。</dd>
<dt>vsn</dt>
<dd>ボリュームシリアル番å·ã‚’æ ¼ç´ã™ã‚‹<tt>DWORD</tt>型変数ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚ã“ã®æƒ…å ±ãŒä¸è¦ãªã¨ãã¯ãƒŒãƒ« ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¦ãã ã•ã„。</dd>
</dl>
@@ -60,7 +60,7 @@ FRESULT f_getlabel ( <div class="para use">
<h4>使用例</h4>
<pre>
- char str[12];
+ char str[24];
<span class="c">/* デフォルト ドライブã®ãƒœãƒªãƒ¥ãƒ¼ãƒ åã‚’å¾—ã‚‹ */</span>
f_getlabel("", str, 0);
diff --git a/fatfs/doc/ja/gets.html b/fatfs/doc/ja/gets.html index 74e0b22..a979068 100644 --- a/fatfs/doc/ja/gets.html +++ b/fatfs/doc/ja/gets.html @@ -44,14 +44,14 @@ TCHAR* f_gets ( <div class="para desc">
<h4>解説</h4>
-<p>ã“ã®é–¢æ•°ã¯<a href="read.html"><tt>f_read()</tt></a>ã®ãƒ©ãƒƒãƒ‘ー関数ã§ã™ã€‚èªã¿å‡ºã—動作ã¯ã€æœ€åˆã®<tt>'\n'</tt>ã‚’èªã¿è¾¼ã‚€ã‹ã€ãƒ•ã‚¡ã‚¤ãƒ«çµ‚端ã«é”ã™ã‚‹ã‹ã€<tt class="arg">len</tt> - 1æ–‡å—ã‚’èªã¿å‡ºã™ã¾ã§ç¶šãã¾ã™ã€‚èªã¿è¾¼ã¾ã‚ŒãŸæ–‡å—列ã®çµ‚端ã«ã¯<tt>'\0'</tt>ãŒä»˜åŠ ã•ã‚Œã¾ã™ã€‚æ—¢ã«ãƒ•ã‚¡ã‚¤ãƒ«çµ‚端ã§1æ–‡å—ã‚‚èªã¿è¾¼ã¾ã‚Œãªã‹ã£ãŸã¨ãã€ã¾ãŸã¯ä½•ã‚‰ã‹ã®ã‚¨ãƒ©ãƒ¼ãŒç™ºç”Ÿã—ãŸã¨ãã¯é–¢æ•°ã¯å¤±æ•—ã—ヌル ãƒã‚¤ãƒ³ã‚¿ã‚’è¿”ã—ã¾ã™ã€‚ファイル終端ã‹ã‚¨ãƒ©ãƒ¼ã‹ã¯<tt>f_eof()</tt>,<tt>f_error()</tt>マクãƒã§èª¿ã¹ã‚‰ã‚Œã¾ã™ã€‚</p>
+<p>èªã¿å‡ºã—動作ã¯ã€æœ€åˆã®<tt>'\n'</tt>ã‚’èªã¿è¾¼ã‚€ã‹ã€ãƒ•ã‚¡ã‚¤ãƒ«çµ‚端ã«é”ã™ã‚‹ã‹ã€<tt class="arg">len</tt> - 1æ–‡å—ã‚’èªã¿å‡ºã™ã¾ã§ç¶šãã¾ã™ã€‚èªã¿è¾¼ã¾ã‚ŒãŸæ–‡å—列ã®çµ‚端ã«ã¯<tt>'\0'</tt>ãŒä»˜åŠ ã•ã‚Œã¾ã™ã€‚æ—¢ã«ãƒ•ã‚¡ã‚¤ãƒ«çµ‚端ã§1æ–‡å—ã‚‚èªã¿è¾¼ã¾ã‚Œãªã‹ã£ãŸã¨ãã€ã¾ãŸã¯ä½•ã‚‰ã‹ã®ã‚¨ãƒ©ãƒ¼ãŒç™ºç”Ÿã—ãŸã¨ãã¯é–¢æ•°ã¯å¤±æ•—ã—ヌル ãƒã‚¤ãƒ³ã‚¿ã‚’è¿”ã—ã¾ã™ã€‚ファイル終端ã‹ã‚¨ãƒ©ãƒ¼ã‹ã¯<tt>f_eof/f_error</tt>関数ã§èª¿ã¹ã‚‰ã‚Œã¾ã™ã€‚</p>
<p>Unicode API構æˆ(<tt>_LFN_UNICODE == 1</tt>)ãŒé¸æŠžã•ã‚Œã¦ã„ã‚‹ã¨ãã¯ã€<tt class="arg">buff</tt>ã¯UTF-16æ–‡å—列ã«ãªã‚Šã¾ã™ãŒã€ãƒ•ã‚¡ã‚¤ãƒ«ä¸Šã®ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã¯ã€<tt>_STRF_ENCODE</tt>オプションã§é¸æŠžã§ãã¾ã™ã€‚ãれ以外ã®æ™‚ã¯ç„¡å¤‰æ›(1ãƒã‚¤ãƒˆ/1æ–‡å—)ã§èªã¿å‡ºã—ã¾ã™ã€‚</p>
</div>
<div class="para comp">
<h4>å¯¾å¿œæƒ…å ±</h4>
-<p><tt>_USE_STRFUNC</tt>ãŒ1ã¾ãŸã¯2ã®ã¨ã使用å¯èƒ½ã§ã™ã€‚2ã®ã¨ãã¯ã€ãƒ•ã‚¡ã‚¤ãƒ«ã«å«ã¾ã‚Œã‚‹<tt>'\r'</tt>ãŒå–り除ã‹ã‚Œã¦ãƒãƒƒãƒ•ã‚¡ã«èªã¿è¾¼ã¾ã‚Œã¾ã™ã€‚</p>
+<p>ã“ã®é–¢æ•°ã¯<a href="read.html"><tt>f_read</tt></a>関数ã®ãƒ©ãƒƒãƒ‘ー関数ã§ã™ã€‚<tt>_USE_STRFUNC</tt>ãŒ1ã¾ãŸã¯2ã®ã¨ã使用å¯èƒ½ã§ã™ã€‚2ã®ã¨ãã¯ã€ãƒ•ã‚¡ã‚¤ãƒ«ã«å«ã¾ã‚Œã‚‹<tt>'\r'</tt>ãŒå–り除ã‹ã‚Œã¦ãƒãƒƒãƒ•ã‚¡ã«èªã¿è¾¼ã¾ã‚Œã¾ã™ã€‚</p>
</div>
diff --git a/fatfs/doc/ja/lseek.html b/fatfs/doc/ja/lseek.html index 88e1ab2..00e4a95 100644 --- a/fatfs/doc/ja/lseek.html +++ b/fatfs/doc/ja/lseek.html @@ -16,8 +16,8 @@ <p>ファイルã®ãƒªãƒ¼ãƒ‰/ライト ãƒã‚¤ãƒ³ã‚¿ã‚’移動ã—ã¾ã™ã€‚ã¾ãŸã€é«˜é€Ÿã‚·ãƒ¼ã‚¯æ©Ÿèƒ½ä½¿ç”¨æ™‚ã«ã¯CLMT(後述)ã®ä½œæˆã«ã‚‚使用ã—ã¾ã™ã€‚</p>
<pre>
FRESULT f_lseek (
- FIL* <span class="arg">fp</span>, <span class="c">/* [IN] ファイル ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆæ§‹é€ ä½“ã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
- DWORD <span class="arg">ofs</span> <span class="c">/* [IN] 移動先オフセット */</span>
+ FIL* <span class="arg">fp</span>, <span class="c">/* [IN] ファイル ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆæ§‹é€ ä½“ã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
+ FSIZE_t <span class="arg">ofs</span> <span class="c">/* [IN] 移動先オフセット */</span>
);
</pre>
</div>
@@ -28,7 +28,7 @@ FRESULT f_lseek ( <dt>fp</dt>
<dd>対象ã¨ãªã‚‹ãƒ•ã‚¡ã‚¤ãƒ« ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆæ§‹é€ ä½“ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
<dt>ofs</dt>
-<dd>移動先ã®ã‚ªãƒ•ã‚»ãƒƒãƒˆ(リード/ライト ãƒã‚¤ãƒ³ã‚¿)値。ファイル先é ã‹ã‚‰ã®ã‚ªãƒ•ã‚»ãƒƒãƒˆã‚’ãƒã‚¤ãƒˆå˜ä½ã§æŒ‡å®šã—ã¾ã™ã€‚</dd>
+<dd>移動先ã®ã‚ªãƒ•ã‚»ãƒƒãƒˆ(リード/ライト ãƒã‚¤ãƒ³ã‚¿)値。ファイル先é ã‹ã‚‰ã®ã‚ªãƒ•ã‚»ãƒƒãƒˆã‚’ãƒã‚¤ãƒˆå˜ä½ã§æŒ‡å®šã—ã¾ã™ã€‚データ型<tt>FSIZE_t</tt>ã¯ã€<tt>DWORD</tt>(32-bit)ã¾ãŸã¯<tt>QWORD</tt>(64-bit)ã®ã‚¨ãƒªã‚¢ã‚¹ã§ã€exFATサãƒãƒ¼ãƒˆã®æœ‰ç„¡ã«ã‚ˆã‚Šåˆ‡ã‚Šæ›¿ã‚ã‚Šã¾ã™ã€‚</dd>
</dl>
</div>
@@ -39,7 +39,6 @@ FRESULT f_lseek ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>,
<a href="rc.html#nc">FR_NOT_ENOUGH_CORE</a>
@@ -49,19 +48,19 @@ FRESULT f_lseek ( <div class="para desc">
<h4>解説</h4>
-<p>ファイルã®ãƒªãƒ¼ãƒ‰/ライト ãƒã‚¤ãƒ³ã‚¿(次ã«èªã¿å‡ºã—・書ãè¾¼ã¿ã•ã‚Œã‚‹ãƒã‚¤ãƒˆã®ã‚ªãƒ•ã‚»ãƒƒãƒˆ)を移動ã—ã¾ã™ã€‚オフセットã®åŽŸç‚¹ã¯ãƒ•ã‚¡ã‚¤ãƒ«å…ˆé ã§ã™ã€‚書ãè¾¼ã¿ãƒ¢ãƒ¼ãƒ‰ã§ãƒ•ã‚¡ã‚¤ãƒ« サイズより大ããªå€¤ã‚’指定ã™ã‚‹ã¨ã€ãã“ã¾ã§ãƒ•ã‚¡ã‚¤ãƒ« サイズãŒæ‹¡å¼µã•ã‚Œã€æ‹¡å¼µã•ã‚ŒãŸéƒ¨åˆ†ã®ãƒ‡ãƒ¼ã‚¿ã¯æœªå®šç¾©ã¨ãªã‚Šã¾ã™ã€‚データをé…延無ã高速ã«æ›¸ãè¾¼ã¿ãŸã„ã¨ãã¯ã€äºˆã‚ã“ã®é–¢æ•°ã§å¿…è¦ãªã‚µã‚¤ã‚ºã¾ã§ãƒ•ã‚¡ã‚¤ãƒ« サイズを拡張ã—ã¦ãŠãã¨è‰¯ã„ã§ã—ょã†ã€‚<tt>f_lseek()</tt>ãŒæ£å¸¸çµ‚了ã—ãŸã‚ã¨ã¯ã€ãƒªãƒ¼ãƒ‰/ライト ãƒã‚¤ãƒ³ã‚¿ãŒæ£ã—ã移動ã—ãŸã‹ãƒã‚§ãƒƒã‚¯ã™ã‚‹ã¹ãã§ã™ã€‚リード/ライト ãƒã‚¤ãƒ³ã‚¿ãŒæŒ‡å®šã‚ˆã‚Šå°ã•ã„ã¨ãã¯ã€æ¬¡ã®åŽŸå› ãŒè€ƒãˆã‚‰ã‚Œã¾ã™ã€‚</p>
+<p>ファイルã®ãƒªãƒ¼ãƒ‰/ライト ãƒã‚¤ãƒ³ã‚¿(次ã«èªã¿å‡ºã—・書ãè¾¼ã¿ã•ã‚Œã‚‹ãƒã‚¤ãƒˆã®ã‚ªãƒ•ã‚»ãƒƒãƒˆ)を移動ã—ã¾ã™ã€‚オフセットã®åŽŸç‚¹ã¯ãƒ•ã‚¡ã‚¤ãƒ«å…ˆé ã§ã™ã€‚書ãè¾¼ã¿ãƒ¢ãƒ¼ãƒ‰ã§ãƒ•ã‚¡ã‚¤ãƒ« サイズより大ããªå€¤ã‚’指定ã™ã‚‹ã¨ã€ãã“ã¾ã§ãƒ•ã‚¡ã‚¤ãƒ« サイズãŒæ‹¡å¼µã•ã‚Œã€æ‹¡å¼µã•ã‚ŒãŸéƒ¨åˆ†ã®ãƒ‡ãƒ¼ã‚¿ã¯æœªå®šç¾©ã¨ãªã‚Šã¾ã™ã€‚データをé…延無ã高速ã«æ›¸ãè¾¼ã¿ãŸã„ã¨ãã¯ã€äºˆã‚ã“ã®é–¢æ•°ã§å¿…è¦ãªã‚µã‚¤ã‚ºã¾ã§ãƒ•ã‚¡ã‚¤ãƒ« サイズを拡張ã—ã¦ãŠãã¨è‰¯ã„ã§ã—ょã†ã€‚ファイルã«é€£ç¶šã—ãŸãƒ‡ãƒ¼ã‚¿é ˜åŸŸã‚’割り当ã¦ã‚‹å¿…è¦ãŒã‚ã‚‹ã¨ãã¯ã€<tt>f_expand</tt>関数を使用ã—ã¦ãã ã•ã„。<tt>f_lseek</tt>関数ãŒæ£å¸¸çµ‚了ã—ãŸã‚ã¨ã¯ã€ãƒªãƒ¼ãƒ‰/ライト ãƒã‚¤ãƒ³ã‚¿ãŒæ£ã—ã移動ã—ãŸã‹ãƒã‚§ãƒƒã‚¯ã™ã‚‹ã¹ãã§ã™ã€‚リード/ライト ãƒã‚¤ãƒ³ã‚¿ãŒæŒ‡å®šã‚ˆã‚Šå°ã•ã„ã¨ãã¯ã€æ¬¡ã®åŽŸå› ãŒè€ƒãˆã‚‰ã‚Œã¾ã™ã€‚</p>
<ul>
<li>éžæ›¸ãè¾¼ã¿ãƒ¢ãƒ¼ãƒ‰ã¾ãŸã¯é«˜é€Ÿã‚·ãƒ¼ã‚¯ モードã®ãŸã‚ã€ãƒ•ã‚¡ã‚¤ãƒ« サイズã§ã‚¯ãƒªãƒƒãƒ—ã•ã‚ŒãŸã€‚</li>
<li>ファイル拡張ä¸ã«ãƒ‡ã‚£ã‚¹ã‚¯ãŒæº€æ¯ã«ãªã£ãŸã€‚</li>
</ul>
-<p><tt>_USE_FASTSEEK</tt>ãŒ1ã§ã€ä¸”ã¤ãƒ•ã‚¡ã‚¤ãƒ« オブジェクトã®<tt>cltbl</tt>メンãƒãŒNULL以外(<tt>f_open()</tt>ã§NULLã«è¨å®šã•ã‚Œã‚‹)ã®ã¨ãã€é«˜é€Ÿã‚·ãƒ¼ã‚¯ モードã«ãªã‚Šã¾ã™ã€‚ã“ã‚Œã¯ãƒ•ã‚¡ã‚¤ãƒ«ã®ã‚¯ãƒ©ã‚¹ã‚¿é…ç½®æƒ…å ±(CLMT)をメモリ上ã«ä¿æŒã—ã¦ãŠãã“ã¨ã«ã‚ˆã‚Šã€FATã«ã‚¢ã‚¯ã‚»ã‚¹ã™ã‚‹ã“ã¨ãªã後方シークやãƒãƒ³ã‚° シークを高速ã«è¡Œã†æ©Ÿèƒ½ã§ã™ã€‚高速シーク モードã¯ã€<tt>f_read()/f_wtite()</tt>ã®å‹•ä½œã«ã‚‚é©ç”¨ã•ã‚Œã¾ã™ã€‚高速シーク モードã§ã¯<tt>f_wtite()/f_lseek()</tt>ã«ã‚ˆã‚‹ãƒ•ã‚¡ã‚¤ãƒ« サイズã®æ‹¡å¼µã¯ã§ãã¾ã›ã‚“。</p>
-<p>高速シーク動作を行ã†å‰ã«ã€CLMTを作æˆã—ã¦ãŠãå¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚ã“れを作æˆã™ã‚‹ã«ã¯ã€ã¾ãšCLMTæ ¼ç´ãƒãƒƒãƒ•ã‚¡(<tt>DWORD</tt>åž‹é…列)を準備ã—ã€<tt>cltbl</tt>メンãƒã«ãã®ãƒã‚¤ãƒ³ã‚¿ã‚’セットã—ã¾ã™ã€‚ãã—ã¦ã€é…列ã®å…ˆé è¦ç´ ã«ãã®é…列ã®ã‚µã‚¤ã‚º(è¦ç´ æ•°)を入れã€<tt>f_lseek()</tt>ã‚’<tt class="arg">ofs</tt>ã«<tt>CREATE_LINKMAP</tt>を指定ã—ã¦å‘¼ã³å‡ºã—ã¾ã™ã€‚関数ãŒæˆåŠŸã™ã‚‹ã¨CLMTãŒä½œæˆã•ã‚Œã€ä»¥é™ã®<tt>f_read()/f_write()/f_lseek()</tt>ã§ã¯FATã¸ã®ã‚¢ã‚¯ã‚»ã‚¹ã¯ç™ºç”Ÿã—ã¾ã›ã‚“。<tt>FR_NOT_ENOUGH_CORE</tt>ã§å¤±æ•—ã—ãŸã¨ãã¯é…列サイズãŒä¸è¶³ã§ã€å…ˆé è¦ç´ ã«ã¯å®Ÿéš›ã«å¿…è¦ã¨ãªã‚‹è¦ç´ æ•°ãŒè¿”ã•ã‚Œã¾ã™ã€‚å¿…è¦ãªè¦ç´ æ•°ã¯ã€(ファイルã®åˆ†å‰²æ•° + 1) * 2 ã§ã™ã€‚ãŸã¨ãˆã°ã€ãƒ•ã‚¡ã‚¤ãƒ«ãŒ5ã¤ã®ãƒ•ãƒ©ã‚°ãƒ¡ãƒ³ãƒˆã«åˆ†æ–ã•ã‚Œã¦ã„ã‚‹ã¨ãã«å¿…è¦ãªè¦ç´ æ•°ã¯ã€12ã¨ãªã‚Šã¾ã™ã€‚</p>
+<p>高速シーク モードã¯ã€ãƒ•ã‚¡ã‚¤ãƒ«ã®ã‚¯ãƒ©ã‚¹ã‚¿é…ç½®æƒ…å ±(CLMT)をメモリ上ã«ä¿æŒã—ã¦ãŠãã“ã¨ã«ã‚ˆã‚Šã€FATã«ã‚¢ã‚¯ã‚»ã‚¹ã™ã‚‹ã“ã¨ãªã後方シークやãƒãƒ³ã‚° シークを高速ã«è¡Œã†æ©Ÿèƒ½ã§ã€ã‚·ãƒ¼ã‚¯å‹•ä½œã®ã»ã‹<tt>f_read/f_wtite</tt>関数ã®å‹•ä½œã«ã‚‚é©ç”¨ã•ã‚Œã¾ã™ã€‚ファイルãŒé«˜é€Ÿã‚·ãƒ¼ã‚¯ モードã®é–“ã¯<tt>f_wtite/f_lseek</tt>関数ã«ã‚ˆã‚‹ãƒ•ã‚¡ã‚¤ãƒ« サイズã®æ‹¡å¼µã¯ã§ãã¾ã›ã‚“。</p>
+<p>高速シーク モードã¯ã€ãƒ•ã‚¡ã‚¤ãƒ« オブジェクトã®ãƒ¡ãƒ³ãƒ<tt>cltbl</tt>(<tt>f_open</tt>関数ã§NULLã«ãªã‚‹)ã«NULL以外をè¨å®šã—ãŸã¨ã有効ã«ãªã‚‹ã®ã§ã€ã¾ãšCLMTを作æˆã—ã¦ãŠãå¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚ã“れを作æˆã™ã‚‹ã«ã¯ã€ã¾ãšCLMTæ ¼ç´ãƒãƒƒãƒ•ã‚¡(<tt>DWORD</tt>åž‹é…列)を準備ã—ã€<tt>cltbl</tt>ã«ãã®ãƒã‚¤ãƒ³ã‚¿ã‚’セットã—ã¾ã™ã€‚ãã—ã¦ã€é…列ã®å…ˆé è¦ç´ ã«ãã®é…列ã®ã‚µã‚¤ã‚º(è¦ç´ æ•°)を入れã€<tt>f_lseek</tt>関数を<tt class="arg">ofs</tt>ã«<tt>CREATE_LINKMAP</tt>を指定ã—ã¦å‘¼ã³å‡ºã—ã¾ã™ã€‚関数ãŒæˆåŠŸã™ã‚‹ã¨CLMTãŒä½œæˆã•ã‚Œã€ä»¥é™ã®<tt>f_read/f_write/f_lseek</tt>関数ã§ã¯FATã¸ã®ã‚¢ã‚¯ã‚»ã‚¹ã¯ç™ºç”Ÿã—ã¾ã›ã‚“。CLMTã®å…ˆé è¦ç´ ã«ã¯å®Ÿéš›ã«ä½¿ç”¨ã—ãŸ(ã¾ãŸã¯å¿…è¦ã¨ãªã‚‹)è¦ç´ æ•°ãŒè¿”ã•ã‚Œã¾ã™ã€‚使用ã•ã‚Œã‚‹è¦ç´ æ•°ã¯ã€(ファイルã®åˆ†å‰²æ•° + 1) * 2 ã§ã™ã€‚ãŸã¨ãˆã°ã€ãƒ•ã‚¡ã‚¤ãƒ«ãŒ5ã¤ã®ãƒ•ãƒ©ã‚°ãƒ¡ãƒ³ãƒˆã«åˆ†æ–ã•ã‚Œã¦ã„ã‚‹ã¨ãã¯ã€12è¦ç´ ãŒä½¿ç”¨ã•ã‚Œã¾ã™ã€‚<tt>FR_NOT_ENOUGH_CORE</tt>ã§å¤±æ•—ã—ãŸã¨ãã¯ã€é…列サイズãŒä¸è¶³ã§ã™ã€‚</p>
</div>
<div class="para comp">
<h4>å¯¾å¿œæƒ…å ±</h4>
-<p><tt>_FS_MINIMIZE < 3</tt>ã®ã¨ã使用å¯èƒ½ã§ã™ã€‚</p>
+<p><tt>_FS_MINIMIZE < 3</tt>ã®ã¨ã使用å¯èƒ½ã§ã™ã€‚高速シーク モードを利用ã™ã‚‹ã¨ãã¯ã€<tt><a href="config.html#use_fastseek">_USE_FASTSEEK</a> == 1</tt>ã§ã‚ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚</p>
</div>
@@ -107,6 +106,8 @@ FRESULT f_lseek ( DWORD clmt[SZ_TBL]; <span class="c">/* リンク マップ ãƒ†ãƒ¼ãƒ–ãƒ«æ ¼ç´ãƒãƒƒãƒ•ã‚¡ */</span>
+ res = f_open(fp, fname, FA_READ | FA_WRITE); <span class="c">/* ファイルを開ã */</span>
+
res = f_lseek(fp, ofs1); <span class="c">/* 通常シーク (オープン時ã€cltblã¯NULLã«åˆæœŸåŒ–ã•ã‚Œã‚‹) */</span>
fp->cltbl = clmt; <span class="c">/* 高速シーク機能ã®æœ‰åŠ¹åŒ– */</span>
@@ -121,7 +122,7 @@ FRESULT f_lseek ( <div class="para ref">
<h4>å‚ç…§</h4>
-<p><tt><a href="open.html">f_open</a>, <a href="sfile.html">FIL</a></tt></p>
+<p><tt><a href="open.html">f_open</a>, <a href="truncate.html">f_truncate</a>, <a href="expand.html">f_expand</a>, <a href="sfile.html">FIL</a></tt></p>
</div>
<p class="foot"><a href="../00index_j.html">戻る</a></p>
diff --git a/fatfs/doc/ja/mkdir.html b/fatfs/doc/ja/mkdir.html index 63da707..5e92469 100644 --- a/fatfs/doc/ja/mkdir.html +++ b/fatfs/doc/ja/mkdir.html @@ -13,7 +13,7 @@ <div class="para func">
<h2>f_mkdir</h2>
-<p>ディレクトリを作æˆã—ã¾ã™ã€‚</p>
+<p>サブ ディレクトリを作æˆã—ã¾ã™ã€‚</p>
<pre>
FRESULT f_mkdir (
const TCHAR* <span class="arg">path</span> <span class="c">/* [IN] 作æˆã™ã‚‹ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªåã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
@@ -53,7 +53,7 @@ FRESULT f_mkdir ( <div class="para desc">
<h4>解説</h4>
-<p>空ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’作æˆã—ã¾ã™ã€‚</p>
+<p>空ã®ã‚µãƒ– ディレクトリを作æˆã—ã¾ã™ã€‚ディレクトリを削除ã™ã‚‹ã¨ãã¯<a href="unlink.html"><tt>f_unlink</tt></a>関数を使用ã—ã¦ãã ã•ã„。</p>
</div>
diff --git a/fatfs/doc/ja/mkfs.html b/fatfs/doc/ja/mkfs.html index 19b4341..b237e6b 100644 --- a/fatfs/doc/ja/mkfs.html +++ b/fatfs/doc/ja/mkfs.html @@ -13,12 +13,14 @@ <div class="para func">
<h2>f_mkfs</h2>
-<p>è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–上ã«FATボリュームを作æˆ(フォーマット)ã—ã¾ã™ã€‚</p>
+<p>è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–上ã«FAT/exFATボリュームを作æˆ(フォーマット)ã—ã¾ã™ã€‚</p>
<pre>
FRESULT f_mkfs (
- const TCHAR* <span class="arg">path</span>, <span class="c">/* [IN] è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ç•ªå· */</span>
- BYTE <span class="arg">sfd</span>, <span class="c">/* [IN] 区画作æˆæ–¹æ³• */</span>
- UINT <span class="arg">au</span> <span class="c">/* [IN] クラス タサイズ */</span>
+ const TCHAR* <span class="arg">path</span>, <span class="c">/* [IN] è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ç•ªå· */</span>
+ BYTE <span class="arg">opt</span>, <span class="c">/* [IN] フォーマット オプション */</span>
+ DWORD <span class="arg">au</span>, <span class="c">/* [IN] クラスタ サイズ */</span>
+ void* <span class="arg">work</span>, <span class="c">/* [-] ワーク エリア */</span>
+ UINT <span class="arg">len</span> <span class="c">/* [IN] ワーク エリアã®ã‚µã‚¤ã‚º */</span>
);
</pre>
</div>
@@ -27,11 +29,15 @@ FRESULT f_mkfs ( <h4>引数</h4>
<dl class="par">
<dt>path</dt>
-<dd>フォーマット対象ã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–を示ã™<a href="filename.html">パスå</a>を示ã™ãƒŒãƒ«æ–‡å—<tt>'\0'</tt>終端ã®æ–‡å—列ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚ドライブ番å·ã‚’å«ã¾ãªã„å ´åˆã¯ã€ã‚«ãƒ¬ãƒ³ãƒˆ ドライブをæ„味ã—ã¾ã™ã€‚</dd>
-<dt>sfd</dt>
-<dd>パーテーション形å¼ã€‚(0(FDISK) ã¾ãŸã¯ 1(SFD))</dd>
+<dd>フォーマット対象ã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–を示ã™<a href="filename.html">パスå</a>を示ã™ãƒŒãƒ«æ–‡å—<tt>'\0'</tt>終端ã®æ–‡å—列ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚ドライブ番å·ã‚’å«ã¾ãªã„å ´åˆã¯ã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆ ドライブをæ„味ã—ã¾ã™ã€‚è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«ã¯<tt>f_mount</tt>関数ã§ãƒ¯ãƒ¼ã‚¯ã‚¨ãƒªã‚¢ãŒä¸Žãˆã‚‰ã‚Œã¦ã„ã‚‹å¿…è¦ã¯ã‚ã‚Šã¾ã›ã‚“。</dd>
+<dt>opt</dt>
+<dd>フォーマット オプション。<tt>FM_FAT, FM_FAT32, FM_EXFAT</tt>ã®å„フラグã®çµ„ã¿åˆã‚ã›(<tt>FM_ANY</tt>ã¯ã€ã“れらã®OR値)ã§ä½œæˆã™ã‚‹FATボリュームã®ã‚¿ã‚¤ãƒ—を指定ã—ã¾ã™ã€‚複数ã®ã‚¿ã‚¤ãƒ—ãŒæŒ‡å®šã•ã‚ŒãŸå ´åˆã€ãã®ä¸ã®ã„ãšã‚Œã‹ãŒè‡ªå‹•é¸æŠžã•ã‚Œã¾ã™ã€‚exFATãŒç„¡åŠ¹ã®ã¨ãã¯ã€<tt>FM_EXFAT</tt>ã¯ç„¡è¦–ã•ã‚Œã¾ã™ã€‚<tt>FM_SFD</tt>フラグを指定ã™ã‚‹ã¨ã€SFDå½¢å¼(後述)ã§ãƒœãƒªãƒ¥ãƒ¼ãƒ ã‚’é…ç½®ã—ã¾ã™ã€‚</dd>
<dt>au</dt>
-<dd>クラスタ サイズをãƒã‚¤ãƒˆæ•°ã¾ãŸã¯ã‚»ã‚¯ã‚¿æ•°ã§æŒ‡å®šã—ã¾ã™ã€‚値ãŒ1~128ã®ç¯„å›²å ´åˆã¯ã€ã‚»ã‚¯ã‚¿æ•°ã‚’示ã—ã¾ã™ã€‚値ãŒ<tt>_MIN_SS</tt>以上ã®å ´åˆã¯ã€ãƒã‚¤ãƒˆæ•°ã‚’示ã—ã¾ã™ã€‚無効値(0ã¾ãŸã¯2ã®ç´¯ä¹—ã§ãªã„値ãªã©)を指定ã—ãŸå ´åˆã€ãƒœãƒªãƒ¥ãƒ¼ãƒ ã®ã‚µã‚¤ã‚ºã«å¿œã˜ãŸãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã®ã‚¯ãƒ©ã‚¹ã‚¿ サイズãŒè‡ªå‹•é¸æŠžã•ã‚Œã¾ã™ã€‚</dd>
+<dd>クラスタ サイズをãƒã‚¤ãƒˆå˜ä½ã§æŒ‡å®šã—ã¾ã™ã€‚有効値ã¯ã€ã‚»ã‚¯ã‚¿ サイズã®Nå€ã¨ãªã‚Šã¾ã™ã€‚Nã¯2ã®ç´¯ä¹—ã§ã€FAT/FAT32ボリュームã§ã¯1~128ã€exFATボリュームã§ã¯1~32768ã§ã™ã€‚0を指定ã—ãŸå ´åˆã¯ã€ãƒœãƒªãƒ¥ãƒ¼ãƒ ã®ã‚µã‚¤ã‚ºã¨é¸æŠžã•ã‚ŒãŸFATタイプã«å¿œã˜ãŸãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã®ã‚¯ãƒ©ã‚¹ã‚¿ サイズãŒé¸æŠžã•ã‚Œã¾ã™ã€‚</dd>
+<dt>work</dt>
+<dd>ワークエリアã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
+<dt>len</dt>
+<dd>ワークエリアã®ã‚µã‚¤ã‚ºã‚’ãƒã‚¤ãƒˆå˜ä½ã§æŒ‡å®šã—ã¾ã™ã€‚ワークエリアã®ã‚µã‚¤ã‚ºã¯å°‘ãªãã¨ã‚‚関連ã™ã‚‹ãƒ‰ãƒ©ã‚¤ãƒ–ã®ã‚»ã‚¯ã‚¿ã‚µã‚¤ã‚ºã¯å¿…è¦ã§ã™ã€‚ã¾ãŸã€å分ã«å¤§ããªã‚µã‚¤ã‚ºã‚’与ãˆã‚‹ã“ã¨ã«ã‚ˆã‚Šã€æ›¸ãè¾¼ã¿ãƒˆãƒ©ãƒ³ã‚¶ã‚¯ã‚·ãƒ§ãƒ³ã®å›žæ•°ãŒæ¸›ã£ã¦ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆæ™‚é–“ã‚’çŸç¸®ã§ãã¾ã™ã€‚</dd>
</dl>
</div>
@@ -41,7 +47,6 @@ FRESULT f_mkfs ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#nr">FR_NOT_READY</a>,
-<a href="rc.html#ne">FR_NOT_ENABLED</a>,
<a href="rc.html#ma">FR_MKFS_ABORTED</a>,
<a href="rc.html#ip">FR_INVALID_PARAMETER</a>
</p>
@@ -49,14 +54,13 @@ FRESULT f_mkfs ( <div class="para desc">
<h4>説明</h4>
-<p>物ç†ãƒ‰ãƒ©ã‚¤ãƒ–上ã«FATボリュームを作æˆã—ã¾ã™ã€‚FDISKå½¢å¼ãŒæŒ‡å®šã•ã‚ŒãŸå ´åˆã¯ã€ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–全体をå ã‚る基本区画(パーテーション)ãŒä½œæˆã•ã‚Œã€ãã®ä¸ã«FATボリュームãŒä½œæˆã•ã‚Œã¾ã™ã€‚SFDå½¢å¼ã§ã¯ã€FATボリュームãŒç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®å…ˆé セクタã‹ã‚‰ãƒ™ã‚¿ã§ä½œæˆã•ã‚Œã¾ã™ã€‚</p>
-<p>フォーマットã™ã‚‹è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ãŒãƒžãƒ«ãƒ パーテーション機能(<tt>_MULTI_PARTITION</tt>)ã«ã‚ˆã£ã¦ç‰¹å®šã®åŒºç”»(1~4)ã«çµã³ä»˜ã‘られã¦ã„ã‚‹å ´åˆã¯ã€ãã®åŒºç”»ã®ä¸ã«FATボリュームãŒä½œæˆã•ã‚Œã¾ã™ã€‚<tt class="arg">sfd</tt>ã¯ç„¡è¦–ã•ã‚Œã€ã¾ãŸå¯¾å¿œã™ã‚‹ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã¯ã“ã‚Œã«å…ˆç«‹ã¡ã€<tt>f_fdisk()</tt>ã¾ãŸã¯ä»–ã®ãƒ„ールã§é©åˆ‡ã«åŒºç”»è¨å®šã•ã‚Œã¦ã„ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚</p>
-<p>パーテーション形å¼ã«ã¯ã€FDISKå½¢å¼ã¨SFDå½¢å¼ã®äºŒé€šã‚Šã‚ã‚Šã¾ã™ã€‚FDISKå½¢å¼ã¯ã€ãƒãƒ¼ãƒ‰ãƒ‡ã‚£ã‚¹ã‚¯ã€MMCã€SDCã€CFCã€U Diskãªã©ã§æ¨™æº–çš„ã«ä½¿ç”¨ã•ã‚Œã¾ã™ã€‚FDISKå½¢å¼ã§ã¯ä¸€å°ã®ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–上ã«ä¸€ã¤ã¾ãŸã¯è¤‡æ•°ã®åŒºç”»ã‚’作æˆã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚区画管ç†æƒ…å ±ã¯MBR(物ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®å…ˆé セクタ)ã«è¨˜éŒ²ã•ã‚Œã¾ã™ã€‚SFDå½¢å¼ã¯å˜ã«ä½•ã®åˆ†å‰²ã‚‚è¡Œã‚ãªã„å½¢å¼ã§ã€ãƒœãƒªãƒ¥ãƒ¼ãƒ ã¯ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®å…ˆé セクタã‹ã‚‰é–‹å§‹ã—ã¾ã™ã€‚SFDå½¢å¼ã¯ã€ãƒ•ãƒãƒƒãƒ”ー ディスクã€ãƒžã‚¤ã‚¯ãƒãƒ‰ãƒ©ã‚¤ãƒ–ã€å…‰å¦ãƒ‡ã‚£ã‚¹ã‚¯ã€ãŠã‚ˆã³ãã®ä»–スーパー フãƒãƒƒãƒ”ー メディアã§æ¨™æº–çš„ã«ä½¿ç”¨ã•ã‚Œã¦ã„ã¾ã™ã€‚</p>
-<p>FATタイプ(FAT12/FAT16/FAT32)ã¯ã€ãã®ãƒœãƒªãƒ¥ãƒ¼ãƒ 上ã®<em>クラスタ数ã«ã‚ˆã£ã¦ã®ã¿æ±ºå®š</em>ã•ã‚Œã‚‹æ±ºã¾ã‚Š[FAT仕様書より]ã«ãªã£ã¦ã„ã¦ã€ãれ以外ã®è¦å› ã¯ã‚ã‚Šã¾ã›ã‚“。ã—ãŸãŒã£ã¦ã€ã©ã®FATタイプã«ãªã‚‹ã‹ã¯ãƒœãƒªãƒ¥ãƒ¼ãƒ サイズã¨ã‚¯ãƒ©ã‚¹ã‚¿ サイズã«ä¾å˜ã—ã¾ã™ã€‚クラスタ サイズã¯å¤§ããã™ã‚‹ã»ã©æ€§èƒ½ãŒä¸ŠãŒã‚Šã¾ã™ã€‚</p>
-<p>クラスタ数ãŒFATタイプã®å¢ƒç•Œã«è¿‘ããªã‚‹ã¨ãã¯ã€<tt>FR_MKFS_ABORTED</tt>ã§é–¢æ•°ãŒå¤±æ•—ã™ã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚</p>
+<p>exFAT以外ã®ãƒœãƒªãƒ¥ãƒ¼ãƒ ã®FATタイプ(FAT12/FAT16/FAT32)ã¯ã€ãã®ãƒœãƒªãƒ¥ãƒ¼ãƒ 上ã®<em>クラスタ数ã«ã‚ˆã£ã¦ã®ã¿æ±ºå®š</em>ã•ã‚Œã‚‹æ±ºã¾ã‚Š[FAT仕様書より]ã«ãªã£ã¦ã„ã¦ã€ãれ以外ã®è¦å› ã¯ã‚ã‚Šã¾ã›ã‚“。ã—ãŸãŒã£ã¦ã€ã©ã®FATタイプã«ãªã‚‹ã‹ã¯ãƒœãƒªãƒ¥ãƒ¼ãƒ サイズã¨ã‚¯ãƒ©ã‚¹ã‚¿ サイズã«ä¾å˜ã—ã¾ã™ã€‚ãã®ãƒœãƒªãƒ¥ãƒ¼ãƒ ã®ã‚µã‚¤ã‚ºã«ãŠã„ã¦ã€æŒ‡å®šã•ã‚ŒãŸFATタイプã¨ã‚¯ãƒ©ã‚¹ã‚¿ サイズã®çµ„ã¿åˆã‚ã›ãŒæˆç«‹ã—å¾—ãªã„ã¨ãã¯ã€é–¢æ•°ã¯<tt>FR_MKFS_ABORTED</tt>ã§å¤±æ•—ã—ã¾ã™ã€‚</p>
+<p>クラスタã¨ã¯ã€ãƒ‡ãƒ¼ã‚¿æ ¼ç´é ˜åŸŸã®ç®¡ç†ã®å˜ä½ã®ã“ã¨ã§ã€ã“れをå˜ä½ã«ãƒ•ã‚¡ã‚¤ãƒ«ã«ãƒ‡ãƒ¼ã‚¿é ˜åŸŸãŒå‰²ã‚Šå½“ã¦ã‚‰ã‚Œã¾ã™ã€‚ãŸã¨ãˆã°ã€ã‚¯ãƒ©ã‚¹ã‚¿ サイズãŒ32768ã®ã¨ãã¯ã€100ãƒã‚¤ãƒˆã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚‚32768ãƒã‚¤ãƒˆã®ã‚¹ãƒšãƒ¼ã‚¹ã‚’消費ã™ã‚‹ã“ã¨ã«ãªã‚Šã¾ã™ã€‚ã“ã®ã‚ˆã†ã«ã€ã‚¯ãƒ©ã‚¹ã‚¿ サイズを大ããã™ã‚‹ã»ã©ãƒœãƒªãƒ¥ãƒ¼ãƒ ã®åˆ©ç”¨åŠ¹çŽ‡ãŒæ‚ªããªã‚Šã¾ã™ãŒã€ãã®ä¸€æ–¹ã§èªã¿æ›¸ãã®æ€§èƒ½ã¯ä¸ŠãŒã‚Šã¾ã™ã€‚クラスタ サイズã«ã‚ˆã‚‹åˆ©ç”¨åŠ¹çŽ‡ã¨æ€§èƒ½ã¯ãƒˆãƒ¬ãƒ¼ãƒ‰ オフã®é–¢ä¿‚ã«ã‚ã‚Šã¾ã™ã€‚GBクラスã®ã‚¹ãƒˆãƒ¬ãƒ¼ã‚¸ã§ã¯ã€æ¥µç«¯ã«å¤šãã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’扱ã‚ãªã„é™ã‚Š32768ãƒã‚¤ãƒˆä»¥ä¸Šã«(デフォルト指定ã§ã¯ãã®ã‚ˆã†ã«ãªã‚‹)ã—ã¦ãŠãã¨ã‚ˆã„ã§ã—ょã†ã€‚</p>
+<p>パーテーション形å¼ã«ã¯ã€FDISKå½¢å¼ã¨SFDå½¢å¼ã®äºŒé€šã‚Šã‚ã‚Šã¾ã™ã€‚FDISKå½¢å¼ã¯ã€ãƒãƒ¼ãƒ‰ãƒ‡ã‚£ã‚¹ã‚¯ã€ãƒžãƒ«ãƒãƒ¡ãƒ‡ã‚£ã‚¢ã‚«ãƒ¼ãƒ‰ã€SDカードã€CFカードã€USBメモリãªã©ã§æ¨™æº–çš„ã«ä½¿ç”¨ã•ã‚Œã¾ã™ã€‚FDISKå½¢å¼ã§ã¯ä¸€å°ã®ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–上ã«ä¸€ã¤ã¾ãŸã¯è¤‡æ•°ã®åŒºç”»ã‚’作æˆã™ã‚‹ã“ã¨ãŒã§ãã€åŒºç”»ç®¡ç†æƒ…å ±ã¯MBR(物ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®å…ˆé セクタ)ã«è¨˜éŒ²ã•ã‚Œã¾ã™ã€‚SFDå½¢å¼ã¯å˜ã«ä½•ã®åˆ†å‰²ã‚‚è¡Œã‚ãªã„å½¢å¼ã§ã€ãƒœãƒªãƒ¥ãƒ¼ãƒ ã¯ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®å…ˆé セクタã‹ã‚‰é–‹å§‹ã—ã¾ã™ã€‚SFDå½¢å¼ã¯ã€ãƒ•ãƒãƒƒãƒ”ー ディスクã€ãƒžã‚¤ã‚¯ãƒãƒ‰ãƒ©ã‚¤ãƒ–ã€å…‰å¦ãƒ‡ã‚£ã‚¹ã‚¯ã€ãŠã‚ˆã³ãã®ä»–スーパー フãƒãƒƒãƒ”ー メディアã§æ¨™æº–çš„ã«ä½¿ç”¨ã•ã‚Œã¦ã„ã¾ã™ã€‚システムã«ã‚ˆã£ã¦ã¯ã€FDISKå½¢å¼ã¾ãŸã¯SFDå½¢å¼ã®ã©ã¡ã‚‰ã‹ä¸€æ–¹ã®ã¿ã‚’サãƒãƒ¼ãƒˆã—他方をサãƒãƒ¼ãƒˆã—ã¾ã›ã‚“。</p>
+<p><tt>FM_SFD</tt>ãŒæŒ‡å®šã•ã‚Œãªã„ã¨ãã¯FDISKå½¢å¼ã¨ãªã‚Šã€ãã®ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–全体をå ã‚ã‚‹1個ã®åŸºæœ¬åŒºç”»(パーテーション)ãŒä½œæˆã•ã‚Œã€ãã®ä¸ã«FATボリュームãŒä½œæˆã•ã‚Œã¾ã™ã€‚<tt>FM_SFD</tt>ãŒæŒ‡å®šã•ã‚ŒãŸã¨ãã¯SFDå½¢å¼ã¨ãªã‚Šã€FATボリュームãŒãã®ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®å…ˆé セクタã‹ã‚‰ãƒ™ã‚¿ã§ä½œæˆã•ã‚Œã¾ã™ã€‚</p>
+<p>マルムパーテーション機能(<tt><a href="config.html#multi_partition">_MULTI_PARTITION</a></tt>)ã«ã‚ˆã‚Šã€ãã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ãŒç‰¹å®šã®åŒºç”»(1~4)ã«çµã³ä»˜ã‘られã¦ã„ã‚‹å ´åˆã¯ã€ãã®åŒºç”»ã®ä¸ã«FATボリュームãŒä½œæˆã•ã‚Œã¾ã™ã€‚<tt>FM_SFD</tt>ã®æŒ‡å®šã¯ç„¡è¦–ã•ã‚Œã€ãã®ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã¯ã“ã‚Œã«å…ˆç«‹ã¡ã€<tt>f_fdisk</tt>関数ã¾ãŸã¯ä»–ã®ãƒ„ールã§é©åˆ‡ã«åŒºç”»è¨å®šã•ã‚Œã¦ã„ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚</p>
</div>
-
<div class="para comp">
<h4>å¯¾å¿œæƒ…å ±</h4>
<p><tt>_FS_READONLY == 0</tt>ã§ã€ä¸”ã¤<tt>_USE_MKFS == 1</tt>ã®ã¨ã使用å¯èƒ½ã§ã™ã€‚</p>
@@ -66,43 +70,42 @@ FRESULT f_mkfs ( <div class="para use">
<h4>使用例</h4>
<pre>
-<span class="c">/* Format the default drive */</span>
+<span class="c">/* Format default drive and create a file */</span>
int main (void)
{
- FATFS fs; <span class="c">/* File system object (volume work area) */</span>
- FIL fil; <span class="c">/* File object */</span>
- FRESULT res; <span class="c">/* API result code */</span>
- UINT bw; <span class="c">/* Bytes written */</span>
+ FATFS fs; <span class="c">/* File system object */</span>
+ FIL fil; <span class="c">/* File object */</span>
+ FRESULT res; <span class="c">/* API result code */</span>
+ UINT bw; <span class="c">/* Bytes written */</span>
+ BYTE work[_MAX_SS]; <span class="c">/* Work area (larger is better for process time) */</span>
+
+ <span class="c">/* Create FAT volume */</span>
+ res = f_mkfs("", FM_ANY, 0, work, sizeof work);
+ if (res) ...
<span class="c">/* Register work area */</span>
f_mount(&fs, "", 0);
- <span class="c">/* Create FAT volume with default cluster size */</span>
- res = f_mkfs("", 0, 0);
- if (res) ...
-
<span class="c">/* Create a file as new */</span>
- res = f_open(&fil, "hello.txt", FA_CREATE_NEW | FA_WRITE);
+ res = f_open(&fil, "hello.txt", FA_CREATE_NEW | FA_WRITE);
if (res) ...
<span class="c">/* Write a message */</span>
- f_write(&fil, "Hello, World!\r\n", 15, &bw);
+ f_write(&fil, "Hello, World!\r\n", 15, &bw);
if (bw != 15) ...
<span class="c">/* Close the file */</span>
- f_close(&fil);
-
- <span class="c">/* Unregister work area */</span>
- f_mount(0, "", 0);
+ f_close(&fil);
+ ...
</pre>
</div>
<div class="para ref">
<h4>å‚ç…§</h4>
-<p><tt><a href="filename.html#vol">ボリューム管ç†</a>, <a href="fdisk.html">f_fdisk</a></tt></p>
+<p><a href="../res/mkfs.xls">ボリュームサイズã¨ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆ パラメータ</a>, <a href="filename.html#vol">ボリューム管ç†</a>, <tt><a href="fdisk.html">f_fdisk</a></tt></p>
</div>
diff --git a/fatfs/doc/ja/mount.html b/fatfs/doc/ja/mount.html index d465edb..7fde855 100644 --- a/fatfs/doc/ja/mount.html +++ b/fatfs/doc/ja/mount.html @@ -18,7 +18,7 @@ FRESULT f_mount (
FATFS* <span class="arg">fs</span>, <span class="c">/* [IN] ファイル システムオブジェクト */</span>
const TCHAR* <span class="arg">path</span>, <span class="c">/* [IN] è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ç•ªå· */</span>
- BYTE <span class="arg">opt</span> <span class="c">/* [IN] オプション */</span>
+ BYTE <span class="arg">opt</span> <span class="c">/* [IN] 動作オプション */</span>
);
</pre>
</div>
@@ -27,7 +27,7 @@ FRESULT f_mount ( <h4>引数</h4>
<dl class="par">
<dt>fs</dt>
-<dd>登録ã™ã‚‹ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトã¸ã®ãƒã‚¤ãƒ³ã‚¿ã€‚</dd>
+<dd>登録ã™ã‚‹ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトã¸ã®ãƒã‚¤ãƒ³ã‚¿ã€ã¾ãŸã¯ãƒŒãƒ« ãƒã‚¤ãƒ³ã‚¿</dd>
<dt>path</dt>
<dd>対象ã¨ãªã‚‹è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®<a href="filename.html">パスå</a>を示ã™ãƒŒãƒ«æ–‡å—'\0'終端ã®æ–‡å—列ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚パスåã«ãƒ‰ãƒ©ã‚¤ãƒ–番å·ãŒå«ã¾ã‚Œãªã„å ´åˆã¯ã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆ ドライブを指定ã—ãŸã“ã¨ã«ãªã‚Šã¾ã™ã€‚</dd>
<dt>opt</dt>
@@ -49,20 +49,20 @@ FRESULT f_mount ( <div class="para desc">
<h4>解説</h4>
-<p>FatFsモジュールã§ã¯ã€ãã‚Œãžã‚Œã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«<em>ファイル システムオブジェクト</em>ã¨ã„ã†ãƒ¯ãƒ¼ã‚¯ エリアãŒå¿…è¦ã§ã™ã€‚ã“ã®é–¢æ•°ã¯è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトを登録ã—ãŸã‚ŠæŠ¹æ¶ˆã—ãŸã‚Šã—ã¾ã™ã€‚何らã‹ã®ãƒ•ã‚¡ã‚¤ãƒ«é–¢æ•°ã‚’使用ã™ã‚‹å‰ã«ã€ã“ã®é–¢æ•°ã§ãã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトを与ãˆã¦ãŠã‹ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。<tt class="arg">fs</tt>ã«ãƒŒãƒ« ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã™ã‚‹ã¨ã€ãã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトã®ç™»éŒ²ã¯æŠ¹æ¶ˆã•ã‚Œã‚‹ã ã‘ã§ã™ã€‚登録抹消ã•ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトã®ãƒ¡ãƒ¢ãƒªã¯è§£æ”¾ã§ãã¾ã™ã€‚æ“作対象ã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–上ã«é–‹ã‹ã‚ŒãŸã¾ã¾ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚„ディレクトリãŒã‚ã£ãŸå ´åˆã€ãれらã«å¯¾ã—ã¦ä½œæˆã•ã‚ŒãŸæ§‹é€ 体ã¯å…¨ã¦ç„¡åŠ¹ã«ãªã‚Šã¾ã™ã€‚ã“ã®é–¢æ•°ã®å†…部処ç†ã¯æ¬¡ã®ã‚ˆã†ãªé †ã«è¡Œã‚ã‚Œã¾ã™ã€‚</p>
+<p>FatFsモジュールã§ã¯ã€ãã‚Œãžã‚Œã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«<em>ファイル システムオブジェクト</em>ã¨ã„ã†ãƒ¯ãƒ¼ã‚¯ エリアãŒå¿…è¦ã§ã™ã€‚ã“ã®é–¢æ•°ã¯è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトを登録ã—ãŸã‚ŠæŠ¹æ¶ˆã—ãŸã‚Šã—ã¾ã™ã€‚何らã‹ã®ãƒ•ã‚¡ã‚¤ãƒ«é–¢æ•°ã‚’使用ã™ã‚‹å‰ã«ã€ã“ã®é–¢æ•°ã§ãã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトを与ãˆã¦ãŠã‹ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。<tt class="arg">fs</tt>ã«ãƒŒãƒ« ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã™ã‚‹ã¨ã€ãã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトã®ç™»éŒ²ã¯æŠ¹æ¶ˆã•ã‚Œã‚‹ã ã‘ã§ã™ã€‚登録抹消ã•ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトã®ãƒ¡ãƒ¢ãƒªã¯è§£æ”¾ã§ãã¾ã™ã€‚æ“作ã®å¯¾è±¡ã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–上ã«é–‹ã‹ã‚ŒãŸã¾ã¾ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚„ディレクトリãŒã‚ã£ãŸå ´åˆã€ãれらã«å¯¾ã—ã¦ä½œæˆã•ã‚ŒãŸæ§‹é€ 体ã¯å…¨ã¦ç„¡åŠ¹ã«ãªã‚Šã¾ã™ã€‚ã“ã®é–¢æ•°ã®å†…部処ç†ã¯æ¬¡ã®ã‚ˆã†ãªé †ã«è¡Œã‚ã‚Œã¾ã™ã€‚</p>
<ol>
<li>対象ã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã‚’<tt class="arg">path</tt>ã‹ã‚‰å¾—る。</li>
-<li>æ—¢ã«ç™»éŒ²ã•ã‚Œã¦ã„るファイル システムオブジェクトã¯ã‚¯ãƒªã‚¢ã—ã€ç™»éŒ²ã‚’解除ã™ã‚‹ã€‚</li>
-<li><tt class="arg">fs</tt>ãŒæœ‰åŠ¹ãªãƒã‚¤ãƒ³ã‚¿ã®ã¨ãã¯ã€ãã®ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトをクリアã—登録ã™ã‚‹ã€‚</li>
+<li>登録ã•ã‚Œã¦ã„るファイル システムオブジェクトãŒã‚ã‚‹ã¨ãã¯ã€ãれをクリア(無効化)ã—ã€ç™»éŒ²ã‚’解除ã™ã‚‹ã€‚</li>
+<li><tt class="arg">fs</tt>ãŒæœ‰åŠ¹ãªãƒã‚¤ãƒ³ã‚¿ã®ã¨ãã¯ã€ãã®ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトをクリアã—ã€ç™»éŒ²ã™ã‚‹ã€‚</li>
<li>マウント動作ãŒæŒ‡å®šã•ã‚Œã¦ã„ã‚‹ã¨ãã¯ã€ãれを実行ã™ã‚‹ã€‚</li>
</ol>
<p><tt class="arg">opt</tt>ã«0を指定ã™ã‚‹ã¨ã€ãƒžã‚¦ãƒ³ãƒˆå‹•ä½œ(物ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®åˆæœŸåŒ–ã€FATボリュームã®æ¤œç´¢ã€BPBを解æžã—ファイル システムオブジェクトをåˆæœŸåŒ–)ã¯è¡Œã‚ã‚Œãšã€é–¢æ•°ã¯ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®çŠ¶æ…‹ã«é–¢ã‚らãšå¸¸ã«æˆåŠŸã—ã¾ã™ã€‚関数内ã§ã¯ä¸‹ä½ãƒ¬ã‚¤ãƒ¤ã¸ã®ã‚¢ã‚¯ã‚»ã‚¹ã¯ç™ºç”Ÿã›ãšã€æŒ‡å®šã•ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトをクリア(無効化)ã—ã€ãã®ã‚¢ãƒ‰ãƒ¬ã‚¹ã‚’内部é…列ã«ç™»éŒ²ã™ã‚‹ã ã‘ã§ã™ã€‚å˜ã«ç™»éŒ²æ¸ˆã¿ã®ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトをクリアã™ã‚‹ç›®çš„ã«ã‚‚使ãˆã¾ã™ã€‚実際ã®ãƒžã‚¦ãƒ³ãƒˆå‹•ä½œã¯ã€ãƒœãƒªãƒ¥ãƒ¼ãƒ ã¸ã®ã‚¢ã‚¯ã‚»ã‚¹(パスåを渡ã™ã‚‚ã®å…¨ã¦)ãŒè¡Œã‚ã‚ŒãŸã¨ãã«ã€æ¬¡ã®ã†ã¡ã„ãšã‚Œã‹ã®æ¡ä»¶ãŒçœŸã®å ´åˆã«è¡Œã‚ã‚Œã¾ã™ã€‚</p>
<ul>
-<li>ファイル システムオブジェクトãŒã‚¯ãƒªã‚¢(無効)状態(<tt>f_mount()</tt>ã®å®Ÿè¡Œã«ã‚ˆã‚‹)</li>
+<li>ファイル システムオブジェクトãŒã‚¯ãƒªã‚¢(無効)状態(<tt>f_mount</tt>関数ã®å®Ÿè¡Œã«ã‚ˆã‚‹)</li>
<li>物ç†ãƒ‰ãƒ©ã‚¤ãƒ–ãŒæœªåˆæœŸåŒ–状態(システムリセットやメディアã®äº¤æ›ã«ã‚ˆã‚‹)</li>
</ul>
-<p><tt class="arg">opt</tt>ã«1を指定ã™ã‚‹ã¨ã€ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトã®ç™»éŒ²ã«ç¶šãマウント動作ãŒè¡Œã‚ã‚Œã¾ã™ã€‚メディアãŒç„¡ã„ãªã©ã®ç†ç”±ã§ãƒžã‚¦ãƒ³ãƒˆå‹•ä½œã«å¤±æ•—ã™ã‚‹ã¨å¯¾å¿œã™ã‚‹ã‚¨ãƒ©ãƒ¼ã‚’è¿”ã—ファイル システムオブジェクト無効状態ã®ã¾ã¾ã«ãªã‚Šã¾ã™ãŒã€ç™»éŒ²è‡ªä½“ã¯æœ‰åŠ¹ãªã®ã§ç¶šã„ã¦ãƒœãƒªãƒ¥ãƒ¼ãƒ ã¸ã®ã‚¢ã‚¯ã‚»ã‚¹ãŒã‚ã‚Œã°å†ã³ãƒžã‚¦ãƒ³ãƒˆå‹•ä½œãŒå®Ÿè¡Œã•ã‚Œã¾ã™ã€‚</p>
-<p>下ä½ãƒ¬ã‚¤ãƒ¤ã®å®Ÿè£…上メディア交æ›ã®æ¤œå‡ºãŒã‚µãƒãƒ¼ãƒˆã•ã‚Œãªã„(<tt>disk_status()</tt>ã«åæ˜ ã•ã‚Œãªã„)ã¨ãã¯ã€ã‚¢ãƒ—リケーションã¯ãƒ¡ãƒ‡ã‚£ã‚¢äº¤æ›ã®å¾Œã“ã®é–¢æ•°ã§ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトを明示的ã«ã‚¯ãƒªã‚¢ã—ã€ãƒžã‚¦ãƒ³ãƒˆå‹•ä½œãŒæ£å¸¸ã«è¡Œãˆã‚‹ã‚ˆã†ã«ã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚</p>
+<p><tt class="arg">opt</tt>ã«1を指定ã™ã‚‹ã¨ã€ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトã®ç™»éŒ²ã«ç¶šãマウント動作ãŒè¡Œã‚ã‚Œã¾ã™ã€‚メディアãŒç„¡ã„ãªã©ã®ç†ç”±ã§ãƒžã‚¦ãƒ³ãƒˆå‹•ä½œã«å¤±æ•—ã™ã‚‹ã¨å¯¾å¿œã™ã‚‹ã‚¨ãƒ©ãƒ¼ã‚’è¿”ã—ファイル システムオブジェクトã¯ã‚¯ãƒªã‚¢çŠ¶æ…‹ã®ã¾ã¾ã«ãªã‚Šã¾ã™ãŒã€ç™»éŒ²è‡ªä½“ã¯æœ‰åŠ¹ãªã®ã§ç¶šã„ã¦ãƒœãƒªãƒ¥ãƒ¼ãƒ ã¸ã®ã‚¢ã‚¯ã‚»ã‚¹ãŒã‚ã‚Œã°å†ã³ãƒžã‚¦ãƒ³ãƒˆå‹•ä½œãŒå®Ÿè¡Œã•ã‚Œã¾ã™ã€‚</p>
+<p>下ä½ãƒ¬ã‚¤ãƒ¤ã®å®Ÿè£…上メディア交æ›ã®æ¤œå‡ºãŒã‚µãƒãƒ¼ãƒˆã•ã‚Œãªã„(<tt>disk_status</tt>関数ã«åæ˜ ã•ã‚Œãªã„)ã¨ãã¯ã€ã‚¢ãƒ—リケーションã¯ãƒ¡ãƒ‡ã‚£ã‚¢äº¤æ›ã®å¾Œã“ã®é–¢æ•°ã§ãƒ•ã‚¡ã‚¤ãƒ« システムオブジェクトを明示的ã«ã‚¯ãƒªã‚¢ã—ã€ãƒžã‚¦ãƒ³ãƒˆå‹•ä½œãŒæ£å¸¸ã«è¡Œãˆã‚‹ã‚ˆã†ã«ã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚</p>
</div>
diff --git a/fatfs/doc/ja/open.html b/fatfs/doc/ja/open.html index c308398..9fb7642 100644 --- a/fatfs/doc/ja/open.html +++ b/fatfs/doc/ja/open.html @@ -37,9 +37,10 @@ FRESULT f_open ( <tr><td>FA_READ</td><td>èªã¿å‡ºã—モードã§é–‹ãã¾ã™ã€‚èªã¿æ›¸ãã™ã‚‹å ´åˆã¯<tt>FA_WRITE</tt>ã¨å…±ã«æŒ‡å®šã—ã¾ã™ã€‚</td></tr>
<tr><td>FA_WRITE</td><td>書ãè¾¼ã¿ãƒ¢ãƒ¼ãƒ‰ã§é–‹ãã¾ã™ã€‚èªã¿æ›¸ãã™ã‚‹å ´åˆã¯<tt>FA_READ</tt>ã¨å…±ã«æŒ‡å®šã—ã¾ã™ã€‚</td></tr>
<tr><td>FA_OPEN_EXISTING</td><td>æ—¢å˜ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’é–‹ãã¾ã™ã€‚ファイルãŒç„¡ã„ã¨ãã¯ã‚¨ãƒ©ãƒ¼ã«ãªã‚Šã¾ã™ã€‚(デフォルト)</td></tr>
-<tr><td>FA_OPEN_ALWAYS</td><td>æ—¢å˜ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’é–‹ãã¾ã™ã€‚ファイルãŒç„¡ã„ã¨ãã¯ãƒ•ã‚¡ã‚¤ãƒ«ã‚’作æˆã—ã¾ã™ã€‚追記ã®å ´åˆã¯ã€ã“ã®æ–¹æ³•ã§ã‚ªãƒ¼ãƒ—ンã—ãŸå¾Œã€<a href="lseek.html"><tt>f_lseek()</tt></a>ã§ãƒ•ã‚¡ã‚¤ãƒ«ã®æœ€å¾Œå°¾ã«ç§»å‹•ã—ã¦ãã ã•ã„。</td></tr>
<tr><td>FA_CREATE_NEW</td><td>ファイルを作æˆã—ã¾ã™ã€‚åŒåã®ãƒ•ã‚¡ã‚¤ãƒ«ãŒã‚ã‚‹å ´åˆã¯ã€<tt>FR_EXIST</tt>ã§å¤±æ•—ã—ã¾ã™ã€‚</td></tr>
<tr><td>FA_CREATE_ALWAYS</td><td>ファイルを作æˆã—ã¾ã™ã€‚åŒåã®ãƒ•ã‚¡ã‚¤ãƒ«ãŒã‚ã‚‹å ´åˆã¯ã€ã‚µã‚¤ã‚ºã‚’0ã«ã—ã¦ã‹ã‚‰é–‹ãã¾ã™ã€‚</td></tr>
+<tr><td>FA_OPEN_ALWAYS</td><td>æ—¢å˜ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’é–‹ãã¾ã™ã€‚ファイルãŒç„¡ã„ã¨ãã¯ãƒ•ã‚¡ã‚¤ãƒ«ã‚’作æˆã—ã¾ã™ã€‚</td></tr>
+<tr><td>FA_OPEN_APPEND</td><td><tt>FA_OPEN_ALWAYS</tt>ã¨åŒã˜ã§ã™ãŒã€ãƒªãƒ¼ãƒ‰/ライト ãƒã‚¤ãƒ³ã‚¿ã¯ãƒ•ã‚¡ã‚¤ãƒ«ã®æœ€å¾Œå°¾ã«ã‚»ãƒƒãƒˆã•ã‚Œã¾ã™ã€‚</td></tr>
</table>
</dd>
</dl>
@@ -73,15 +74,15 @@ FRESULT f_open ( <div class="para desc">
<h4>解説</h4>
-<p>æ—¢å˜ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’é–‹ã„ãŸã‚Šã€æ–°ã—ã„ファイルを作æˆã—ã¾ã™ã€‚関数ãŒæˆåŠŸã™ã‚‹ã¨ãƒ•ã‚¡ã‚¤ãƒ« オブジェクトãŒä½œæˆã•ã‚Œã€ä»¥é™ãã®ãƒ•ã‚¡ã‚¤ãƒ«ã«å¯¾ã™ã‚‹ã‚¢ã‚¯ã‚»ã‚¹ã«ä½¿ç”¨ã—ã¾ã™ã€‚ファイルを閉ã˜ã‚‹ã¨ãã¯ã€<a href="close.html"><tt>f_close()</tt></a>を使用ã—ã¾ã™ã€‚何らã‹ã®å¤‰æ›´ãŒè¡Œã‚ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ«ãŒãã®å¾Œæ£ã—ãé–‰ã˜ã‚‰ã‚Œãªã‹ã£ãŸå ´åˆã€ãã®ãƒ•ã‚¡ã‚¤ãƒ«ãŒç ´æã™ã‚‹å ´åˆãŒã‚ã‚Šã¾ã™ã€‚</p>
+<p>æ—¢å˜ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’é–‹ã„ãŸã‚Šã€æ–°ã—ã„ファイルを作æˆã—ã¾ã™ã€‚関数ãŒæˆåŠŸã™ã‚‹ã¨ãƒ•ã‚¡ã‚¤ãƒ« オブジェクトãŒä½œæˆã•ã‚Œã€ä»¥é™ãã®ãƒ•ã‚¡ã‚¤ãƒ«ã«å¯¾ã™ã‚‹ã‚¢ã‚¯ã‚»ã‚¹ã«ä½¿ç”¨ã—ã¾ã™ã€‚ファイルを閉ã˜ã‚‹ã¨ãã¯ã€<a href="close.html"><tt>f_close</tt></a>関数を使用ã—ã¾ã™ã€‚何らã‹ã®å¤‰æ›´ãŒè¡Œã‚ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ«ãŒãã®å¾Œæ£ã—ãé–‰ã˜ã‚‰ã‚Œãªã‹ã£ãŸå ´åˆã€ãã®ãƒ•ã‚¡ã‚¤ãƒ«ãŒç ´æã™ã‚‹å ´åˆãŒã‚ã‚Šã¾ã™ã€‚</p>
<p>æ—¢ã«é–‹ã‹ã‚Œã¦ã„るファイルを開ãå¿…è¦ãŒã‚ã‚‹å ´åˆã¯ã€<a href="appnote.html#dup">多é‡ã‚¢ã‚¯ã‚»ã‚¹åˆ¶å¾¡</a>ã‚’å‚ç…§ã—ã¦ãã ã•ã„。ã—ã‹ã—ã€ä¸€ã¤ã®ãƒ•ã‚¡ã‚¤ãƒ«ã«å¯¾ã™ã‚‹æ›¸ãè¾¼ã¿ãƒ¢ãƒ¼ãƒ‰ã‚’å«ã‚€é‡è¤‡ã‚ªãƒ¼ãƒ—ンã¯å¸¸ã«ç¦æ¢ã§ã™ã€‚</p>
-<p>ファイル アクセスを開始ã™ã‚‹å‰ã«ã€<a href="mount.html"><tt>f_mount()</tt></a>を使ã£ã¦ãã‚Œãžã‚Œã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«ãƒ¯ãƒ¼ã‚¯ エリア(ファイル システムオブジェクト)を与ãˆã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚ã“ã®åˆæœŸåŒ–ã®å¾Œã€ãã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«å¯¾ã—ã¦å…¨ã¦ã®ãƒ•ã‚¡ã‚¤ãƒ«é–¢æ•°ãŒä½¿ãˆã‚‹ã‚ˆã†ã«ãªã‚Šã¾ã™ã€‚</p>
+<p>ファイル アクセスを開始ã™ã‚‹å‰ã«ã€<a href="mount.html"><tt>f_mount</tt></a>関数を使ã£ã¦ãã‚Œãžã‚Œã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«ãƒ¯ãƒ¼ã‚¯ エリア(ファイル システムオブジェクト)を与ãˆã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚ã“ã®åˆæœŸåŒ–ã®å¾Œã€ãã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«å¯¾ã—ã¦å…¨ã¦ã®ãƒ•ã‚¡ã‚¤ãƒ«é–¢æ•°ãŒä½¿ãˆã‚‹ã‚ˆã†ã«ãªã‚Šã¾ã™ã€‚<tt>f_mkfs</tt>関数ã¨<tt>f_fdsk</tt>関数ã¯ã€ãƒ¯ãƒ¼ã‚¯ã‚¨ãƒªã‚¢ç„¡ã—ã§ã‚‚使ãˆã¾ã™ã€‚</p>
</div>
<div class="para comp">
<h4>å¯¾å¿œæƒ…å ±</h4>
-<p>å…¨ã¦ã®æ§‹æˆã§ä½¿ç”¨å¯èƒ½ã§ã™ã€‚<tt>_FS_READONLY == 1</tt>ã®ã¨ãã¯ã€<tt>FA_WRITE, FA_CREATE_ALWAYS, FA_CREATE_NEW, FA_OPEN_ALWAYS</tt>ã®å„フラグã¯ã‚µãƒãƒ¼ãƒˆã•ã‚Œã¾ã›ã‚“。</p>
+<p>å…¨ã¦ã®æ§‹æˆã§ä½¿ç”¨å¯èƒ½ã§ã™ã€‚<tt>_FS_READONLY == 1</tt>ã®ã¨ãã¯ã€<tt>FA_READ</tt>ã¨<tt>FA_OPEN_EXISTING</tt>以外ã®å„フラグã¯ã‚µãƒãƒ¼ãƒˆã•ã‚Œã¾ã›ã‚“。</p>
</div>
diff --git a/fatfs/doc/ja/opendir.html b/fatfs/doc/ja/opendir.html index ae40984..15009b9 100644 --- a/fatfs/doc/ja/opendir.html +++ b/fatfs/doc/ja/opendir.html @@ -28,7 +28,7 @@ FRESULT f_opendir ( <dt>dp</dt>
<dd>空ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒª ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆæ§‹é€ ä½“ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
<dt>path</dt>
-<dd>オープンã™ã‚‹ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®<a href="filename.html">パスå</a>を示ã™ãƒŒãƒ«æ–‡å—<tt>'\0'</tt>終端ã®æ–‡å—列ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
+<dd>é–‹ãディレクトリã®<a href="filename.html">パスå</a>を示ã™ãƒŒãƒ«æ–‡å—<tt>'\0'</tt>終端ã®æ–‡å—列ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
</dl>
</div>
@@ -50,13 +50,12 @@ FRESULT f_opendir ( <a href="rc.html#nc">FR_NOT_ENOUGH_CORE</a>,
<a href="rc.html#tf">FR_TOO_MANY_OPEN_FILES</a>
</p>
-
</div>
<div class="para desc">
<h4>解説</h4>
-<p>ディレクトリを開ãã¾ã™ã€‚æ£å¸¸çµ‚了ã—ãŸã‚‰ã€ä½œæˆã•ã‚ŒãŸ<tt>DIR</tt>æ§‹é€ ä½“ã‚’ä½¿ã£ã¦ã“ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®é …ç›®ã‚’é †æ¬¡èªã¿å‡ºã›ã¾ã™ã€‚</p>
+<p>ディレクトリを開ãã¾ã™ã€‚æ£å¸¸çµ‚了ã—ãŸã‚‰ã€ä½œæˆã•ã‚ŒãŸãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒª ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆæ§‹é€ ä½“ã‚’ä½¿ã£ã¦ã“ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®é …ç›®ã‚’é †æ¬¡èªã¿å‡ºã›ã¾ã™ã€‚</p>
</div>
diff --git a/fatfs/doc/ja/printf.html b/fatfs/doc/ja/printf.html index 4de1da2..6e3a3f8 100644 --- a/fatfs/doc/ja/printf.html +++ b/fatfs/doc/ja/printf.html @@ -45,7 +45,7 @@ int f_printf ( <div class="para desc">
<h4>解説</h4>
-<p>ã“ã®é–¢æ•°ã¯ã€<a href="putc.html"><tt>f_putc()</tt></a>ãŠã‚ˆã³<a href="puts.html"><tt>f_puts()</tt></a>ã®ãƒ©ãƒƒãƒ‘ー関数ã§ã™ã€‚書å¼åˆ¶å¾¡æ©Ÿèƒ½ã¯C標準ライブラリã®ã‚µãƒ–セットã¨ãªã£ã¦ã„ã¦ã€æ›¸å¼åˆ¶å¾¡æ–‡å—ã¯æ¬¡ã«ç¤ºã™ã‚‚ã®ãŒä½¿ç”¨å¯èƒ½ã§ã™ã€‚</p>
+<p>書å¼åˆ¶å¾¡æ©Ÿèƒ½ã¯C標準ライブラリã®ã‚µãƒ–セットã¨ãªã£ã¦ã„ã¦ã€æ›¸å¼åˆ¶å¾¡æ–‡å—ã¯æ¬¡ã«ç¤ºã™ã‚‚ã®ãŒä½¿ç”¨å¯èƒ½ã§ã™ã€‚</p>
<ul>
<li>タイプ: <tt>c C s S d D u U x X b B</tt></li>
<li>精度指定: <tt>l L</tt></li>
@@ -56,7 +56,7 @@ int f_printf ( <div class="para comp">
<h4>å¯¾å¿œæƒ…å ±</h4>
-<p><tt>_FS_READONLY == 0</tt>ã§ã€ä¸”ã¤<tt>_USE_STRFUNC</tt>ãŒ1ã¾ãŸã¯2ã®ã¨ã使用å¯èƒ½ã«ãªã‚Šã¾ã™ã€‚2ã®æ™‚ã¯ã€å‡ºåŠ›ã«å«ã¾ã‚Œã‚‹<tt>'\n'</tt>ãŒ<tt>'\r'+'\n'</tt>ã«å±•é–‹ã•ã‚Œã¦ãƒ•ã‚¡ã‚¤ãƒ«ã«æ›¸ãè¾¼ã¾ã‚Œã¾ã™ã€‚</p>
+<p>ã“ã®é–¢æ•°ã¯ã€<a href="putc.html"><tt>f_putc</tt></a>関数ãŠã‚ˆã³<a href="puts.html"><tt>f_puts</tt></a>関数ã®ãƒ©ãƒƒãƒ‘ー関数ã§ã™ã€‚<tt>_FS_READONLY == 0</tt>ã§ã€ä¸”ã¤<tt>_USE_STRFUNC</tt>ãŒ1ã¾ãŸã¯2ã®ã¨ã使用å¯èƒ½ã«ãªã‚Šã¾ã™ã€‚2ã®æ™‚ã¯ã€å‡ºåŠ›ã«å«ã¾ã‚Œã‚‹<tt>'\n'</tt>ãŒ<tt>'\r'+'\n'</tt>ã«å±•é–‹ã•ã‚Œã¦ãƒ•ã‚¡ã‚¤ãƒ«ã«æ›¸ãè¾¼ã¾ã‚Œã¾ã™ã€‚</p>
<p>APIã«UnicodeãŒé¸æŠž(<tt>_LFN_UNICODE</tt>ãŒ1)ã•ã‚Œã¦ã„ã‚‹ã¨ãã¯ã€<tt class="arg">fmt</tt>ã¯Unicodeæ–‡å—列ã«ãªã‚Šã¾ã™ãŒã€ãƒ•ã‚¡ã‚¤ãƒ«ä¸Šã®ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã¯ã€<tt>_STRF_ENCODE</tt>オプションã§é¸æŠžã§ãã¾ã™ã€‚ãれ以外ã®æ™‚ã¯ç„¡å¤‰æ›(1ãƒã‚¤ãƒˆ/1æ–‡å—)ã§æ›¸ãè¾¼ã¿ã¾ã™ã€‚</p>
</div>
diff --git a/fatfs/doc/ja/putc.html b/fatfs/doc/ja/putc.html index 6b80b1a..2e0f494 100644 --- a/fatfs/doc/ja/putc.html +++ b/fatfs/doc/ja/putc.html @@ -42,13 +42,13 @@ int f_putc ( <div class="para desc">
<h4>解説</h4>
-<p>1æ–‡å—をファイルã«æ›¸ãè¾¼ã¿ã¾ã™ã€‚ã“ã®é–¢æ•°ã¯<a href="write.html"><tt>f_write()</tt></a>ã®ãƒ©ãƒƒãƒ‘ー関数ã§ã™ã€‚</p>
+<p>1æ–‡å—をファイルã«æ›¸ãè¾¼ã¿ã¾ã™ã€‚</p>
</div>
<div class="para comp">
<h4>å¯¾å¿œæƒ…å ±</h4>
-<p><tt>_FS_READONLY == 0</tt>ã§ã€ä¸”ã¤<tt>_USE_STRFUNC</tt>㌠1ã¾ãŸã¯ 2ã®ã¨ã使用å¯èƒ½ã§ã™ã€‚2を指定ã™ã‚‹ã¨ã€<tt>'\n'</tt>ã¯<tt>'\r'+'\n'</tt>ã«å±•é–‹ã•ã‚Œã¦ãƒ•ã‚¡ã‚¤ãƒ«ã«æ›¸ãè¾¼ã¾ã‚Œã¾ã™ã€‚</p>
+<p>ã“ã®é–¢æ•°ã¯<a href="write.html"><tt>f_write</tt></a>関数ã®ãƒ©ãƒƒãƒ‘ー関数ã§ã™ã€‚<tt>_FS_READONLY == 0</tt>ã§ã€ä¸”ã¤<tt>_USE_STRFUNC</tt>㌠1ã¾ãŸã¯ 2ã®ã¨ã使用å¯èƒ½ã§ã™ã€‚2を指定ã™ã‚‹ã¨ã€<tt>'\n'</tt>ã¯<tt>'\r'+'\n'</tt>ã«å±•é–‹ã•ã‚Œã¦ãƒ•ã‚¡ã‚¤ãƒ«ã«æ›¸ãè¾¼ã¾ã‚Œã¾ã™ã€‚</p>
</div>
diff --git a/fatfs/doc/ja/puts.html b/fatfs/doc/ja/puts.html index 4f3167c..a772e5e 100644 --- a/fatfs/doc/ja/puts.html +++ b/fatfs/doc/ja/puts.html @@ -42,13 +42,13 @@ int f_puts ( <div class="para desc">
<h4>解説</h4>
-<p>æ–‡å—列をファイルã«æ›¸ãè¾¼ã¿ã¾ã™ã€‚ã“ã®é–¢æ•°ã¯<a href="write.html"><tt>f_write()</tt></a>ã®ãƒ©ãƒƒãƒ‘ー関数ã§ã™ã€‚</p>
+<p>æ–‡å—列をファイルã«æ›¸ãè¾¼ã¿ã¾ã™ã€‚</p>
</div>
<div class="para comp">
<h4>å¯¾å¿œæƒ…å ±</h4>
-<p><tt>_FS_READONLY == 0</tt>ã§ã€ä¸”ã¤<tt>_USE_STRFUNC</tt>ãŒ1ã¾ãŸã¯2ã®ã¨ã使用å¯èƒ½ã§ã™ã€‚2を指定ã™ã‚‹ã¨ã€æ–‡å—列ã«å«ã¾ã‚Œã‚‹<tt>'\n'</tt>ã¯<tt>'\r'+'\n'<tt>ã«å±•é–‹ã•ã‚Œã¦ãƒ•ã‚¡ã‚¤ãƒ«ã«æ›¸ãè¾¼ã¾ã‚Œã¾ã™ã€‚</p>
+<p>ã“ã®é–¢æ•°ã¯<a href="write.html"><tt>f_write</tt></a>関数ã®ãƒ©ãƒƒãƒ‘ー関数ã§ã™ã€‚<tt>_FS_READONLY == 0</tt>ã§ã€ä¸”ã¤<tt>_USE_STRFUNC</tt>ãŒ1ã¾ãŸã¯2ã®ã¨ã使用å¯èƒ½ã§ã™ã€‚2を指定ã™ã‚‹ã¨ã€æ–‡å—列ã«å«ã¾ã‚Œã‚‹<tt>'\n'</tt>ã¯<tt>'\r'+'\n'<tt>ã«å±•é–‹ã•ã‚Œã¦ãƒ•ã‚¡ã‚¤ãƒ«ã«æ›¸ãè¾¼ã¾ã‚Œã¾ã™ã€‚</p>
</div>
diff --git a/fatfs/doc/ja/rc.html b/fatfs/doc/ja/rc.html index 45a4738..50005e8 100644 --- a/fatfs/doc/ja/rc.html +++ b/fatfs/doc/ja/rc.html @@ -11,22 +11,23 @@ <body>
<h1>ファイル関数ã®æˆ»ã‚Šå€¤</h1>
-<p>FatFsã®APIã§ã¯ã€ä¸€éƒ¨ã®é–¢æ•°ã‚’除ãçµæžœã«å¿œã˜ãŸå…±é€šã®ãƒªã‚¶ãƒ«ãƒˆ コード(FRESULTåž‹(enum))ã‚’è¿”ã—ã¾ã™ã€‚関数ãŒæˆåŠŸã—ãŸå ´åˆã¯0ã‚’è¿”ã—ã¾ã™ã€‚失敗ã—ãŸå ´åˆã¯0以外ã®å€¤ã‚’è¿”ã—ã€å€¤ã¯ã‚¨ãƒ©ãƒ¼ã®ç¨®é¡žã‚’示ã—ã¾ã™ã€‚</p>
+<p>FatFsã®APIã§ã¯ã€ä¸€éƒ¨ã®é–¢æ•°ã‚’除ãçµæžœã«å¿œã˜ãŸå…±é€šã®ãƒªã‚¶ãƒ«ãƒˆ コード(FRESULTåž‹(enum))ã‚’è¿”ã—ã¾ã™ã€‚関数ãŒæˆåŠŸã—ãŸå ´åˆã¯0 (<tt>FR_OK</tt>)ã‚’è¿”ã—ã¾ã™ã€‚失敗ã—ãŸå ´åˆã¯0以外ã®å€¤ã‚’è¿”ã—ã€å€¤ã¯ã‚¨ãƒ©ãƒ¼ã®ç¨®é¡žã‚’示ã—ã¾ã™ã€‚</p>
<dl class="ret">
<dt id="ok">FR_OK (0)</dt>
<dd>関数ã¯æˆåŠŸã—ãŸã€‚</dd>
<dt id="de">FR_DISK_ERR</dt>
-<dd>下ä½ãƒ¬ã‚¤ãƒ¤(<tt>disk_read(), disk_write(), disk_ioctl()</tt>関数)ã§å›žå¾©ä¸èƒ½ãªã‚¨ãƒ©ãƒ¼ãŒç™ºç”Ÿã—ãŸã€‚<br>※開ã‹ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ«ã®æ“作ã«ãŠã„ã¦ã“ã®ã‚¨ãƒ©ãƒ¼ãŒç™ºç”Ÿã™ã‚‹ã¨ã€ãã®ãƒ•ã‚¡ã‚¤ãƒ« オブジェクトã¯ã‚¢ãƒœãƒ¼ãƒˆçŠ¶æ…‹ã¨ãªã‚Šã€ã‚¯ãƒãƒ¼ã‚ºä»¥å¤–ã®ã®æ“作ãŒã§ããªããªã‚Šã¾ã™ã€‚</dd>
+<dd>下ä½ãƒ¬ã‚¤ãƒ¤(<tt>disk_read/disk_write/disk_ioctl</tt>関数)ã§å›žå¾©ä¸èƒ½ãªã‚¨ãƒ©ãƒ¼ãŒç™ºç”Ÿã—ãŸã€‚<br>※開ã‹ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ«ã®æ“作ã«ãŠã„ã¦ã“ã®ã‚¨ãƒ©ãƒ¼ãŒç™ºç”Ÿã™ã‚‹ã¨ã€ãã®ãƒ•ã‚¡ã‚¤ãƒ« オブジェクトã¯ã‚¢ãƒœãƒ¼ãƒˆçŠ¶æ…‹ã¨ãªã‚Šã€ã‚¯ãƒãƒ¼ã‚ºä»¥å¤–ã®æ“作ãŒã§ããªããªã‚Šã¾ã™ã€‚</dd>
<dt id="ie">FR_INT_ERR</dt>
-<dd>内部処ç†ã®å¥å…¨æ€§ã«ç•°å¸¸ãŒæ¤œå‡ºã•ã‚ŒãŸã€‚åŽŸå› ã¨ã—ã¦ã¯æ¬¡ã®ã‚ˆã†ãªã“ã¨ãŒè€ƒãˆã‚‰ã‚Œã¾ã™ã€‚
+<dd>内部処ç†ã®å¥å…¨æ€§ãƒã‚§ãƒƒã‚¯ã§ä½•ã‚‰ã‹ã®ç•°å¸¸ãŒæ¤œå‡ºã•ã‚ŒãŸã€‚åŽŸå› ã¨ã—ã¦ã¯æ¬¡ã®ã‚ˆã†ãªã“ã¨ãŒè€ƒãˆã‚‰ã‚Œã¾ã™ã€‚
<ul>
-<li>ボリューム上ã®FATæ§‹é€ ã«ã‚¨ãƒ©ãƒ¼ãŒã‚る。</li>
<li>スタックä¸è¶³ã‚„ä¸æ£ãªãƒ¡ãƒ¢ãƒªæ“作ç‰ã«ã‚ˆã‚‹ãƒ¯ãƒ¼ã‚¯ エリアã®ç ´å£Šã€‚多ãã¯ã“ã‚ŒãŒåŽŸå› 。</li>
+<li>ボリューム上ã®FATæ§‹é€ ã«ã‚¨ãƒ©ãƒ¼ãŒã‚る。</li>
+<li>FatFsモジュール自体ã®ãƒã‚°ã€‚</li>
</ul>
※開ã‹ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ«ã®æ“作ã«ãŠã„ã¦ã“ã®ã‚¨ãƒ©ãƒ¼ãŒç™ºç”Ÿã™ã‚‹ã¨ã€ãã®ãƒ•ã‚¡ã‚¤ãƒ« オブジェクトã¯ã‚¢ãƒœãƒ¼ãƒˆçŠ¶æ…‹ã¨ãªã‚Šã€ã‚¯ãƒãƒ¼ã‚ºä»¥å¤–ã®æ“作ãŒã§ããªããªã‚Šã¾ã™ã€‚</dd>
<dt id="nr">FR_NOT_READY</dt>
-<dd>物ç†ãƒ‰ãƒ©ã‚¤ãƒ–ãŒå‹•ä½œå¯èƒ½ãªçŠ¶æ…‹ã«ãªã„。ã¾ãŸã¯ã€ãƒ‰ãƒ©ã‚¤ãƒ–ã®åˆæœŸåŒ–ã«å¤±æ•—ã—ãŸã€‚</dd>
+<dd>下ä½ãƒ¬ã‚¤ãƒ¤(<tt>disk_initialize</tt>関数)ã®å¤±æ•—。ã¤ã¾ã‚Šã€ç‰©ç†ãƒ‰ãƒ©ã‚¤ãƒ–ãŒå‹•ä½œå¯èƒ½ãªçŠ¶æ…‹ã«ãªã„。</dd>
<dt id="nf">FR_NO_FILE</dt>
<dd>指定ã•ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ«ãŒè¦‹ã¤ã‹ã‚‰ãªã‹ã£ãŸã€‚</dd>
<dt id="np">FR_NO_PATH</dt>
@@ -37,49 +38,58 @@ <dd>ãã®ã‚ªãƒ–ジェクトã«å¯¾ã™ã‚‹æ“作ã®æ‹’å¦ã€‚åŽŸå› ã¨ã—ã¦ã¯æ¬¡ã®ã‚ˆã†ãªã“ã¨ãŒè€ƒãˆã‚‰ã‚Œã¾ã™ã€‚
<ul>
<li>書ãè¾¼ã¿ç¦æ¢å±žæ€§(<tt>AM_RDO</tt>)ã‚’æŒã¤ãƒ•ã‚¡ã‚¤ãƒ«ã‚’書ãè¾¼ã¿ãƒ¢ãƒ¼ãƒ‰ã§é–‹ã“ã†ã¨ã—ãŸã€‚</li>
-<li>書ãè¾¼ã¿ç¦æ¢å±žæ€§ã‚’æŒã¤ãƒ•ã‚¡ã‚¤ãƒ«ã‚„ディレクトリを削除ã—よã†ã¨ã—ãŸã€‚</li>
+<li>書ãè¾¼ã¿ç¦æ¢å±žæ€§ã‚’æŒã¤ã‚ªãƒ–ジェクトを削除ã—よã†ã¨ã—ãŸã€‚</li>
<li>空ã§ãªã„ディレクトリã¾ãŸã¯ã‚«ãƒ¬ãƒ³ãƒˆ ディレクトリを削除ã—よã†ã¨ã—ãŸã€‚</li>
<li><tt>FA_READ</tt>フラグを付ã‘ãšã«é–‹ã„ãŸãƒ•ã‚¡ã‚¤ãƒ«ã«å¯¾ã—ã¦èªã¿å‡ºã—ã‚’è¡Œã£ãŸã€‚</li>
-<li><tt>FA_WRITE</tt>フラグを付ã‘ãšã«é–‹ã„ãŸãƒ•ã‚¡ã‚¤ãƒ«ã«å¯¾ã—ã¦æ›¸ãè¾¼ã¿ã¾ãŸã¯ãã‚Œã«é¡žã™ã‚‹æ“作を行ã£ãŸã€‚</li>
-<li>ボリュームã¾ãŸã¯ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒª テーブルãŒæº€æ¯ã§ãƒ•ã‚¡ã‚¤ãƒ«ã‚„ディレクトリを作æˆã§ããªã‹ã£ãŸã€‚</li>
+<li><tt>FA_WRITE</tt>フラグを付ã‘ãšã«é–‹ã„ãŸãƒ•ã‚¡ã‚¤ãƒ«ã«å¯¾ã—ã¦å¤‰æ›´ã‚’åŠ ãˆã‚ˆã†ã¨ã—ãŸã€‚</li>
+<li>ボリュームã¾ãŸã¯é™çš„ディレクトリ(FAT12/16ã®ãƒ«ãƒ¼ãƒˆ)ãŒæº€æ¯ã§ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒª エントリã®æ–°è¦ä½œæˆãŒã§ããªã‹ã£ãŸã€‚</li>
+<li>ファイルã«å‰²ã‚Šå½“ã¦ã‚‹é€£ç¶šé ˜åŸŸãŒè¦‹ã¤ã‹ã‚‰ãªã‹ã£ãŸã€‚</li>
</ul>
</dd>
<dt id="ex">FR_EXIST</dt>
<dd>æ–°ã—ã作æˆã—よã†ã¨ã—ãŸã‚ªãƒ–ジェクトã¨åŒã˜åå‰ã®ã‚ªãƒ–ジェクトãŒæ—¢ã«å˜åœ¨ã™ã‚‹ã€‚</dd>
<dt id="io">FR_INVALID_OBJECT</dt>
-<dd>指定ã•ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ« オブジェクトやディレクトリ オブジェクトãŒç„¡åŠ¹(オープンã•ã‚Œã¦ã„ãªã„ã€æ—¢ã«é–‰ã˜ã‚‰ã‚ŒãŸã€ç ´æã—ã¦ã„ã‚‹ãªã©)ã€ã¾ãŸã¯ãƒŒãƒ« ãƒã‚¤ãƒ³ã‚¿ãŒæ¸¡ã•ã‚ŒãŸã€‚ã¾ãŸã€é–‹ã‹ã‚ŒãŸã¾ã¾ã®ã‚ªãƒ–ジェクトã¯ã€ãã‚Œã®å±žã™ã‚‹ãƒœãƒªãƒ¥ãƒ¼ãƒ ã®ãƒžã‚¦ãƒ³ãƒˆå‹•ä½œã«ã‚ˆã‚Šç„¡åŠ¹ã¨ãªã‚Šã¾ã™ã€‚</dd>
+<dd>指定ã•ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ« オブジェクトやディレクトリ オブジェクトãŒç„¡åŠ¹ã€ã¾ãŸã¯ãƒŒãƒ« ãƒã‚¤ãƒ³ã‚¿ãŒæ¸¡ã•ã‚ŒãŸã€‚無効ã«ãªã‚‹ç†ç”±ã¯æ¬¡ã®ã“ã¨ãŒè€ƒãˆã‚‰ã‚Œã¾ã™ã€‚
+<ul>
+<li>オープンã•ã‚Œã¦ã„ãªã„ã€æ—¢ã«é–‰ã˜ã‚‰ã‚ŒãŸã€ç ´æã—ã¦ã„ã‚‹ãªã©ã€‚</li>
+<li>ãã®ãƒœãƒªãƒ¥ãƒ¼ãƒ ã§ãƒžã‚¦ãƒ³ãƒˆå‹•ä½œãŒã‚ã‚Šã€ãƒœãƒªãƒ¥ãƒ¼ãƒ 上ã®é–‹ã‹ã‚ŒãŸã‚ªãƒ–ジェクトãŒå…¨ã¦ç„¡åŠ¹åŒ–ã•ã‚ŒãŸã€‚</li>
+<li>物ç†ãƒ‰ãƒ©ã‚¤ãƒ–ãŒãƒ¡ãƒ‡ã‚£ã‚¢ã®å–り外ã—ã§å‹•ä½œä¸å¯èƒ½ã«ãªã£ã¦ã„る。</li>
+</ul>
+</dd>
<dt id="wp">FR_WRITE_PROTECTED</dt>
<dd>物ç†ãƒ‰ãƒ©ã‚¤ãƒ–ãŒæ›¸ãè¾¼ã¿ç¦æ¢çŠ¶æ…‹ã®ã¨ãã€æ›¸ãè¾¼ã¿ã‚’ä¼´ã†æ“作を行ãŠã†ã¨ã—ãŸã€‚</dd>
<dt id="id">FR_INVALID_DRIVE</dt>
-<dd>パスåä¸ã«æŒ‡å®šã•ã‚ŒãŸãƒ‰ãƒ©ã‚¤ãƒ–番å·ãŒç„¡åŠ¹ã€ã¾ãŸã¯ãƒ‘スåã«ãƒŒãƒ« ãƒã‚¤ãƒ³ã‚¿ãŒæ¸¡ã•ã‚ŒãŸã€‚(関連オプション: <tt>_VOLUMES</tt>)</dd>
+<dd>パスåä¸ã«æŒ‡å®šã•ã‚ŒãŸãƒ‰ãƒ©ã‚¤ãƒ–番å·ãŒç„¡åŠ¹ã€ã¾ãŸã¯ãƒ‘スåã«ãƒŒãƒ« ãƒã‚¤ãƒ³ã‚¿ãŒæ¸¡ã•ã‚ŒãŸã€‚(関連オプション: <tt><a href="config.html#volumes">_VOLUMES</a></tt>)</dd>
<dt id="ne">FR_NOT_ENABLED</dt>
<dd>ãã®ãƒœãƒªãƒ¥ãƒ¼ãƒ ã®æ“作ã«å¿…è¦ãªãƒ¯ãƒ¼ã‚¯ エリア(ファイル ã‚·ã‚¹ãƒ†ãƒ ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆæ§‹é€ ä½“)ãŒä¸Žãˆã‚‰ã‚Œã¦ã„ãªã„。</dd>
<dt id="ns">FR_NO_FILESYSTEM</dt>
<dd>物ç†ãƒ‰ãƒ©ã‚¤ãƒ–上ã«æœ‰åŠ¹ãªFATボリュームãŒè¦‹ã¤ã‹ã‚‰ãªã‹ã£ãŸã€‚</dd>
<dt id="ma">FR_MKFS_ABORTED</dt>
-<dd><tt>f_mkfs()</tt>ã®å‡¦ç†ãŒé–‹å§‹å‰ã«ä¸æ–ã•ã‚ŒãŸã€‚åŽŸå› ã¨ã—ã¦ã¯æ¬¡ã®ã‚ˆã†ãªã“ã¨ãŒè€ƒãˆã‚‰ã‚Œã¾ã™ã€‚
+<dd><tt>f_mkfs</tt>関数ã®å‡¦ç†ãŒé–‹å§‹å‰ã«ä¸æ–ã•ã‚ŒãŸã€‚åŽŸå› ã¨ã—ã¦ã¯æ¬¡ã®ã‚ˆã†ãªã“ã¨ãŒè€ƒãˆã‚‰ã‚Œã¾ã™ã€‚
<ul>
-<li>ボリュームãŒå°ã•ã™ãŽã‚‹ã€‚</li>
-<li>FATタイプã®è¨ˆç®—ã«çŸ›ç›¾ãŒè¦‹ã¤ã‹ã£ãŸã€‚クラスタ数ãŒFATタイプã®å¢ƒç•Œä»˜è¿‘ã«ãªã‚‹ã¨ãã«ç™ºç”Ÿã™ã‚‹å ´åˆãŒã‚ã‚Šã¾ã™ã€‚</li>
-<li>ãã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«å¯¾å¿œã™ã‚‹åŒºç”»ãŒè¦‹ã¤ã‹ã‚‰ãªã‹ã£ãŸã€‚(関連オプション: <tt>_MULTI_PARTITION</tt>)</li>
+<li>指定ã•ã‚ŒãŸãƒ‘ラメータã§ã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆãŒä¸å¯èƒ½ã€‚</li>
+<li>ボリュームã®ã‚µã‚¤ã‚ºãŒå°ã•ã™ãŽã‚‹ã€‚</li>
+<li>与ãˆã‚‰ã‚ŒãŸãƒ¯ãƒ¼ã‚¯ã‚¨ãƒªã‚¢ãŒå°ã•ã™ãŽã‚‹ã€‚</li>
+<li>ãã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«å¯¾å¿œã™ã‚‹åŒºç”»ãŒè¦‹ã¤ã‹ã‚‰ãªã‹ã£ãŸã€‚(関連オプション: <tt><a href="config.html#multi_partition">_MULTI_PARTITION</a></tt>)</li>
</ul>
</dd>
<dt id="tm">FR_TIMEOUT</dt>
-<dd><a href="appnote.html#reentrant">å†å…¥åˆ¶å¾¡</a>ã«ã‚ˆã‚‹å¾…ã¡æ™‚é–“ãŒå®šç¾©ã•ã‚ŒãŸæ™‚間を越ãˆãŸãŸã‚ã€é–¢æ•°ã¯å®Ÿè¡Œã•ã‚Œãªã‹ã£ãŸã€‚(関連オプション: <tt>_TIMEOUT</tt>)</dd>
+<dd><a href="appnote.html#reentrant">å†å…¥åˆ¶å¾¡</a>ã«ã‚ˆã‚‹å¾…ã¡æ™‚é–“ãŒå®šç¾©ã•ã‚ŒãŸæ™‚間を越ãˆãŸãŸã‚ã€é–¢æ•°ã¯å®Ÿè¡Œã•ã‚Œãªã‹ã£ãŸã€‚(関連オプション: <tt><a href="config.html#timeout">_TIMEOUT</a></tt>)</dd>
<dt id="lo">FR_LOCKED</dt>
-<dd><a href="appnote.html#dup">多é‡ã‚¢ã‚¯ã‚»ã‚¹æŽ’他機能</a>ã«ã‚ˆã‚Šã€ãã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚„ディレクトリã«å¯¾ã—ã¦è¡ŒãŠã†ã¨ã—ãŸã‚¢ã‚¯ã‚»ã‚¹ãŒæ‹’å¦ã•ã‚ŒãŸã€‚(関連オプション: <tt>_FS_LOCK</tt>)</dd>
+<dd><a href="appnote.html#dup">多é‡ã‚¢ã‚¯ã‚»ã‚¹æŽ’他機能</a>ã«ã‚ˆã‚Šã€ãã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚„ディレクトリã«å¯¾ã—ã¦è¡ŒãŠã†ã¨ã—ãŸã‚¢ã‚¯ã‚»ã‚¹ãŒæ‹’å¦ã•ã‚ŒãŸã€‚(関連オプション: <tt><a href="config.html#fs_lock">_FS_LOCK</a></tt>)</dd>
<dt id="nc">FR_NOT_ENOUGH_CORE</dt>
<dd>メモリä¸è¶³ã«ã‚ˆã‚‹å¤±æ•—ã€‚åŽŸå› ã¨ã—ã¦ã¯æ¬¡ã®ã‚ˆã†ãªã“ã¨ãŒè€ƒãˆã‚‰ã‚Œã¾ã™ã€‚
<ul>
-<li>LFNæ“作ãƒãƒƒãƒ•ã‚¡ã®å‹•çš„確ä¿ã«å¤±æ•—ã—ãŸã€‚(関連オプション: <tt>_USE_LFN</tt>)</li>
+<li>LFNæ“作ãƒãƒƒãƒ•ã‚¡ã®å‹•çš„確ä¿ã«å¤±æ•—ã—ãŸã€‚(関連オプション: <tt><a href="config.html#use_lfn">_USE_LFN</a></tt>)</li>
<li>与ãˆã‚‰ã‚ŒãŸé…列ã®ã‚µã‚¤ã‚ºãŒå®Ÿéš›ã«å¿…è¦ãªã‚µã‚¤ã‚ºã«å¯¾ã—ã¦ä¸è¶³ã—ã¦ã„る。</li>
</ul>
</dd>
<dt id="tf">FR_TOO_MANY_OPEN_FILES</dt>
-<dd>åŒæ™‚オープンå¯èƒ½ãªãƒ•ã‚¡ã‚¤ãƒ«æ•°ã‚’越ãˆã¦ãƒ•ã‚¡ã‚¤ãƒ«ã‚’é–‹ã“ã†ã¨ã—ãŸã€‚(関連オプション: <tt>_FS_LOCK</tt>)</dd>
+<dd>åŒæ™‚オープンå¯èƒ½ãªãƒ•ã‚¡ã‚¤ãƒ«æ•°ã‚’越ãˆã¦ãƒ•ã‚¡ã‚¤ãƒ«ã‚’é–‹ã“ã†ã¨ã—ãŸã€‚(関連オプション: <tt><a href="config.html#fs_lock">_FS_LOCK</a></tt>)</dd>
<dt id="ip">FR_INVALID_PARAMETER</dt>
<dd>与ãˆã‚‰ã‚ŒãŸãƒ‘ラメータãŒç„¡åŠ¹ã¾ãŸã¯çŸ›ç›¾ã—ã¦ã„る。</dd>
</dl>
+<p class="foot"><a href="../00index_j.html">戻る</a></p>
</body>
</html>
diff --git a/fatfs/doc/ja/read.html b/fatfs/doc/ja/read.html index c7f2d25..e33e564 100644 --- a/fatfs/doc/ja/read.html +++ b/fatfs/doc/ja/read.html @@ -45,7 +45,6 @@ FRESULT f_read ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#de">FR_DENIED</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>
diff --git a/fatfs/doc/ja/readdir.html b/fatfs/doc/ja/readdir.html index fc8fc5c..5305b0a 100644 --- a/fatfs/doc/ja/readdir.html +++ b/fatfs/doc/ja/readdir.html @@ -26,9 +26,9 @@ FRESULT f_readdir ( <h4>引数</h4>
<dl class="par">
<dt>dp</dt>
-<dd>有効ãªãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒª ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆæ§‹é€ ä½“ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
+<dd><tt>f_opendir</tt>関数ã§ä½œæˆã•ã‚ŒãŸæœ‰åŠ¹ãªãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒª オブジェクトã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
<dt>fno</dt>
-<dd>èªã¿å‡ºã—ãŸãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªé …ç›®ã‚’æ ¼ç´ã™ã‚‹ãƒ•ã‚¡ã‚¤ãƒ«æƒ…å ±æ§‹é€ ä½“ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
+<dd>èªã¿å‡ºã—ãŸãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªé …ç›®ã‚’æ ¼ç´ã™ã‚‹<a href="sfileinfo.html">ãƒ•ã‚¡ã‚¤ãƒ«æƒ…å ±æ§‹é€ ä½“</a>ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã€ã¾ãŸã¯ãƒŒãƒ« ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
</dl>
</div>
@@ -39,7 +39,6 @@ FRESULT f_readdir ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>,
<a href="rc.html#nc">FR_NOT_ENOUGH_CORE</a>
@@ -49,18 +48,16 @@ FRESULT f_readdir ( <div class="para desc">
<h4>解説</h4>
-<p>ディレクトリã®é …ç›®(ファイルã¨ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒª)ã‚’é †æ¬¡èªã¿å‡ºã—ã¾ã™ã€‚ã“ã®é–¢æ•°ã‚’ç¹°ã‚Šè¿”ã—実行ã™ã‚‹ã“ã¨ã«ã‚ˆã‚Šãã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®å…¨ã¦ã®é …目をèªã¿å‡ºã™ã“ã¨ãŒã§ãã¾ã™ã€‚å¾—ã‚‰ã‚Œã‚‹ãƒ•ã‚¡ã‚¤ãƒ«æƒ…å ±ã®è©³ç´°ã«ã¤ã„ã¦ã¯ <tt>FILINFO</tt>æ§‹é€ ä½“ã‚’å‚ç…§ã—ã¦ãã ã•ã„。全ã¦ã®é …ç›®ãŒèªã¿å‡ºã•ã‚Œã€èªã¿å‡ºã™é …ç›®ãŒã‚‚ã†ç„¡ã„ã¨ãã¯ã€<tt>fname[]</tt>メンãƒã«ãƒŒãƒ«æ–‡å—列ãŒè¿”ã•ã‚Œã¾ã™ã€‚<tt class="arg">fno</tt>ã«ãƒŒãƒ« ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã™ã‚‹ã¨ã€ãã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®ãƒªãƒ¼ãƒ‰ インデックスを先é ã«å·»ã戻ã—ã¾ã™ã€‚ã¾ãŸã€ã“ã®é–¢æ•°ã¯æ¬¡ã«ç¤ºã™ã‚ˆã†ã«é–¢é€£ã™ã‚‹æ§‹æˆã‚ªãƒ—ションã«ã‚ˆã‚Šå‹•ä½œãŒå¤‰ã‚ã‚Šã¾ã™ã€‚</p>
-<p>ドット エントリ("."ã€"..")ã¯ã€ç›¸å¯¾ãƒ‘スãŒæœ‰åŠ¹ãªã¨ã(<tt>_FS_RPATH >= 1</tt>)ã«ã®ã¿å‡ºåŠ›ã«ç¾ã‚Œã¾ã™ã€‚</p>
-<p>LFN機能ãŒæœ‰åŠ¹ãªæ™‚ã¯ã€ã“ã®é–¢æ•°ã®å‘¼ã³å‡ºã—ã«å…ˆç«‹ã£ã¦<tt>FILINFO</tt>æ§‹é€ ä½“ã®<tt>lfname</tt>ã¨<tt>lfsize</tt>ãŒæœ‰åŠ¹ãªå€¤ã§åˆæœŸåŒ–ã•ã‚Œã¦ã„ãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。<tt>lfname</tt>ã¯LFNã‚’æ ¼ç´ã™ã‚‹ãƒãƒƒãƒ•ã‚¡ã§ã€<tt>lfsize</tt>ã¯ãã®ãƒãƒƒãƒ•ã‚¡ã®è¦ç´ æ•°ã§ã™ã€‚LFNã‚’èªã¿å‡ºã™å¿…è¦ãŒãªã„ã¨ãã¯ã€<tt>lfname</tt>ã«ãƒŒãƒ« ãƒã‚¤ãƒ³ã‚¿ã‚’セットã—ã¦ãã ã•ã„。次ã®æ¡ä»¶ã«ä¸€ã¤ã§ã‚‚該当ã™ã‚‹å ´åˆã¯ã€LFNæ ¼ç´ãƒãƒƒãƒ•ã‚¡ã«ãƒŒãƒ«æ–‡å—列ãŒè¿”ã•ã‚Œã¾ã™ã€‚</p>
+<p>ディレクトリã®é …ç›®(ファイルãŠã‚ˆã³ã‚µãƒ– ディレクトリ)ã®æƒ…å ±ã‚’é †æ¬¡èªã¿å‡ºã—ã¾ã™ã€‚ã“ã®é–¢æ•°ã‚’ç¹°ã‚Šè¿”ã—実行ã™ã‚‹ã“ã¨ã«ã‚ˆã‚Šãã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®å…¨ã¦ã®é …目をèªã¿å‡ºã™ã“ã¨ãŒã§ãã¾ã™ã€‚å¾—ã‚‰ã‚Œã‚‹ãƒ•ã‚¡ã‚¤ãƒ«æƒ…å ±ã®è©³ç´°ã«ã¤ã„ã¦ã¯ <tt>FILINFO</tt>æ§‹é€ ä½“ã‚’å‚ç…§ã—ã¦ãã ã•ã„。全ã¦ã®é …ç›®ãŒèªã¿å‡ºã•ã‚Œã€èªã¿å‡ºã™é …ç›®ãŒã‚‚ã†ç„¡ã„ã¨ãã¯ã€<tt>fno->fname[]</tt>ã«ãƒŒãƒ«æ–‡å—列ãŒè¿”ã•ã‚Œã¾ã™ã€‚<tt class="arg">fno</tt>ã«ãƒŒãƒ« ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã™ã‚‹ã¨ã€ãã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®ãƒªãƒ¼ãƒ‰ インデックスを先é ã«å·»ã戻ã—ã¾ã™ã€‚サブ ディレクトリã®ãƒ‰ãƒƒãƒˆ エントリ(<tt>"."</tt>ã¨<tt>".."</tt>)ã¯ã€å‡ºåŠ›ã«ç¾ã‚Œã¾ã›ã‚“。</p>
+<p>LFN構æˆã§ã¯ã€<tt>altname[]</tt>ãŒæ–°ãŸã«å®šç¾©ã•ã‚Œã€ãã®ã‚ªãƒ–ジェクトã®çŸã„ファイルåãŒã‚¹ãƒˆã‚¢ã•ã‚Œã¾ã™ã€‚次ã®æ¡ä»¶ã®ã¨ãã¯é•·ã„ファイルåã‚’è¿”ã›ãªã„ã®ã§<tt>fname[]</tt>ã«çŸã„ファイルåãŒã‚¹ãƒˆã‚¢ã•ã‚Œã€<tt>altname[]</tt>ã¯ãƒŒãƒ«æ–‡å—列ã«ãªã‚Šã¾ã™ã€‚</p>
<ul>
-<li>ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªé …ç›®ã«LFNæƒ…å ±ãŒå˜åœ¨ã—ãªã„。</li>
-<li>LFNã®é•·ã•ã«å¯¾ã—ã¦LFNæ ¼ç´ãƒãƒƒãƒ•ã‚¡ã¾ãŸã¯LFNæ“作ãƒãƒƒãƒ•ã‚¡ã®ã‚µã‚¤ã‚ºãŒä¸å分。</li>
-<li>LFNã«ç¾åœ¨ã®OEMコードã«å˜åœ¨ã—ãªã„æ–‡å—ãŒå«ã¾ã‚Œã¦ã„る。(éžUnicode構æˆã®ã¨ã)</li>
+<li>オブジェクトãŒé•·ã„ファイルåã‚’æŒã£ã¦ã„ãªã„。(exFATボリュームã§ã¯è©²å½“ã›ãš)</li>
+<li><tt>_MAX_LFN</tt>ã®è¨å®šãŒãã®é•·ã„ファイルåã®é•·ã•ã«å¯¾ã—ã¦ä¸å分 (<tt>_MAX_LFN == 255</tt>ã§ã¯è©²å½“ã›ãš)</li>
+<li>é•·ã„ファイルåã«ANSI/OEMコードã«ç„¡ã„æ–‡å—ãŒå«ã¾ã‚Œã¦ã„る。(<tt>_LFN_UNICODE == 1</tt>ã§ã¯è©²å½“ã›ãš)</li>
</ul>
-<p>ã¾ãŸã€ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªé …ç›®ã«LFNæƒ…å ±ãŒå˜åœ¨ã—ãªã„å ´åˆã¯ã€<tt>fname[]</tt>ã«è‹±å°æ–‡å—ãŒå«ã¾ã‚Œã‚‹å ´åˆãŒã‚ã‚Šã¾ã™ã€‚</p>
+<p>exFATボリュームã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’èªã¿å‡ºã™ã¨ãã€æ§‹æˆã«ã‚ˆã£ã¦ã¯å•é¡ŒãŒç™ºç”Ÿã—ã¾ã™ã€‚exFATã§ã¯çŸã„ファイルåãŒã‚µãƒãƒ¼ãƒˆã•ã‚Œã¾ã›ã‚“。ã¤ã¾ã‚Šã€ä¸Šè¨˜ã®æ¡ä»¶ã®ã¨ã代ã‚ã‚Šã«è¿”ã™ãƒ•ã‚¡ã‚¤ãƒ«åãŒç„¡ã„ã¨ã„ã†ã“ã¨ã§ã™ã€‚ã“ã®ã‚ˆã†ãªå ´åˆã¯<tt>fname[]</tt>ã«"?"ãŒè¿”ã•ã‚Œã€ãã®ã‚ªãƒ–ジェクトã«ã‚¢ã‚¯ã‚»ã‚¹ã§ããªã„ã“ã¨ã‚’示ã—ã¾ã™ã€‚ã“ã®å•é¡Œã‚’é¿ã‘ã‚‹ã«ã¯ã€FatFsã®æ§‹æˆã‚’<tt>_LFN_UNICODE = 1</tt>ãŠã‚ˆã³<tt>_MAX_LFN = 255</tt>ã¨ã—ã¦é•·ã„ファイルåã«å®Œå…¨å¯¾å¿œã¨ã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚</p>
</div>
-
<div class="para comp">
<h4>å¯¾å¿œæƒ…å ±</h4>
<p><tt>_FS_MINIMIZE <= 1</tt>ã®ã¨ãã«ä½¿ç”¨å¯èƒ½ã§ã™ã€‚</p>
@@ -70,44 +67,50 @@ FRESULT f_readdir ( <div class="para use">
<h4>使用例</h4>
<pre>
+FATFS fs;
+char buff[256];
+
FRESULT scan_files (
char* path <span class="c">/* 開始ノード (ワークエリアã¨ã—ã¦ã‚‚使用) */</span>
)
{
FRESULT res;
- FILINFO fno;
DIR dir;
- int i;
- char *fn; <span class="c">/* éžUnicode構æˆã‚’想定 */</span>
-<span class="k">#if</span> _USE_LFN
- static char lfn[_MAX_LFN + 1];
- fno.lfname = lfn;
- fno.lfsize = sizeof lfn;
-<span class="k">#endif</span>
+ UINT i;
+ static FILINFO fno;
res = f_opendir(&dir, path); <span class="c">/* ディレクトリを開ã */</span>
if (res == FR_OK) {
- i = strlen(path);
for (;;) {
res = f_readdir(&dir, &fno); <span class="c">/* ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªé …ç›®ã‚’1個èªã¿å‡ºã™ */</span>
if (res != FR_OK || fno.fname[0] == 0) break; <span class="c">/* エラーã¾ãŸã¯é …目無ã—ã®ã¨ãã¯æŠœã‘ã‚‹ */</span>
- if (fno.fname[0] == '.') continue; <span class="c">/* ドットエントリã¯ç„¡è¦– */</span>
-<span class="k">#if</span> _USE_LFN
- fn = *fno.lfname ? fno.lfname : fno.fname;
-<span class="k">#else</span>
- fn = fno.fname;
-<span class="k">#endif</span>
if (fno.fattrib & AM_DIR) { <span class="c">/* ディレクトリ */</span>
- sprintf(&path[i], "/%s", fn);
- res = scan_files(path);
- path[i] = 0;
+ i = strlen(path);
+ sprintf(&path[i], "/%s", fno.fname);
+ res = scan_files(path); <span class="c">/* 一ã¤ä¸‹ã¸ */</span>
if (res != FR_OK) break;
+ path[i] = 0;
} else { <span class="c">/* ファイル */</span>
- printf("%s/%s\n", path, fn);
+ printf("%s/%s\n", path, fno.fname);
}
}
- f_closedir(&dir);
+ f_closedir(&dir)
+ }
+
+ return res;
+}
+
+
+int main (void)
+{
+ FRESULT res;
+
+
+ res = f_mount(&fs, "", 1);
+ if (res == FR_OK) {
+ strcpy(buff, "/");
+ res = scan_files(buff);
}
return res;
diff --git a/fatfs/doc/ja/rename.html b/fatfs/doc/ja/rename.html index 5259846..84bb797 100644 --- a/fatfs/doc/ja/rename.html +++ b/fatfs/doc/ja/rename.html @@ -28,7 +28,7 @@ FRESULT f_rename ( <dt>old_name</dt>
<dd>変更対象ã®ãƒ•ã‚¡ã‚¤ãƒ«ã¾ãŸã¯ã‚µãƒ– ディレクトリã®<a href="filename.html">パスå</a>を示ã™ãƒŒãƒ«æ–‡å—<tt>'\0'</tt>終端ã®æ–‡å—列ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚</dd>
<dt>new_name</dt>
-<dd>æ–°ã—ã„パスåを示ã™ãƒŒãƒ«æ–‡å—<tt>'\0'</tt>終端ã®æ–‡å—列ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚æ—¢ã«å˜åœ¨ã™ã‚‹ã‚ªãƒ–ジェクトã¨åŒã˜åå‰ã¯ä½¿ãˆã¾ã›ã‚“。ã¾ãŸã€ãƒ‰ãƒ©ã‚¤ãƒ–番å·ã¯æŒ‡å®šã—ã¦ã‚‚無視ã•ã‚Œã€<tt class="arg">old_name</tt>ã§æ±ºã‚られãŸè«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–上ã®ã‚ªãƒ–ジェクトã¨ã—ã¦æ‰±ã‚ã‚Œã¾ã™ã€‚</dd>
+<dd>æ–°ã—ã„パスåを示ã™ãƒŒãƒ«æ–‡å—<tt>'\0'</tt>終端ã®æ–‡å—列ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã‚’指定ã—ã¾ã™ã€‚ã¾ãŸã€ãƒ‰ãƒ©ã‚¤ãƒ–番å·ã¯æŒ‡å®šã—ã¦ã‚‚無視ã•ã‚Œã€<tt class="arg">old_name</tt>ã§æ±ºã‚られãŸãƒœãƒªãƒ¥ãƒ¼ãƒ 上ã®ã‚ªãƒ–ジェクトã¨ã—ã¦æ‰±ã‚ã‚Œã¾ã™ã€‚ã“ã‚Œã¨åŒã˜ãƒ‘スå(<tt class="arg">old_name</tt>ã¯é™¤ã)ã®ã‚ªãƒ–ジェクトãŒå˜åœ¨ã™ã‚‹ã¨ã€é–¢æ•°ã¯<tt>FR_EXIST</tt>ã§å¤±æ•—ã—ã¾ã™ã€‚</dd>
</dl>
</div>
@@ -56,7 +56,7 @@ FRESULT f_rename ( <div class="para desc">
<h4>解説</h4>
-<p>ファイルã¾ãŸã¯ã‚µãƒ– ディレクトリã®åå‰ã‚’変更ã—ã¾ã™ã€‚ã¾ãŸã€åŒæ™‚ã«åˆ¥ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã¸ã®ç§»å‹•ã‚‚å¯èƒ½ã§ã™ãŒã€ç•°ãªã‚‹ãƒ‰ãƒ©ã‚¤ãƒ–ã¸ã®ç§»å‹•ã¯ã§ãã¾ã›ã‚“。<em>é–‹ã‹ã‚Œã¦ã„るオブジェクトã«å¯¾ã—ã¦ä½¿ç”¨ã—ã¦ã¯ãªã‚Šã¾ã›ã‚“</em>。</p>
+<p>ファイルã¾ãŸã¯ã‚µãƒ– ディレクトリã®åå‰ã‚’変更ã—ã¾ã™ã€‚ã¾ãŸã€åŒæ™‚ã«åˆ¥ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã¸ã®ç§»å‹•ã‚‚å¯èƒ½ã§ã™ãŒã€ç•°ãªã‚‹ãƒ‰ãƒ©ã‚¤ãƒ–é–“ã®ç§»å‹•ã¯ã§ãã¾ã›ã‚“。開ã‹ã‚Œã¦ã„るオブジェクトã«å¯¾ã™ã‚‹ä½¿ç”¨ã¯ä¸æ£ãªæ“作ã¨ãªã‚Šã€<em>FATæ§‹é€ ãŒç ´å£Šã•ã‚Œã‚‹å¯èƒ½æ€§</em>ãŒã‚ã‚Šã¾ã™ã€‚<a href="appnote.html#dup">多é‡ã‚¢ã‚¯ã‚»ã‚¹åˆ¶å¾¡</a>ãŒæœ‰åŠ¹ã®ã¨ãã¯å®‰å…¨ã«æ‹’å¦ã•ã‚Œã¾ã™ã€‚</p>
</div>
@@ -69,11 +69,14 @@ FRESULT f_rename ( <div class="para use">
<h4>使用例</h4>
<pre>
- <span class="c">/* ファイルã¾ãŸã¯ã‚µãƒ–ディレクトリã®åå‰ã‚’変更ã™ã‚‹ */</span>
+ <span class="c">/* デフォルト ドライブã«ã‚るオブジェクトã®åå‰ã‚’変更 */</span>
f_rename("oldname.txt", "newname.txt");
- <span class="c">/* ファイルã¾ãŸã¯ã‚µãƒ–ディレクトリã®åå‰ã®å¤‰æ›´ã¨åˆ¥ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã¸ã®ç§»å‹• */</span>
- f_rename("oldname.txt", "dir1/newname.txt");
+ <span class="c">/* ドライブ2ã«ã‚るオブジェクトã®åå‰ã‚’変更 */</span>
+ f_rename("2:oldname.txt", "newname.txt");
+
+ <span class="c">/* åå‰ã®å¤‰æ›´ã¨åŒæ™‚ã«åˆ¥ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã«ç§»å‹• */</span>
+ f_rename("log.txt", "old/log0001.txt");
</pre>
</div>
diff --git a/fatfs/doc/ja/sdir.html b/fatfs/doc/ja/sdir.html index 3390549..0ac0b0e 100644 --- a/fatfs/doc/ja/sdir.html +++ b/fatfs/doc/ja/sdir.html @@ -13,23 +13,21 @@ <div class="para">
<h2>DIR</h2>
-<p><tt>DIR</tt>æ§‹é€ ä½“ã¯ã€<tt>f_opendir(), f_readdir()</tt>ã®ãƒ¯ãƒ¼ã‚¯ エリアã¨ã—ã¦ä½¿ç”¨ã•ã‚Œã¾ã™ã€‚アプリケーションã¯ã€ã“ã®æ§‹é€ 体ã®ãƒ¡ãƒ³ãƒã‚’書ãæ›ãˆã¦ã¯ãªã‚Šã¾ã›ã‚“。</p>
+<p><tt>DIR</tt>æ§‹é€ ä½“ã¯ã€<tt>f_opendir/f_readdir/f_findfirst/f_findnext</tt>関数ã®ãƒ¯ãƒ¼ã‚¯ エリアã¨ã—ã¦ä½¿ç”¨ã•ã‚Œã¾ã™ã€‚アプリケーションã¯ã€ã“ã®æ§‹é€ 体ã®ãƒ¡ãƒ³ãƒã‚’書ãæ›ãˆã¦ã¯ãªã‚Šã¾ã›ã‚“。</p>
<pre>
<span class="k">typedef</span> <span class="k">struct</span> {
- FATFS* fs; <span class="c">/* 親ファイル システムオブジェクトã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
- WORD id; <span class="c">/* 親ファイル システムオブジェクトã®ãƒžã‚¦ãƒ³ãƒˆID */</span>
- WORD index; <span class="c">/* 次ã«æ¤œç´¢é–‹å§‹ã™ã‚‹ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒª ã‚¤ãƒ³ãƒ‡ãƒƒã‚¯ã‚¹ç•ªå· */</span>
- DWORD sclust; <span class="c">/* テーブル開始クラスタ (0:ルート) */</span>
+ _FDID obj; <span class="c">/* オブジェクトID */</span>
+ DOWRD dptr; <span class="c">/* ç¾åœ¨ã®read/writeオフセット */</span>
DWORD clust; <span class="c">/* ç¾åœ¨ã®ã‚¯ãƒ©ã‚¹ã‚¿ç•ªå· */</span>
DWORD sect; <span class="c">/* ç¾åœ¨ã®ã‚»ã‚¯ã‚¿ç•ªå· */</span>
- BYTE* dir; <span class="c">/* ç¾åœ¨ã®SFNエントリã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
+ BYTE* dir; <span class="c">/* ç¾åœ¨ã®SFNエントリ(Win[]内)ã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
BYTE* fn; <span class="c">/* SFNãƒãƒƒãƒ•ã‚¡ã¸ã®ãƒã‚¤ãƒ³ã‚¿ (in/out) {file[8],ext[3],status[1]} */</span>
-<span class="k">#if</span> _FS_LOCK
- UINT lockid; <span class="c">/* ãƒãƒƒã‚¯ID */</span>
-<span class="k">#endif</span>
<span class="k">#if</span> _USE_LFN
+ DWORD blk_ofs; <span class="c">/* ç¾åœ¨ã®ã‚¨ãƒ³ãƒˆãƒªãƒ–ãƒãƒƒã‚¯ã®å…ˆé (0xFFFFFFFF:無効) */</span>
WCHAR* lfn; <span class="c">/* LFNãƒãƒƒãƒ•ã‚¡ã¸ã®ãƒã‚¤ãƒ³ã‚¿ (in/out) */</span>
- WORD lfn_idx; <span class="c">/* LFNエントリã®å…ˆé インデックス (0xFFFF:無効) */</span>
+<span class="k">#endif</span>
+<span class="k">#if</span> _USE_FIND
+ const TCHAR* pat; <span class="c">/* マッãƒãƒ³ã‚° パターンã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
<span class="k">#endif</span>
} DIR;
</pre>
diff --git a/fatfs/doc/ja/setlabel.html b/fatfs/doc/ja/setlabel.html index dc71ac3..d578fa1 100644 --- a/fatfs/doc/ja/setlabel.html +++ b/fatfs/doc/ja/setlabel.html @@ -49,12 +49,14 @@ FRESULT f_setlabel ( <div class="para desc">
<h4>解説</h4>
-<p>æ–‡å—列ã®å…ˆé ã«ãƒ‰ãƒ©ã‚¤ãƒ–番å·ã‚’å«ã‚€å ´åˆã¯ã€ãã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«å¯¾ã—ã¦è¨å®šã•ã‚Œã¾ã™ã€‚å«ã¾ãªã„å ´åˆã¯ã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆ ドライブã«è¨å®šã•ã‚Œã¾ã™ã€‚ボリュームラベルを削除ã™ã‚‹ã¨ãã¯ã€ãƒŒãƒ«æ–‡å—列を指定ã—ã¾ã™ã€‚ボリュームラベルã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆã¯ã€ãƒ•ã‚¡ã‚¤ãƒ«å(SFN)ã¨ã»ã¼åŒã˜ã§ã™ãŒã€æ¬¡ã®ç‚¹ãŒç•°ãªã‚Šã¾ã™ã€‚</p>
+<p>æ–‡å—列ã®å…ˆé ã«ãƒ‰ãƒ©ã‚¤ãƒ–番å·ã‚’å«ã‚€å ´åˆã¯ã€ãã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã«å¯¾ã—ã¦è¨å®šã•ã‚Œã¾ã™ã€‚å«ã¾ãªã„å ´åˆã¯ã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆ ドライブã«è¨å®šã•ã‚Œã¾ã™ã€‚ボリュームラベルを削除ã™ã‚‹ã¨ãã¯ã€ãƒŒãƒ«æ–‡å—列を指定ã—ã¾ã™ã€‚FATボリューム上ã§ã¯ã€ãƒœãƒªãƒ¥ãƒ¼ãƒ ラベルã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆã¯ã€ãƒ•ã‚¡ã‚¤ãƒ«åã¨ã»ã¼åŒã˜ã§ã™ãŒã€æ¬¡ã®ç‚¹ãŒç•°ãªã‚Šã¾ã™ã€‚</p>
<ul>
-<li>ãƒãƒ¼ã‚«ãƒ«æ–‡å—コードæ›ç®—ã§11ãƒã‚¤ãƒˆä»¥ä¸‹ã€‚LFNæ‹¡å¼µã¯é©ç”¨ã•ã‚Œã¾ã›ã‚“。</li>
+<li>ä»»æ„ã®ä½ç½®ã«ã‚¹ãƒšãƒ¼ã‚¹ã‚’ç½®ãã“ã¨ãŒã§ãる。ãŸã ã—ã€FATボリュームã§ã¯ãƒˆãƒ¬ãƒ¼ãƒªãƒ³ã‚° スペースã¯é™¤åŽ»ã•ã‚Œã‚‹ã€‚</li>
<li>ピリオドをå«ã‚€ã“ã¨ã¯ã§ããªã„。</li>
-<li>ä»»æ„ã®ä½ç½®ã«ã‚¹ãƒšãƒ¼ã‚¹ã‚’ç½®ãã“ã¨ãŒã§ãる。ãŸã ã—ã€æœ€å¾Œå°¾ã¨ãªã‚‹ã‚¹ãƒšãƒ¼ã‚¹ã¯é™¤åŽ»ã•ã‚Œã‚‹ã€‚</li>
+<li>FATボリュームã§ã¯ã€OEMコードæ›ç®—ã§11ãƒã‚¤ãƒˆä»¥ä¸‹ã€‚</li>
+<li>exFATボリュームã§ã¯ã€11æ–‡å—以下ã§ã€å¤§æ–‡å—å°æ–‡å—ã¯ä¿æŒã•ã‚Œã‚‹ã€‚</li>
</ul>
+<p>ã€è£œè¶³ã€‘ 標準システム(Windows)ã§ã¯<tt>\xE5</tt>ã§å§‹ã¾ã‚‹ãƒœãƒ¼ãƒªãƒ¥ãƒ¼ãƒ ラベル(CP932ãªã‚‰ã€Œè–”è–‡ã€ãªã©)ã®æ‰±ã„ã«å•é¡ŒãŒã‚ã‚Šã¾ã™ã€‚ã“ã®ãŸã‚ã€ã“ã®é–¢æ•°ã§ã¯ãã®ã‚ˆã†ãªåå‰ã¯ç„¡åŠ¹ã¨ã—ã¦å‡¦ç†ã—ã¦ã„ã¾ã™ã€‚</p>
</div>
<div class="para comp">
diff --git a/fatfs/doc/ja/sfatfs.html b/fatfs/doc/ja/sfatfs.html index 93b9e7c..12e54e1 100644 --- a/fatfs/doc/ja/sfatfs.html +++ b/fatfs/doc/ja/sfatfs.html @@ -13,21 +13,24 @@ <div class="para">
<h2>FATFS</h2>
-<p><tt>FATFS</tt>æ§‹é€ ä½“(ファイル システムオブジェクト)ã¯ã€å€‹ã€…ã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®ãƒ€ã‚¤ãƒŠãƒŸãƒƒã‚¯ ワーク エリアをä¿æŒã—ã€<tt>f_mount()</tt>ã§FatFsモジュールã«ç™»éŒ²ã•ã‚Œã¾ã™ã€‚åˆæœŸåŒ–ãŒè¡Œã‚れるタイミングã¯ã€<tt>f_mount()</tt>(強制マウント指定)ã®å®Ÿè¡Œã¾ãŸã¯ãƒ¡ãƒ‡ã‚£ã‚¢äº¤æ›ã®å¾Œã®æœ€åˆã®ãƒ•ã‚¡ã‚¤ãƒ« アクセスã®æ™‚ã§ã™ã€‚アプリケーションã¯ã€ã“ã®æ§‹é€ 体ã®ãƒ¡ãƒ³ãƒã‚’書ãæ›ãˆã¦ã¯ãªã‚Šã¾ã›ã‚“。</p>
+<p><tt>FATFS</tt>æ§‹é€ ä½“(ファイル システムオブジェクト)ã¯ã€å€‹ã€…ã®è«–ç†ãƒ‰ãƒ©ã‚¤ãƒ–ã®ãƒ€ã‚¤ãƒŠãƒŸãƒƒã‚¯ ワーク エリアをä¿æŒã—ã€<tt>f_mount</tt>関数ã§FatFsモジュールã«ç™»éŒ²ã•ã‚Œã¾ã™ã€‚åˆæœŸåŒ–ãŒè¡Œã‚れるタイミングã¯ã€<tt>f_mount</tt>関数(強制マウント指定)ã®å®Ÿè¡Œã¾ãŸã¯ãƒ¡ãƒ‡ã‚£ã‚¢äº¤æ›ã®å¾Œã®æœ€åˆã®ãƒ•ã‚¡ã‚¤ãƒ« アクセスã®æ™‚ã§ã™ã€‚アプリケーションã¯ã€ã“ã®æ§‹é€ 体ã®ãƒ¡ãƒ³ãƒã‚’書ãæ›ãˆã¦ã¯ãªã‚Šã¾ã›ã‚“。</p>
<pre>
<span class="k">typedef</span> <span class="k">struct</span> {
- BYTE fs_type; <span class="c">/* FATタイプ */</span>
+ BYTE fs_type; <span class="c">/* ファイル システム(0, FS_FAT12, FS_FAT16, FS_FAT32 or FS_EXFAT) */</span>
BYTE drv; <span class="c">/* 物ç†ãƒ‰ãƒ©ã‚¤ãƒ–ç•ªå· */</span>
- BYTE csize; <span class="c">/* クラスタ当ãŸã‚Šã®ã‚»ã‚¯ã‚¿æ•° (1,2,4,8,...,128)*/</span>
BYTE n_fats; <span class="c">/* FATã®å¤šé‡åŒ–æ•° (1,2) */</span>
BYTE wflag; <span class="c">/* win[]ダーティ フラグ */</span>
- BYTE fsi_flag; <span class="c">/* FSINFOフラグ (b7:Disabled, b0:Dirty)*/</span>
+ BYTE fsi_flag; <span class="c">/* FSINFOフラグ (b7:Disabled, b0:Dirty) */</span>
WORD id; <span class="c">/* ファイル システムマウントID */</span>
WORD n_rootdir; <span class="c">/* ルート ディレクトリã®ã‚¨ãƒ³ãƒˆãƒªæ•° (FAT12/16) */</span>
+ WORD csize; <span class="c">/* クラスタ当ãŸã‚Šã®ã‚»ã‚¯ã‚¿æ•° */</span>
<span class="k">#if</span> _MAX_SS != _MIN_SS
WORD ssize; <span class="c">/* セクタ サイズ (512, 1024, 2048 or 4096) */</span>
<span class="k">#endif</span>
+<span class="k">#if</span> _FS_EXFAT
+ BYTE* dirbuf; <span class="c">/* ディレクトリ エントリ ブãƒãƒƒã‚¯æ“作ãƒãƒƒãƒ•ã‚¡ã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
+<span class="k">#endif</span>
<span class="k">#if</span> _FS_REENTRANT
_SYNC_t sobj; <span class="c">/* åŒæœŸã‚ªãƒ–ジェクトID */</span>
<span class="k">#endif</span>
@@ -36,13 +39,18 @@ DWORD free_clust; <span class="c">/* FSINFO: 空ãクラスタ数 */</span>
<span class="k">#endif</span>
<span class="k">#if</span> _FS_RPATH
- DWORD cdir; <span class="c">/* カレント ディレクトリã®ã‚¯ãƒ©ã‚¹ã‚¿ (0:ルート) */</span>
+ DWORD cdir; <span class="c">/* カレント ディレクトリã®ã‚¯ãƒ©ã‚¹ã‚¿ç•ªå· (0:ルート) */</span>
+<span class="k">#if</span> _FS_EXFAT
+ DWORD cdc_scl; <span class="c">/* カレント ディレクトリをå«ã‚€ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®é–‹å§‹ã‚¯ãƒ©ã‚¹ã‚¿ç•ªå· (cdir == 0ã§ã¯ç„¡åŠ¹) */</span>
+ DWORD cdc_size; <span class="c">/* b31-b8:カレント ディレクトリをå«ã‚€ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®ã‚µã‚¤ã‚º, b7-b0: ãƒã‚§ãƒ¼ãƒ³ ステータス */</span>
+ DWORD cdc_ofs; <span class="c">/* カレント ディレクトリをå«ã‚€ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªå†…ã®ä½ç½® (cdir == 0ã§ã¯ç„¡åŠ¹) */</span>
+<span class="k">#endif</span>
<span class="k">#endif</span>
DWORD n_fatent; <span class="c">/* FATエントリ数 (ç·ã‚¯ãƒ©ã‚¹ã‚¿æ•° + 2) */</span>
DWORD fsize; <span class="c">/* FAT 1個ã®ã‚»ã‚¯ã‚¿æ•° */</span>
DWORD volbase; <span class="c">/* ボリューム開始セクタ */</span>
DWORD fatbase; <span class="c">/* FATé ˜åŸŸé–‹å§‹ã‚»ã‚¯ã‚¿ */</span>
- DWORD dirbase; <span class="c">/* ルート ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªé ˜åŸŸé–‹å§‹ã‚»ã‚¯ã‚¿(クラスタ) */</span>
+ DWORD dirbase; <span class="c">/* ルート ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªé ˜åŸŸé–‹å§‹(セクタ|クラスタ) */</span>
DWORD database; <span class="c">/* ãƒ‡ãƒ¼ã‚¿é ˜åŸŸé–‹å§‹ã‚»ã‚¯ã‚¿ */</span>
DWORD winsect; <span class="c">/* win[]ã«ç¾ã‚Œã¦ã„ã‚‹ã‚»ã‚¯ã‚¿ç•ªå· */</span>
BYTE win[_MAX_SS]; <span class="c">/* ディスク アクセス ウィンドウ */</span>
diff --git a/fatfs/doc/ja/sfile.html b/fatfs/doc/ja/sfile.html index 5da60f9..da6bc6a 100644 --- a/fatfs/doc/ja/sfile.html +++ b/fatfs/doc/ja/sfile.html @@ -13,18 +13,15 @@ <div class="para">
<h2>FIL</h2>
-<p><tt>FIL</tt>æ§‹é€ ä½“(ファイル オブジェクト)ã¯ã€<tt>f_open()</tt>ã§åˆæœŸåŒ–ã•ã‚Œã€ä»¥å¾Œãã®ãƒ•ã‚¡ã‚¤ãƒ«ã®çŠ¶æ…‹ã‚’ä¿æŒã—ã¾ã™ã€‚ã¾ãŸã€<tt>f_close()</tt>ã§ãƒ•ã‚¡ã‚¤ãƒ«ãŒé–‰ã˜ã‚‰ã‚Œã‚‹ã¨ç„¡åŠ¹åŒ–ã•ã‚Œã¾ã™ã€‚アプリケーションã¯ã€ã“ã®æ§‹é€ 体ã®ãƒ¡ãƒ³ãƒã‚’書ãæ›ãˆã¦ã¯ãªã‚Šã¾ã›ã‚“(<tt>cltbl</tt>ã¯ä¾‹å¤–)。éžã‚¿ã‚¤ãƒ‹ãƒ¼æ§‹æˆ(<tt>_FS_TINY == 0</tt>)ã§ã¯ã€å†…部ã«<tt>_MAX_SS</tt>ãƒã‚¤ãƒˆã®ã‚»ã‚¯ã‚¿ ãƒãƒƒãƒ•ã‚¡ãŒç¢ºä¿ã•ã‚Œã‚‹ã®ã§ã€ãã®ã‚µã‚¤ã‚ºã«ã¯æ³¨æ„ãŒå¿…è¦ã§ã™ã€‚</p>
+<p><tt>FIL</tt>æ§‹é€ ä½“(ファイル オブジェクト)ã¯ã€<tt>f_open</tt>関数ã§åˆæœŸåŒ–ã•ã‚Œã€ä»¥å¾Œãã®ãƒ•ã‚¡ã‚¤ãƒ«ã®çŠ¶æ…‹ã‚’ä¿æŒã—ã¾ã™ã€‚ã¾ãŸã€<tt>f_close</tt>関数ã§ãƒ•ã‚¡ã‚¤ãƒ«ãŒé–‰ã˜ã‚‰ã‚Œã‚‹ã¨ç„¡åŠ¹åŒ–ã•ã‚Œã¾ã™ã€‚アプリケーションã¯ã€ã“ã®æ§‹é€ 体ã®ãƒ¡ãƒ³ãƒã‚’書ãæ›ãˆã¦ã¯ãªã‚Šã¾ã›ã‚“(<tt>cltbl</tt>ã¯ä¾‹å¤–)。éžã‚¿ã‚¤ãƒ‹ãƒ¼æ§‹æˆ(<tt>_FS_TINY == 0</tt>)ã§ã¯ã€å†…部ã«<tt>_MAX_SS</tt>ãƒã‚¤ãƒˆã®ã‚»ã‚¯ã‚¿ ãƒãƒƒãƒ•ã‚¡ãŒç¢ºä¿ã•ã‚Œã‚‹ã®ã§ã€ãã®ã‚µã‚¤ã‚ºã«ã¯æ³¨æ„ãŒå¿…è¦ã§ã™ã€‚</p>
<pre>
<span class="k">typedef</span> <span class="k">struct</span> {
- FATFS* fs; <span class="c">/* 親ファイル システムオブジェクトã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
- WORD id; <span class="c">/* 親ファイル システムオブジェクトã®ãƒžã‚¦ãƒ³ãƒˆID */</span>
+ _FDID obj; <span class="c">/* オブジェクトID */</span>
BYTE flag; <span class="c">/* ファイル ステータス フラグ */</span>
BYTE err; <span class="c">/* エラーä¸æ–フラグ */</span>
- DWORD fptr; <span class="c">/* ファイルèªã¿æ›¸ããƒã‚¤ãƒ³ã‚¿ (ファイル先é ã‹ã‚‰ã®ãƒã‚¤ãƒˆ オフセット) */</span>
- DWORD fsize; <span class="c">/* ファイル サイズ(ãƒã‚¤ãƒˆå˜ä½) */</span>
- DWORD sclust; <span class="c">/* ãƒ•ã‚¡ã‚¤ãƒ«é–‹å§‹ã‚¯ãƒ©ã‚¹ã‚¿ç•ªå· (0:割り当ã¦ç„¡ã—) */</span>
- DWORD clust; <span class="c">/* ç¾åœ¨ã®ã‚¯ãƒ©ã‚¹ã‚¿ */</span>
+ FSIZE_t fptr; <span class="c">/* ファイルèªã¿æ›¸ããƒã‚¤ãƒ³ã‚¿ (ファイル先é ã‹ã‚‰ã®ãƒã‚¤ãƒˆ オフセット) */</span>
+ DWORD clust; <span class="c">/* ç¾åœ¨ã®ã‚¯ãƒ©ã‚¹ã‚¿ (fptrãŒã‚¯ãƒ©ã‚¹ã‚¿å¢ƒç•Œä¸Šã®ã¨ãã¯å‰ã®ã‚¯ãƒ©ã‚¹ã‚¿ã€fptrãŒ0ã®ã¨ãã¯ç„¡åŠ¹) */</span>
DWORD dsect; <span class="c">/* ç¾åœ¨ã®ãƒ‡ãƒ¼ã‚¿ セクタ */</span>
<span class="k">#if</span> !_FS_READONLY
DWORD dir_sect; <span class="c">/* ã“ã®ãƒ•ã‚¡ã‚¤ãƒ«ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒª エントリã®ã‚るセクタ */</span>
@@ -37,7 +34,7 @@ UINT lockid; <span class="c">/* ファイル ãƒãƒƒã‚¯ID */</span>
<span class="k">#endif</span>
<span class="k">#if</span> !_FS_TINY
- BYTE buf[_MAX_SS]; <span class="c">/* ファイル プライベート データ転é€ãƒãƒƒãƒ•ã‚¡ */</span>
+ BYTE buf[_MAX_SS]; <span class="c">/* ファイル プライベート データ転é€ãƒãƒƒãƒ•ã‚¡ (fptrãŒã‚»ã‚¯ã‚¿å¢ƒç•Œä¸Šã«ãªã„時ã¯å¸¸ã«æœ‰åŠ¹ã ãŒã€fptrãŒã‚»ã‚¯ã‚¿å¢ƒç•Œä¸Šã®ã¨ãã¯ç„¡åŠ¹ãªå ´åˆãŒã‚ã‚‹) */</span>
<span class="k">#endif</span>
} FIL;
</pre>
diff --git a/fatfs/doc/ja/sfileinfo.html b/fatfs/doc/ja/sfileinfo.html index a9167f1..f669410 100644 --- a/fatfs/doc/ja/sfileinfo.html +++ b/fatfs/doc/ja/sfileinfo.html @@ -13,17 +13,18 @@ <div class="para">
<h2>FILINFO</h2>
-<p><tt>FILINFO</tt>æ§‹é€ ä½“ã¯ã€<tt>f_stat(), f_readdir()</tt>ã§è¿”ã•ã‚Œã‚‹ãƒ•ã‚¡ã‚¤ãƒ«æƒ…å ±ã‚’ä¿æŒã—ã¾ã™ã€‚</p>
+<p><tt>FILINFO</tt>æ§‹é€ ä½“ã¯ã€<tt>f_stat/f_readdir/f_findfirst/f_findnext</tt>関数ã§è¿”ã•ã‚Œã‚‹ã‚ªãƒ–ジェクトã«é–¢ã™ã‚‹æƒ…å ±ã‚’ä¿æŒã—ã¾ã™ã€‚</p>
<pre>
<span class="k">typedef</span> <span class="k">struct</span> {
- DWORD fsize; <span class="c">/* ファイル サイズ */</span>
- WORD fdate; <span class="c">/* 最後ã«æ›´æ–°ã•ã‚ŒãŸæ—¥ä»˜ */</span>
- WORD ftime; <span class="c">/* 最後ã«æ›´æ–°ã•ã‚ŒãŸæ™‚刻 */</span>
- BYTE fattrib; <span class="c">/* アトリビュート */</span>
- TCHAR fname[13]; <span class="c">/* çŸã„ファイルå (8.3フォーマット) */</span>
-<span class="k">#if</span> _USE_LFN
- TCHAR* lfname; <span class="c">/* é•·ã„ファイルåã®ãƒãƒƒãƒ•ã‚¡ã¸ã®ãƒã‚¤ãƒ³ã‚¿ */</span>
- int lfsize; <span class="c">/* é•·ã„ファイルåã®ãƒãƒƒãƒ•ã‚¡ã®ã‚µã‚¤ã‚º [æ–‡å—æ•°] */</span>
+ FSIZE_t fsize; <span class="c">/* ファイル サイズ */</span>
+ WORD fdate; <span class="c">/* 最後ã«æ›´æ–°ã•ã‚ŒãŸæ—¥ä»˜ */</span>
+ WORD ftime; <span class="c">/* 最後ã«æ›´æ–°ã•ã‚ŒãŸæ™‚刻 */</span>
+ BYTE fattrib; <span class="c">/* アトリビュート */</span>
+<span class="k">#if</span> _USE_LFN != 0
+ TCHAR altname[13]; <span class="c">/* 代替ファイルå */</span>
+ TCHAR fname[_MAX_LFN + 1]; <span class="c">/* 主ファイルå */</span>
+<span class="k">#else</span>
+ TCHAR fname[13]; <span class="c">/* ファイルå */</span>
<span class="k">#endif</span>
} FILINFO;
</pre>
@@ -32,7 +33,7 @@ <h4>メンãƒ</h4>
<dl>
<dt>fsize</dt>
-<dd>ファイルã®ãƒã‚¤ãƒˆå˜ä½ã®ã‚µã‚¤ã‚ºãŒæ ¼ç´ã•ã‚Œã¾ã™ã€‚ディレクトリã®å ´åˆã¯å¸¸ã«0ã§ã™ã€‚</dd>
+<dd>ファイルã®ãƒã‚¤ãƒˆå˜ä½ã®ã‚µã‚¤ã‚ºãŒæ ¼ç´ã•ã‚Œã¾ã™ã€‚ディレクトリã®å ´åˆã¯å¸¸ã«0ã§ã™ã€‚データ型<tt>FSIZE_t</tt>ã¯ã€<tt>DWORD</tt>(32-bit)ã¾ãŸã¯<tt>QWORD</tt>(64-bit)ã®ã‚¨ãƒªã‚¢ã‚¹ã§ã€exFATサãƒãƒ¼ãƒˆã®æœ‰ç„¡ã«ã‚ˆã‚Šåˆ‡ã‚Šæ›¿ã‚ã‚Šã¾ã™ã€‚</dd>
<dt>fdate</dt>
<dd>ファイルã®å¤‰æ›´ã•ã‚ŒãŸæ—¥ä»˜ã€ã¾ãŸã¯ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®ä½œæˆã•ã‚ŒãŸæ—¥ä»˜ãŒæ ¼ç´ã•ã‚Œã¾ã™ã€‚<br>
<dl>
@@ -58,11 +59,9 @@ <dt>fattrib</dt>
<dd>属性フラグãŒæ ¼ç´ã•ã‚Œã¾ã™ã€‚フラグã¯<tt>AM_DIR, AM_RDO, AM_HID, AM_SYS, AM_ARC</tt>ã®çµ„ã¿åˆã‚ã›ã¨ãªã‚Šã¾ã™ã€‚</dd>
<dt>fname[]</dt>
-<dd>8.3å½¢å¼ã®åå‰ãŒ<tt>'\0'</tt>ã§çµ‚ã‚ã‚‹æ–‡å—列ã¨ã—ã¦æ ¼ç´ã•ã‚Œã¾ã™ã€‚éžLFN構æˆã®ã¨ãã¯ã€å¸¸ã«å¤§æ–‡å—ã§è¿”ã•ã‚Œã¾ã™ã€‚LFN構æˆã®ã¨ãã¯çŸã„åå‰ãŒè¿”ã•ã‚Œã¾ã™ãŒã€ASCII英å—ãŒå°æ–‡å—ã«ãªã‚‹å ´åˆãŒã‚ã‚Šã¾ã™ã€‚</dd>
-<dt>lfname</dt>
-<dd>è¿”ã•ã‚Œã‚‹é•·ã„ファイルåã‚’æ ¼ç´ã™ã‚‹ãƒãƒƒãƒ•ã‚¡ã¸ã®ãƒã‚¤ãƒ³ã‚¿ã€‚ã“ã®æ§‹é€ 体を使用ã™ã‚‹å‰ã«ã‚¢ãƒ—リケーションã«ã‚ˆã‚ŠåˆæœŸåŒ–ã•ã‚Œãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。ã“ã®ãƒ¡ãƒ³ãƒã«NULLãŒè¨å®šã•ã‚Œã‚‹ã¨LFNã¯è¿”ã•ã‚Œã¾ã›ã‚“。éžLFN構æˆã®ã¨ãã¯ã“ã®ãƒ¡ãƒ³ãƒã¯å˜åœ¨ã—ã¾ã›ã‚“。</dd>
-<dt>lfsize</dt>
-<dd>é•·ã„ファイルåã‚’æ ¼ç´ã™ã‚‹ãƒãƒƒãƒ•ã‚¡ã®ã‚µã‚¤ã‚º(è¦ç´ æ•°)。ã“ã®æ§‹é€ 体を使用ã™ã‚‹å‰ã«ã‚¢ãƒ—リケーションã«ã‚ˆã‚ŠåˆæœŸåŒ–ã•ã‚Œãªã‘ã‚Œã°ãªã‚Šã¾ã›ã‚“。éžLFN構æˆã®ã¨ãã¯ã“ã®ãƒ¡ãƒ³ãƒã¯å˜åœ¨ã—ã¾ã›ã‚“。</dd>
+<dd>オブジェクトåãŒ<tt>'\0'</tt>ã§çµ‚ã‚ã‚‹æ–‡å—列ã¨ã—ã¦æ ¼ç´ã•ã‚Œã¾ã™ã€‚èªã¿å‡ºã™ã¹ãé …ç›®ãŒç„¡ã„ã¨ãã¯ã€ãƒŒãƒ«æ–‡å—列ãŒè¿”ã•ã‚Œã€ã“ã®æ§‹é€ 体ãŒç„¡åŠ¹ã§ã‚ã‚‹ã“ã¨ã‚’示ã—ã¾ã™ã€‚</dd>
+<dt>altname[]</dt>
+<dd>代替ファイルåãŒã‚ã‚‹ã¨ãã¯ã€ãã‚ŒãŒ<tt>'\0'</tt>ã§çµ‚ã‚ã‚‹æ–‡å—列ã¨ã—ã¦æ ¼ç´ã•ã‚Œã¾ã™ã€‚éžLFN構æˆã®ã¨ãã¯ã€ã“ã®ãƒ¡ãƒ³ãƒã¯ã‚ã‚Šã¾ã›ã‚“。</dd>
</dl>
<p class="foot"><a href="../00index_j.html">戻る</a></p>
diff --git a/fatfs/doc/ja/size.html b/fatfs/doc/ja/size.html index d75ffc3..17d4adf 100644 --- a/fatfs/doc/ja/size.html +++ b/fatfs/doc/ja/size.html @@ -15,7 +15,7 @@ <h2>f_size</h2>
<p>ファイルã®ã‚µã‚¤ã‚ºã‚’å–å¾—ã—ã¾ã™ã€‚</p>
<pre>
-DWORD f_size (
+FSIZE_t f_size (
FIL* <span class="arg">fp</span> <span class="c">/* [IN] ファイル オブジェクト */</span>
);
</pre>
@@ -39,9 +39,9 @@ DWORD f_size ( <div class="para desc">
<h4>解説</h4>
-<p>f_size関数ã¯ã€ç¾ãƒªãƒ“ジョンã§ã¯ãƒžã‚¯ãƒã¨ã—ã¦å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã™ã€‚</p>
+<p>ã“ã®é–¢æ•°ã¯ã€ç¾ãƒªãƒ“ジョンã§ã¯ãƒžã‚¯ãƒã¨ã—ã¦å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã™ã€‚ファイル オブジェクトã®æ£å½“性ãƒã‚§ãƒƒã‚¯ã‚„排他制御ã¯è¡Œã„ã¾ã›ã‚“。</p>
<pre>
-<span class="k">#define</span> f_size(fp) ((fp)->fsize)
+<span class="k">#define</span> f_size(fp) ((fp)->obj.objsize)
</pre>
</div>
diff --git a/fatfs/doc/ja/stat.html b/fatfs/doc/ja/stat.html index 724a9d5..deba89b 100644 --- a/fatfs/doc/ja/stat.html +++ b/fatfs/doc/ja/stat.html @@ -54,7 +54,7 @@ FRESULT f_stat ( <div class="para desc">
<h4>解説</h4>
-<p>指定ã•ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ«ã¾ãŸã¯ã‚µãƒ– ディレクトリã®å˜åœ¨ã‚’調ã¹ã¾ã™ã€‚å˜åœ¨ã—ãªã„å ´åˆã¯ã€<tt>FR_NO_FILE</tt>ãŒå¸°ã‚Šã¾ã™ã€‚å˜åœ¨ã™ã‚‹å ´åˆã¯<tt>FR_OK</tt>ãŒå¸°ã‚Šã€ãƒ•ã‚¡ã‚¤ãƒ«æƒ…å ±æ§‹é€ ä½“ã«ãれ関ã™ã‚‹æƒ…å ±(サイズã€ã‚¿ã‚¤ãƒ スタンプã€å±žæ€§ãŠã‚ˆã³çŸã„ファイルå)ãŒã‚¹ãƒˆã‚¢ã•ã‚Œã¾ã™ã€‚</p>
+<p>指定ã•ã‚ŒãŸãƒ•ã‚¡ã‚¤ãƒ«ã¾ãŸã¯ã‚µãƒ– ディレクトリã®å˜åœ¨ã‚’調ã¹ã¾ã™ã€‚å˜åœ¨ã—ãªã„å ´åˆã¯ã€<tt>FR_NO_FILE</tt>ãŒå¸°ã‚Šã¾ã™ã€‚å˜åœ¨ã™ã‚‹å ´åˆã¯<tt>FR_OK</tt>ãŒå¸°ã‚Šã€ãれ関ã™ã‚‹æƒ…å ±(サイズã€ã‚¿ã‚¤ãƒ スタンプãŠã‚ˆã³å±žæ€§)ãŒãƒ•ã‚¡ã‚¤ãƒ«æƒ…å ±æ§‹é€ ä½“ã«ã‚¹ãƒˆã‚¢ã•ã‚Œã¾ã™ã€‚</p>
</div>
@@ -73,23 +73,20 @@ FRESULT f_stat ( printf("Test for 'file.txt'...\n");
-<span class="k">#if</span> _USE_LFN
- fno.lfname = 0;
-<span class="k">#endif</span>
fr = f_stat("file.txt", &fno);
switch (fr) {
case FR_OK:
- printf("Size: %u\n", fno.fsize);
+ printf("Size: %lu\n", fno.fsize);
printf("Timestamp: %u/%02u/%02u, %02u:%02u\n",
(fno.fdate >> 9) + 1980, fno.fdate >> 5 & 15, fno.fdate & 31,
fno.ftime >> 11, fno.ftime >> 5 & 63);
printf("Attributes: %c%c%c%c%c\n",
- (fno.fattrib & AM_DIR) ? 'D' : '-',
- (fno.fattrib & AM_RDO) ? 'R' : '-',
- (fno.fattrib & AM_HID) ? 'H' : '-',
- (fno.fattrib & AM_SYS) ? 'S' : '-',
- (fno.fattrib & AM_ARC) ? 'A' : '-');
+ (fno.fattrib & AM_DIR) ? 'D' : '-',
+ (fno.fattrib & AM_RDO) ? 'R' : '-',
+ (fno.fattrib & AM_HID) ? 'H' : '-',
+ (fno.fattrib & AM_SYS) ? 'S' : '-',
+ (fno.fattrib & AM_ARC) ? 'A' : '-');
break;
case FR_NO_FILE:
diff --git a/fatfs/doc/ja/sync.html b/fatfs/doc/ja/sync.html index 4b594d6..35afbb4 100644 --- a/fatfs/doc/ja/sync.html +++ b/fatfs/doc/ja/sync.html @@ -36,7 +36,6 @@ FRESULT f_sync ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>
</p>
@@ -45,8 +44,8 @@ FRESULT f_sync ( <div class="para desc">
<h4>解説</h4>
-<p>ã“ã®é–¢æ•°ã¯<tt>f_close()</tt>ã¨åŒã˜å‡¦ç†ã‚’実行ã—ã¾ã™ãŒã€ãƒ•ã‚¡ã‚¤ãƒ«ã¯å¼•ã続ãé–‹ã‹ã‚ŒãŸã¾ã¾ã«ãªã‚Šã€èªã¿æ›¸ãを続行ã§ãã¾ã™ã€‚ãƒã‚®ãƒ³ã‚°ãªã©ã€æ›¸ãè¾¼ã¿ãƒ¢ãƒ¼ãƒ‰ã§é•·æ™‚間ファイルãŒé–‹ã‹ã‚Œã¦ã„るアプリケーションã«ãŠã„ã¦ã€å®šæœŸçš„ã¾ãŸã¯åŒºåˆ‡ã‚Šã®è‰¯ã„ã¨ã“ã‚ã§ã“ã®é–¢æ•°ã‚’使用ã™ã‚‹ã“ã¨ã«ã‚ˆã‚Šã€ä¸æ„ã®é›»æºæ–やメディアã®å–り外ã—ã«ã‚ˆã‚Šå¤±ã‚れるデータを最å°ã«ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚ã“ã®èƒŒæ™¯ã«ã¤ã„ã¦ã¯ã€<a href="appnote.html#critical">アプリケーション ノート</a>ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。</p>
-<p>実際ã®ã¨ã“ã‚ã€<tt>f_close()</tt>内ã§ã¯ã“ã®é–¢æ•°ã‚’呼ã³å‡ºã—ãŸå¾Œãƒ•ã‚¡ã‚¤ãƒ« オブジェクトを無効化ã—ã¦ã„ã‚‹ã ã‘ãªã®ã§ã€<tt>f_close()</tt>ç›´å‰ã«<tt>f_sync()</tt>ã‚’ç½®ãã“ã¨ã¯ç„¡æ„味ã§ã™ã€‚</p>
+<p>ã“ã®é–¢æ•°ã¯<tt>f_close</tt>関数ã¨åŒã˜å‡¦ç†ã‚’実行ã—ã¾ã™ãŒã€ãƒ•ã‚¡ã‚¤ãƒ«ã¯å¼•ã続ãé–‹ã‹ã‚ŒãŸã¾ã¾ã«ãªã‚Šã€èªã¿æ›¸ãを続行ã§ãã¾ã™ã€‚ãƒã‚®ãƒ³ã‚°ãªã©ã€æ›¸ãè¾¼ã¿ãƒ¢ãƒ¼ãƒ‰ã§é•·æ™‚間ファイルãŒé–‹ã‹ã‚Œã¦ã„るアプリケーションã«ãŠã„ã¦ã€å®šæœŸçš„ã¾ãŸã¯åŒºåˆ‡ã‚Šã®è‰¯ã„ã¨ã“ã‚ã§ã“ã®é–¢æ•°ã‚’使用ã™ã‚‹ã“ã¨ã«ã‚ˆã‚Šã€ä¸æ„ã®é›»æºæ–やメディアã®å–り外ã—ã«ã‚ˆã‚Šå¤±ã‚れるデータを最å°ã«ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚ã“ã®èƒŒæ™¯ã«ã¤ã„ã¦ã¯ã€<a href="appnote.html#critical">アプリケーション ノート</a>ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。</p>
+<p>実際ã®ã¨ã“ã‚ã€<tt>f_close</tt>関数内ã§ã¯ã“ã®é–¢æ•°ã‚’呼ã³å‡ºã—ãŸå¾Œãƒ•ã‚¡ã‚¤ãƒ« オブジェクトを無効化ã—ã¦ã„ã‚‹ã ã‘ãªã®ã§ã€<tt>f_close</tt>関数ã®ç›´å‰ã«<tt>f_sync</tt>関数を置ãã“ã¨ã¯ç„¡æ„味ã§ã™ã€‚</p>
</div>
diff --git a/fatfs/doc/ja/tell.html b/fatfs/doc/ja/tell.html index d050691..48628d3 100644 --- a/fatfs/doc/ja/tell.html +++ b/fatfs/doc/ja/tell.html @@ -15,7 +15,7 @@ <h2>f_tell</h2>
<p>ç¾åœ¨ã®ãƒªãƒ¼ãƒ‰/ライト ãƒã‚¤ãƒ³ã‚¿ã‚’å–å¾—ã—ã¾ã™ã€‚</p>
<pre>
-DWORD f_tell (
+FSIZE_t f_tell (
FIL* <span class="arg">fp</span> <span class="c">/* [IN] ファイル オブジェクト */</span>
);
</pre>
@@ -39,7 +39,7 @@ DWORD f_tell ( <div class="para desc">
<h4>解説</h4>
-<p>f_tell関数ã¯ã€ç¾ãƒªãƒ“ジョンã§ã¯ãƒžã‚¯ãƒã¨ã—ã¦å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã™ã€‚</p>
+<p>f_tell関数ã¯ã€ç¾ãƒªãƒ“ジョンã§ã¯ãƒžã‚¯ãƒã¨ã—ã¦å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã™ã€‚ファイル オブジェクトã®æ£å½“性ãƒã‚§ãƒƒã‚¯ã‚„排他制御ã¯è¡Œã„ã¾ã›ã‚“。</p>
<pre>
<span class="k">#define</span> f_tell(fp) ((fp)->fptr)
</pre>
diff --git a/fatfs/doc/ja/truncate.html b/fatfs/doc/ja/truncate.html index b33a757..5402603 100644 --- a/fatfs/doc/ja/truncate.html +++ b/fatfs/doc/ja/truncate.html @@ -36,7 +36,6 @@ FRESULT f_truncate ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#de">FR_DENIED</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>
diff --git a/fatfs/doc/ja/unlink.html b/fatfs/doc/ja/unlink.html index 3ae691a..d9b631b 100644 --- a/fatfs/doc/ja/unlink.html +++ b/fatfs/doc/ja/unlink.html @@ -54,13 +54,12 @@ FRESULT f_unlink ( <div class="para desc">
<h4>解説</h4>
-<p>削除対象ã®ã‚ªãƒ–ジェクトãŒæ¬¡ã®æ¡ä»¶ã«å½“ã¦ã¯ã¾ã‚‹å ´åˆã€ãã®ã‚¢ã‚¯ã‚»ã‚¹ã¯æ‹’å¦ã•ã‚Œé–¢æ•°ã¯å¤±æ•—ã—ã¾ã™ã€‚
+<p>削除対象ã®ã‚ªãƒ–ジェクトãŒæ¬¡ã®æ¡ä»¶ã«å½“ã¦ã¯ã¾ã‚‹å ´åˆã€ãã®ã‚¢ã‚¯ã‚»ã‚¹ã¯æ‹’å¦(<tt>FR_DENIED</tt>)ã•ã‚Œé–¢æ•°ã¯å¤±æ•—ã—ã¾ã™ã€‚</p>
<ul>
-<li>リード オンリー属性(<tt>AM_RDO</tt>)ã‚’æŒã£ã¦ã„ã‚‹å ´åˆã¯ã€æ‹’å¦(<tt>FR_DENIED</tt>)ã•ã‚Œã‚‹ã€‚</li>
-<li>空ã§ãªã„サブ ディレクトリã¾ãŸã¯ã‚«ãƒ¬ãƒ³ãƒˆ ディレクトリã§ã‚ã‚‹å ´åˆã¯ã€æ‹’å¦(<tt>FR_DENIED</tt>)ã•ã‚Œã‚‹ã€‚</li>
-<li>é–‹ã‹ã‚Œã¦ã„るファイルã¾ãŸã¯ã‚µãƒ– ディレクトリã§ã‚ã‚‹å ´åˆã¯ã€<a href="appnote.html#dup">多é‡ã‚¢ã‚¯ã‚»ã‚¹åˆ¶å¾¡</a>ãŒæœ‰åŠ¹ãªã‚‰å®‰å…¨ã«æ‹’å¦(<tt>FR_LOCKED</tt>)ã•ã‚Œã¾ã™ãŒã€ãã†ã§ãªã„ã¨ãã¯ä¸æ£ãªæ“作ã¨ãªã‚Šã€<em>FATæ§‹é€ ãŒç ´å£Šã•ã‚Œã‚‹å¯èƒ½æ€§</em>ãŒã‚ã‚Šã¾ã™ã€‚</li>
+<li>リード オンリー属性(<tt>AM_RDO</tt>)ã‚’æŒã£ã¦ã„ã‚‹å ´åˆã€‚</li>
+<li>空ã§ãªã„サブ ディレクトリã¾ãŸã¯ã‚«ãƒ¬ãƒ³ãƒˆ ディレクトリã§ã‚ã‚‹å ´åˆã€‚</li>
+<li>é–‹ã‹ã‚Œã¦ã„るオブジェクトã§ã‚ã‚‹å ´åˆã€‚<a href="appnote.html#dup">多é‡ã‚¢ã‚¯ã‚»ã‚¹åˆ¶å¾¡</a>ãŒæœ‰åŠ¹ã®ã¨ãã¯å®‰å…¨ã«æ‹’å¦ã•ã‚Œã‚‹ãŒã€ãã†ã§ãªã„ã¨ãã¯ä¸æ£ãªæ“作ã¨ãªã‚Š<em>FATæ§‹é€ ãŒç ´å£Šã•ã‚Œã‚‹å¯èƒ½æ€§</em>ãŒã‚る。</li>
</ul>
-</p>
</div>
<div class="para comp">
diff --git a/fatfs/doc/ja/write.html b/fatfs/doc/ja/write.html index c3de4a0..a5ea465 100644 --- a/fatfs/doc/ja/write.html +++ b/fatfs/doc/ja/write.html @@ -45,7 +45,6 @@ FRESULT f_write ( <a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#de">FR_DENIED</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>
diff --git a/fatfs/doc/img/app1.c b/fatfs/doc/res/app1.c index c7e690b..85ce9e2 100644 --- a/fatfs/doc/img/app1.c +++ b/fatfs/doc/res/app1.c @@ -1,5 +1,6 @@ /*------------------------------------------------------------/
/ Open or create a file in append mode
+/ (This function was sperseded by FA_OPEN_APPEND at FatFs R0.12a)
/------------------------------------------------------------*/
FRESULT open_append (
diff --git a/fatfs/doc/img/app2.c b/fatfs/doc/res/app2.c index 5108543..5108543 100644 --- a/fatfs/doc/img/app2.c +++ b/fatfs/doc/res/app2.c diff --git a/fatfs/doc/img/app3.c b/fatfs/doc/res/app3.c index 662c403..c4cfcf5 100644 --- a/fatfs/doc/img/app3.c +++ b/fatfs/doc/res/app3.c @@ -4,11 +4,11 @@ / This function checks if the file is contiguous with desired size.
/ If not, a block of contiguous sectors is allocated to the file.
/ If the file has been opened without FA_WRITE flag, it only checks if
-/ the file is contiguous and returns the resulut. */
-
-#if _FATFS != 80367 /* Check if R0.10c */
-#error This function may not be compatible with this revision of FatFs module.
-#endif
+/ the file is contiguous and returns the resulut.
+/-----------------------------------------------------------------------/
+/ This function can work with FatFs R0.09 - R0.11a.
+/ It is incompatible with R0.12+. Use f_expand function instead.
+/----------------------------------------------------------------------*/
/* Declarations of FatFs internal functions accessible from applications.
/ This is intended to be used for disk checking/fixing or dirty hacks :-) */
@@ -37,16 +37,20 @@ DWORD allocate_contiguous_clusters ( /* Returns the first sector in LBA (0:er do {
cl = get_fat(fp->fs, ccl); /* Get the cluster status */
if (cl + 1 < 3) return 0; /* Hard error? */
- if (cl != ccl + 1 &&; cl < fp->fs->n_fatent) break; /* Not contiguous? */
+ if (cl != ccl + 1 && cl < fp->fs->n_fatent) break; /* Not contiguous? */
ccl = cl;
} while (++ncl < tcl);
if (ncl == tcl) /* Is the file contiguous? */
- return clust2sect(fp->fs, fp->sclust); /* Return file start sector */
+ return clust2sect(fp->fs, fp->sclust); /* File is contiguous. Return the start sector */
}
+
+ /* File is not contiguous */
#if _FS_READONLY
- return 0;
+ return 0; /* Exit if in read-only cfg. */
#else
- if (f_truncate(fp)) return 0; /* Remove the existing chain */
+ if (!(fp->flag & FA_WRITE)) return 0; /* Exit if the file object is for read-only */
+
+ if (f_truncate(fp)) return 0; /* Remove the non-contiguous chain */
/* Find a free contiguous area */
ccl = cl = 2; ncl = 0;
@@ -80,24 +84,23 @@ int main (void) DWORD org;
- /* Open or create a file */
+ /* Open or create a file to write */
f_mount(&fs, "", 0);
- fr = f_open(&fil, "swapfile.sys", FA_READ | FA_WRITE | FA_OPEN_ALWAYS);
+ fr = f_open(&fil, "fastrec.log", FA_READ | FA_WRITE | FA_OPEN_ALWAYS);
if (fr) return 1;
- /* Check if the file is 64MB in size and occupies a contiguous area.
+ /* Check if the file is 256MB in size and occupies a contiguous area.
/ If not, a contiguous area will be re-allocated to the file. */
- org = allocate_contiguous_clusters(&fil, 0x4000000);
+ org = allocate_contiguous_clusters(&fil, 0x10000000);
if (!org) {
printf("Function failed due to any error or insufficient contiguous area.\n");
f_close(&fil);
return 1;
}
- /* Now you can read/write the file with disk functions bypassing the file system layer. */
-
+ /* Now you can read/write the file without file system layer. */
+ ...
dr = disk_write(fil.fs->drv, Buff, org, 1024); /* Write 512KiB from top of the file */
-
...
f_close(&fil);
diff --git a/fatfs/doc/img/app4.c b/fatfs/doc/res/app4.c index 993eb4f..03d124d 100644 --- a/fatfs/doc/img/app4.c +++ b/fatfs/doc/res/app4.c @@ -48,7 +48,6 @@ int test_diskio ( DRESULT dr;
-
printf("test_diskio(%u, %u, 0x%08X, 0x%08X)\n", pdrv, ncyc, (UINT)buff, sz_buff);
if (sz_buff < _MAX_SS + 4) {
@@ -306,11 +305,11 @@ int main (int argc, char* argv[]) DWORD buff[512]; /* 2048 byte working buffer */
/* Check function/compatibility of the physical drive #0 */
- rc = test_diskio(0, 1, buff, sizeof buff);
- if (res) {
- printf("Sorry the function/compatibility test failed.\nFatFs will not work on this disk driver.\n");
+ rc = test_diskio(0, 3, buff, sizeof buff);
+ if (rc) {
+ printf("Sorry the function/compatibility test failed. (rc=%d)\nFatFs will not work on this disk driver.\n", rc);
} else {
- printf("Congratulations! The disk I/O layer works well.\n");
+ printf("Congratulations! The disk driver works well.\n");
}
return rc;
diff --git a/fatfs/doc/img/f1.png b/fatfs/doc/res/f1.png Binary files differindex 5191700..5191700 100644 --- a/fatfs/doc/img/f1.png +++ b/fatfs/doc/res/f1.png diff --git a/fatfs/doc/img/f2.png b/fatfs/doc/res/f2.png Binary files differindex 8ef0ec2..8ef0ec2 100644 --- a/fatfs/doc/img/f2.png +++ b/fatfs/doc/res/f2.png diff --git a/fatfs/doc/img/f3.png b/fatfs/doc/res/f3.png Binary files differindex 9111bfc..9111bfc 100644 --- a/fatfs/doc/img/f3.png +++ b/fatfs/doc/res/f3.png diff --git a/fatfs/doc/img/f4.png b/fatfs/doc/res/f4.png Binary files differindex f9a6b46..f9a6b46 100644 --- a/fatfs/doc/img/f4.png +++ b/fatfs/doc/res/f4.png diff --git a/fatfs/doc/img/f5.png b/fatfs/doc/res/f5.png Binary files differindex b110b29..b110b29 100644 --- a/fatfs/doc/img/f5.png +++ b/fatfs/doc/res/f5.png diff --git a/fatfs/doc/res/f6.png b/fatfs/doc/res/f6.png Binary files differnew file mode 100644 index 0000000..ec6eb21 --- /dev/null +++ b/fatfs/doc/res/f6.png diff --git a/fatfs/doc/res/f7.png b/fatfs/doc/res/f7.png Binary files differnew file mode 100644 index 0000000..dee7386 --- /dev/null +++ b/fatfs/doc/res/f7.png diff --git a/fatfs/doc/res/fd.mp4 b/fatfs/doc/res/fd.mp4 Binary files differnew file mode 100644 index 0000000..cc572b9 --- /dev/null +++ b/fatfs/doc/res/fd.mp4 diff --git a/fatfs/doc/res/funcs.png b/fatfs/doc/res/funcs.png Binary files differnew file mode 100644 index 0000000..022cd74 --- /dev/null +++ b/fatfs/doc/res/funcs.png diff --git a/fatfs/doc/res/layers.png b/fatfs/doc/res/layers.png Binary files differnew file mode 100644 index 0000000..f988092 --- /dev/null +++ b/fatfs/doc/res/layers.png diff --git a/fatfs/doc/res/layers1.png b/fatfs/doc/res/layers1.png Binary files differnew file mode 100644 index 0000000..1b54f86 --- /dev/null +++ b/fatfs/doc/res/layers1.png diff --git a/fatfs/doc/res/layers2.png b/fatfs/doc/res/layers2.png Binary files differnew file mode 100644 index 0000000..406c453 --- /dev/null +++ b/fatfs/doc/res/layers2.png diff --git a/fatfs/doc/img/layers3.png b/fatfs/doc/res/layers3.png Binary files differindex ac439b0..ac439b0 100644 --- a/fatfs/doc/img/layers3.png +++ b/fatfs/doc/res/layers3.png diff --git a/fatfs/doc/img/mkfatimg.zip b/fatfs/doc/res/mkfatimg.zip Binary files differindex d0728b4..d0728b4 100644 --- a/fatfs/doc/img/mkfatimg.zip +++ b/fatfs/doc/res/mkfatimg.zip diff --git a/fatfs/doc/res/mkfs.xls b/fatfs/doc/res/mkfs.xls Binary files differnew file mode 100644 index 0000000..f01ddcc --- /dev/null +++ b/fatfs/doc/res/mkfs.xls diff --git a/fatfs/doc/res/modules.png b/fatfs/doc/res/modules.png Binary files differnew file mode 100644 index 0000000..b1ab987 --- /dev/null +++ b/fatfs/doc/res/modules.png diff --git a/fatfs/doc/res/rwtest1.png b/fatfs/doc/res/rwtest1.png Binary files differnew file mode 100644 index 0000000..bc03302 --- /dev/null +++ b/fatfs/doc/res/rwtest1.png diff --git a/fatfs/doc/img/rwtest2.png b/fatfs/doc/res/rwtest2.png Binary files differindex 41a8c1f..41a8c1f 100644 --- a/fatfs/doc/img/rwtest2.png +++ b/fatfs/doc/res/rwtest2.png diff --git a/fatfs/doc/img/rwtest3.png b/fatfs/doc/res/rwtest3.png Binary files differindex cbaa3d1..cbaa3d1 100644 --- a/fatfs/doc/img/rwtest3.png +++ b/fatfs/doc/res/rwtest3.png diff --git a/fatfs/doc/updates.txt b/fatfs/doc/updates.txt index 20f64f4..ebb6026 100644 --- a/fatfs/doc/updates.txt +++ b/fatfs/doc/updates.txt @@ -1,86 +1,123 @@ -R0.10c, Nov 09, 2014
+R0.12b (September 4, 2016)
+ Improved f_rename() to be able to rename objects with the same name but case.
+ Fixed an error in the case conversion teble of code page 866. (ff.c)
+ Fixed writing data is truncated at the file offset 4GiB on the exFAT volume. (appeared at R0.12)
+ Fixed creating a file in the root directory of exFAT volume can fail. (appeared at R0.12)
+ Fixed f_mkfs() creating exFAT volume with too small cluster size can collapse unallocated memory. (appeared at R0.12)
+ Fixed wrong object name can be returned when read directory at Unicode cfg. (appeared at R0.12)
+ Fixed large file allocation/removing on the exFAT volume collapses allocation bitmap. (appeared at R0.12)
+ Fixed some internal errors in f_expand() and f_lseek(). (appeared at R0.12)
+
+R0.12a (July 10, 2016)
+ Added support for creating exFAT volume with some changes of f_mkfs().
+ Added a file open method FA_OPEN_APPEND. An f_lseek() following f_open() is no longer needed.
+ f_forward() is available regardless of _FS_TINY.
+ Fixed f_mkfs() creates wrong volume. (appeared at R0.12)
+ Fixed wrong memory read in create_name(). (appeared at R0.12)
+ Fixed compilation fails at some configurations, _USE_FASTSEEK and _USE_FORWARD.
+
+R0.12 (April 12, 2016)
+ Added support for exFAT file system. (_FS_EXFAT)
+ Added f_expand(). (_USE_EXPAND)
+ Changed some members in FINFO structure and behavior of f_readdir().
+ Added an option _USE_CHMOD and removed an option _WORD_ACCESS.
+ Fixed errors in the case conversion teble of Unicode (cc*.c).
+
+R0.11a (September 5, 2015)
+ Fixed wrong media change can lead a deadlock at thread-safe configuration.
+ Added code page 771, 860, 861, 863, 864, 865 and 869. (_CODE_PAGE)
+ Removed some code pages actually not exist on the standard systems. (_CODE_PAGE)
+ Fixed errors in the case conversion teble of code page 437 and 850 (ff.c).
+ Fixed errors in the case conversion teble of Unicode (cc*.c).
+
+R0.11 (February 9, 2015)
+ Added f_findfirst() and f_findnext(). (_USE_FIND)
+ Fixed f_unlink() does not remove cluster chain of the file. (appeared at R0.10c)
+ Fixed _FS_NORTC option does not work properly. (appeared at R0.10c)
+
+R0.10c (November 9, 2014)
Added a configuration option for the platforms without RTC. (_FS_NORTC)
- Fixed volume label created by Mac OS X cannot be retrieved with f_getlabel().
+ Fixed volume label created by Mac OS X cannot be retrieved with f_getlabel(). (appeared at R0.09b)
Fixed a potential problem of FAT access that can appear on disk error.
- Fixed null pointer dereference on attempting to delete the root direcotry.
+ Fixed null pointer dereference on attempting to delete the root direcotry. (appeared at R0.08)
-R0.10b, May 19, 2014
+R0.10b (May 19, 2014)
Fixed a hard error in the disk I/O layer can collapse the directory entry.
- Fixed LFN entry is not deleted on delete/rename an object with its lossy converted SFN.
+ Fixed LFN entry is not deleted on delete/rename an object with its lossy converted SFN. (appeared at R0.07)
-R0.10a, Jan 15, 2014
+R0.10a (January 15, 2014)
Added arbitrary strings as drive number in the path name. (_STR_VOLUME_ID)
Added an option for minimum sector size. (_MIN_SS)
2nd argument of f_rename() can have a drive number and it will be ignored.
- Fixed f_mount() with forced mount fails when drive number is larger than 0.
+ Fixed f_mount() with forced mount fails when drive number is larger than 0. (appeared at R0.10)
Fixed f_close() invalidates the file object without volume lock.
- Fixed volume lock is left acquired after return from f_closedir().
- Fixed creation of a directory entry with LFN fails on too many SFN collisions.
+ Fixed volume lock is left acquired after return from f_closedir(). (appeared at R0.10)
+ Fixed creation of a directory entry with LFN fails on too many SFN collisions. (appeared at R0.07)
-R0.10, Oct 02, 2013
+R0.10 (October 2, 2013)
Added an option for character encoding on the file. (_STRF_ENCODE)
Added f_closedir().
Added forced full FAT scan option for f_getfree(). (_FS_NOFSINFO)
- Added forced mount feature with changes of f_mount().
+ Added forced mount option with changes of f_mount().
Improved behavior of volume auto detection.
Improved write throughput of f_puts() and f_printf().
Changed argument of f_chdrive(), f_mkfs(), disk_read() and disk_write().
Fixed f_write() can be truncated when the file size is close to 4GB.
Fixed f_open(), f_mkdir() and f_setlabel() can return incorrect result code on error.
-R0.09b, Jan 24, 2013
+R0.09b (January 24, 2013)
Added f_getlabel() and f_setlabel(). (_USE_LABEL = 1)
-R0.09a, Aug 27, 2012
+R0.09a (August 27, 2012)
Fixed assertion failure due to OS/2 EA on FAT12/16 volume.
Changed file functions reject null object pointer to avoid crash.
Changed option name _FS_SHARE to _FS_LOCK.
-R0.09, Sep 06, 2011
- f_mkfs() supports multiple partition to complete the multiple partition feature.
+R0.09 (September 6, 2011)
+ f_mkfs() supports multiple partition on a physical drive.
Added f_fdisk(). (_MULTI_PARTITION = 2)
-R0.08b, Jan 15, 2011
- Fast seek feature is also applied to f_read() and f_write().
+R0.08b (January 15, 2011)
+ Fast seek function is also applied to f_read() and f_write().
f_lseek() reports required table size on creating CLMP.
Extended format syntax of f_printf().
Ignores duplicated directory separators in given path names.
-R0.08a, Aug 16, 2010
+R0.08a (August 16, 2010)
Added f_getcwd(). (_FS_RPATH = 2)
- Added sector erase feature. (_USE_ERASE)
+ Added sector erase function. (_USE_ERASE)
Moved file lock semaphore table from fs object to the bss.
Fixed a wrong directory entry is created on non-LFN cfg when the given name contains ';'.
Fixed f_mkfs() creates wrong FAT32 volume.
-R0.08, May 15, 2010
+R0.08 (May 15, 2010)
Added a memory configuration option. (_USE_LFN)
- Added file lock feature. (_FS_SHARE)
- Added fast seek feature. (_USE_FASTSEEK)
+ Added support of file lock. (_FS_SHARE)
+ Added fast seek function. (_USE_FASTSEEK)
Changed some types on the API, XCHAR->TCHAR.
Changed fname member in the FILINFO structure on Unicode cfg.
String functions support UTF-8 encoding files on Unicode cfg.
-R0.07e, Nov 3, 2009
+R0.07e (November 3, 2009)
Separated out configuration options from ff.h to ffconf.h.
Added a configuration option, _LFN_UNICODE.
Fixed f_unlink() fails to remove a sub-dir on _FS_RPATH.
Fixed name matching error on the 13 char boundary.
Changed f_readdir() to return the SFN with always upper case on non-LFN cfg.
-R0.07c, Jun 21, 2009
+R0.07c (Junuary 21, 2009)
Fixed f_unlink() may return FR_OK on error.
Fixed wrong cache control in f_lseek().
- Added relative path feature.
+ Added support of relative path.
Added f_chdir().
Added f_chdrive().
Added proper case conversion to extended characters.
-R0.07a, Apr 14, 2009
+R0.07a (April 14, 2009)
Separated out OS dependent code on re-entrant configuration.
Added multiple sector size support.
-R0.07, Apr 01, 2009
+R0.07 (April 1, 2009)
Merged Tiny-FatFs into FatFs as a buffer configuration option.
Added long file name support.
Added multiple code page support.
@@ -90,63 +127,63 @@ R0.07, Apr 01, 2009 Changed result code of critical errors.
Renamed string functions to avoid name collision.
-R0.06, Apr 01, 2008
+R0.06 (April 1, 2008)
Added f_forward. (Tiny-FatFs)
Added string functions: fgets, fputc, fputs and fprintf.
Improved performance of f_lseek on moving to the same or following cluster.
-R0.05a, Feb 03, 2008
+R0.05a (February 3, 2008)
Added f_truncate.
Added f_utime.
Fixed off by one error at FAT sub-type determination.
Fixed btr in f_read can be mistruncated.
Fixed cached sector is left not flushed when create and close without write.
-R0.05, Aug 26, 2007
+R0.05 (August 26, 2007)
Changed arguments of f_read, f_write.
Changed arguments of f_mkfs. (FatFs)
Fixed f_mkfs on FAT32 creates incorrect FSInfo. (FatFs)
Fixed f_mkdir on FAT32 creates incorrect directory. (FatFs)
-R0.04b, May 05, 2007
+R0.04b (May 5, 2007)
Added _USE_NTFLAG option.
Added FSInfo support.
Fixed some problems corresponds to FAT32. (Tiny-FatFs)
Fixed DBCS name can result FR_INVALID_NAME.
Fixed short seek (<= csize) collapses the file object.
-R0.04a, Apr 01, 2007
+R0.04a (April 1, 2007)
Supported multiple partitions on a plysical drive. (FatFs)
Added minimization level 3.
Added a capability of extending file size to f_lseek.
Fixed an endian sensitive code in f_mkfs. (FatFs)
Fixed a problem corresponds to FAT32 support. (Tiny-FatFs)
-R0.04, Feb 04, 2007
+R0.04 (February 4, 2007)
Supported multiple drive system. (FatFs)
Changed some APIs for multiple drive system.
Added f_mkfs. (FatFs)
Added _USE_FAT32 option. (Tiny-FatFs)
-R0.03a, Dec 11, 2006
+R0.03a (December 11, 2006)
Improved cluster scan algolithm to write files fast.
Fixed f_mkdir creates incorrect directory on FAT32.
-R0.03, Sep 22, 2006
+R0.03 (September 22, 2006)
Added f_rename.
Changed option _FS_MINIMUM to _FS_MINIMIZE.
-R0.02a, Jun 10, 2006
+R0.02a (June 10, 2006)
Added a configuration option _FS_MINIMUM.
-R0.02, Jun 01, 2006
+R0.02 (Jun 01, 2006)
Added FAT12.
Removed unbuffered mode.
Fixed a problem on small (<32M) patition.
-R0.01, Apr 29, 2006
+R0.01 (April 29, 2006)
First release
-R0.00, Feb 26, 2006
+R0.00 (February 26, 2006)
Prototype (not released)
|