fatfs v0.04 Feb 04, 2007:

- Supported multiple drive system.
- Changed some APIs for multiple drive system.
- Added f_mkfs().
This commit is contained in:
savelij13 committed 2025-09-11 09:03:34 +03:00
1 parent f76dc3a97f
commit 3d65978d31
75 files changed
+2636 -1380

No files matched your search

+16 -5
View File
@@ -12,22 +12,33 @@
<div class="para">
<h2>disk_status</h2>
<p>The disk_status gets the disk status.</p>
<p>The disk_status function gets the disk status.</p>
<pre>
DSTATUS disk_status ();
DSTATUS disk_status (
BYTE <em>Drive</em> /* Physical drive number */
);
</pre>
</div>
<div class="para">
<h4>Parameters</h4>
<dl class="par">
<dt>Drive</dt>
<dd>Specifies the physical drive number to be tested.</dd>
</dl>
</div>
<div class="para">
<h4>Return Values</h4>
<p>The disk status is returned in combinatin of following flags.</p>
<dl class="ret">
<dt>STA_NOINIT</dt>
<dd>Indicates that the disk drive has not been initialiezed. This flag is set when power-on, occurrence of disk removal or <tt>disk_initialize()</tt> failed and cleared when <tt>disk_initialize()</tt> succeeded.</dd>
<dd>Indicates that the disk drive has not been initialiezed. This flag is set on: power-on, disk removal and disk_initialize function failed, and cleared on: disk_initialize function succeeded.</dd>
<dt>STA_NODISK</dt>
<dd>Indicates that no disk in the drive. It is always cleared on non-removable drive.</dd>
<dd>Indicates that no medium in the drive. It is always cleared on fixed disk drive.</dd>
<dt>STA_PROTECTED</dt>
<dd>Indicates that the disk is write protected. It is always cleared on the disk that has not write protect notch.</dd>
<dd>Indicates that the medium is write protected. It is always cleared on the drive that does not support write protect notch.</dd>
</dl>
</div>