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="up" title="FatFs" href="../00index_e.html"> 7<link rel="alternate" hreflang="ja" title="Japanese" href="../ja/dinit.html"> 8<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default"> 9<title>FatFs - disk_initialize</title> 10</head> 11 12<body> 13 14<div class="para func"> 15<h2>disk_initialize</h2> 16<p>The disk_initialize function is called to initializes the storage device.</p> 17<pre> 18DSTATUS disk_initialize ( 19 BYTE <span class="arg">pdrv</span> <span class="c">/* [IN] Physical drive number */</span> 20); 21</pre> 22</div> 23 24<div class="para arg"> 25<h4>Parameter</h4> 26<dl class="par"> 27<dt>pdrv</dt> 28<dd>Physical drive number to identify the target device. Always zero at single drive system.</dd> 29</dl> 30</div> 31 32 33<div class="para ret"> 34<h4>Return Values</h4> 35<p>This function returns the current drive status flags as the result. For details of the drive status, refer to the <a href="dstat.html">disk_status</a> function.</p> 36</div> 37 38<div class="para desc"> 39<h4>Description</h4> 40<p>This function initializes the storage device and put it ready to generic read/write. When the function succeeded, <tt>STA_NOINIT</tt> flag in the return value is cleared.</p> 41<p><em>Remarks: This function needs to be under control of FatFs module. Application program MUST NOT call this function, or FAT structure on the volume can be broken. To re-initialize the filesystem, use <tt>f_mount</tt> function instead.</em></p> 42</div> 43 44<p class="foot"><a href="../00index_e.html">Return</a></p> 45</body> 46</html> 47