URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
606 |
jeremybenn |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2 |
|
|
<html lang="ja">
|
3 |
|
|
<head>
|
4 |
|
|
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
|
5 |
|
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
6 |
|
|
<link rel="up" title="FatFs" href="../00index_j.html">
|
7 |
|
|
<link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
|
8 |
|
|
<title>FatFs - FATFS</title>
|
9 |
|
|
</head>
|
10 |
|
|
|
11 |
|
|
<body>
|
12 |
|
|
|
13 |
|
|
<div class="para">
|
14 |
|
|
<h2>FATFS</h2>
|
15 |
|
|
<p><tt>FATFS</tt>構造体は、個々の論理ドライブのダイナミック・ワーク・エリアを保持し、f_mount()でFatFsモジュールに登録されます。標準状態では次のようなメンバになっています。アプリケーションから書き換え可能なメンバはありません。</p>
|
16 |
|
|
|
17 |
|
|
<pre>
|
18 |
|
|
typedef struct _FATFS_ {
|
19 |
|
|
BYTE fs_type; /* FAT sub type */
|
20 |
|
|
BYTE drive; /* Physical drive number */
|
21 |
|
|
BYTE csize; /* Number of sectors per cluster */
|
22 |
|
|
BYTE n_fats; /* Number of FAT copies */
|
23 |
|
|
BYTE wflag; /* win[] dirty flag (1:must be written back) */
|
24 |
|
|
BYTE fsi_flag; /* fsinfo dirty flag (1:must be written back) */
|
25 |
|
|
WORD id; /* File system mount ID */
|
26 |
|
|
WORD n_rootdir; /* Number of root directory entries (0 on FAT32) */
|
27 |
|
|
#if _FS_REENTRANT
|
28 |
|
|
HANDLE h_mutex; /* Handle to the mutex (Platform dependent) */
|
29 |
|
|
#endif
|
30 |
|
|
#if _MAX_SS != 512
|
31 |
|
|
WORD s_size; /* Sector size */
|
32 |
|
|
#endif
|
33 |
|
|
#if !_FS_READONLY
|
34 |
|
|
DWORD last_clust; /* Last allocated cluster */
|
35 |
|
|
DWORD free_clust; /* Number of free clusters */
|
36 |
|
|
DWORD fsi_sector; /* fsinfo sector */
|
37 |
|
|
#endif
|
38 |
|
|
DWORD sects_fat; /* Sectors per fat */
|
39 |
|
|
DWORD max_clust; /* Maximum cluster# + 1. Number of clusters is max_clust - 2 */
|
40 |
|
|
DWORD fatbase; /* FAT start sector */
|
41 |
|
|
DWORD dirbase; /* Root directory start sector (Cluster# on FAT32) */
|
42 |
|
|
DWORD database; /* Data start sector */
|
43 |
|
|
DWORD winsect; /* Current sector appearing in the win[] */
|
44 |
|
|
BYTE win[_MAX_SS]; /* Disk access window for Directory/FAT */
|
45 |
|
|
} FATFS;
|
46 |
|
|
</pre>
|
47 |
|
|
</div>
|
48 |
|
|
|
49 |
|
|
<p class="foot"><a href="../00index_j.html">戻る</a></p>
|
50 |
|
|
</body>
|
51 |
|
|
</html>
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.