ICP
1
|
#include <QxtrmSimulation.h>
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_t * | m_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 |
Definition at line 21 of file QxtrmSimulation.h.
|
private |
Definition at line 30 of file QxtrmSimulation.h.
|
private |
Definition at line 29 of file QxtrmSimulation.h.
|
private |
Definition at line 27 of file QxtrmSimulation.h.
|
private |
Definition at line 28 of file QxtrmSimulation.h.
QxtrmSimulation::QxtrmSimulation | ( | DAEstatus & | status | ) |
|
virtual |
|
inlinevirtual |
Implements ISISVME.
Definition at line 82 of file QxtrmSimulation.h.
|
static |
|
virtual |
Implements VMESimulationIface.
|
virtual |
Implements VMESimulationIface.
|
virtual |
Implements ISISVME.
|
virtual |
Implements VMESimulationIface.
|
virtual |
Implements VMESimulationIface.
|
static |
|
static |
|
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 | ||
) |
|
virtual |
Implements ISISVME.
|
virtual |
Implements ISISVME.
|
virtual |
Implements ISISVME.
|
virtual |
Implements ISISVME.
|
virtual |
Implements ISISVME.
|
virtual |
Implements ISISVME.
|
virtual |
Implements ISISVME.
|
virtual |
Implements VMESimulationIface.
|
inlinevirtual |
Implements ISISVME.
Definition at line 83 of file QxtrmSimulation.h.
References m_trigger_func, and m_trigger_func_arg.
|
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 |
|
inlinevirtual |
Implements ISISVME.
Definition at line 49 of file QxtrmSimulation.h.
|
virtual |
Implements ISISVME.
|
virtual |
Implements ISISVME.
|
virtual |
Implements ISISVME.
|
virtual |
Implements ISISVME.
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().
|
staticprivate |
Definition at line 26 of file QxtrmSimulation.h.
|
private |
Definition at line 24 of file QxtrmSimulation.h.
Referenced by setTriggerFunc().
|
private |
Definition at line 25 of file QxtrmSimulation.h.
Referenced by setTriggerFunc().