blob: b4096de60489509b385bed8926fade9cb0eb09c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
<!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="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
<title>FatFs - f_read</title>
</head>
<body>
<div class="para">
<h2>f_read</h2>
<p>t@Cf[^ǂݏo܂B</p>
<pre>
FRESULT f_read (
FIL* <em>FileObject</em>, /* t@CEIuWFNg\ */
void* <em>Buffer</em>, /* ǂݏof[^i[obt@ */
UINT <em>ByteToRead</em>, /* ǂݏooCg */
UINT* <em>ByteRead</em> /* ǂݏoꂽoCg */
);
</pre>
</div>
<div class="para">
<h4></h4>
<dl class="par">
<dt>FileObject</dt>
<dd>t@CEIuWFNg\̂ւ̃|C^w肵܂B</dd>
<dt>Buffer</dt>
<dd>ǂݏof[^i[obt@w|C^w肵܂B</dd>
<dt>ByteToRead</dt>
<dd>ǂݏooCg(0`UINT̍ől)w肵܂B</dd>
<dt>ByteRead</dt>
<dd>ۂɓǂݏoꂽoCgi[ϐw|C^w肵܂B߂l͊̐ۂɂ炸ɗLłB</dd>
</dl>
</div>
<div class="para">
<h4>߂l</h4>
<dl class="ret">
<dt>FR_OK (0)</dt>
<dd>IB</dd>
<dt>FR_DENIED</dt>
<dd>ǂݍ݃[hŊJt@CǂݍƂB</dd>
<dt>FR_DISK_ERR</dt>
<dd>fBXNEG[ɂ鎸sB</dd>
<dt>FR_INT_ERR</dt>
<dd>sFAT\܂͓G[ɂ鎸sB</dd>
<dt>FR_NOT_READY</dt>
<dd>fBAZbgĂȂȂǁAhCus\ԁB</dd>
<dt>FR_INVALID_OBJECT</dt>
<dd>ȃt@CEIuWFNgB</dd>
</dl>
</div>
<div class="para">
<h4></h4>
<p>ǂݍ݊JnʒúÃ݂t@CR/W|C^ɂȂ܂Bt@CR/W|C^͓ǂݍ܂ꂽoCgi݂܂BǂݍݒɃt@C̏I[ɒBƁA<tt>*ByteRead</tt><tt>ByteToRead</tt>Ȃ܂B</p>
</div>
<div class="para">
<h4>Ή</h4>
<p>SĂ̍\Ŏgp\łB</p>
</div>
<div class="para">
<h4>Q</h4>
<p><tt><a href="open.html">f_open</a>, <a href="gets.html">fgets</a>, <a href="write.html">f_write</a>, <a href="close.html">f_close</a>, <a href="sfile.html">FIL</a></tt></p>
</div>
<p class="foot"><a href="../00index_j.html">߂</a></p>
</body>
</html>
|