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=
"stylesheet" href=
"../css_e.css" type=
"text/css" media=
"screen" title=
"ELM Default">
8 <title>FatFs - f_chdrive
</title>
15 <p>The f_chdrive function changes the current drive.
</p>
18 BYTE
<em>Drive
</em> /* Logical drive number */
27 <dd>Specifies the
<a href=
"filename.html">logical drive number
</a> to be set as the current drive.
</dd>
33 <h4>Return Values
</h4>
36 <dd>The function succeeded.
</dd>
37 <dt>FR_INVALID_DRIVE
</dt>
38 <dd>The drive number is invalid.
</dd>
45 <p>The f_chdrive function changes the current drive. The initial value of the current drive number is
0. Note that the current drive is retained in a static variable so that it also affects other tasks that using the file functions.
</p>
50 <p>Available when
<tt>_FS_RPATH ==
1</tt>.
</p>
56 <p><tt><a href=
"chdir.html">f_chdir
</a></tt></p>
59 <p class=
"foot"><a href=
"../00index_e.html">Return
</a></p>