1e6865dcdSopenharmony_ci<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 2e6865dcdSopenharmony_ci<html lang="en"> 3e6865dcdSopenharmony_ci<head> 4e6865dcdSopenharmony_ci<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 5e6865dcdSopenharmony_ci<meta http-equiv="Content-Style-Type" content="text/css"> 6e6865dcdSopenharmony_ci<link rel="up" title="FatFs" href="../00index_e.html"> 7e6865dcdSopenharmony_ci<link rel="alternate" hreflang="ja" title="Japanese" href="../ja/sdir.html"> 8e6865dcdSopenharmony_ci<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default"> 9e6865dcdSopenharmony_ci<title>FatFs - DIR</title> 10e6865dcdSopenharmony_ci</head> 11e6865dcdSopenharmony_ci 12e6865dcdSopenharmony_ci<body> 13e6865dcdSopenharmony_ci 14e6865dcdSopenharmony_ci<div class="para"> 15e6865dcdSopenharmony_ci<h2>DIR</h2> 16e6865dcdSopenharmony_ci<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> 17e6865dcdSopenharmony_ci<pre> 18e6865dcdSopenharmony_ci<span class="k">typedef</span> <span class="k">struct</span> { 19e6865dcdSopenharmony_ci FFOBJID obj; <span class="c">/* Object identifier */</span> 20e6865dcdSopenharmony_ci DWORD dptr; <span class="c">/* Current read/write offset */</span> 21e6865dcdSopenharmony_ci DWORD clust; <span class="c">/* Current cluster */</span> 22e6865dcdSopenharmony_ci LBA_t sect; <span class="c">/* Current sector */</span> 23e6865dcdSopenharmony_ci BYTE* dir; <span class="c">/* Pointer to the current SFN entry in the win[] */</span> 24e6865dcdSopenharmony_ci BYTE* fn; <span class="c">/* Pointer to the SFN buffer (in/out) {file[8],ext[3],status[1]} */</span> 25e6865dcdSopenharmony_ci<span class="k">#if</span> FF_USE_LFN 26e6865dcdSopenharmony_ci DWORD blk_ofs; <span class="c">/* Offset of the entry block (0xFFFFFFFF:Invalid) */</span> 27e6865dcdSopenharmony_ci WCHAR* lfn; <span class="c">/* Pointer to the LFN working buffer (in/out) */</span> 28e6865dcdSopenharmony_ci<span class="k">#endif</span> 29e6865dcdSopenharmony_ci<span class="k">#if</span> FF_USE_FIND 30e6865dcdSopenharmony_ci const TCHAR* pat; <span class="c">/* Ponter to the matching pattern */</span> 31e6865dcdSopenharmony_ci<span class="k">#endif</span> 32e6865dcdSopenharmony_ci} DIR; 33e6865dcdSopenharmony_ci</pre> 34e6865dcdSopenharmony_ci</div> 35e6865dcdSopenharmony_ci 36e6865dcdSopenharmony_ci<p class="foot"><a href="../00index_e.html">Return</a></p> 37e6865dcdSopenharmony_ci</body> 38e6865dcdSopenharmony_ci</html> 39