1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
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 - FIL
</title>
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>
18 typedef struct _FIL_ {
19 FATFS* fs; /* Pointer to the owner file system object */
20 WORD id; /* Owner file system mount ID */
21 BYTE flag; /* File status flags */
22 BYTE csect; /* Sector address in the cluster */
23 DWORD fptr; /* File R/W pointer */
24 DWORD fsize; /* File size */
25 DWORD org_clust; /* File start cluster */
26 DWORD curr_clust; /* Current cluster */
27 DWORD dsect; /* Current data sector */
29 DWORD dir_sect; /* Sector containing the directory entry */
30 BYTE* dir_ptr; /* Ponter to the directory entry in the window */
33 BYTE buf[_MAX_SS];/* File R/W buffer */
40 <p class=
"foot"><a href=
"../00index_e.html">Return
</a></p>