ICP  1
Public Member Functions | Static Public Member Functions | Public Attributes | Private Types | Private Attributes | Static Private Attributes | List of all members
QxtrmSimulation Class Reference

#include <QxtrmSimulation.h>

Inheritance diagram for QxtrmSimulation:
Inheritance graph

Public Member Functions

int getCardIds (std::vector< int > &card_ids)
 
 QxtrmSimulation (DAEstatus &status)
 
virtual ~QxtrmSimulation ()
 
int open (const char *device, DAEstatus &status)
 
int openBackplane (const char *device_bp, DAEstatus &status)
 
int lockDevice (int timeout, DAEstatus &status)
 
int unlockDevice (DAEstatus &status)
 
void lockInterface (int, DAEstatus &)
 
void unlockInterface (DAEstatus &)
 
int readU16noRetry (unsigned long address, isisU16_t *data16, TransferProps props, DAEstatus &dstatus)
 
int readU32noRetry (unsigned long address, isisU32_t *data32, TransferProps props, DAEstatus &dstatus)
 
int readU16 (unsigned long address, isisU16_t *data16, TransferProps props, DAEstatus &status)
 
int readU32 (unsigned long address, isisU32_t *data32, TransferProps props, DAEstatus &status)
 
int readBlockU16 (unsigned long address, isisU16_t *data16, long nitems, TransferProps props, DAEstatus &status)
 
int readBlockU32 (unsigned long address, isisU32_t *data32, long nitems, TransferProps props, DAEstatus &status)
 
int writeU16 (unsigned long address, isisU16_t data16, TransferProps props, DAEstatus &status)
 
int writeU32 (unsigned long address, isisU32_t data32, TransferProps props, DAEstatus &status)
 
int writeBlockU16 (unsigned long address, isisU16_t *data16, long nitems, TransferProps props, DAEstatus &status)
 
int writeBlockU32 (unsigned long address, isisU32_t *data32, long nitems, TransferProps props, DAEstatus &status)
 
int close (DAEstatus &status)
 
int scanBus (DAEstatus &status)
 
bool resetBus (DAEstatus &status)
 
bool initOK ()
 
bool shutdownRequested ()
 
bool isCrateVetoing ()
 
bool isCrateRunning ()
 
int simulateRead16 (TransferProps props, unsigned long address, isisU16_t *data16, long nitems, DAEstatus &status)
 
int simulateRead32 (TransferProps props, unsigned long address, isisU32_t *data32, long nitems, DAEstatus &status)
 
int simulateWrite16 (TransferProps props, unsigned long address, isisU16_t *data16, long nitems, DAEstatus &status)
 
int simulateWrite32 (TransferProps props, unsigned long address, isisU32_t *data32, long nitems, DAEstatus &status)
 
int incrementDetectorCardPeriod ()
 
int resetDetectorCardPeriod ()
 
const char * device ()
 
void setTriggerFunc (trigger_func_t *func, void *arg)
 
int onTrigger (time_t the_secs, unsigned short the_ms, int trig_id)
 
- Public Member Functions inherited from VMESimulationIface
virtual ~VMESimulationIface ()
 
virtual void simulation_routineImpl ()=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
 
- Public Member Functions inherited from ISISVME
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 ~ISISVME ()
 

Static Public Member Functions

static void simulation_routineImpl (void *arg)
 
static bool isVetoing ()
 
static bool isRunning ()
 
static int frameNumber ()
 
- Static Public Member Functions inherited from VMESimulationIface
static bool isVetoing ()
 
static bool isRunning ()
 
static int frameNumber ()
 
static void simulation_routine (void *arg)
 

Public Attributes

std::vector< MySIMDetectorCard * > m_det_card_list
 
std::vector< MySIMEnvPeriodCard * > m_env_card_list
 
CRITICAL_SECTION m_critical
 
bool m_shutdown_requested
 

Private Types

typedef SIMEnvCard
< DAE3EnvPeriodPolicy
MySIMEnvCard
 
typedef SIMEnvPeriodCard
< DAE3EnvPeriodPolicy
MySIMEnvPeriodCard
 
typedef SIMDetectorCard
< DAE3DetCardPolicy
MySIMDetectorCard
 
typedef SIMDAE2Card
< DAE3CardPolicy
MySIMDAE2Card
 

Private Attributes

trigger_func_tm_trigger_func
 
void * m_trigger_func_arg
 

Static Private 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
 
- Static Protected Attributes inherited from VMESimulationIface
static std::vector
< VMESimulationIface * > 
m_sim_vme
 

Detailed Description

Definition at line 21 of file QxtrmSimulation.h.

Member Typedef Documentation

Definition at line 30 of file QxtrmSimulation.h.

Definition at line 29 of file QxtrmSimulation.h.

Definition at line 27 of file QxtrmSimulation.h.

Definition at line 28 of file QxtrmSimulation.h.

Constructor & Destructor Documentation

QxtrmSimulation::QxtrmSimulation ( DAEstatus status)
virtual QxtrmSimulation::~QxtrmSimulation ( )
virtual

Member Function Documentation

int QxtrmSimulation::close ( DAEstatus status)
virtual

Implements ISISVME.

const char* QxtrmSimulation::device ( )
inlinevirtual

Implements ISISVME.

Definition at line 82 of file QxtrmSimulation.h.

static int QxtrmSimulation::frameNumber ( )
static
int QxtrmSimulation::getCardIds ( std::vector< int > &  card_ids)
virtual

Implements VMESimulationIface.

int QxtrmSimulation::incrementDetectorCardPeriod ( )
virtual

Implements VMESimulationIface.

bool QxtrmSimulation::initOK ( )
virtual

Implements ISISVME.

bool QxtrmSimulation::isCrateRunning ( )
virtual

Implements VMESimulationIface.

bool QxtrmSimulation::isCrateVetoing ( )
virtual

Implements VMESimulationIface.

static bool QxtrmSimulation::isRunning ( )
static
static bool QxtrmSimulation::isVetoing ( )
static
int QxtrmSimulation::lockDevice ( int  timeout,
DAEstatus status 
)
virtual

Implements ISISVME.

void QxtrmSimulation::lockInterface ( int  ,
DAEstatus  
)
inlinevirtual

Implements ISISVME.

Definition at line 48 of file QxtrmSimulation.h.

int QxtrmSimulation::onTrigger ( time_t  the_secs,
unsigned short  the_ms,
int  trig_id 
)
int QxtrmSimulation::open ( const char *  device,
DAEstatus status 
)
virtual

Implements ISISVME.

int QxtrmSimulation::openBackplane ( const char *  device_bp,
DAEstatus status 
)
virtual

Implements ISISVME.

int QxtrmSimulation::readBlockU16 ( unsigned long  address,
isisU16_t data16,
long  nitems,
TransferProps  props,
DAEstatus status 
)
virtual

Implements ISISVME.

int QxtrmSimulation::readBlockU32 ( unsigned long  address,
isisU32_t data32,
long  nitems,
TransferProps  props,
DAEstatus status 
)
virtual

Implements ISISVME.

int QxtrmSimulation::readU16 ( unsigned long  address,
isisU16_t data16,
TransferProps  props,
DAEstatus status 
)
virtual

Implements ISISVME.

int QxtrmSimulation::readU16noRetry ( unsigned long  address,
isisU16_t data16,
TransferProps  props,
DAEstatus dstatus 
)
virtual

Implements ISISVME.

int QxtrmSimulation::readU32 ( unsigned long  address,
isisU32_t data32,
TransferProps  props,
DAEstatus status 
)
virtual

Implements ISISVME.

int QxtrmSimulation::readU32noRetry ( unsigned long  address,
isisU32_t data32,
TransferProps  props,
DAEstatus dstatus 
)
virtual

Implements ISISVME.

bool QxtrmSimulation::resetBus ( DAEstatus status)
virtual

Implements ISISVME.

int QxtrmSimulation::resetDetectorCardPeriod ( )
virtual

Implements VMESimulationIface.

int QxtrmSimulation::scanBus ( DAEstatus status)
virtual

Implements ISISVME.

void QxtrmSimulation::setTriggerFunc ( trigger_func_t func,
void *  arg 
)
inlinevirtual

Implements ISISVME.

Definition at line 83 of file QxtrmSimulation.h.

References m_trigger_func, and m_trigger_func_arg.

bool QxtrmSimulation::shutdownRequested ( )
inlinevirtual

Implements VMESimulationIface.

Definition at line 64 of file QxtrmSimulation.h.

References m_shutdown_requested.

int QxtrmSimulation::simulateRead16 ( TransferProps  props,
unsigned long  address,
isisU16_t data16,
long  nitems,
DAEstatus status 
)
int QxtrmSimulation::simulateRead32 ( TransferProps  props,
unsigned long  address,
isisU32_t data32,
long  nitems,
DAEstatus status 
)
int QxtrmSimulation::simulateWrite16 ( TransferProps  props,
unsigned long  address,
isisU16_t data16,
long  nitems,
DAEstatus status 
)
int QxtrmSimulation::simulateWrite32 ( TransferProps  props,
unsigned long  address,
isisU32_t data32,
long  nitems,
DAEstatus status 
)
static void QxtrmSimulation::simulation_routineImpl ( void *  arg)
static
int QxtrmSimulation::unlockDevice ( DAEstatus status)
virtual

Implements ISISVME.

void QxtrmSimulation::unlockInterface ( DAEstatus )
inlinevirtual

Implements ISISVME.

Definition at line 49 of file QxtrmSimulation.h.

int QxtrmSimulation::writeBlockU16 ( unsigned long  address,
isisU16_t data16,
long  nitems,
TransferProps  props,
DAEstatus status 
)
virtual

Implements ISISVME.

int QxtrmSimulation::writeBlockU32 ( unsigned long  address,
isisU32_t data32,
long  nitems,
TransferProps  props,
DAEstatus status 
)
virtual

Implements ISISVME.

int QxtrmSimulation::writeU16 ( unsigned long  address,
isisU16_t  data16,
TransferProps  props,
DAEstatus status 
)
virtual

Implements ISISVME.

int QxtrmSimulation::writeU32 ( unsigned long  address,
isisU32_t  data32,
TransferProps  props,
DAEstatus status 
)
virtual

Implements ISISVME.

Member Data Documentation

CRITICAL_SECTION QxtrmSimulation::m_critical

Definition at line 38 of file QxtrmSimulation.h.

std::vector<MySIMDetectorCard*> QxtrmSimulation::m_det_card_list

Definition at line 33 of file QxtrmSimulation.h.

std::vector<MySIMEnvPeriodCard*> QxtrmSimulation::m_env_card_list

Definition at line 34 of file QxtrmSimulation.h.

bool QxtrmSimulation::m_shutdown_requested

Definition at line 39 of file QxtrmSimulation.h.

Referenced by shutdownRequested().

std::vector<VMESimulationIface*> QxtrmSimulation::m_sim_vme
staticprivate

Definition at line 26 of file QxtrmSimulation.h.

trigger_func_t* QxtrmSimulation::m_trigger_func
private

Definition at line 24 of file QxtrmSimulation.h.

Referenced by setTriggerFunc().

void* QxtrmSimulation::m_trigger_func_arg
private

Definition at line 25 of file QxtrmSimulation.h.

Referenced by setTriggerFunc().


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