]> cloudbase.mooo.com Git - z180-stamp.git/blame - fatfs/doc/en/sdir.html
Import fatfs R0.12b
[z180-stamp.git] / fatfs / doc / en / sdir.html
CommitLineData
53668523
L
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r
2<html lang="en">\r
3<head>\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="alternate" hreflang="ja" title="Japanese" href="../ja/sdir.html">\r
8<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">\r
9<title>FatFs - DIR</title>\r
10</head>\r
11\r
12<body>\r
13\r
14<div class="para">\r
15<h2>DIR</h2>\r
70702af1 16<p>The <tt>DIR</tt> structure is used for the work area to read a directory by <tt>f_oepndir</tt>, <tt>f_readdir</tt>, <tt>f_findfirst</tt> and <tt>f_findnext</tt> function. Application program must not modify any member in this structure, or any data on the FAT volume can be collapsed.</p>\r
53668523
L
17<pre>\r
18<span class="k">typedef</span> <span class="k">struct</span> {\r
70702af1
L
19 _FDID obj; <span class="c">/* Owner file sytem object and object identifier */</span>\r
20 DWORD dptr; <span class="c">/* Current read/write offset */</span>\r
53668523
L
21 DWORD clust; <span class="c">/* Current cluster */</span>\r
22 DWORD sect; <span class="c">/* Current sector */</span>\r
23 BYTE* dir; <span class="c">/* Pointer to the current SFN entry in the win[] */</span>\r
24 BYTE* fn; <span class="c">/* Pointer to the SFN buffer (in/out) {file[8],ext[3],status[1]} */</span>\r
53668523 25<span class="k">#if</span> _USE_LFN\r
70702af1
L
26 DWORD blk_ofs; <span class="c">/* Offset of the entry block (0xFFFFFFFF:Invalid) */</span>\r
27 WCHAR* lfn; <span class="c">/* Pointer to the LFN working buffer (in/out) */</span>\r
28<span class="k">#endif</span>\r
29<span class="k">#if</span> _USE_FIND\r
30 const TCHAR* pat; <span class="c">/* Ponter to the matching pattern */</span>\r
53668523
L
31<span class="k">#endif</span>\r
32} DIR;\r
33</pre>\r
34</div>\r
35\r
36<p class="foot"><a href="../00index_e.html">Return</a></p>\r
37</body>\r
38</html>\r