
------------------------------------------------------------------------------
14. Read status information of FCA device. <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
fca_status
[Syntax]
#include <bios.h>
int fca_status( char *buffer ) ;
[Argument]
buffer Memory area to store status information.
(Two bytes are required for this area.)
[Return]
Returns zero if successful. Returns -1 if any error occurrs.
[Description]
This function reads status information of the FCA devices.
Followings are the contents of the status data.
First byte: status information
7 6 5 4 3 2 1 0
+----+----+----+----+----+----+----+----+
│ SD │ 0 │ PT │ ERROR CODE │
+----+----+----+----+----+----+----+----+
│ │
│ +----------> 0: write protect OFF
│ 1: write protect ON
+--------------------> 0: completed sending whole data of
a file
1: being sending data of a file
* For 'ERROR CODE', refer to the ERROR CODE TABLE.
The error code corresponding to the latest error
is read as "ERROR CODE".
Second byte: type of Floppy Disk
7 6 5 4 3 2 1 0
+----+----+----+----+----+----+----+----+
│ - │ - │ - │ C5 │ - │ C3 │ C2 │ - │
+----+----+----+----+----+----+----+----+
│ │ │
v v v
0 0 1 : single sided
double density(1D)
0 1 0 : double sided
double density(2D)
1 0 0 : double sided
high density (2HD)