fatfs v0.08 May 15, 2010:
- Added a memory configuration option. (_USE_LFN) - Added file lock feature. (_FS_SHARE) - Added fast seek feature. (_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.
This commit is contained in:
1 parent
e6cd91ca0b
commit
46155916b1
92 files changed
+2469
-1589
No files matched your search
+21
-14
@@ -4,6 +4,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
|
||||
<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/sfile.html">
|
||||
<link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
|
||||
<title>FatFs - FIL</title>
|
||||
</head>
|
||||
@@ -12,25 +13,31 @@
|
||||
|
||||
<div class="para">
|
||||
<h2>FIL</h2>
|
||||
<p><tt>FIL</tt>構造体は、f_open()で作成され、そのファイルの状態を保持します。アプリケーションから書き換え可能なメンバはありません。</p>
|
||||
<p><tt>FIL</tt>構造体は、f_open関数で作成され、そのファイルの状態を保持します。また、f_close関数でファイルが閉じられると無効化されます。アプリケーションからの書き換えが可能なメンバは<tt>cltbl</tt>のみです。非タイニー構成では内部にセクタ・バッファが確保されるので、サイズに注意が必要です。</p>
|
||||
|
||||
<pre>
|
||||
typedef struct _FIL_ {
|
||||
FATFS* fs; /* Pointer to the owner file system object */
|
||||
WORD id; /* Owner file system mount ID */
|
||||
BYTE flag; /* File status flags */
|
||||
BYTE csect; /* Sector address in the cluster */
|
||||
DWORD fptr; /* File R/W pointer */
|
||||
DWORD fsize; /* File size */
|
||||
DWORD org_clust; /* File start cluster */
|
||||
DWORD curr_clust; /* Current cluster */
|
||||
DWORD dsect; /* Current data sector */
|
||||
typedef struct {
|
||||
FATFS* fs; <span>/* 親ファイル・システム・オブジェクトへのポインタ */</span>
|
||||
WORD id; <span>/* 親ファイル・システム・オブジェクトのマウントID */</span>
|
||||
BYTE flag; <span>/* ファイル・ステータス・フラグ */</span>
|
||||
BYTE pad1;
|
||||
DWORD fptr; <span>/* ファイル読み書きポインタ(ファイル先頭からのバイト・オフセット) */</span>
|
||||
DWORD fsize; <span>/* ファイル・サイズ(バイト単位) */</span>
|
||||
DWORD org_clust; <span>/* ファイル開始クラスタ番号 (0: fsize==0) */</span>
|
||||
DWORD curr_clust; <span>/* 現在のクラスタ */</span>
|
||||
DWORD dsect; <span>/* 現在のデータ・セクタ */</span>
|
||||
#if _FS_READONLY == 0
|
||||
DWORD dir_sect; /* Sector containing the directory entry */
|
||||
BYTE* dir_ptr; /* Ponter to the directory entry in the window */
|
||||
DWORD dir_sect; <span>/* このファイルのディレクトリ・エントリのあるセクタ */</span>
|
||||
BYTE* dir_ptr; <span>/* このファイルのディレクトリへのポインタ */</span>
|
||||
#endif
|
||||
#if _USE_FASTSEEK
|
||||
DWORD* cltbl; <span>/* ファイルのクラスタ・リンク情報へのポインタ */</span>
|
||||
#endif
|
||||
#if _FS_SHARE
|
||||
UINT lockid; <span>/* ファイル・ロックID */</span>
|
||||
#endif
|
||||
#if !_FS_TINY
|
||||
BYTE buf[_MAX_SS]; /* File R/W buffer */
|
||||
BYTE buf[_MAX_SS]; <span>/* データ転送バッファ */</span>
|
||||
#endif
|
||||
} FIL;
|
||||
</pre>
|
||||
|
||||
Reference in new issue
Block a user