]> cloudbase.mooo.com Git - z180-stamp.git/blame - fatfs/doc/en/dinit.html
Import fatfs R0.12b
[z180-stamp.git] / fatfs / doc / en / dinit.html
CommitLineData
53668523
L
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r
2<html lang="en">\r
3<head>\r
4<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\r
5<meta http-equiv="Content-Style-Type" content="text/css">\r
6<link rel="up" title="FatFs" href="../00index_e.html">\r
7<link rel="alternate" hreflang="ja" title="Japanese" href="../ja/dinit.html">\r
8<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">\r
9<title>FatFs - disk_initialize</title>\r
10</head>\r
11\r
12<body>\r
13\r
14<div class="para func">\r
15<h2>disk_initialize</h2>\r
16<p>The disk_initialize function initializes the storage device.</p>\r
17<pre>\r
18DSTATUS disk_initialize (\r
19 BYTE <span class="arg">pdrv</span> <span class="c">/* [IN] Physical drive number */</span>\r
20);\r
21</pre>\r
22</div>\r
23\r
24<div class="para arg">\r
25<h4>Parameter</h4>\r
26<dl class="par">\r
27<dt>pdrv</dt>\r
7b78a5a2 28<dd>Physical drive number to identify the target device. Always zero at single drive system.</dd>\r
53668523
L
29</dl>\r
30</div>\r
31\r
32\r
33<div class="para ret">\r
34<h4>Return Values</h4>\r
70702af1 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>\r
53668523
L
36</div>\r
37\r
38<div class="para desc">\r
39<h4>Description</h4>\r
7b78a5a2 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>\r
70702af1 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>\r
53668523
L
42</div>\r
43\r
44<p class="foot"><a href="../00index_e.html">Return</a></p>\r
45</body>\r
46</html>\r