1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1">
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>
14 <div class=
"para func">
15 <h2>disk_initialize
</h2>
16 <p>The disk_initialize function initializes the storage device.
</p>
18 DSTATUS disk_initialize (
19 BYTE
<span class=
"arg">pdrv
</span> <span class=
"c">/* [IN] Physical drive number */
</span>
24 <div class=
"para arg">
28 <dd>Physical drive number to identify the target device. Always zero at single drive system.
</dd>
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>
38 <div class=
"para desc">
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 file system, use
<tt>f_mount
</tt> function instead.
</em></p>
44 <p class=
"foot"><a href=
"../00index_e.html">Return
</a></p>