FreeRTOS
[armadillo_firmware.git] / FreeRTOS / Common / FileSystem / FatFs-0.7e / doc / en / sfatfs.html
blobfb9dad8a0f7a670e5924fe08b7b044aa449505e9
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html lang="en">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <link rel="up" title="FatFs" href="../00index_e.html">
7 <link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
8 <title>FatFs - FATFS</title>
9 </head>
11 <body>
13 <div class="para">
14 <h2>FATFS</h2>
15 <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>
16 <pre>
17 typedef struct _FATFS_ {
18 BYTE fs_type; /* FAT sub type */
19 BYTE drive; /* Physical drive number */
20 BYTE csize; /* Number of sectors per cluster */
21 BYTE n_fats; /* Number of FAT copies */
22 BYTE wflag; /* win[] dirty flag (1:must be written back) */
23 BYTE fsi_flag; /* fsinfo dirty flag (1:must be written back) */
24 WORD id; /* File system mount ID */
25 WORD n_rootdir; /* Number of root directory entries (0 on FAT32) */
26 #if _FS_REENTRANT
27 _SYNC_t sobj; /* Identifier of sync object */
28 #endif
29 #if _MAX_SS != 512
30 WORD s_size; /* Sector size */
31 #endif
32 #if !_FS_READONLY
33 DWORD last_clust; /* Last allocated cluster */
34 DWORD free_clust; /* Number of free clusters */
35 DWORD fsi_sector; /* fsinfo sector */
36 #endif
37 #if _FS_RPATH
38 DWORD cdir; /* Current directory (0:root)*/
39 #endif
40 DWORD sects_fat; /* Sectors per fat */
41 DWORD max_clust; /* Maximum cluster# + 1. Number of clusters is max_clust - 2 */
42 DWORD fatbase; /* FAT start sector */
43 DWORD dirbase; /* Root directory start sector (Cluster# on FAT32) */
44 DWORD database; /* Data start sector */
45 DWORD winsect; /* Current sector appearing in the win[] */
46 BYTE win[_MAX_SS];/* Disk access window for Directory/FAT */
47 } FATFS;
48 </pre>
49 </div>
51 <p class="foot"><a href="../00index_e.html">Return</a></p>
52 </body>
53 </html>