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=utf-8"> 5<meta http-equiv="Content-Style-Type" content="text/css"> 6<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default"> 7<title>FatFs - DIR</title> 8</head> 9 10<body> 11 12<div class="para"> 13<h2>DIR</h2> 14<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 <em>must not</em> modify any member in this structure, or <tt>f_readdir</tt> function will not work properly.</p> 15<pre> 16<span class="k">typedef</span> <span class="k">struct</span> { 17 FFOBJID obj; <span class="c">/* Object identifier */</span> 18 DWORD dptr; <span class="c">/* Current read/write offset */</span> 19 DWORD clust; <span class="c">/* Current cluster */</span> 20 LBA_t sect; <span class="c">/* Current sector */</span> 21 BYTE* dir; <span class="c">/* Pointer to the current SFN entry in the win[] */</span> 22 BYTE* fn; <span class="c">/* Pointer to the SFN buffer (in/out) {file[8],ext[3],status[1]} */</span> 23<span class="k">#if</span> FF_USE_LFN 24 DWORD blk_ofs; <span class="c">/* Offset of the entry block (0xFFFFFFFF:Invalid) */</span> 25 WCHAR* lfn; <span class="c">/* Pointer to the LFN working buffer (in/out) */</span> 26<span class="k">#endif</span> 27<span class="k">#if</span> FF_USE_FIND 28 const TCHAR* pat; <span class="c">/* Ponter to the matching pattern */</span> 29<span class="k">#endif</span> 30} DIR; 31</pre> 32</div> 33 34 35<p class="foot"><a href="../00index_e.html">Return</a></p> 36</body> 37</html> 38