dinit.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html lang="en">
  3. <head>
  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="alternate" hreflang="ja" title="Japanese" href="../ja/dinit.html">
  8. <link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
  9. <title>FatFs - disk_initialize</title>
  10. </head>
  11. <body>
  12. <div class="para func">
  13. <h2>disk_initialize</h2>
  14. <p>The disk_initialize function initializes the storage device.</p>
  15. <pre>
  16. DSTATUS disk_initialize (
  17. BYTE <span class="arg">pdrv</span> <span class="c">/* [IN] Physical drive number */</span>
  18. );
  19. </pre>
  20. </div>
  21. <div class="para arg">
  22. <h4>Parameter</h4>
  23. <dl class="par">
  24. <dt>pdrv</dt>
  25. <dd>Physical drive number to identify the target device. Always zero at single drive system.</dd>
  26. </dl>
  27. </div>
  28. <div class="para ret">
  29. <h4>Return Values</h4>
  30. <p>This function returns the current drive status flags as the result. For details of the drive status, refer to the <a href="dstat.html">disk_status</a> function.</p>
  31. </div>
  32. <div class="para desc">
  33. <h4>Description</h4>
  34. <p>This function initializes the storage device and put it ready to generic read/write. When the function succeeded, <tt>STA_NOINIT</tt> flag in the return value is cleared.</p>
  35. <p><em>Remarks: This function needs to be under control of FatFs module. Application program MUST NOT call this function, or FAT structure on the volume can be broken. To re-initialize the file system, use <tt>f_mount</tt> function instead.</em></p>
  36. </div>
  37. <p class="foot"><a href="../00index_e.html">Return</a></p>
  38. </body>
  39. </html>