ICP
1
|
#include <vme_simulation.h>
Public Member Functions | |
int | getCardIds (std::vector< int > &card_ids) |
VMESimulation (DAEstatus &status) | |
virtual | ~VMESimulation () |
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 | writeBlock (unsigned long address, isisU32_t *data, long nitems, TransferProps props, DAEstatus &status) |
int | writeBlock (unsigned long address, uint64_t *data, long nitems, TransferProps props, DAEstatus &status) |
int | readBlock (unsigned long address, isisU32_t *data, long nitems, TransferProps props, DAEstatus &status) |
int | readBlock (unsigned long address, uint64_t *data, long nitems, TransferProps props, DAEstatus &status) |
int | close (DAEstatus &status) |
int | scanBus (DAEstatus &status) |
bool | resetBus (DAEstatus &status) |
bool | initOK () |
bool | shutdownRequested () |
void | simulation_routineImpl () |
bool | isCrateVetoing () |
bool | isCrateRunning () |
int | frameNumberImpl () |
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) |
int | simulateRead (TransferProps props, unsigned long address, isisU16_t *data16, long nitems, DAEstatus &status) |
int | simulateRead (TransferProps props, unsigned long address, isisU32_t *data32, long nitems, DAEstatus &status) |
int | simulateRead (TransferProps props, unsigned long address, uint64_t *data64, long nitems, DAEstatus &status) |
int | simulateWrite (TransferProps props, unsigned long address, isisU16_t *data16, long nitems, DAEstatus &status) |
int | simulateWrite (TransferProps props, unsigned long address, isisU32_t *data32, long nitems, DAEstatus &status) |
int | simulateWrite (TransferProps props, unsigned long address, uint64_t *data64, long nitems, DAEstatus &status) |
Public Member Functions inherited from VMESimulationIface | |
virtual | ~VMESimulationIface () |
Public Member Functions inherited from ISISVME | |
virtual | ~ISISVME () |
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< typename DAEPolicy::env_t > | MySIMEnvCard |
typedef SIMEnvPeriodCard < typename DAEPolicy::env_t > | MySIMEnvPeriodCard |
typedef SIMDetectorCard < typename DAEPolicy::det_t > | MySIMDetectorCard |
typedef SIMDAE2Card< typename DAEPolicy::card_t > | MySIMDAE2Card |
Private Attributes | |
trigger_func_t * | m_trigger_func |
void * | m_trigger_func_arg |
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... | |
Static Public Member Functions inherited from VMESimulationIface | |
static bool | isVetoing () |
static bool | isRunning () |
static int | frameNumber () |
static void | simulation_routine (void *arg) |
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 53 of file vme_simulation.h.
|
private |
Definition at line 61 of file vme_simulation.h.
|
private |
Definition at line 60 of file vme_simulation.h.
|
private |
Definition at line 58 of file vme_simulation.h.
|
private |
Definition at line 59 of file vme_simulation.h.
VMESimulation< DAEPolicy >::VMESimulation | ( | DAEstatus & | status | ) |
Definition at line 36 of file vme_simulation.cpp.
References DAEstatus::add(), DAEstatus::addInfo(), ERRTYPE_INVCARD, FAC_SIMDAE, VMESimulation< DAEPolicy >::m_critical, VMESimulation< DAEPolicy >::m_det_card_list, VMESimulation< DAEPolicy >::m_env_card_list, VMESimulationIface::m_sim_vme, SEV_ERROR, VMESimulationIface::simulation_routine(), and Working.
|
virtual |
Definition at line 152 of file vme_simulation.cpp.
|
virtual |
Implements ISISVME.
Definition at line 294 of file vme_simulation.cpp.
References DAEstatus::addInfo(), FAC_SIMDAE, and ISISVME::Success.
|
inlinevirtual |
Implements ISISVME.
Definition at line 111 of file vme_simulation.h.
|
virtual |
Implements VMESimulationIface.
Definition at line 422 of file vme_simulation.cpp.
|
virtual |
Implements VMESimulationIface.
Definition at line 82 of file vme_simulation.cpp.
|
virtual |
Implements VMESimulationIface.
Definition at line 171 of file vme_simulation.cpp.
|
virtual |
Implements ISISVME.
Definition at line 202 of file vme_simulation.cpp.
|
virtual |
Implements VMESimulationIface.
Definition at line 440 of file vme_simulation.cpp.
|
virtual |
Implements VMESimulationIface.
Definition at line 384 of file vme_simulation.cpp.
|
virtual |
|
inlinevirtual |
Implements ISISVME.
Definition at line 79 of file vme_simulation.h.
int VMESimulation< DAEPolicy >::onTrigger | ( | time_t | the_secs, |
unsigned short | the_ms, | ||
int | trig_id | ||
) |
Definition at line 139 of file vme_simulation.cpp.
References ISISVME::Success.
Referenced by VMESimulation< DAEPolicy >::simulation_routineImpl().
|
virtual |
Implements ISISVME.
Definition at line 208 of file vme_simulation.cpp.
References DAEstatus::addInfoVa(), FAC_SIMDAE, and ISISVME::Success.
|
virtual |
Implements ISISVME.
Definition at line 215 of file vme_simulation.cpp.
References DAEstatus::addInfoVa(), FAC_SIMDAE, and ISISVME::Success.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements ISISVME.
Definition at line 240 of file vme_simulation.cpp.
|
virtual |
|
virtual |
Implements ISISVME.
Definition at line 252 of file vme_simulation.cpp.
|
virtual |
Implements ISISVME.
Definition at line 307 of file vme_simulation.cpp.
References DAEstatus::addInfo(), and FAC_SIMDAE.
|
virtual |
Implements VMESimulationIface.
Definition at line 186 of file vme_simulation.cpp.
|
virtual |
Implements ISISVME.
Definition at line 300 of file vme_simulation.cpp.
References DAEstatus::addInfo(), and FAC_SIMDAE.
|
inlinevirtual |
Implements ISISVME.
Definition at line 112 of file vme_simulation.h.
References VMESimulation< DAEPolicy >::m_trigger_func, and VMESimulation< DAEPolicy >::m_trigger_func_arg.
|
inlinevirtual |
Implements VMESimulationIface.
Definition at line 99 of file vme_simulation.h.
References VMESimulation< DAEPolicy >::m_shutdown_requested.
Referenced by VMESimulation< DAEPolicy >::simulation_routineImpl().
|
virtual |
Implements VMESimulationIface.
Definition at line 314 of file vme_simulation.cpp.
References DAEstatus::add(), ISISVME::Error, ERRTYPE_INVCARD, FAC_SIMDAE, SEV_ERROR, and ISISVME::Success.
|
virtual |
Implements VMESimulationIface.
Definition at line 458 of file vme_simulation.cpp.
References DAEstatus::add(), ISISVME::Error, ERRTYPE_INVCARD, FAC_SIMDAE, SEV_ERROR, and ISISVME::Success.
|
virtual |
Implements VMESimulationIface.
Definition at line 488 of file vme_simulation.cpp.
References simulateRead().
|
virtual |
Implements VMESimulationIface.
Definition at line 344 of file vme_simulation.cpp.
References DAEstatus::add(), ISISVME::Error, ERRTYPE_INVCARD, FAC_SIMDAE, SEV_ERROR, and ISISVME::Success.
|
virtual |
Implements VMESimulationIface.
Definition at line 495 of file vme_simulation.cpp.
References DAEstatus::add(), ISISVME::Error, ERRTYPE_INVCARD, FAC_SIMDAE, SEV_ERROR, and ISISVME::Success.
|
virtual |
Implements VMESimulationIface.
Definition at line 525 of file vme_simulation.cpp.
References simulateWrite().
|
virtual |
Implements VMESimulationIface.
Definition at line 110 of file vme_simulation.cpp.
References dae, ICPCritical::lock(), VMESimulation< DAEPolicy >::m_critical, VMESimulation< DAEPolicy >::m_det_card_list, VMESimulation< DAEPolicy >::m_env_card_list, VMESimulation< DAEPolicy >::onTrigger(), VMESimulation< DAEPolicy >::shutdownRequested(), and ICPCritical::unlock().
|
virtual |
|
inlinevirtual |
Implements ISISVME.
Definition at line 80 of file vme_simulation.h.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
CRITICAL_SECTION VMESimulation< DAEPolicy >::m_critical |
Definition at line 69 of file vme_simulation.h.
Referenced by VMESimulation< DAEPolicy >::simulation_routineImpl(), and VMESimulation< DAEPolicy >::VMESimulation().
std::vector<MySIMDetectorCard*> VMESimulation< DAEPolicy >::m_det_card_list |
Definition at line 64 of file vme_simulation.h.
Referenced by VMESimulation< DAEPolicy >::simulation_routineImpl(), and VMESimulation< DAEPolicy >::VMESimulation().
std::vector<MySIMEnvPeriodCard*> VMESimulation< DAEPolicy >::m_env_card_list |
Definition at line 65 of file vme_simulation.h.
Referenced by VMESimulation< DAEPolicy >::simulation_routineImpl(), and VMESimulation< DAEPolicy >::VMESimulation().
bool VMESimulation< DAEPolicy >::m_shutdown_requested |
Definition at line 70 of file vme_simulation.h.
Referenced by VMESimulation< DAEPolicy >::shutdownRequested().
|
private |
Definition at line 56 of file vme_simulation.h.
Referenced by VMESimulation< DAEPolicy >::setTriggerFunc().
|
private |
Definition at line 57 of file vme_simulation.h.
Referenced by VMESimulation< DAEPolicy >::setTriggerFunc().