1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
\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="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
\r
8 <title>FatFs - disk_read</title>
\r
15 <p>The disk_read function reads sector(s) from the disk drive.</p>
\r
18 BYTE <em>Drive</em>, /* Physical drive number */
\r
19 BYTE* <em>Buffer</em>, /* Pointer to the read data buffer */
\r
20 DWORD <em>SectorNumber</em>, /* Start sector number */
\r
21 BYTE <em>SectorCount</em> /* Number of sectros to read */
\r
30 <dd>Specifies the physical drive number.</dd>
\r
32 <dd>Pointer to the byte array to store the read data. The buffer size of number of bytes to be read is required. The start address specified by upper layer may be aligned or non-aligned.</dd>
\r
33 <dt>SectorNumber</dt>
\r
34 <dd>Specifies the start sector number in logical block address (LBA).</dd>
\r
35 <dt>SectorCount</dt>
\r
36 <dd>Specifies number of sectors to read. The value can be 1 to 255.</dd>
\r
42 <h4>Return Value</h4>
\r
45 <dd>The function succeeded.</dd>
\r
47 <dd>Any hard error occured during the read operation and could not recover it.</dd>
\r
49 <dd>Invalid parameter.</dd>
\r
51 <dd>The disk drive has not been initialized.</dd>
\r
56 <p class="foot"><a href="../00index_e.html">Return</a></p>
\r