64 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			1.5 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 - disk_write</title>
 | ||
| </head>
 | ||
| 
 | ||
| <body>
 | ||
| 
 | ||
| <div class="para">
 | ||
| <h2>disk_write</h2>
 | ||
| <p>ディスクにセクタデータを書き込みます。</p>
 | ||
| <pre>
 | ||
| DRESULT disk_write (
 | ||
|   const BYTE* <em>Buffer</em>,  // 書き込むデータへのポインタ
 | ||
|   DWORD <em>SectorNumber</em>,  // 書き込み開始セクタ番号
 | ||
|   BYTE <em>SectorCount</em>     // 書き込みセクタ数
 | ||
| );
 | ||
| </pre>
 | ||
| </div>
 | ||
| 
 | ||
| <div class="para">
 | ||
| <h4>パラメータ</h4>
 | ||
| <dl class="par">
 | ||
| <dt>Buffer</dt>
 | ||
| <dd>ディスクに書き込むセクタデータを指定します。</dd>
 | ||
| <dt>SectorNumber</dt>
 | ||
| <dd>書き込みを開始するセクタ番号。LBAで指定します。</dd>
 | ||
| <dt>SectorCount</dt>
 | ||
| <dd>書き込むセクタ数。 1~255で設定します。</dd>
 | ||
| </dl>
 | ||
| </div>
 | ||
| 
 | ||
| 
 | ||
| <div class="para">
 | ||
| <h4>戻り値</h4>
 | ||
| <dl class="ret">
 | ||
| <dt>RES_OK</dt>
 | ||
| <dd>正常終了。</dd>
 | ||
| <dt>RES_ERROR</dt>
 | ||
| <dd>書き込み中にエラーが発生した。</dd>
 | ||
| <dt>RES_WRPRT</dt>
 | ||
| <dd>ディスクが書き込み禁止状態。</dd>
 | ||
| <dt>RES_PARERR</dt>
 | ||
| <dd>パラメータが不正。</dd>
 | ||
| <dt>RES_NOTRDY</dt>
 | ||
| <dd>ドライブが動作可能状態ではない(初期化されていない)。</dd>
 | ||
| </dl>
 | ||
| </div>
 | ||
| 
 | ||
| 
 | ||
| <div class="para">
 | ||
| <h4>解説</h4>
 | ||
| <p>リードオンリー構成ではこの関数は必要とされません。</p>
 | ||
| </div>
 | ||
| 
 | ||
| 
 | ||
| <p class="foot"><a href="../00index_j.html">戻る</a></p>
 | ||
| </body>
 | ||
| </html>
 |