Generic hardware access library
HAL::PCIHardwareAddress Class Reference

Specifies address and access mode for PCI items. More...

#include <PCIHardwareAddress.hh>

Inheritance diagram for HAL::PCIHardwareAddress:
HAL::GeneralHardwareAddress

List of all members.

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 GeneralHardwareAddressclone () const
 This method is needed to make deep copies of AddressTables.

Private Member Functions

std::string getAddressSpaceString () const
 A helper for the print function;.

Detailed Description

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.)

See also:
GeneralHardwareAddress
Author:
Christoph Schwick
Revision:
1.1
Date:
2007/03/05 18:02:10

Definition at line 32 of file PCIHardwareAddress.hh.


Constructor & Destructor Documentation

HAL::PCIHardwareAddress::PCIHardwareAddress ( uint32_t  address,
enum AddressSpace  addressSpace,
uint32_t  barId = 0 
) throw (IllegalValueException)

Definition at line 5 of file PCIHardwareAddress.cc.


Member Function Documentation

This method is needed to make deep copies of AddressTables.

Implements HAL::GeneralHardwareAddress.

Definition at line 57 of file PCIHardwareAddress.cc.

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.


The documentation for this class was generated from the following files: