- Supported multiple partitions on a plysical drive. (FatFs) - Fixed an endian sensitive code in f_mkfs(). (FatFs) - Added a capability of extending the file size to f_lseek(). - Added minimization level 3. - Fixed a problem that can collapse a sector when recreate an - existing file in any sub-directory at non FAT32 cfg. (Tiny-FatFs)
		
			
				
	
	
		
			74 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 | |
| <html lang="ja">
 | |
| <head>
 | |
| <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
 | |
| <meta http-equiv="Content-Style-Type" content="text/css">
 | |
| <link rel="up" title="FatFs" href="../00index_j.html">
 | |
| <link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
 | |
| <title>FatFs - f_opendir</title>
 | |
| </head>
 | |
| 
 | |
| <body>
 | |
| 
 | |
| <div class="para">
 | |
| <h2>f_opendir</h2>
 | |
| <p>ディレクトリをオープンします。</p>
 | |
| <pre>
 | |
| FRESULT f_opendir (
 | |
|   DIR* <em>DirObject</em>,      /* ディレクトリ・ブジェクト構造体へのポインタ */
 | |
|   const char* <em>DirName</em>  /* ディレクトリ名へのポインタ */
 | |
| );
 | |
| </pre>
 | |
| </div>
 | |
| 
 | |
| <div class="para">
 | |
| <h4>引数</h4>
 | |
| <dl class="par">
 | |
| <dt>DirObject</dt>
 | |
| <dd>初期化するディレクトリ・オブジェクト構造体へのポインタを指定します。</dd>
 | |
| <dt>DirName</dt>
 | |
| <dd>オープンするディレクトリの<a href="filename.html">フルパス名</a>が入った<tt>'\0'</tt>で終わる文字列へのポインタを指定します。</dd>
 | |
| </dl>
 | |
| </div>
 | |
| 
 | |
| 
 | |
| <div class="para">
 | |
| <h4>戻り値</h4>
 | |
| <dl class="ret">
 | |
| <dt>FR_OK (0)</dt>
 | |
| <dd>正常終了。</dd>
 | |
| <dt>FR_NO_FILE</dt>
 | |
| <dd>ディレクトリが見つからない。</dd>
 | |
| <dt>FR_NO_PATH</dt>
 | |
| <dd>パスが見つからない。</dd>
 | |
| <dt>FR_INVALID_NAME</dt>
 | |
| <dd>パス名が不正。</dd>
 | |
| <dt>FR_INVALID_DRIVE</dt>
 | |
| <dd>ドライブ番号が不正。</dd>
 | |
| <dt>FR_NOT_READY</dt>
 | |
| <dd>メディアがセットされていないなど、ディスク・ドライブが動作不能状態。</dd>
 | |
| <dt>FR_RW_ERROR</dt>
 | |
| <dd>ディスク・エラーまたは内部エラーによる失敗。</dd>
 | |
| <dt>FR_NOT_ENABLED</dt>
 | |
| <dd>論理ドライブにワーク・エリアが与えられていない。</dd>
 | |
| <dt>FR_NO_FILESYSTEM</dt>
 | |
| <dd>ディスク上に有効なFATパーテーションが見つからない。</dd>
 | |
| </dl>
 | |
| </div>
 | |
| 
 | |
| 
 | |
| <div class="para">
 | |
| <h4>解説</h4>
 | |
| <p>ディレクトリをオープンします。正常終了したら、<tt>DirObject</tt>構造体を使ってこのディレクトリの項目を順次読み出せます。<tt>DirObject</tt>構造体は使用後は任意の時点で破棄できます。<tt>_FS_MINIMIZE >= 2</tt>ではこの関数はサポートされません。</p>
 | |
| </div>
 | |
| 
 | |
| 
 | |
| <div class="para">
 | |
| <h4>参照</h4>
 | |
| <p><tt><a href="readdir.html">f_readdir</a>, <a href="sdir.html">DIR</a></tt></p>
 | |
| </div>
 | |
| 
 | |
| <p class="foot"><a href="../00index_j.html">戻る</a></p>
 | |
| </body>
 | |
| </html>
 |