ugfx/3rdparty/fatfs-0.10b/doc/ja/fdisk.html

98 lines
3.4 KiB
HTML
Raw Normal View History

<!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="alternate" hreflang="en" title="English" href="../en/fdisk.html">
<link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
<title>FatFs - f_fdisk</title>
</head>
<body>
<div class="para func">
<h2>f_fdisk</h2>
<p><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><EFBFBD><EFBFBD>C<EFBFBD>u<EFBFBD>𕪊<EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B</p>
<pre>
FRESULT f_fdisk (
BYTE <span class="arg">pdrv</span>, <span class="c">/* [IN] <20><><EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u<EFBFBD>ԍ<EFBFBD> */</span>
const DWORD <span class="arg">part[]</span>, <span class="c">/* [IN] <20><><EFBFBD><EFBFBD><EFBFBD>}<7D>b<EFBFBD>v<EFBFBD>E<EFBFBD>e<EFBFBD>[<5B>u<EFBFBD><75> */</span>
void* <span class="arg">work</span> <span class="c">/* [-] <20><><EFBFBD>[<5B>N<EFBFBD>G<EFBFBD><47><EFBFBD>A */</span>
);
</pre>
</div>
<div class="para arg">
<h4><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
<dl class="par">
<dt>pdrv</dt>
<dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><em><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><EFBFBD><EFBFBD>C<EFBFBD>u</em><EFBFBD>̃h<EFBFBD><EFBFBD><EFBFBD>C<EFBFBD>u<EFBFBD>ԍ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B</dd>
<dt>part[]</dt>
<dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>}<7D>b<EFBFBD>v<EFBFBD>E<EFBFBD>e<EFBFBD>[<5B>u<EFBFBD><75><EFBFBD>ւ̃|<7C>C<EFBFBD><43><EFBFBD>^<5E><><EFBFBD>w<EFBFBD><EFBFBD>܂<EFBFBD><DC82>B</dd>
<dt>work</dt>
<dd><EFBFBD><EFBFBD><EFBFBD>[<5B>N<EFBFBD>G<EFBFBD><47><EFBFBD>A<EFBFBD>ւ̃|<7C>C<EFBFBD><43><EFBFBD>^<5E><><EFBFBD>w<EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD>T<EFBFBD>C<EFBFBD>Y<EFBFBD><59><tt>_MAX_SS</tt><EFBFBD>o<EFBFBD>C<EFBFBD>g<EFBFBD>K<EFBFBD>v<EFBFBD>ł<EFBFBD><EFBFBD>B</dd>
</dl>
</div>
<div class="para ret">
<h4><EFBFBD>߂<EFBFBD><EFBFBD>l</h4>
<p>
<a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#wp">FR_WRITE_PROTECTED</a>,
<a href="rc.html#ip">FR_INVALID_PARAMETER</a>
</p>
</div>
<div class="para desc">
<h4><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
<p><EFBFBD><EFBFBD><EFBFBD>̊֐<EFBFBD><EFBFBD>́A<EFBFBD>w<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><EFBFBD><EFBFBD>C<EFBFBD>u<EFBFBD><EFBFBD>MBR<EFBFBD>ɋ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>e<EFBFBD>[<5B>u<EFBFBD><75><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EC90AC><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><E695AA><EFBFBD>͈<EFBFBD><CD88>ʓI<CA93><49>FDISK<53>`<60><><EFBFBD>ōs<C58D><73><EFBFBD><EFBFBD><EFBFBD>߁A<DF81>ő<EFBFBD>4<EFBFBD>‚̊<C282><CC8A>{<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EC90AC><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɂ͑Ή<CD91><CE89><EFBFBD><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>}<7D>b<EFBFBD>v<EFBFBD>e<EFBFBD>[<5B>u<EFBFBD><75><tt class="arg">part[]</tt><EFBFBD>ɂ̓h<EFBFBD><EFBFBD><EFBFBD>C<EFBFBD>u<EFBFBD><EFBFBD><EFBFBD>ǂ̂悤<EFBFBD>ɕ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD><EFBFBD>ēn<EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B<EFBFBD><EFBFBD><EFBFBD>̔z<EFBFBD><EFBFBD><EFBFBD><EFBFBD>4<EFBFBD>‚̍<EFBFBD><EFBFBD>ڂ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD><EFBFBD>̍<EFBFBD><EFBFBD>ڂ<EFBFBD>1<EFBFBD>Ԗڂ́A<EFBFBD>Ō<EFBFBD><EFBFBD>̍<EFBFBD><EFBFBD>ڂ<EFBFBD>4<EFBFBD>Ԗڂ̋<EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃T<EFBFBD>C<EFBFBD>Y<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B<EFBFBD>l<EFBFBD><EFBFBD>100<EFBFBD>ȉ<EFBFBD><EFBFBD>̏ꍇ<EFBFBD>A<EFBFBD>h<EFBFBD><EFBFBD><EFBFBD>C<EFBFBD>u<EFBFBD>̑<EFBFBD><EFBFBD>e<EFBFBD>ʂɑ΂<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>p<EFBFBD>[<5B>Z<EFBFBD><5A><EFBFBD>g<EFBFBD>P<EFBFBD>ʂŎw<C58E><EFBFBD>܂<EFBFBD><DC82>B100<30>𒴂<EFBFBD><F092B482><EFBFBD><EFBFBD>l<EFBFBD>̏ꍇ<CC8F>̓Z<CD83>N<EFBFBD>^<5E><><EFBFBD>̒<EFBFBD><CC92>ڎw<DA8E><77><EFBFBD>ɂȂ<C982><C882>܂<EFBFBD><DC82>B</p>
</div>
<div class="para comp">
<h4><EFBFBD>Ή<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
<p><tt>_FS_READOLNY == 0</tt> <20><> <tt>_USE_MKFS == 1</tt> <20><> <tt>_MULTI_PARTITION == 1</tt> <20>̂Ƃ<CC82><C682>g<EFBFBD>p<EFBFBD>”\<5C>ł<EFBFBD><C582>B</p>
</div>
<div class="para use">
<h4><EFBFBD>g<EFBFBD>p<EFBFBD><EFBFBD></h4>
<pre>
<span class="c">/* <20><><EFBFBD>[<5B>U<EFBFBD><55><EFBFBD>`<60>̃{<7B><><EFBFBD><EFBFBD><EFBFBD>[<5B><><EFBFBD>Ǘ<EFBFBD><C797>e<EFBFBD>[<5B>u<EFBFBD><75> (_MULTI_PARTITION == 1 <20>̂Ƃ<CC82><C682>K<EFBFBD>v) */</span>
PARTITION VolToPart[] = {
{0, 1}, <span class="c">/* <20>_<EFBFBD><5F><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u 0 ==> <20><><EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u 0, <20><>1<EFBFBD><31><EFBFBD><EFBFBD> */</span>
{0, 2}, <span class="c">/* <20>_<EFBFBD><5F><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u 1 ==> <20><><EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u 0, <20><>2<EFBFBD><32><EFBFBD><EFBFBD> */</span>
{1, 0} <span class="c">/* <20>_<EFBFBD><5F><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u 2 ==> <20><><EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u 1, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>o */</span>
};
</pre>
<pre>
<span class="c">/* <20>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u(0)<29>̏<EFBFBD><CC8F><EFBFBD><EFBFBD><EFBFBD> */</span>
FATFS fs;
DWORD plist[] = {50, 50, 0, 0}; <span class="c">/* 2<><32><EFBFBD><EFBFBD> */</span>
BYTE work[_MAX_SS];
f_fdisk(0, plist, work); <span class="c">/* <20><><EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u 0 <20>̕<EFBFBD><CC95><EFBFBD> */</span>
f_mount(&amp;fs "0:", 0);
f_mkfs("0:", 0, 0); <span class="c">/* <20>_<EFBFBD><5F><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u 0 <20>̃t<CC83>H<EFBFBD>[<5B>}<7D>b<EFBFBD>g. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͖<EFBFBD><CD96><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. */</span>
f_mount(0, "0:", 0);
f_mount(&amp;fs, "1:", 0);
f_mkfs("1:", 0, 0); <span class="c">/* <20>_<EFBFBD><5F><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u 0 <20>̃t<CC83>H<EFBFBD>[<5B>}<7D>b<EFBFBD>g. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͖<EFBFBD><CD96><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. */</span>
f_mount(0, "1:", 0);
</pre>
</div>
<div class="para ref">
<h4>See Also</h4>
<p><tt><a href="filename.html#vol">Volume management</a>, <a href="mkfs.html">f_mkfs</a></tt></p>
</div>
<p class="foot"><a href="../00index_j.html">Return</a></p>
</body>
</html>