ICP
1
|
#include <QxtrmSimulation.h>
Public Types | |
enum | CardType { UnknownCard =0, EnvCard =1, DetCard =2, PeriodCard =3, EnvPeriodCard =4 } |
Public Member Functions | |
SIMDAE2Card (int position, VMESimulationIface *vme, isisU32_t firmware, bool fw32, FaultMode fault_mode, DAEstatus &status) | |
int | position () |
virtual | ~SIMDAE2Card () |
virtual void | printStatus (std::ostream &os)=0 |
virtual void | updateCardAfterWrite (DAEstatus &status)=0 |
virtual void | updateCardAfterRead (DAEstatus &status)=0 |
virtual void | simulate (int delay)=0 |
int | read16 (ISISVME::TransferProps props, unsigned long address, isisU16_t *data16, long nitems, DAEstatus &status) |
int | read32 (ISISVME::TransferProps props, unsigned long address, isisU32_t *data32, long nitems, DAEstatus &status) |
int | write16 (ISISVME::TransferProps props, unsigned long address, isisU16_t *data16, long nitems, DAEstatus &status) |
int | write32 (ISISVME::TransferProps props, unsigned long address, isisU32_t *data32, long nitems, DAEstatus &status) |
std::vector< sim_mapping > & | mapping () |
int | addMapping (ISISVME::TransferProps props, isisU32_t address, int n, isisU32_t *var, const char *name, bool readable, bool writable, isisU32_t *access_reg, unsigned access_bit, bool wrap, bool sixteen_bit_access, FaultMode fault_mode) |
int | addMapping (ISISVME::TransferProps props, isisU32_t address, int n, uint64_t *var, const char *name, bool readable, bool writable, isisU32_t *access_reg, unsigned access_bit, bool wrap, bool sixteen_bit_access, FaultMode fault_mode) |
int | addMapping (ISISVME::TransferProps props, const unused_t &address, int n, isisU32_t *var, const char *name, bool readable, bool writable, isisU32_t *access_reg, unsigned access_bit, bool wrap, bool sixteen_bit_access, FaultMode fault_mode) |
int | addMapping (ISISVME::TransferProps props, const unused_t &address, int n, uint64_t *var, const char *name, bool readable, bool writable, isisU32_t *access_reg, unsigned access_bit, bool wrap, bool sixteen_bit_access, FaultMode fault_mode) |
bool | isVetoing () |
bool | isRunning () |
CardType | type () |
Static Public Member Functions | |
static void | increment (int value, isisU32_t &low) |
static void | increment2 (int value, isisU32_t &low, isisU32_t &high) |
static void | increment3 (int value, isisU32_t &low, isisU32_t &middle, isisU32_t &high) |
static void | increment32 (int value, isisU32_t &low, isisU32_t &high) |
static void | increment32 (int value, uint64_t &low, isisU32_t &high) |
Protected Member Functions | |
std::string | loggingPrefix () const |
Protected Member Functions inherited from ISIS::Base | |
Base (const std::string &logger_name="UNKNOWN") | |
void | setLoggerName (const std::string &logger_name) |
virtual | ~Base () |
void | setThisLoggerLevel (int level) |
Protected Attributes | |
int | m_position |
CardType | m_type |
VMESimulationIface * | m_vme |
bool | m_veto_raised |
bool | m_is_running |
std::vector< sim_mapping > | m_mapping |
isisU32_t | m_firmware |
Protected Attributes inherited from ISIS::Base | |
Poco::Logger * | m_logger |
Poco::LogStream * | m_logstr |
Poco::Mutex | m_logger_lock |
Additional Inherited Members | |
Static Protected Member Functions inherited from ISIS::Base | |
static void | setAllLoggerLevel (int level) |
Definition at line 16 of file QxtrmSimulation.h.
enum SIMDAE2Card::CardType |
Enumerator | |
---|---|
UnknownCard | |
EnvCard | |
DetCard | |
PeriodCard | |
EnvPeriodCard |
Definition at line 43 of file sim_dae2_card.h.
SIMDAE2Card< DAECardPolicy >::SIMDAE2Card | ( | int | position, |
VMESimulationIface * | vme, | ||
isisU32_t | firmware, | ||
bool | fw32, | ||
FaultMode | fault_mode, | ||
DAEstatus & | status | ||
) |
Definition at line 8 of file sim_dae2_card.cpp.
References SIMDAE2Card< DAECardPolicy >::addMapping(), SIMDAE2Card< DAECardPolicy >::m_firmware, and ISISVME::TransferIORegisterSpace.
|
inlinevirtual |
Definition at line 46 of file sim_dae2_card.h.
int SIMDAE2Card< DAECardPolicy >::addMapping | ( | ISISVME::TransferProps | props, |
isisU32_t | address, | ||
int | n, | ||
isisU32_t * | var, | ||
const char * | name, | ||
bool | readable, | ||
bool | writable, | ||
isisU32_t * | access_reg, | ||
unsigned | access_bit, | ||
bool | wrap, | ||
bool | sixteen_bit_access, | ||
FaultMode | fault_mode | ||
) |
Definition at line 21 of file sim_dae2_card.cpp.
Referenced by SIMDAE2Card< DAECardPolicy >::SIMDAE2Card(), and SIMPeriodCard::SIMPeriodCard().
int SIMDAE2Card< DAECardPolicy >::addMapping | ( | ISISVME::TransferProps | props, |
isisU32_t | address, | ||
int | n, | ||
uint64_t * | var, | ||
const char * | name, | ||
bool | readable, | ||
bool | writable, | ||
isisU32_t * | access_reg, | ||
unsigned | access_bit, | ||
bool | wrap, | ||
bool | sixteen_bit_access, | ||
FaultMode | fault_mode | ||
) |
Definition at line 33 of file sim_dae2_card.cpp.
|
inline |
Definition at line 66 of file sim_dae2_card.h.
|
inline |
Definition at line 69 of file sim_dae2_card.h.
|
static |
Definition at line 179 of file sim_dae2_card.cpp.
Referenced by SIMPeriodCard::simulate().
|
static |
Definition at line 186 of file sim_dae2_card.cpp.
Referenced by SIMPeriodCard::simulate().
|
static |
Definition at line 217 of file sim_dae2_card.cpp.
|
static |
Definition at line 197 of file sim_dae2_card.cpp.
|
static |
Definition at line 207 of file sim_dae2_card.cpp.
|
inline |
Definition at line 80 of file sim_dae2_card.h.
|
inline |
Definition at line 79 of file sim_dae2_card.h.
|
inlineprotectedvirtual |
Reimplemented from ISIS::Base.
Definition at line 96 of file sim_dae2_card.h.
|
inline |
Definition at line 59 of file sim_dae2_card.h.
Referenced by simulateRead(), and simulateWrite().
|
inline |
Definition at line 45 of file sim_dae2_card.h.
Referenced by simulateRead(), and simulateWrite().
|
pure virtual |
Implemented in SIMEnvCard< EnvPeriodPolicy >, SIMDetectorCard< DetCardPolicy >, SIMEnvPeriodCard< EnvPeriodPolicy >, SIMMuonDetectorCard< DetCardPolicy >, and SIMPeriodCard.
Definition at line 15 of file sim_dae2_card.cpp.
int SIMDAE2Card< DAECardPolicy >::read16 | ( | ISISVME::TransferProps | props, |
unsigned long | address, | ||
isisU16_t * | data16, | ||
long | nitems, | ||
DAEstatus & | status | ||
) |
Definition at line 154 of file sim_dae2_card.cpp.
int SIMDAE2Card< DAECardPolicy >::read32 | ( | ISISVME::TransferProps | props, |
unsigned long | address, | ||
isisU32_t * | data32, | ||
long | nitems, | ||
DAEstatus & | status | ||
) |
Definition at line 160 of file sim_dae2_card.cpp.
|
pure virtual |
|
inline |
Definition at line 81 of file sim_dae2_card.h.
|
pure virtual |
|
pure virtual |
int SIMDAE2Card< DAECardPolicy >::write16 | ( | ISISVME::TransferProps | props, |
unsigned long | address, | ||
isisU16_t * | data16, | ||
long | nitems, | ||
DAEstatus & | status | ||
) |
Definition at line 166 of file sim_dae2_card.cpp.
int SIMDAE2Card< DAECardPolicy >::write32 | ( | ISISVME::TransferProps | props, |
unsigned long | address, | ||
isisU32_t * | data32, | ||
long | nitems, | ||
DAEstatus & | status | ||
) |
Definition at line 172 of file sim_dae2_card.cpp.
|
protected |
Definition at line 91 of file sim_dae2_card.h.
Referenced by SIMDAE2Card< DAECardPolicy >::SIMDAE2Card().
|
protected |
Definition at line 88 of file sim_dae2_card.h.
Referenced by SIMDAE2Card< EnvPeriodPolicy >::isRunning(), and SIMPeriodCard::SIMPeriodCard().
|
protected |
Definition at line 89 of file sim_dae2_card.h.
Referenced by SIMDAE2Card< EnvPeriodPolicy >::mapping().
|
protected |
Definition at line 84 of file sim_dae2_card.h.
Referenced by SIMDAE2Card< EnvPeriodPolicy >::loggingPrefix(), SIMDAE2Card< EnvPeriodPolicy >::position(), and SIMPeriodCard::printStatus().
|
protected |
Definition at line 85 of file sim_dae2_card.h.
Referenced by SIMPeriodCard::SIMPeriodCard(), and SIMDAE2Card< EnvPeriodPolicy >::type().
|
protected |
Definition at line 87 of file sim_dae2_card.h.
Referenced by SIMDAE2Card< EnvPeriodPolicy >::isVetoing(), SIMPeriodCard::SIMPeriodCard(), and SIMPeriodCard::simulate().
|
protected |
Definition at line 86 of file sim_dae2_card.h.
Referenced by SIMPeriodCard::simulate().