ICP  1
Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
VMESimulationIface Class Referenceabstract

#include <vme_simulation.h>

Inheritance diagram for VMESimulationIface:
Inheritance graph

Public Member Functions

virtual ~VMESimulationIface ()
 
virtual int getCardIds (std::vector< int > &card_ids)=0
 
virtual bool shutdownRequested ()=0
 
virtual void simulation_routineImpl ()=0
 
virtual bool isCrateVetoing ()=0
 
virtual bool isCrateRunning ()=0
 
virtual int frameNumberImpl ()=0
 
virtual int simulateRead (TransferProps props, unsigned long address, isisU16_t *data16, long nitems, DAEstatus &status)=0
 
virtual int simulateRead (TransferProps props, unsigned long address, isisU32_t *data32, long nitems, DAEstatus &status)=0
 
virtual int simulateRead (TransferProps props, unsigned long address, uint64_t *data64, long nitems, DAEstatus &status)=0
 
virtual int simulateWrite (TransferProps props, unsigned long address, isisU16_t *data16, long nitems, DAEstatus &status)=0
 
virtual int simulateWrite (TransferProps props, unsigned long address, isisU32_t *data32, long nitems, DAEstatus &status)=0
 
virtual int simulateWrite (TransferProps props, unsigned long address, uint64_t *data64, long nitems, DAEstatus &status)=0
 
virtual int incrementDetectorCardPeriod ()=0
 
virtual int resetDetectorCardPeriod ()=0
 
- Public Member Functions inherited from ISISVME
virtual int open (const char *device, DAEstatus &status)=0
 
virtual int openBackplane (const char *device_bp, DAEstatus &status)=0
 
virtual int lockDevice (int timeout, DAEstatus &dstatus)=0
 
virtual int unlockDevice (DAEstatus &dstatus)=0
 
virtual void lockInterface (int timeout, DAEstatus &dstatus)=0
 
virtual void unlockInterface (DAEstatus &dstatus)=0
 
virtual int readU16noRetry (unsigned long address, isisU16_t *data16, TransferProps props, DAEstatus &dstatus)=0
 
virtual int readU32noRetry (unsigned long address, isisU32_t *data32, TransferProps props, DAEstatus &dstatus)=0
 
virtual int readU16 (unsigned long address, isisU16_t *data16, TransferProps props, DAEstatus &status)=0
 
virtual int readU32 (unsigned long address, isisU32_t *data32, TransferProps props, DAEstatus &status)=0
 
virtual int readBlockU16 (unsigned long address, isisU16_t *data16, long nitems, TransferProps props, DAEstatus &status)=0
 
virtual int readBlockU32 (unsigned long address, isisU32_t *data32, long nitems, TransferProps props, DAEstatus &status)=0
 
virtual int writeU16 (unsigned long address, isisU16_t data16, TransferProps props, DAEstatus &status)=0
 
virtual int writeU32 (unsigned long address, isisU32_t data32, TransferProps props, DAEstatus &status)=0
 
virtual int writeBlockU16 (unsigned long address, isisU16_t *data16, long nitems, TransferProps props, DAEstatus &status)=0
 
virtual int writeBlockU32 (unsigned long address, isisU32_t *data32, long nitems, TransferProps props, DAEstatus &status)=0
 
virtual int writeBlock (unsigned long address, isisU32_t *data, long nitems, TransferProps props, DAEstatus &status)=0
 
virtual int writeBlock (unsigned long address, uint64_t *data, long nitems, TransferProps props, DAEstatus &status)=0
 
virtual int readBlock (unsigned long address, isisU32_t *data, long nitems, TransferProps props, DAEstatus &status)=0
 
virtual int readBlock (unsigned long address, uint64_t *data, long nitems, TransferProps props, DAEstatus &status)=0
 
virtual int close (DAEstatus &status)=0
 
virtual int scanBus (DAEstatus &status)=0
 
virtual bool initOK ()=0
 
virtual bool resetBus (DAEstatus &status)=0
 
virtual const char * device ()=0
 
virtual void setTriggerFunc (trigger_func_t *func, void *arg)=0
 
virtual ~ISISVME ()
 

Static Public Member Functions

static bool isVetoing ()
 
static bool isRunning ()
 
static int frameNumber ()
 
static void simulation_routine (void *arg)
 

Static Protected Attributes

static std::vector
< VMESimulationIface * > 
m_sim_vme
 

Additional Inherited Members

- Public Types inherited from ISISVME
enum  { Error = 0, Success = 1 }
 
enum  TransferProp {
  TransferNoOptions = 0x0, TransferBlock = 0x1, TransferLittleEndian = 0x2, TransferMemorySpace = 0x4,
  TransferIORegisterSpace = 0x8, TransferLUTSpace = 0x10, TransferRunMemorySpace = 0x20
}
 
typedef uint32_t TransferProps
 combination of TransferProp values More...
 
- Protected Member Functions inherited from ISIS::Base
 Base (const std::string &logger_name="UNKNOWN")
 
void setLoggerName (const std::string &logger_name)
 
virtual ~Base ()
 
virtual std::string loggingPrefix () const
 
void setThisLoggerLevel (int level)
 
- Static Protected Member Functions inherited from ISIS::Base
static void setAllLoggerLevel (int level)
 
- Protected Attributes inherited from ISIS::Base
Poco::Logger * m_logger
 
Poco::LogStream * m_logstr
 
Poco::Mutex m_logger_lock
 

Detailed Description

Definition at line 23 of file vme_simulation.h.

Constructor & Destructor Documentation

virtual VMESimulationIface::~VMESimulationIface ( )
inlinevirtual

Definition at line 28 of file vme_simulation.h.

Member Function Documentation

int VMESimulationIface::frameNumber ( )
static

Definition at line 408 of file vme_simulation.cpp.

References frameNumberImpl(), and m_sim_vme.

virtual int VMESimulationIface::frameNumberImpl ( )
pure virtual

Implemented in VMESimulation< DAEPolicy >.

Referenced by frameNumber().

virtual int VMESimulationIface::getCardIds ( std::vector< int > &  card_ids)
pure virtual
virtual int VMESimulationIface::incrementDetectorCardPeriod ( )
pure virtual
virtual bool VMESimulationIface::isCrateRunning ( )
pure virtual
virtual bool VMESimulationIface::isCrateVetoing ( )
pure virtual
bool VMESimulationIface::isRunning ( )
static
bool VMESimulationIface::isVetoing ( )
static

Definition at line 373 of file vme_simulation.cpp.

References m_sim_vme.

Referenced by SIMDetectorCard< DetCardPolicy >::simulateEventMode().

virtual int VMESimulationIface::resetDetectorCardPeriod ( )
pure virtual
virtual bool VMESimulationIface::shutdownRequested ( )
pure virtual
virtual int VMESimulationIface::simulateRead ( TransferProps  props,
unsigned long  address,
isisU16_t data16,
long  nitems,
DAEstatus status 
)
pure virtual

Implemented in VMESimulation< DAEPolicy >.

virtual int VMESimulationIface::simulateRead ( TransferProps  props,
unsigned long  address,
isisU32_t data32,
long  nitems,
DAEstatus status 
)
pure virtual

Implemented in VMESimulation< DAEPolicy >.

virtual int VMESimulationIface::simulateRead ( TransferProps  props,
unsigned long  address,
uint64_t *  data64,
long  nitems,
DAEstatus status 
)
pure virtual

Implemented in VMESimulation< DAEPolicy >.

virtual int VMESimulationIface::simulateWrite ( TransferProps  props,
unsigned long  address,
isisU16_t data16,
long  nitems,
DAEstatus status 
)
pure virtual

Implemented in VMESimulation< DAEPolicy >.

virtual int VMESimulationIface::simulateWrite ( TransferProps  props,
unsigned long  address,
isisU32_t data32,
long  nitems,
DAEstatus status 
)
pure virtual

Implemented in VMESimulation< DAEPolicy >.

virtual int VMESimulationIface::simulateWrite ( TransferProps  props,
unsigned long  address,
uint64_t *  data64,
long  nitems,
DAEstatus status 
)
pure virtual

Implemented in VMESimulation< DAEPolicy >.

void VMESimulationIface::simulation_routine ( void *  arg)
static

Definition at line 103 of file vme_simulation.cpp.

References dae, and simulation_routineImpl().

Referenced by VMESimulation< DAEPolicy >::VMESimulation().

virtual void VMESimulationIface::simulation_routineImpl ( )
pure virtual

Implemented in VMESimulation< DAEPolicy >.

Referenced by simulation_routine().

Member Data Documentation

std::vector< VMESimulationIface * > VMESimulationIface::m_sim_vme
staticprotected

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