Main Page   Modules   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

SctPixelRod::VmePort Class Reference

#include <VmePort.h>


Public Member Functions

 VmePort (unsigned long base, unsigned long size, VmeInterface::AddrMod mod, VmeInterface &interf)
 Constructor.

 ~VmePort ()
 Destructor.

VmeInterfacegetInterface ()
 Get the pointer to VmeInterface.

unsigned long getHandle ()
 Get the handle.

void * getMap ()
 Get the address of the map in VMEM.

unsigned long getBaseAddress ()
 Get the base address.

unsigned long getMapSize ()
 Get the map size.

VmeInterface::AddrMod getAddrMod ()
 Get the address modifier.

void setExceptionTrapping (bool act)
 Enable or disable exception trapping.

bool getExceptionTrapping ()
 Returns current exception trapping.

long getLastErrcode ()
 Return the last error code.

std::string getErrorMessage (const long errcode)
 Print the message corresponding to an error code.

long getBusErrors ()
 Return the number of bus errors.

void busErrorReport ()
 Throw exceptions in case of bus errors.

unsigned char read8 (const unsigned long offset)
 Byte read (automatic mapping).

unsigned short read16 (const unsigned long offset)
unsigned long read32 (const unsigned long offset)
 Long Word read (automatic mapping).

void write8 (const unsigned long offset, const unsigned char value)
 Byte write (automatic mapping).

void write16 (const unsigned long offset, const unsigned short value)
 Word write (automatic mapping).

void write32 (const unsigned long offset, const unsigned long value)
 Long word write (automatic mapping).

void blockRead32 (const unsigned long offset, unsigned long *buf, const long len)
 32 bits block read (automatic mapping)

void blockRead64 (const unsigned long offset, unsigned long *buf, const long len)
 64 bits block read (automatic mapping)

void blockWrite32 (const unsigned long offset, const unsigned long *buf, const long len)
 32 bits block write (automatic mapping)

void blockWrite64 (const unsigned long offset, const unsigned long *buf, const long len)
 64 bits block write (automatic mapping)

void declareInterruptHandler (VmeInterruptHandler &ih)
void cleanInterruptHandlers ()
void removeInterruptHandler (VmeInterruptHandler &ih)
void reEnableInterrupt ()
 Re-enable a VME RORA levels (at the end of a RORA interrupt handling).

void blockInterruptNotification ()
 Suspend interrupt notification.

void resumeInterruptNotification ()
 Resume interrupt notification.


Private Attributes

unsigned long m_handle
unsigned long m_baseAddress
unsigned long m_mapSize
VmeInterface::AddrMod m_addrMod
VmeInterfacem_interface
bool m_exceptionTrapping


Constructor & Destructor Documentation

SctPixelRod::VmePort::VmePort unsigned long    base,
unsigned long    size,
VmeInterface::AddrMod    mod,
VmeInterface   interf
[inline]
 

Constructor.

Definition at line 71 of file VmePort.h.

References m_addrMod, m_baseAddress, m_exceptionTrapping, m_handle, m_interface, m_mapSize, and SctPixelRod::VmeInterface::registerPort().

SctPixelRod::VmePort::~VmePort   [inline]
 

Destructor.

Definition at line 79 of file VmePort.h.

References SctPixelRod::VmeInterface::deletePort(), and m_interface.


Member Function Documentation

void SctPixelRod::VmePort::blockInterruptNotification   [inline]
 

Suspend interrupt notification.

Definition at line 166 of file VmePort.h.

References SctPixelRod::VmeInterface::blockInterruptNotification(), and m_interface.

void SctPixelRod::VmePort::blockRead32 const unsigned long    offset,
unsigned long *    buf,
const long    len
[inline]
 

32 bits block read (automatic mapping)

Definition at line 135 of file VmePort.h.

References SctPixelRod::VmeInterface::blockRead32(), and m_interface.

void SctPixelRod::VmePort::blockRead64 const unsigned long    offset,
unsigned long *    buf,
const long    len
[inline]
 

64 bits block read (automatic mapping)

Definition at line 139 of file VmePort.h.

References SctPixelRod::VmeInterface::blockRead64(), and m_interface.

void SctPixelRod::VmePort::blockWrite32 const unsigned long    offset,
const unsigned long *    buf,
const long    len
[inline]
 

32 bits block write (automatic mapping)

Definition at line 143 of file VmePort.h.

References SctPixelRod::VmeInterface::blockWrite32(), and m_interface.

void SctPixelRod::VmePort::blockWrite64 const unsigned long    offset,
const unsigned long *    buf,
const long    len
[inline]
 

64 bits block write (automatic mapping)

Definition at line 147 of file VmePort.h.

References SctPixelRod::VmeInterface::blockWrite64(), and m_interface.

void SctPixelRod::VmePort::busErrorReport   [inline]
 

Throw exceptions in case of bus errors.

Definition at line 107 of file VmePort.h.

References SctPixelRod::VmeInterface::busErrorReport(), and m_interface.

void SctPixelRod::VmePort::cleanInterruptHandlers   [inline]
 

Definition at line 155 of file VmePort.h.

References SctPixelRod::VmeInterface::cleanInterruptHandlers(), and m_interface.

void SctPixelRod::VmePort::declareInterruptHandler VmeInterruptHandler   ih [inline]
 

Definition at line 152 of file VmePort.h.

References SctPixelRod::VmeInterface::declareInterruptHandler(), and m_interface.

Referenced by SctPixelRod::VmeInterruptHandler::VmeInterruptHandler().

VmeInterface::AddrMod SctPixelRod::VmePort::getAddrMod   [inline]
 

Get the address modifier.

Definition at line 94 of file VmePort.h.

References m_addrMod.

unsigned long SctPixelRod::VmePort::getBaseAddress   [inline]
 

Get the base address.

Definition at line 90 of file VmePort.h.

References m_baseAddress.

long SctPixelRod::VmePort::getBusErrors   [inline]
 

Return the number of bus errors.

Definition at line 105 of file VmePort.h.

References SctPixelRod::VmeInterface::getBusErrors(), and m_interface.

std::string SctPixelRod::VmePort::getErrorMessage const long    errcode [inline]
 

Print the message corresponding to an error code.

Definition at line 102 of file VmePort.h.

References SctPixelRod::VmeInterface::getErrorMessage(), and m_interface.

bool SctPixelRod::VmePort::getExceptionTrapping   [inline]
 

Returns current exception trapping.

Definition at line 98 of file VmePort.h.

References m_exceptionTrapping.

unsigned long SctPixelRod::VmePort::getHandle   [inline]
 

Get the handle.

Definition at line 86 of file VmePort.h.

References m_handle.

VmeInterface& SctPixelRod::VmePort::getInterface   [inline]
 

Get the pointer to VmeInterface.

Definition at line 84 of file VmePort.h.

References m_interface.

Referenced by SctPixelRod::VmeInterruptHandler::activateSoftVector(), SctPixelRod::VmeInterruptHandler::getInterruptData(), and SctPixelRod::VmeInterruptHandler::setInterruptData().

long SctPixelRod::VmePort::getLastErrcode   [inline]
 

Return the last error code.

Definition at line 100 of file VmePort.h.

References SctPixelRod::VmeInterface::getLastErrcode(), and m_interface.

void* SctPixelRod::VmePort::getMap   [inline]
 

Get the address of the map in VMEM.

Definition at line 88 of file VmePort.h.

References SctPixelRod::VmeInterface::getPortMap(), and m_interface.

unsigned long SctPixelRod::VmePort::getMapSize   [inline]
 

Get the map size.

Definition at line 92 of file VmePort.h.

References m_mapSize.

unsigned short SctPixelRod::VmePort::read16 const unsigned long    offset [inline]
 

Definition at line 114 of file VmePort.h.

References m_interface, and SctPixelRod::VmeInterface::read16().

unsigned long SctPixelRod::VmePort::read32 const unsigned long    offset [inline]
 

Long Word read (automatic mapping).

Definition at line 118 of file VmePort.h.

References m_interface, and SctPixelRod::VmeInterface::read32().

unsigned char SctPixelRod::VmePort::read8 const unsigned long    offset [inline]
 

Byte read (automatic mapping).

Definition at line 110 of file VmePort.h.

References m_interface, and SctPixelRod::VmeInterface::read8().

void SctPixelRod::VmePort::reEnableInterrupt   [inline]
 

Re-enable a VME RORA levels (at the end of a RORA interrupt handling).

Definition at line 162 of file VmePort.h.

References m_interface, and SctPixelRod::VmeInterface::reEnableInterrupt().

Referenced by SctPixelRod::VmeInterruptHandler::reEnableInterrupt().

void SctPixelRod::VmePort::removeInterruptHandler VmeInterruptHandler   ih [inline]
 

Definition at line 158 of file VmePort.h.

References m_interface, and SctPixelRod::VmeInterface::removeInterruptHandler().

Referenced by SctPixelRod::VmeInterruptHandler::~VmeInterruptHandler().

void SctPixelRod::VmePort::resumeInterruptNotification   [inline]
 

Resume interrupt notification.

Definition at line 170 of file VmePort.h.

References m_interface, and SctPixelRod::VmeInterface::resumeInterruptNotification().

void SctPixelRod::VmePort::setExceptionTrapping bool    act [inline]
 

Enable or disable exception trapping.

Definition at line 96 of file VmePort.h.

References m_exceptionTrapping.

void SctPixelRod::VmePort::write16 const unsigned long    offset,
const unsigned short    value
[inline]
 

Word write (automatic mapping).

Definition at line 126 of file VmePort.h.

References m_interface, and SctPixelRod::VmeInterface::write16().

void SctPixelRod::VmePort::write32 const unsigned long    offset,
const unsigned long    value
[inline]
 

Long word write (automatic mapping).

Definition at line 130 of file VmePort.h.

References m_interface, and SctPixelRod::VmeInterface::write32().

void SctPixelRod::VmePort::write8 const unsigned long    offset,
const unsigned char    value
[inline]
 

Byte write (automatic mapping).

Definition at line 122 of file VmePort.h.

References m_interface, and SctPixelRod::VmeInterface::write8().


Field Documentation

VmeInterface::AddrMod SctPixelRod::VmePort::m_addrMod [private]
 

Definition at line 178 of file VmePort.h.

Referenced by getAddrMod(), and VmePort().

unsigned long SctPixelRod::VmePort::m_baseAddress [private]
 

Definition at line 176 of file VmePort.h.

Referenced by getBaseAddress(), and VmePort().

bool SctPixelRod::VmePort::m_exceptionTrapping [private]
 

Definition at line 180 of file VmePort.h.

Referenced by getExceptionTrapping(), setExceptionTrapping(), and VmePort().

unsigned long SctPixelRod::VmePort::m_handle [private]
 

Definition at line 175 of file VmePort.h.

Referenced by getHandle(), and VmePort().

VmeInterface& SctPixelRod::VmePort::m_interface [private]
 

Definition at line 179 of file VmePort.h.

Referenced by blockInterruptNotification(), blockRead32(), blockRead64(), blockWrite32(), blockWrite64(), busErrorReport(), cleanInterruptHandlers(), declareInterruptHandler(), getBusErrors(), getErrorMessage(), getInterface(), getLastErrcode(), getMap(), read16(), read32(), read8(), reEnableInterrupt(), removeInterruptHandler(), resumeInterruptNotification(), VmePort(), write16(), write32(), write8(), and ~VmePort().

unsigned long SctPixelRod::VmePort::m_mapSize [private]
 

Definition at line 177 of file VmePort.h.

Referenced by getMapSize(), and VmePort().


The documentation for this class was generated from the following file:
Generated on Mon Dec 15 19:38:09 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3