1 #ifndef QXTRM_SIMULATION_H
2 #define QXTRM_SIMULATION_H
82 const char*
device() {
return "simulation"; }
84 int onTrigger(time_t the_secs,
unsigned short the_ms,
int trig_id);
std::vector< MySIMEnvPeriodCard * > m_env_card_list
uint32_t TransferProps
combination of TransferProp values
SIMEnvPeriodCard< DAE3EnvPeriodPolicy > MySIMEnvPeriodCard
int readU32noRetry(unsigned long address, isisU32_t *data32, TransferProps props, DAEstatus &dstatus)
int readU16noRetry(unsigned long address, isisU16_t *data16, TransferProps props, DAEstatus &dstatus)
std::vector< MySIMDetectorCard * > m_det_card_list
int readBlockU16(unsigned long address, isisU16_t *data16, long nitems, TransferProps props, DAEstatus &status)
int open(const char *device, DAEstatus &status)
int simulateRead32(TransferProps props, unsigned long address, isisU32_t *data32, long nitems, DAEstatus &status)
static std::vector< VMESimulationIface * > m_sim_vme
int incrementDetectorCardPeriod()
int getCardIds(std::vector< int > &card_ids)
int writeBlockU32(unsigned long address, isisU32_t *data32, long nitems, TransferProps props, DAEstatus &status)
int onTrigger(time_t the_secs, unsigned short the_ms, int trig_id)
SIMDetectorCard< DAE3DetCardPolicy > MySIMDetectorCard
int simulateWrite16(TransferProps props, unsigned long address, isisU16_t *data16, long nitems, DAEstatus &status)
SIMDAE2Card< DAE3CardPolicy > MySIMDAE2Card
int lockDevice(int timeout, DAEstatus &status)
void setTriggerFunc(trigger_func_t *func, void *arg)
QxtrmSimulation(DAEstatus &status)
int writeU16(unsigned long address, isisU16_t data16, TransferProps props, DAEstatus &status)
int readU32(unsigned long address, isisU32_t *data32, TransferProps props, DAEstatus &status)
void lockInterface(int, DAEstatus &)
int close(DAEstatus &status)
void * m_trigger_func_arg
void unlockInterface(DAEstatus &)
bool m_shutdown_requested
int writeU32(unsigned long address, isisU32_t data32, TransferProps props, DAEstatus &status)
int readU16(unsigned long address, isisU16_t *data16, TransferProps props, DAEstatus &status)
trigger_func_t * m_trigger_func
int trigger_func_t(void *arg, time_t the_secs, unsigned short the_ms, int trig_id)
int scanBus(DAEstatus &status)
int readBlockU32(unsigned long address, isisU32_t *data32, long nitems, TransferProps props, DAEstatus &status)
bool resetBus(DAEstatus &status)
int simulateRead16(TransferProps props, unsigned long address, isisU16_t *data16, long nitems, DAEstatus &status)
SIMEnvCard< DAE3EnvPeriodPolicy > MySIMEnvCard
CRITICAL_SECTION m_critical
int simulateWrite32(TransferProps props, unsigned long address, isisU32_t *data32, long nitems, DAEstatus &status)
virtual void simulation_routineImpl()=0
virtual ~QxtrmSimulation()
int resetDetectorCardPeriod()
int writeBlockU16(unsigned long address, isisU16_t *data16, long nitems, TransferProps props, DAEstatus &status)
int openBackplane(const char *device_bp, DAEstatus &status)
int unlockDevice(DAEstatus &status)