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

CVmeModule Class Reference

#include <VmeModule.h>

Inheritance diagram for CVmeModule:

CCaenIO CNimout List of all members.

Public Types

enum  Space { a16d16, a24d16, a24d32, a32d32 }

Public Methods

 CVmeModule (Space space, UInt_t base, UInt_t length)
 CVmeModule (CVME< UShort_t > &am_CVME)
 CVmeModule (const CVmeModule &aCVmeModule)
virtual ~CVmeModule ()
CVmeModule & operator= (const CVmeModule &aCVmeModule)
int operator== (const CVmeModule &aCVmeModule) const
CVME< UShort_t > getCVME () const
virtual UChar_t peekb (UInt_t offset=0)
virtual UShort_t peekw (UInt_t offset=0)
virtual ULong_t peekl (UInt_t offset=0)
virtual void pokeb (UChar_t byte, UInt_t nOffset)
virtual void pokew (UShort_t word, UInt_t nOffset)
virtual void pokel (ULong_t lword, UInt_t nOffset)

Protected Methods

void setCVME (CVME< UShort_t > aCVME)

Private Attributes

CVME< UShort_t > m_CVME

Detailed Description

\file CVmeModule.h

Encapsulates a Vme module object. CVmeModules have access to memory which is mapped via the mmap(3) system service using the CVME and CVMEptr objects. CVmeModules can write to and read from these registers using poke and peek operations, respectively.

Author: Jason Venema NSCL Michigan State University East Lansing, MI 48824-1321 mailto: venemaja@msu.edu

Definition at line 302 of file VmeModule.h.


Member Enumeration Documentation

enum CVmeModule::Space
 

Enumeration values:
a16d16 
a24d16 
a24d32 
a32d32 

Definition at line 307 of file VmeModule.h.


Constructor & Destructor Documentation

CVmeModule::CVmeModule Space    space,
UInt_t    base,
UInt_t    length
 

Definition at line 310 of file VmeModule.cpp.

References a16d16, a24d16, a24d32, a32d32, and m_CVME.

CVmeModule::CVmeModule CVME< UShort_t > &    am_CVME
 

Definition at line 341 of file VmeModule.cpp.

References m_CVME.

CVmeModule::CVmeModule const CVmeModule &    aCVmeModule
 

Definition at line 358 of file VmeModule.cpp.

References m_CVME.

virtual CVmeModule::~CVmeModule   [inline, virtual]
 

Definition at line 322 of file VmeModule.h.


Member Function Documentation

CVME<UShort_t> CVmeModule::getCVME   const [inline]
 

Definition at line 339 of file VmeModule.h.

CVmeModule & CVmeModule::operator= const CVmeModule &    aCVmeModule
 

Definition at line 375 of file VmeModule.cpp.

References m_CVME.

Referenced by CNimout::operator=(), and CCaenIO::operator=().

int CVmeModule::operator== const CVmeModule &    aCVmeModule const
 

Definition at line 395 of file VmeModule.cpp.

References m_CVME.

Referenced by CNimout::operator==(), and CCaenIO::operator==().

UChar_t CVmeModule::peekb UInt_t    offset = 0 [virtual]
 

Definition at line 414 of file VmeModule.cpp.

References CVME< UShort_t >::getgenptr(), and m_CVME.

ULong_t CVmeModule::peekl UInt_t    offset = 0 [virtual]
 

Definition at line 467 of file VmeModule.cpp.

References CVME< UShort_t >::getgenptr(), and m_CVME.

Referenced by CVMEScalerLRS1151::Clear(), and CVMEScalerLRS1151::Read().

UShort_t CVmeModule::peekw UInt_t    offset = 0 [virtual]
 

Definition at line 443 of file VmeModule.cpp.

References m_CVME.

Referenced by CNimout::AndRegister(), CNimout::ClearBit(), CNimout::ClearCBit(), CNimout::ClearTBit(), CNimout::ModuleReady(), CNimout::OrRegister(), CCaenIO::ReadInput(), CNimout::ReadRegister(), CNimout::SetBit(), CNimout::SetStrobeLength(), CNimout::SetTBit(), CNimout::TBitSet(), and CNimout::TransferData().

void CVmeModule::pokeb UChar_t    byte,
UInt_t    nOffset
[virtual]
 

Definition at line 496 of file VmeModule.cpp.

References CVME< UShort_t >::getgenptr(), and m_CVME.

void CVmeModule::pokel ULong_t    lword,
UInt_t    nOffset
[virtual]
 

Definition at line 549 of file VmeModule.cpp.

References CVME< UShort_t >::getgenptr(), and m_CVME.

void CVmeModule::pokew UShort_t    word,
UInt_t    nOffset
[virtual]
 

Definition at line 525 of file VmeModule.cpp.

References m_CVME.

Referenced by CNimout::AndRegister(), CNimout::ClearAll(), CCaenIO::ClearAll(), CCaenIO::ClearAllNIM(), CNimout::ClearBit(), CNimout::ClearCBit(), CCaenIO::ClearECL(), CCaenIO::ClearLevel(), CNimout::ClearTBit(), CVMEScalerLRS1151::Initialize(), CNimout::OrRegister(), CCaenIO::PulseOutput(), CCaenIO::SetAllNIM(), CNimout::SetBit(), CCaenIO::SetECL(), CCaenIO::SetLevel(), CNimout::SetStrobeLength(), CNimout::SetTBit(), CNimout::StrobeAll(), CNimout::TransferData(), and CNimout::WriteRegister().

void CVmeModule::setCVME CVME< UShort_t >    aCVME [inline, protected]
 

Definition at line 332 of file VmeModule.h.


Member Data Documentation

CVME<UShort_t> CVmeModule::m_CVME [private]
 

Definition at line 304 of file VmeModule.h.

Referenced by CVmeModule(), operator=(), operator==(), peekb(), peekl(), peekw(), pokeb(), pokel(), and pokew().


The documentation for this class was generated from the following files:
Generated on Fri Nov 8 13:37:29 2002 for Event Readout system. by doxygen1.2.16