2014-08-13 05:48:16 +00:00
|
|
|
|
<!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/dwrite.html">
|
|
|
|
|
<link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
|
|
|
|
|
<title>FatFs - disk_write</title>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<div class="para func">
|
|
|
|
|
<h2>disk_write</h2>
|
|
|
|
|
<p><EFBFBD>X<EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>[<5B>W<EFBFBD>E<EFBFBD>f<EFBFBD>o<EFBFBD>C<EFBFBD>X<EFBFBD>Ƀf<C983>[<5B>^<5E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>݂܂<DD82><DC82>B</p>
|
|
|
|
|
<pre>
|
|
|
|
|
DRESULT disk_write (
|
|
|
|
|
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 BYTE* <span class="arg">buff</span>, <span class="c">/* [IN] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ރf<DE83>[<5B>^<5E>ւ̃|<7C>C<EFBFBD><43><EFBFBD>^ */</span>
|
|
|
|
|
DWORD <span class="arg">sector</span>, <span class="c">/* [IN] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>݊J<DD8A>n<EFBFBD>Z<EFBFBD>N<EFBFBD>^<5E>ԍ<EFBFBD> */</span>
|
|
|
|
|
UINT <span class="arg">count</span> <span class="c">/* [IN] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ރZ<DE83>N<EFBFBD>^<5E><> */</span>
|
|
|
|
|
);
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="para arg">
|
|
|
|
|
<h4><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
|
|
|
|
|
<dl class="par">
|
|
|
|
|
<dt>pdrv</dt>
|
|
|
|
|
<dd><EFBFBD>Ώۂ̃f<EFBFBD>o<EFBFBD>C<EFBFBD>X<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><EFBFBD><EFBFBD>C<EFBFBD>u<EFBFBD>ԍ<EFBFBD>(0-9)<29><><EFBFBD>w<EFBFBD>肳<EFBFBD><E882B3><EFBFBD>܂<EFBFBD><DC82>B</dd>
|
|
|
|
|
<dt>buff</dt>
|
|
|
|
|
<dd><EFBFBD>X<EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>[<5B>W<EFBFBD>E<EFBFBD>f<EFBFBD>o<EFBFBD>C<EFBFBD>X<EFBFBD>ɏ<EFBFBD><C98F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ރZ<DE83>N<EFBFBD>^<5E>E<EFBFBD>f<EFBFBD>[<5B>^<5E><><EFBFBD>i<EFBFBD>[<5B><><EFBFBD>ꂽ<em><EFBFBD>o<EFBFBD>C<EFBFBD>g<EFBFBD>z<EFBFBD><EFBFBD></em><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>肳<EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B<EFBFBD>o<EFBFBD>C<EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>́A<EFBFBD>Z<EFBFBD>N<EFBFBD>^<5E>E<EFBFBD>T<EFBFBD>C<EFBFBD>Y*<tt class="arg">count</tt><EFBFBD>ƂȂ<EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B</dd>
|
|
|
|
|
<dt>sector</dt>
|
|
|
|
|
<dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>݂<EFBFBD><EFBFBD>J<EFBFBD>n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Z<EFBFBD>N<EFBFBD>^<5E>ԍ<EFBFBD><D48D>BLBA<42>Ŏw<C58E>肳<EFBFBD><E882B3><EFBFBD>܂<EFBFBD><DC82>B</dd>
|
|
|
|
|
<dt>count</dt>
|
|
|
|
|
<dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ރZ<EFBFBD>N<EFBFBD>^<5E><><EFBFBD>BFatFs<46><73><EFBFBD><EFBFBD><EFBFBD>̌Ăяo<D18F><6F><EFBFBD>ł<EFBFBD>1<EFBFBD>`128<32>͈̔͂Ɍ<CD82><C98C><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B</dd>
|
|
|
|
|
</dl>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="para ret">
|
|
|
|
|
<h4><EFBFBD>߂<EFBFBD><EFBFBD>l</h4>
|
|
|
|
|
<dl class="ret">
|
|
|
|
|
<dt>RES_OK (0)</dt>
|
|
|
|
|
<dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD><EFBFBD><EFBFBD>B</dd>
|
|
|
|
|
<dt>RES_ERROR</dt>
|
|
|
|
|
<dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݒ<EFBFBD><EFBFBD>ɃG<EFBFBD><EFBFBD><EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD>̉ɂ<F1959C82><C982><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD>B</dd>
|
|
|
|
|
<dt>RES_WRPRT</dt>
|
|
|
|
|
<dd><EFBFBD><EFBFBD><EFBFBD>f<EFBFBD>B<EFBFBD>A<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֎~<7E><><EFBFBD>ԁB</dd>
|
|
|
|
|
<dt>RES_PARERR</dt>
|
|
|
|
|
<dd><EFBFBD>p<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[<5B>^<5E><><EFBFBD>s<EFBFBD><73><EFBFBD>B</dd>
|
|
|
|
|
<dt>RES_NOTRDY</dt>
|
|
|
|
|
<dd><EFBFBD>f<EFBFBD>o<EFBFBD>C<EFBFBD>X<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\<5C><><EFBFBD>Ԃł͂Ȃ<CD82><C882>i<EFBFBD><69><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>Ȃ<EFBFBD><C882>j<EFBFBD>B</dd>
|
|
|
|
|
</dl>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="para desc">
|
|
|
|
|
<h4><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
|
|
|
|
|
<p><tt class="arg">buff</tt><EFBFBD>Ɏw<EFBFBD>肳<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>h<EFBFBD><EFBFBD><EFBFBD>X<EFBFBD><EFBFBD><em><EFBFBD><EFBFBD><EFBFBD>Ƀ<EFBFBD><EFBFBD>[<5B>h<EFBFBD>E<EFBFBD>A<EFBFBD><41><EFBFBD>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>Ƃ͌<C682><CD8C><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD></em><EFBFBD>B<EFBFBD>ڍׂ́A<a href="dread.html"><tt>disk_read()</tt></a><EFBFBD>̉<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Q<EFBFBD>Ƃ<EFBFBD><EFBFBD>Ă<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B</p>
|
|
|
|
|
<p><EFBFBD><EFBFBD><EFBFBD>ʓI<EFBFBD>ɁA<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Z<EFBFBD>N<EFBFBD>^<5E>̓]<5D><><EFBFBD>v<EFBFBD><76><EFBFBD>́A<CD81>f<EFBFBD>o<EFBFBD>C<EFBFBD>X<EFBFBD>ɑ<C991><CE82>ĉ\<5C>Ȍ<EFBFBD><C88C><EFBFBD><EFBFBD>}<7D><><EFBFBD>`<60>E<EFBFBD>Z<EFBFBD>N<EFBFBD>^<5E>]<5D><><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>Ȃ<CE82><C882>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>̃V<CC83><56><EFBFBD>O<EFBFBD><4F><EFBFBD>E<EFBFBD>Z<EFBFBD>N<EFBFBD>^<5E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>݂ɕ<DD82><C995><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ꂽ<EFBFBD>ꍇ<EFBFBD>A<EFBFBD>X<EFBFBD><58><EFBFBD>[<5B>v<EFBFBD>b<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ቺ<EFBFBD><E189BA><EFBFBD>邱<EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B</p>
|
|
|
|
|
<p>FatFs<EFBFBD>̓f<EFBFBD>B<EFBFBD>X<EFBFBD>N<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>x<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>@<40>\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><C282>Ƃ<EFBFBD><C682>z<EFBFBD>肵<EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>̊<CC8A><D690><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߂<EFBFBD><DF82>Ƃ<EFBFBD><C682>A<EFBFBD>f<EFBFBD>o<EFBFBD>C<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݒ<EFBFBD><DD92>Ƃ<EFBFBD><C682>L<EFBFBD><4C><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>ɏ<EFBFBD><C98F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂ꂽ<DC82><EA82BD><EFBFBD><EFBFBD><EFBFBD>ȂǁA<C781>K<EFBFBD><4B><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>f<EFBFBD>[<5B>^<5E>̏<EFBFBD><CC8F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>݂<EFBFBD><DD82><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>K<EFBFBD>v<EFBFBD>͂<EFBFBD><CD82><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<tt class="arg">buff</tt><EFBFBD>̃f<EFBFBD>[<5B>^<5E>́A<CD81><41><EFBFBD>̊<CC8A><D690><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߂<EFBFBD><DF82>Ɩ<EFBFBD><C696><EFBFBD><EFBFBD>ƂȂ<C682><C882>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>݊<EFBFBD><DD8A><EFBFBD><EFBFBD>̗v<CC97><76><EFBFBD>́A<tt><a href="dioctl.html">disk_ioctl()</a></tt><EFBFBD><EFBFBD><tt>CTRL_SYNC</tt><EFBFBD>R<EFBFBD>}<7D><><EFBFBD>h<EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>čs<C48D><73><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>̂悤<CC82>Ȓx<C892><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>@<40>\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ꂽ<EFBFBD>ꍇ<EFBFBD>A<EFBFBD>X<EFBFBD><58><EFBFBD>[<5B>v<EFBFBD>b<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ɍ<EFBFBD><C98C>コ<EFBFBD><E382B3><EFBFBD>邱<EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B</p>
|
|
|
|
|
<p><em><EFBFBD>A<EFBFBD>v<EFBFBD><EFBFBD><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͂<EFBFBD><CD82>̊<CC8A><D690><EFBFBD><EFBFBD>Ăяo<D18F><6F><EFBFBD>Ă͂Ȃ<CD82><C882>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>ƁAFAT<41>{<7B><><EFBFBD><EFBFBD><EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD>j<EFBFBD><EFBFBD><F382B382><EFBFBD><EFBFBD>\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B</em></p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="para comp">
|
|
|
|
|
<h4><EFBFBD>Ή<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
|
|
|
|
|
<p><EFBFBD><EFBFBD><EFBFBD>[<5B>h<EFBFBD>E<EFBFBD>I<EFBFBD><49><EFBFBD><EFBFBD><EFBFBD>[<5B>\<5C><>(<tt>_FS_READONLY == 1</tt>)<29>ł͂<C582><CD82>̊<CC8A><D690>͕K<CD95>v<EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="foot"><a href="../00index_j.html"><EFBFBD>߂<EFBFBD></a></p>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|