#include <IsaRulbusInterface.h>
Inherits TheRulbusInterface.
Public Member Functions | |
Construction | |
IsaRulbusInterface (long aBase=DEF_ISA_BASE) | |
(default) constructor; checks for valid ISA Rulbus Interface base address. | |
Accessors | |
long | base () const |
return the converters Rulbus base address. | |
bool | invariant () const |
check class invariant. | |
Printer | |
bool | printOn (std::ostream &stream) const |
report configuration. | |
Static Public Attributes | |
const long | DEF_ISA_BASE = 0x0200 |
default ISA Rulbus Interface base address. | |
Protected Member Functions | |
Construction | |
IsaRulbusInterface (IsaRulbusInterfaceRef) | |
prevent copying. | |
IsaRulbusInterfaceRef | operator= (IsaRulbusInterfaceRef) |
prevent copying. | |
Predicates | |
bool | validBase (long base) const |
check for valid base address. | |
Provider interface | |
int | getReg (int offset) const |
read a byte from the Rulbus. | |
int | putReg (int offset, int byte) const |
write a byte to the Rulbus. | |
Private Attributes | |
long | theBase |
interface port-i/o base address | |
Static Private Attributes | |
const long | baseMin = 0x0200 |
lowest acceptable base address | |
const long | baseMax = 0xFF00 |
highest acceptable base address | |
const long | baseStp = 0x0100 |
base address delta | |
CharCptr | msgtitle = "Initialize ISA Rulbus Interface" |
title for error message boxes concerning initialization errors. |
|
The (default) constructor does the following:
The constructor throws a RulbusInterfaceError if the base address is invalid, or if the address range could not be opened. |
|
Reading a byte from the ISA Rulbus Interface is simple:
Implements TheRulbusInterface. |
|
Writing a byte to the ISA Rulbus Interface is simple:
Implements TheRulbusInterface. |