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

#include <dae2_card.h>

Inheritance diagram for DAE2Card< DAECardPolicy >:
Inheritance graph

Public Member Functions

 DAE2Card (int position, ISISVME *vme, DAEstatus &status)
 
int setRegisterBits (unsigned long address, isisU32_t mask, bool preserve, DAEstatus &status, bool little_endian=false)
 
int clearRegisterBits (unsigned long address, isisU32_t mask, DAEstatus &status, bool little_endian=false)
 
int setAndClearRegisterBits (unsigned long address, isisU32_t mask, bool preserve, DAEstatus &status, bool little_endian=false)
 
int changeRegisterBits (unsigned long address, isisU32_t mask, bool set, bool check, DAEstatus &status, bool little_endian=false)
 
bool registerBitsSet (unsigned long address, isisU32_t mask, DAEstatus &status, bool little_endian=false)
 
bool registerBitsClear (unsigned long address, isisU32_t mask, DAEstatus &status, bool little_endian=false)
 
int setAndClearRegisterBits (const unused_t &address, isisU32_t mask, bool preserve, DAEstatus &status, bool little_endian=false)
 
int readRegister (unsigned long address, isisU32_t *value, DAEstatus &status, bool little_endian=false, bool retry=true)
 
int writeRegister (unsigned long address, isisU32_t value, DAEstatus &status, bool little_endian=false)
 
int readRegister (unsigned long address, isisU16_t *value, DAEstatus &status, bool little_endian=false, bool retry=true)
 
int writeRegister16 (unsigned long address, isisU16_t value, DAEstatus &status, bool little_endian=false)
 
int readRegister16As32 (unsigned long address0, unsigned long address1, isisU32_t *value, DAEstatus &status, bool little_endian=false)
 
int writeRegister32As16 (unsigned long address0, unsigned long address1, isisU32_t value, DAEstatus &status, bool little_endian=false)
 
int readRegister (const unused_t &address, isisU32_t *value, DAEstatus &status, bool little_endian=false, bool retry=true)
 
int writeRegister (const unused_t &address, isisU32_t value, DAEstatus &status, bool little_endian=false)
 
int writeRegister16 (const unused_t &address, isisU16_t value, DAEstatus &status, bool little_endian=false)
 
int position () const
 
std::string daeDevice () const
 
virtual void printStatus (std::ostream &os, DAEstatus &dstatus)
 
std::string getFirmwareVersionAsString (DAEstatus &status)
 
virtual ~DAE2Card ()
 
void printRegister (const char *name, unsigned long address, std::ostream &os, bool print_bits_set=false)
 
virtual int resetCardState (DAEstatus &status)=0
 
template<typename T >
int readMemory (unsigned long address, typename T *buffer, int len, ISISVME::TransferProps props, DAEstatus &status)
 
template<typename T >
int readMemoryChunked (unsigned long address, T *buffer, int len, int chunk_len, ISISVME::TransferProps props, DAEstatus &status)
 
template<typename T >
int writeMemory (unsigned long address, T *buffer, int len, uint64_t read_check_mask, ISISVME::TransferProps props, DAEstatus &status)
 
template<typename T >
int zeroMemory (unsigned long start, int len, uint64_t read_check_mask, ISISVME::TransferProps props, DAEstatus &status)
 
- Public Member Functions inherited from DAE2CardIntf
 DAE2CardIntf ()
 
virtual ~DAE2CardIntf ()
 

Static Public Member Functions

static bool isCardPresent (int position, ISISVME *vme, DAEstatus &status)
 
static CardType getCardType (int position, ISISVME *vme, DAEstatus &dstatus)
 
static unsigned long makeAddress (int position, unsigned long address)
 

Protected Member Functions

void reverseEndian (isisU32_t *value)
 
void reverseEndian (isisU16_t *value)
 
std::string loggingPrefix () const
 
virtual unsigned long makeAddress (unsigned long address)
 
- 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)
 

Static Protected Member Functions

static int getFirmwareVersion (int position, ISISVME *vme, firmware_version *fw, DAEstatus &status)
 
static const char * yesNoStr (bool b)
 
- Static Protected Member Functions inherited from ISIS::Base
static void setAllLoggerLevel (int level)
 

Protected Attributes

int m_position
 
ISISVMEm_vme
 
- Protected Attributes inherited from ISIS::Base
Poco::Logger * m_logger
 
Poco::LogStream * m_logstr
 
Poco::Mutex m_logger_lock
 

Additional Inherited Members

- Public Types inherited from DAE2CardIntf
enum  CardType {
  EmptySlot = 0, UnknownCard = 1, EnvCard = 2, EnvPeriodCard = 3,
  NeutronDetectorCard = 4, MuonDetectorCard = 5, MuonPeriodCard = 6
}
 

Detailed Description

template<class DAECardPolicy>
class DAE2Card< DAECardPolicy >

Definition at line 43 of file dae2_card.h.

Constructor & Destructor Documentation

template<class DAECardPolicy >
DAE2Card< DAECardPolicy >::DAE2Card ( int  position,
ISISVME vme,
DAEstatus status 
)

Definition at line 7 of file dae2_card.cpp.

References ISIS::Base::setLoggerName().

template<class DAECardPolicy>
virtual DAE2Card< DAECardPolicy >::~DAE2Card ( )
inlinevirtual

Definition at line 78 of file dae2_card.h.

Member Function Documentation

template<class DAECardPolicy >
int DAE2Card< DAECardPolicy >::changeRegisterBits ( unsigned long  address,
isisU32_t  mask,
bool  set,
bool  check,
DAEstatus status,
bool  little_endian = false 
)

Definition at line 216 of file dae2_card.cpp.

References DAEstatus::addWarningVa(), and FAC_DAE.

Referenced by DAE2Register< DAE2DetCardPolicy >::enable().

template<class DAECardPolicy >
int DAE2Card< DAECardPolicy >::clearRegisterBits ( unsigned long  address,
isisU32_t  mask,
DAEstatus status,
bool  little_endian = false 
)
template<class DAECardPolicy >
std::string DAE2Card< DAECardPolicy >::daeDevice ( ) const
virtual
template<class DAECardPolicy >
DAE2Card< DAECardPolicy >::CardType DAE2Card< DAECardPolicy >::getCardType ( int  position,
ISISVME vme,
DAEstatus dstatus 
)
static
template<class DAECardPolicy >
int DAE2Card< DAECardPolicy >::getFirmwareVersion ( int  position,
ISISVME vme,
firmware_version fw,
DAEstatus status 
)
staticprotected
template<class DAECardPolicy >
std::string DAE2Card< DAECardPolicy >::getFirmwareVersionAsString ( DAEstatus status)
template<class DAECardPolicy >
bool DAE2Card< DAECardPolicy >::isCardPresent ( int  position,
ISISVME vme,
DAEstatus status 
)
static
template<class DAECardPolicy>
std::string DAE2Card< DAECardPolicy >::loggingPrefix ( ) const
inlineprotectedvirtual

Reimplemented from ISIS::Base.

Definition at line 98 of file dae2_card.h.

template<class DAECardPolicy>
static unsigned long DAE2Card< DAECardPolicy >::makeAddress ( int  position,
unsigned long  address 
)
inlinestatic
template<class DAECardPolicy>
virtual unsigned long DAE2Card< DAECardPolicy >::makeAddress ( unsigned long  address)
inlineprotectedvirtual

Definition at line 99 of file dae2_card.h.

template<class DAECardPolicy>
int DAE2Card< DAECardPolicy >::position ( ) const
inlinevirtual
template<class DAECardPolicy >
void DAE2Card< DAECardPolicy >::printRegister ( const char *  name,
unsigned long  address,
std::ostream &  os,
bool  print_bits_set = false 
)

Definition at line 53 of file dae2_card.cpp.

template<class DAECardPolicy >
void DAE2Card< DAECardPolicy >::printStatus ( std::ostream &  os,
DAEstatus dstatus 
)
virtual
template<class DAECardPolicy>
template<typename T >
int DAE2Card< DAECardPolicy >::readMemory ( unsigned long  address,
typename T *  buffer,
int  len,
ISISVME::TransferProps  props,
DAEstatus status 
)
inline
template<class DAECardPolicy>
template<typename T >
int DAE2Card< DAECardPolicy >::readMemoryChunked ( unsigned long  address,
T *  buffer,
int  len,
int  chunk_len,
ISISVME::TransferProps  props,
DAEstatus status 
)
inline

Definition at line 112 of file dae2_card.h.

template<class DAECardPolicy >
int DAE2Card< DAECardPolicy >::readRegister ( unsigned long  address,
isisU32_t value,
DAEstatus status,
bool  little_endian = false,
bool  retry = true 
)
template<class DAECardPolicy >
int DAE2Card< DAECardPolicy >::readRegister ( unsigned long  address,
isisU16_t value,
DAEstatus status,
bool  little_endian = false,
bool  retry = true 
)
template<class DAECardPolicy>
int DAE2Card< DAECardPolicy >::readRegister ( const unused_t address,
isisU32_t value,
DAEstatus status,
bool  little_endian = false,
bool  retry = true 
)
inline

Definition at line 62 of file dae2_card.h.

template<class DAECardPolicy >
int DAE2Card< DAECardPolicy >::readRegister16As32 ( unsigned long  address0,
unsigned long  address1,
isisU32_t value,
DAEstatus status,
bool  little_endian = false 
)

Definition at line 114 of file dae2_card.cpp.

Referenced by PeriodCard::getExtractTriggerVetoCount().

template<class DAECardPolicy >
bool DAE2Card< DAECardPolicy >::registerBitsClear ( unsigned long  address,
isisU32_t  mask,
DAEstatus status,
bool  little_endian = false 
)
template<class DAECardPolicy >
bool DAE2Card< DAECardPolicy >::registerBitsSet ( unsigned long  address,
isisU32_t  mask,
DAEstatus status,
bool  little_endian = false 
)
template<class DAECardPolicy>
virtual int DAE2Card< DAECardPolicy >::resetCardState ( DAEstatus status)
pure virtual
template<class DAECardPolicy >
void DAE2Card< DAECardPolicy >::reverseEndian ( isisU32_t value)
inlineprotected

Definition at line 200 of file dae2_card.h.

template<class DAECardPolicy >
void DAE2Card< DAECardPolicy >::reverseEndian ( isisU16_t value)
inlineprotected

Definition at line 209 of file dae2_card.h.

template<class DAECardPolicy >
int DAE2Card< DAECardPolicy >::setAndClearRegisterBits ( unsigned long  address,
isisU32_t  mask,
bool  preserve,
DAEstatus status,
bool  little_endian = false 
)
template<class DAECardPolicy>
int DAE2Card< DAECardPolicy >::setAndClearRegisterBits ( const unused_t address,
isisU32_t  mask,
bool  preserve,
DAEstatus status,
bool  little_endian = false 
)
inline

Definition at line 54 of file dae2_card.h.

template<class DAECardPolicy >
int DAE2Card< DAECardPolicy >::setRegisterBits ( unsigned long  address,
isisU32_t  mask,
bool  preserve,
DAEstatus status,
bool  little_endian = false 
)
template<class DAECardPolicy>
template<typename T >
int DAE2Card< DAECardPolicy >::writeMemory ( unsigned long  address,
T *  buffer,
int  len,
uint64_t  read_check_mask,
ISISVME::TransferProps  props,
DAEstatus status 
)
inline
template<class DAECardPolicy >
int DAE2Card< DAECardPolicy >::writeRegister ( unsigned long  address,
isisU32_t  value,
DAEstatus status,
bool  little_endian = false 
)
template<class DAECardPolicy>
int DAE2Card< DAECardPolicy >::writeRegister ( const unused_t address,
isisU32_t  value,
DAEstatus status,
bool  little_endian = false 
)
inline

Definition at line 63 of file dae2_card.h.

template<class DAECardPolicy >
int DAE2Card< DAECardPolicy >::writeRegister16 ( unsigned long  address,
isisU16_t  value,
DAEstatus status,
bool  little_endian = false 
)
template<class DAECardPolicy>
int DAE2Card< DAECardPolicy >::writeRegister16 ( const unused_t address,
isisU16_t  value,
DAEstatus status,
bool  little_endian = false 
)
inline

Definition at line 64 of file dae2_card.h.

template<class DAECardPolicy >
int DAE2Card< DAECardPolicy >::writeRegister32As16 ( unsigned long  address0,
unsigned long  address1,
isisU32_t  value,
DAEstatus status,
bool  little_endian = false 
)

Definition at line 135 of file dae2_card.cpp.

template<class DAECardPolicy>
static const char* DAE2Card< DAECardPolicy >::yesNoStr ( bool  b)
inlinestaticprotected

Definition at line 97 of file dae2_card.h.

Referenced by DAE2Card< EnvPeriodPolicy >::writeMemory().

template<class DAECardPolicy>
template<typename T >
int DAE2Card< DAECardPolicy >::zeroMemory ( unsigned long  start,
int  len,
uint64_t  read_check_mask,
ISISVME::TransferProps  props,
DAEstatus status 
)
inline

Member Data Documentation

template<class DAECardPolicy>
int DAE2Card< DAECardPolicy >::m_position
protected
template<class DAECardPolicy>
ISISVME* DAE2Card< DAECardPolicy >::m_vme
protected

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