Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

Drive Class Reference

#include <IEC.h>

Inheritance diagram for Drive:

Inheritance graph
[legend]
Collaboration diagram for Drive:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Drive (IEC *iec)
virtual ~Drive ()
virtual uint8 Open (int channel, char *filename)=0
virtual uint8 Close (int channel)=0
virtual uint8 Read (int channel, uint8 *byte)=0
virtual uint8 Write (int channel, uint8 byte, bool eoi)=0
virtual void Reset (void)=0

Public Attributes

int LED
bool Ready

Protected Member Functions

void set_error (int error)

Protected Attributes

char * error_ptr
int error_len

Private Attributes

IECthe_iec

Constructor & Destructor Documentation

Drive::Drive IEC iec  ) 
 

Definition at line 398 of file IEC.cpp.

References DRVLED_OFF, ERR_STARTUP, LED, Ready, set_error(), and the_iec.

virtual Drive::~Drive  )  [inline, virtual]
 

Definition at line 126 of file IEC.h.


Member Function Documentation

virtual uint8 Drive::Close int  channel  )  [pure virtual]
 

Implemented in D64Drive, FSDrive, and T64Drive.

Referenced by IEC::sec_listen().

virtual uint8 Drive::Open int  channel,
char *  filename
[pure virtual]
 

Implemented in D64Drive, FSDrive, and T64Drive.

Referenced by IEC::open_out().

virtual uint8 Drive::Read int  channel,
uint8 byte
[pure virtual]
 

Implemented in D64Drive, FSDrive, and T64Drive.

Referenced by IEC::data_in().

virtual void Drive::Reset void   )  [pure virtual]
 

Implemented in D64Drive, FSDrive, and T64Drive.

void Drive::set_error int  error  )  [protected]
 

Definition at line 427 of file IEC.cpp.

References DRVLED_ERROR, DRVLED_OFF, ERR_OK, ERR_STARTUP, error_len, error_ptr, Errors_1541, LED, strlen, the_iec, and IEC::UpdateLEDs().

Referenced by D64Drive::block_read_cmd(), D64Drive::buffer_ptr_cmd(), FSDrive::chdir_cmd(), T64Drive::cht64_cmd(), Drive(), T64Drive::execute_command(), FSDrive::execute_command(), D64Drive::execute_command(), T64Drive::Open(), FSDrive::Open(), D64Drive::Open(), D64Drive::open_direct(), FSDrive::open_directory(), T64Drive::open_file(), FSDrive::open_file(), D64Drive::open_file(), T64Drive::Read(), FSDrive::Read(), D64Drive::Read(), D64Drive::read_sector(), T64Drive::Reset(), FSDrive::Reset(), D64Drive::Reset(), T64Drive::Write(), FSDrive::Write(), and D64Drive::Write().

virtual uint8 Drive::Write int  channel,
uint8  byte,
bool  eoi
[pure virtual]
 

Implemented in D64Drive, FSDrive, and T64Drive.

Referenced by IEC::data_out().


Member Data Documentation

int Drive::error_len [protected]
 

Definition at line 141 of file IEC.h.

Referenced by D64Drive::execute_command(), D64Drive::Read(), and set_error().

char* Drive::error_ptr [protected]
 

Definition at line 140 of file IEC.h.

Referenced by D64Drive::execute_command(), T64Drive::Read(), FSDrive::Read(), D64Drive::Read(), and set_error().

int Drive::LED
 

Definition at line 134 of file IEC.h.

Referenced by Drive(), IEC::open_out(), IEC::sec_listen(), and set_error().

bool Drive::Ready
 

Definition at line 135 of file IEC.h.

Referenced by D64Drive::D64Drive(), Drive(), FSDrive::FSDrive(), IEC::listen(), IEC::Reset(), T64Drive::T64Drive(), IEC::talk(), D64Drive::~D64Drive(), FSDrive::~FSDrive(), and T64Drive::~T64Drive().

IEC* Drive::the_iec [private]
 

Definition at line 144 of file IEC.h.

Referenced by Drive(), and set_error().


The documentation for this class was generated from the following files:
Generated on Tue Feb 8 04:12:02 2005 for E32frodo by doxygen 1.3.3