]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/Common/FileSystem/FatFs-0.7e/doc/en/sfile.html
Add FreeRTOS-Plus directory.
[freertos] / FreeRTOS / Demo / Common / FileSystem / FatFs-0.7e / doc / en / sfile.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r
2 <html lang="en">\r
3 <head>\r
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\r
5 <meta http-equiv="Content-Style-Type" content="text/css">\r
6 <link rel="up" title="FatFs" href="../00index_e.html">\r
7 <link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">\r
8 <title>FatFs - FIL</title>\r
9 </head>\r
10 \r
11 <body>\r
12 \r
13 <div class="para">\r
14 <h2>FIL</h2>\r
15 <p>The FIL structure (file object) holds state of an open file. It is initialzed by f_open function and discarded by f_close function. There is no member that can be changed by the application program.</p>\r
16 \r
17 <pre>\r
18 typedef struct _FIL_ {\r
19     FATFS*  fs;         /* Pointer to the owner file system object */\r
20     WORD    id;         /* Owner file system mount ID */\r
21     BYTE    flag;       /* File status flags */\r
22     BYTE    csect;      /* Sector address in the cluster */\r
23     DWORD   fptr;       /* File R/W pointer */\r
24     DWORD   fsize;      /* File size */\r
25     DWORD   org_clust;  /* File start cluster */\r
26     DWORD   curr_clust; /* Current cluster */\r
27     DWORD   dsect;      /* Current data sector */\r
28 #if !_FS_READONLY\r
29     DWORD   dir_sect;   /* Sector containing the directory entry */\r
30     BYTE*   dir_ptr;    /* Ponter to the directory entry in the window */\r
31 #endif\r
32 #if !_FS_TINY\r
33     BYTE    buf[_MAX_SS];/* File R/W buffer */\r
34 #endif\r
35 } FIL;\r
36 </pre>\r
37 \r
38 </div>\r
39 \r
40 <p class="foot"><a href="../00index_e.html">Return</a></p>\r
41 </body>\r
42 </html>\r