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

IEC Class Reference

#include <IEC.h>

Collaboration diagram for IEC:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IEC (C64Display *display)
 ~IEC ()
void Reset (void)
void NewPrefs (Prefs *prefs)
void UpdateLEDs (void)
uint8 Out (uint8 byte, bool eoi)
uint8 OutATN (uint8 byte)
uint8 OutSec (uint8 byte)
uint8 In (uint8 *byte)
void SetATN (void)
void RelATN (void)
void Turnaround (void)
void Release (void)

Private Member Functions

uint8 listen (int device)
uint8 talk (int device)
uint8 unlisten (void)
uint8 untalk (void)
uint8 sec_listen (void)
uint8 sec_talk (void)
uint8 open_out (uint8 byte, bool eoi)
uint8 data_out (uint8 byte, bool eoi)
uint8 data_in (uint8 *byte)

Private Attributes

C64Displaythe_display
char name_buf [NAMEBUF_LENGTH]
char * name_ptr
int name_len
Drivedrive [4]
Drivelistener
Drivetalker
bool listener_active
bool talker_active
bool listening
uint8 received_cmd
uint8 sec_addr
PrefsThePrefs

Constructor & Destructor Documentation

IEC::IEC C64Display display  ) 
 

Definition at line 44 of file IEC.cpp.

References __CHECK_NULL, CTOR, drive, Prefs::DrivePath, Prefs::DriveType, DRVTYPE_D64, DRVTYPE_DIR, Prefs::Emul1541Proc, listener_active, listening, talker_active, ThePrefs, and ThePrefs.

IEC::~IEC  ) 
 

Definition at line 75 of file IEC.cpp.

References drive, and DTOR.


Member Function Documentation

uint8 IEC::data_in uint8 byte  )  [private]
 

Definition at line 388 of file IEC.cpp.

References Drive::Read(), sec_addr, talker, and uint8.

Referenced by In().

uint8 IEC::data_out uint8  byte,
bool  eoi
[private]
 

Definition at line 378 of file IEC.cpp.

References listener, sec_addr, uint8, and Drive::Write().

Referenced by Out().

uint8 IEC::In uint8 byte  ) 
 

Definition at line 210 of file IEC.cpp.

References CMD_DATA, data_in(), received_cmd, ST_TIMEOUT, talker_active, and uint8.

Referenced by MOS6510::EmulateLine().

uint8 IEC::listen int  device  )  [private]
 

Definition at line 264 of file IEC.cpp.

References drive, listener, listener_active, Drive::Ready, ST_NOTPRESENT, ST_OK, and uint8.

Referenced by OutATN().

void IEC::NewPrefs Prefs prefs  ) 
 

Definition at line 106 of file IEC.cpp.

References drive, Prefs::DrivePath, Prefs::DriveType, DRVTYPE_D64, DRVTYPE_DIR, ELOG1, ELOG2, Prefs::Emul1541Proc, strcmp, ThePrefs, and UpdateLEDs().

Referenced by C64::NewPrefs().

uint8 IEC::open_out uint8  byte,
bool  eoi
[private]
 

Definition at line 356 of file IEC.cpp.

References DRVLED_ON, Drive::LED, listener, name_buf, name_len, name_ptr, NAMEBUF_LENGTH, Drive::Open(), sec_addr, ST_OK, uint8, and UpdateLEDs().

Referenced by Out().

uint8 IEC::Out uint8  byte,
bool  eoi
 

Definition at line 145 of file IEC.cpp.

References CMD_DATA, CMD_OPEN, data_out(), listener_active, open_out(), received_cmd, ST_TIMEOUT, and uint8.

Referenced by MOS6510::EmulateLine().

uint8 IEC::OutATN uint8  byte  ) 
 

Definition at line 162 of file IEC.cpp.

References ATN_LISTEN, ATN_TALK, ATN_UNLISTEN, ATN_UNTALK, listen(), listening, received_cmd, sec_addr, ST_TIMEOUT, talk(), uint8, unlisten(), and untalk().

Referenced by MOS6510::EmulateLine().

uint8 IEC::OutSec uint8  byte  ) 
 

Definition at line 187 of file IEC.cpp.

References listener_active, listening, received_cmd, sec_addr, sec_listen(), sec_talk(), ST_TIMEOUT, talker_active, and uint8.

Referenced by MOS6510::EmulateLine().

void IEC::RelATN void   ) 
 

Definition at line 234 of file IEC.cpp.

Referenced by MOS6510::EmulateLine().

void IEC::Release void   ) 
 

Definition at line 254 of file IEC.cpp.

Referenced by MOS6510::EmulateLine().

void IEC::Reset void   ) 
 

Definition at line 88 of file IEC.cpp.

References drive, ELOG1, Drive::Ready, and UpdateLEDs().

Referenced by C64::Reset().

uint8 IEC::sec_listen void   )  [private]
 

Definition at line 322 of file IEC.cpp.

References Drive::Close(), CMD_CLOSE, CMD_OPEN, DRVLED_ERROR, DRVLED_OFF, Drive::LED, listener, name_buf, name_len, name_ptr, received_cmd, sec_addr, ST_OK, uint8, and UpdateLEDs().

Referenced by OutSec().

uint8 IEC::sec_talk void   )  [private]
 

Definition at line 346 of file IEC.cpp.

References ST_OK, and uint8.

Referenced by OutSec().

void IEC::SetATN void   ) 
 

Definition at line 224 of file IEC.cpp.

Referenced by MOS6510::EmulateLine().

uint8 IEC::talk int  device  )  [private]
 

Definition at line 282 of file IEC.cpp.

References drive, Drive::Ready, ST_NOTPRESENT, ST_OK, talker, talker_active, and uint8.

Referenced by OutATN().

void IEC::Turnaround void   ) 
 

Definition at line 244 of file IEC.cpp.

Referenced by MOS6510::EmulateLine().

uint8 IEC::unlisten void   )  [private]
 

Definition at line 300 of file IEC.cpp.

References listener_active, ST_OK, and uint8.

Referenced by OutATN().

uint8 IEC::untalk void   )  [private]
 

Definition at line 311 of file IEC.cpp.

References ST_OK, talker_active, and uint8.

Referenced by OutATN().

void IEC::UpdateLEDs void   ) 
 

Definition at line 134 of file IEC.cpp.

References drive, the_display, and C64Display::UpdateLEDs().

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


Member Data Documentation

Drive* IEC::drive[4] [private]
 

Definition at line 107 of file IEC.h.

Referenced by IEC(), listen(), NewPrefs(), Reset(), talk(), UpdateLEDs(), and ~IEC().

Drive* IEC::listener [private]
 

Definition at line 109 of file IEC.h.

Referenced by data_out(), listen(), open_out(), and sec_listen().

bool IEC::listener_active [private]
 

Definition at line 112 of file IEC.h.

Referenced by IEC(), listen(), Out(), OutSec(), and unlisten().

bool IEC::listening [private]
 

Definition at line 114 of file IEC.h.

Referenced by IEC(), OutATN(), and OutSec().

char IEC::name_buf[NAMEBUF_LENGTH] [private]
 

Definition at line 103 of file IEC.h.

Referenced by open_out(), and sec_listen().

int IEC::name_len [private]
 

Definition at line 105 of file IEC.h.

Referenced by open_out(), and sec_listen().

char* IEC::name_ptr [private]
 

Definition at line 104 of file IEC.h.

Referenced by open_out(), and sec_listen().

uint8 IEC::received_cmd [private]
 

Definition at line 116 of file IEC.h.

Referenced by In(), Out(), OutATN(), OutSec(), and sec_listen().

uint8 IEC::sec_addr [private]
 

Definition at line 117 of file IEC.h.

Referenced by data_in(), data_out(), open_out(), OutATN(), OutSec(), and sec_listen().

Drive* IEC::talker [private]
 

Definition at line 110 of file IEC.h.

Referenced by data_in(), and talk().

bool IEC::talker_active [private]
 

Definition at line 113 of file IEC.h.

Referenced by IEC(), In(), OutSec(), talk(), and untalk().

C64Display* IEC::the_display [private]
 

Definition at line 101 of file IEC.h.

Referenced by UpdateLEDs().

Prefs& IEC::ThePrefs [private]
 

Definition at line 118 of file IEC.h.

Referenced by IEC(), and NewPrefs().


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