Generic hardware access library
|
Specifies address and access mode for PCI items. More...
#include <PCIHardwareAddress.hh>
Public Member Functions | |
PCIHardwareAddress (uint32_t address, enum AddressSpace addressSpace, uint32_t barId=0) throw (IllegalValueException) | |
virtual bool | isIOSpace () const throw () |
Test on the address space. | |
virtual uint32_t | getAddressModifier () const throw ( IllegalOperationException ) |
Return the address modifier for VME modules. | |
virtual void | print (std::ostream &os=std::cout) const |
The implementation depends on the technology. | |
virtual GeneralHardwareAddress * | clone () const |
This method is needed to make deep copies of AddressTables. | |
Private Member Functions | |
std::string | getAddressSpaceString () const |
A helper for the print function;. |
Specifies address and access mode for PCI items.
A PCI access is specified by the baseaddress identidfier ( a number between 0 and 5 which selects one out of BAR0...BAR5), the offset to this baseaddress and the access context (memory access or configuration space access. IO accesses are not yet supported by this library but on demand they can be easily implemented.)
Definition at line 32 of file PCIHardwareAddress.hh.
HAL::PCIHardwareAddress::PCIHardwareAddress | ( | uint32_t | address, |
enum AddressSpace | addressSpace, | ||
uint32_t | barId = 0 |
||
) | throw (IllegalValueException) |
Definition at line 5 of file PCIHardwareAddress.cc.
HAL::GeneralHardwareAddress * HAL::PCIHardwareAddress::clone | ( | ) | const [virtual] |
This method is needed to make deep copies of AddressTables.
Implements HAL::GeneralHardwareAddress.
Definition at line 57 of file PCIHardwareAddress.cc.
uint32_t HAL::PCIHardwareAddress::getAddressModifier | ( | ) | const throw ( IllegalOperationException ) [virtual] |
Return the address modifier for VME modules.
This function throws an Exception for PCI modules since in PCI there are no address modifiers.
Implements HAL::GeneralHardwareAddress.
Definition at line 23 of file PCIHardwareAddress.cc.
std::string HAL::PCIHardwareAddress::getAddressSpaceString | ( | ) | const [private] |
A helper for the print function;.
Definition at line 34 of file PCIHardwareAddress.cc.
bool HAL::PCIHardwareAddress::isIOSpace | ( | ) | const throw () [virtual] |
Test on the address space.
For VME Hardware Addresses this function throws an exception since there is no IO-space in VME.
Implements HAL::GeneralHardwareAddress.
Definition at line 30 of file PCIHardwareAddress.cc.
void HAL::PCIHardwareAddress::print | ( | std::ostream & | os = std::cout | ) | const [virtual] |
The implementation depends on the technology.
Implements HAL::GeneralHardwareAddress.
Definition at line 46 of file PCIHardwareAddress.cc.