⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sfatfs.html

📁 FatFs/Tiny-FatFs Module Source Files R0.07
💻 HTML
字号:
<!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="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
<title>FatFs - FATFS</title>
</head>

<body>

<div class="para">
<h2>FATFS</h2>
<p>The <tt>FATFS</tt> structure holds dynamic work area of individual logical drives. It is given by application program and registerd/unregisterd to the FatFs module with f_mount function. Following members are in standard configuration. There is no member that can be changed from the application program.</p>
<pre>
typedef struct _FATFS {
    BYTE    fs_type;      /* FAT sub type */
    BYTE    drive;        /* Physical drive number */
    BYTE    csize;        /* Number of sectors per cluster */
    BYTE    n_fats;       /* Number of FAT copies */
    BYTE    wflag;        /* win[] dirty flag (1:must be written back) */
    BYTE    pad1;
    WORD    id;           /* File system mount ID */
    WORD    n_rootdir;    /* Number of root directory entries (0 on FAT32) */
#if _FS_REENTRANT
    HANDLE  h_mutex;      /* Handle to the mutex (Platform dependent) */
#endif
#if MAX_SS > 512U
    WORD    s_size;       /* Sector size */
#endif
#if !_FS_READONLY
    BYTE    fsi_flag;     /* fsinfo dirty flag (1:must be written back) */
    BYTE    pad2;
    DWORD   last_clust;   /* Last allocated cluster */
    DWORD   free_clust;   /* Number of free clusters */
    DWORD   fsi_sector;   /* fsinfo sector */
#endif
    DWORD   sects_fat;    /* Sectors per fat */
    DWORD   max_clust;    /* Maximum cluster# + 1. Number of clusters is max_clust - 2 */
    DWORD   fatbase;      /* FAT start sector */
    DWORD   dirbase;      /* Root directory start sector (Cluster# on FAT32) */
    DWORD   database;     /* Data start sector */
    DWORD   winsect;      /* Current sector appearing in the win[] */
    BYTE    win[MAX_SS];  /* Disk access window for Directory/FAT */
} FATFS;
</pre>
</div>

<p class="foot"><a href="../00index_e.html">Return</a></p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -