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/] [sfileinfo.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 - FILINFO</title>
9
</head>
10
 
11
<body>
12
 
13
<div class="para">
14
<h2>FILINFO</h2>
15
<p>The <tt>FILINFO</tt> structure holds a file information returned by f_stat and f_readdir function.</p>
16
<pre>
17
typedef struct _FILINFO_ {
18
    DWORD fsize;      /* File size */
19
    WORD  fdate;      /* Last modified date */
20
    WORD  ftime;      /* Last modified time */
21
    BYTE  fattrib;    /* Attribute */
22
    char  fname[13];  /* Short file name (8.3 format) */
23
#if _USE_LFN
24
    XCHAR* lfname;    /* Pointer to the LFN buffer */
25
    int   lfsize;     /* Size of LFN buffer [characters] */
26
#endif
27
} FILINFO;
28
</pre>
29
</div>
30
 
31
<h4>Members</h4>
32
<dl>
33
<dt>fsize</dt>
34
<dd>Indicates size of the file in unit of byte. This is always zero when it is a directory.</dd>
35
<dt>fdate</dt>
36
<dd>Indicates the date that the file was modified or the directory was created.<br>
37
<dl>
38
<dt>bit15:9</dt>
39
<dd>Year origin from 1980 (0..127)</dd>
40
<dt>bit8:5</dt>
41
<dd>Month (1..12)</dd>
42
<dt>bit4:0</dt>
43
<dd>Day (1..31)</dd>
44
</dl>
45
</dd>
46
<dt>ftime</dt>
47
<dd>Indicates the time that the file was modified or the directory was created.<br>
48
<dl>
49
<dt>bit15:11</dt>
50
<dd>Hour (0..23)</dd>
51
<dt>bit10:5</dt>
52
<dd>Minute (0..59)</dd>
53
<dt>bit4:0</dt>
54
<dd>Second / 2 (0..29)</dd>
55
</dl>
56
</dd>
57
<dt>fattrib</dt>
58
<dd>Indicates the file/directory attribute in combination of <tt>AM_DIR</tt>, <tt>AM_RDO</tt>, <tt>AM_HID</tt>, <tt>AM_SYS</tt> and <tt>AM_ARC</tt>.</dd>
59
<dt>fname[]</dt>
60
<dd>Indicates the file/directory name in 8.3 format null-terminated string. It is always returnd with upper case on non-LFN configuration but it can be returned with lower case on LFN configuration.</dd>
61
<dt>lfname</dt>
62
<dd>Pointer to the LFN buffer to store the read LFN. This member must be initialized by application prior to use this structure. Not available on non-LFN configuration.</dd>
63
<dt>lfsize</dt>
64
<dd>Size of the LFN buffer in unit of chars. This member must be initialized by application prior to use this structure. Not available on non-LFN configuration.</dd>
65
</dl>
66
 
67
<p class="foot"><a href="../00index_e.html">Return</a></p>
68
</body>
69
</html>

powered by: WebSVN 2.1.0

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