ICP  1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SIMDAE2Card< DAECardPolicy > Class Template Referenceabstract

#include <QxtrmSimulation.h>

Inheritance diagram for SIMDAE2Card< DAECardPolicy >:
Inheritance graph

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
 
VMESimulationIfacem_vme
 
bool m_veto_raised
 
bool m_is_running
 
std::vector< sim_mappingm_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)
 

Detailed Description

template<class DAECardPolicy>
class SIMDAE2Card< DAECardPolicy >

Definition at line 16 of file QxtrmSimulation.h.

Member Enumeration Documentation

template<class DAECardPolicy>
enum SIMDAE2Card::CardType
Enumerator
UnknownCard 
EnvCard 
DetCard 
PeriodCard 
EnvPeriodCard 

Definition at line 43 of file sim_dae2_card.h.

Constructor & Destructor Documentation

template<class DAECardPolicy >
SIMDAE2Card< DAECardPolicy >::SIMDAE2Card ( int  position,
VMESimulationIface vme,
isisU32_t  firmware,
bool  fw32,
FaultMode  fault_mode,
DAEstatus status 
)
template<class DAECardPolicy>
virtual SIMDAE2Card< DAECardPolicy >::~SIMDAE2Card ( )
inlinevirtual

Definition at line 46 of file sim_dae2_card.h.

Member Function Documentation

template<class DAECardPolicy >
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 
)
template<class DAECardPolicy >
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.

template<class DAECardPolicy>
int SIMDAE2Card< DAECardPolicy >::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 
)
inline

Definition at line 66 of file sim_dae2_card.h.

template<class DAECardPolicy>
int SIMDAE2Card< DAECardPolicy >::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 
)
inline

Definition at line 69 of file sim_dae2_card.h.

template<class DAECardPolicy >
void SIMDAE2Card< DAECardPolicy >::increment ( int  value,
isisU32_t low 
)
static

Definition at line 179 of file sim_dae2_card.cpp.

Referenced by SIMPeriodCard::simulate().

template<class DAECardPolicy >
void SIMDAE2Card< DAECardPolicy >::increment2 ( int  value,
isisU32_t low,
isisU32_t high 
)
static

Definition at line 186 of file sim_dae2_card.cpp.

Referenced by SIMPeriodCard::simulate().

template<class DAECardPolicy >
void SIMDAE2Card< DAECardPolicy >::increment3 ( int  value,
isisU32_t low,
isisU32_t middle,
isisU32_t high 
)
static

Definition at line 217 of file sim_dae2_card.cpp.

template<class DAECardPolicy >
void SIMDAE2Card< DAECardPolicy >::increment32 ( int  value,
isisU32_t low,
isisU32_t high 
)
static

Definition at line 197 of file sim_dae2_card.cpp.

template<class DAECardPolicy >
void SIMDAE2Card< DAECardPolicy >::increment32 ( int  value,
uint64_t &  low,
isisU32_t high 
)
static

Definition at line 207 of file sim_dae2_card.cpp.

template<class DAECardPolicy>
bool SIMDAE2Card< DAECardPolicy >::isRunning ( )
inline

Definition at line 80 of file sim_dae2_card.h.

template<class DAECardPolicy>
bool SIMDAE2Card< DAECardPolicy >::isVetoing ( )
inline

Definition at line 79 of file sim_dae2_card.h.

template<class DAECardPolicy>
std::string SIMDAE2Card< DAECardPolicy >::loggingPrefix ( ) const
inlineprotectedvirtual

Reimplemented from ISIS::Base.

Definition at line 96 of file sim_dae2_card.h.

template<class DAECardPolicy>
std::vector<sim_mapping>& SIMDAE2Card< DAECardPolicy >::mapping ( )
inline

Definition at line 59 of file sim_dae2_card.h.

Referenced by simulateRead(), and simulateWrite().

template<class DAECardPolicy>
int SIMDAE2Card< DAECardPolicy >::position ( )
inline

Definition at line 45 of file sim_dae2_card.h.

Referenced by simulateRead(), and simulateWrite().

template<class DAECardPolicy >
void SIMDAE2Card< DAECardPolicy >::printStatus ( std::ostream &  os)
pure virtual
template<class DAECardPolicy >
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.

template<class DAECardPolicy >
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.

template<class DAECardPolicy>
virtual void SIMDAE2Card< DAECardPolicy >::simulate ( int  delay)
pure virtual
template<class DAECardPolicy>
CardType SIMDAE2Card< DAECardPolicy >::type ( )
inline

Definition at line 81 of file sim_dae2_card.h.

template<class DAECardPolicy>
virtual void SIMDAE2Card< DAECardPolicy >::updateCardAfterRead ( DAEstatus status)
pure virtual
template<class DAECardPolicy>
virtual void SIMDAE2Card< DAECardPolicy >::updateCardAfterWrite ( DAEstatus status)
pure virtual
template<class DAECardPolicy >
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.

template<class DAECardPolicy >
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.

Member Data Documentation

template<class DAECardPolicy>
isisU32_t SIMDAE2Card< DAECardPolicy >::m_firmware
protected

Definition at line 91 of file sim_dae2_card.h.

Referenced by SIMDAE2Card< DAECardPolicy >::SIMDAE2Card().

template<class DAECardPolicy>
bool SIMDAE2Card< DAECardPolicy >::m_is_running
protected
template<class DAECardPolicy>
std::vector<sim_mapping> SIMDAE2Card< DAECardPolicy >::m_mapping
protected

Definition at line 89 of file sim_dae2_card.h.

Referenced by SIMDAE2Card< EnvPeriodPolicy >::mapping().

template<class DAECardPolicy>
int SIMDAE2Card< DAECardPolicy >::m_position
protected
template<class DAECardPolicy>
CardType SIMDAE2Card< DAECardPolicy >::m_type
protected
template<class DAECardPolicy>
bool SIMDAE2Card< DAECardPolicy >::m_veto_raised
protected
template<class DAECardPolicy>
VMESimulationIface* SIMDAE2Card< DAECardPolicy >::m_vme
protected

Definition at line 86 of file sim_dae2_card.h.

Referenced by SIMPeriodCard::simulate().


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