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