FreeRTOS
[armadillo_firmware.git] / FreeRTOS / Common / FileSystem / FatFs-0.7e / doc / en / sfile.html
blobc6af00882c690f00ffa05fa3e755ad8d9591f3ea
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 - FIL</title>
9 </head>
11 <body>
13 <div class="para">
14 <h2>FIL</h2>
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>
17 <pre>
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 */
28 #if !_FS_READONLY
29 DWORD dir_sect; /* Sector containing the directory entry */
30 BYTE* dir_ptr; /* Ponter to the directory entry in the window */
31 #endif
32 #if !_FS_TINY
33 BYTE buf[_MAX_SS];/* File R/W buffer */
34 #endif
35 } FIL;
36 </pre>
38 </div>
40 <p class="foot"><a href="../00index_e.html">Return</a></p>
41 </body>
42 </html>