|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dioscuri.module.fdc.Drive
public class Drive
Field Summary | |
---|---|
protected int |
cylinder
|
protected int |
cylinders
|
protected byte |
dir
|
protected int |
eot
|
protected int |
floppyType
|
protected int |
hds
|
protected int |
heads
|
protected boolean |
multiTrack
|
protected int |
sector
|
protected int |
sectors
|
protected int |
sectorsPerTrack
|
protected int |
tracks
|
protected boolean |
writeProtected
|
Constructor Summary | |
---|---|
Drive()
Drive |
Method Summary | |
---|---|
protected boolean |
containsFloppy()
Checks the existence of a floppy disk in drive |
protected void |
ejectFloppy()
Ejects a floppy from the drive |
protected int |
getDriveType()
Get type of drive |
protected int |
getFloppySize()
Get size in bytes of floppy Returns -1 if drive is empty. |
protected int |
getFloppyType()
Get type of floppy inserted |
protected void |
incrementSector()
Increment current sector Note: also takes care of multitrack disks and cylinder position |
protected void |
insertFloppy(byte floppyType,
java.io.File imageFile,
boolean writeProtected)
Inserts a floppy into the drive |
protected boolean |
isMotorRunning()
Returns the state of the drive motor |
protected void |
readData(int offset,
int totalBytes,
byte[] floppyBuffer)
Read data from floppy into buffer |
protected boolean |
reset()
Reset drive All geometry parameters for sector selection are reset. |
protected void |
resetChangeline()
Reset change line Updates DIR on bit 7 |
protected void |
setDriveType(byte type)
Set type of drive |
protected void |
setMotor(boolean state)
Set motor status |
java.lang.String |
toString()
Get String representation of this class |
protected void |
writeData(int offset,
int totalBytes,
byte[] floppyBuffer)
Write data to floppy from buffer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int eot
protected int hds
protected int cylinder
protected int sector
protected int floppyType
protected int tracks
protected int heads
protected int cylinders
protected int sectorsPerTrack
protected int sectors
protected boolean writeProtected
protected boolean multiTrack
protected byte dir
Constructor Detail |
---|
public Drive()
Method Detail |
---|
protected boolean reset()
protected boolean containsFloppy()
protected int getDriveType()
protected void setDriveType(byte type)
type
- protected void setMotor(boolean state)
state
- protected boolean isMotorRunning()
protected int getFloppyType()
protected int getFloppySize()
protected void insertFloppy(byte floppyType, java.io.File imageFile, boolean writeProtected) throws StorageDeviceException
floppyType
- imageFile
- writeProtected
-
StorageDeviceException
protected void ejectFloppy() throws StorageDeviceException
StorageDeviceException
protected void readData(int offset, int totalBytes, byte[] floppyBuffer) throws StorageDeviceException
offset
- totalBytes
- floppyBuffer
-
StorageDeviceException
protected void writeData(int offset, int totalBytes, byte[] floppyBuffer) throws StorageDeviceException
offset
- totalBytes
- floppyBuffer
-
StorageDeviceException
protected void incrementSector()
protected void resetChangeline()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |