1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
\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
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
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 == 0
\r
29 DWORD dir_sect; /* Sector containing the directory entry */
\r
30 BYTE* dir_ptr; /* Ponter to the directory entry in the window */
\r
33 BYTE buf[SS_MAX]; /* File R/W buffer */
\r
40 <p class="foot"><a href="../00index_e.html">Return</a></p>
\r