OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [Common/] [FileSystem/] [FatFs-0.7e/] [doc/] [en/] [sfile.html] - Blame information for rev 606

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 606 jeremybenn
<!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>
10
 
11
<body>
12
 
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>
16
 
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>
37
 
38
</div>
39
 
40
<p class="foot"><a href="../00index_e.html">Return</a></p>
41
</body>
42
</html>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.