dstat.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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/dstat.html">
  8. <link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
  9. <title>FatFs - disk_status</title>
  10. </head>
  11. <body>
  12. <div class="para func">
  13. <h2>disk_status</h2>
  14. <p>The disk_status function returns the current disk status.</p>
  15. <pre>
  16. DSTATUS disk_status (
  17. BYTE <em>Drive</em> <span class="c">/* Physical drive number */</span>
  18. );
  19. </pre>
  20. </div>
  21. <div class="para arg">
  22. <h4>Parameter</h4>
  23. <dl class="par">
  24. <dt>Drive</dt>
  25. <dd>Specifies the physical drive number to be confirmed.</dd>
  26. </dl>
  27. </div>
  28. <div class="para ret">
  29. <h4>Return Values</h4>
  30. <p>The disk status is returned in combination of following flags. FatFs refers only <tt>STA_NOINIT</tt> and <tt>STA_PROTECTED</tt>.</p>
  31. <dl class="ret">
  32. <dt>STA_NOINIT</dt>
  33. <dd>Indicates that the disk drive has not been initialized. This flag is set on: system reset, disk removal and disk_initialize function failed, and cleared on: disk_initialize function succeeded.</dd>
  34. <dt>STA_NODISK</dt>
  35. <dd>Indicates that no medium in the drive. This is always cleared on fixed disk drive.</dd>
  36. <dt>STA_PROTECTED</dt>
  37. <dd>Indicates that the medium is write protected. This is always cleared on the drive that does not support write protect notch. Not valid when <tt>STA_NODISK</tt> is set.</dd>
  38. </dl>
  39. </div>
  40. <p class="foot"><a href="../00index_e.html">Return</a></p>
  41. </body>
  42. </html>