1 #ifndef QXTRMINTERFACE_H
2 #define QXTRMINTERFACE_H
5 #include "../Qxtrm_driver/Qxtrm_driver.h"
31 template <
typename F,
typename T>
33 template <
typename F,
typename T>
50 QxtrmInterface(
DAEstatus& dstatus, uint32_t* dau_memory = NULL, uint32_t nwords_memory = 0, uint32_t* dau_registers = NULL, uint32_t nwords_registers = 0);
int writeBlockU64impl(unsigned long address, uint64_t *data64, long nitems, TransferProps props, DAEstatus &dstatus)
virtual ~QxtrmInterface()
int writeBlock(unsigned long address, isisU32_t *data, long nitems, TransferProps props, DAEstatus &status)
uint32_t TransferProps
combination of TransferProp values
int writeBlockU16(unsigned long address, isisU16_t *data16, long nitems, TransferProps props, DAEstatus &dstatus)
bool resetBus(DAEstatus &status)
int writeU32(unsigned long address, isisU32_t data32, TransferProps props, DAEstatus &dstatus)
int readU16noRetry(unsigned long address, isisU16_t *data16, TransferProps props, DAEstatus &dstatus)
int writeBlockU32(unsigned long address, isisU32_t *data32, long nitems, TransferProps props, DAEstatus &dstatus)
trigger_func_t * m_trigger_func
int writeUimpl(unsigned long address, T *data, int nitems, TransferProps props, DAEstatus &dstatus)
int readU16impl(unsigned long address, isisU16_t *data16, TransferProps props, DAEstatus &dstatus)
int writeBlockU16impl(unsigned long address, isisU16_t *data16, long nitems, TransferProps props, DAEstatus &dstatus)
int retryBlock(F pFunc, unsigned long address, T data, long nitems, TransferProps props, DAEstatus &dstatus)
int readBlockU32(unsigned long address, isisU32_t *data32, long nitems, TransferProps props, DAEstatus &dstatus)
int readBlockU64(unsigned long address, uint64_t *data64, long nitems, TransferProps props, DAEstatus &dstatus)
int close(DAEstatus &dstatus)
int retrySingle(F pFunc, unsigned long address, T data, TransferProps props, DAEstatus &dstatus)
int readBlockU64impl(unsigned long address, uint64_t *data64, long nitems, TransferProps props, DAEstatus &dstatus)
int openBackplane(const char *device_bp, DAEstatus &dstatus)
int readUimpl(unsigned long address, T *data, int nitems, TransferProps props, DAEstatus &dstatus)
Poco::SharedPtr< Qxtrm_channel > m_rdma_mem
void lockInterface(int timeout, DAEstatus &dstatus)
const char * deviceBackplane()
int scanBus(DAEstatus &status)
int writeU16impl(unsigned long address, isisU16_t data16, TransferProps props, DAEstatus &dstatus)
QxtrmInterface(DAEstatus &dstatus, uint32_t *dau_memory=NULL, uint32_t nwords_memory=0, uint32_t *dau_registers=NULL, uint32_t nwords_registers=0)
void * m_trigger_func_arg
static const int m_tries
number of times to try a read/write
static const int m_retry_time
milliseconds between retries
int lockDevice(int timeout, DAEstatus &dstatus)
uint32_t * m_dau_registers
int readBlockU16(unsigned long address, isisU16_t *data16, long nitems, TransferProps props, DAEstatus &dstatus)
Poco::SharedPtr< Qxtrm_channel > m_rdma_reg
CRITICAL_SECTION m_visa_critical
void setTriggerFunc(trigger_func_t *func, void *arg)
int readU32(unsigned long address, isisU32_t *data32, TransferProps props, DAEstatus &dstatus)
int readU32impl(unsigned long address, isisU32_t *data32, TransferProps props, DAEstatus &dstatus)
int trigger_func_t(void *arg, time_t the_secs, unsigned short the_ms, int trig_id)
int writeBlockU32impl(unsigned long address, isisU32_t *data32, long nitems, TransferProps props, DAEstatus &dstatus)
int readU16(unsigned long address, isisU16_t *data16, TransferProps props, DAEstatus &dstatus)
int readBlockU16impl(unsigned long address, isisU16_t *data16, long nitems, TransferProps props, DAEstatus &dstatus)
int unlockDevice(DAEstatus &dstatus)
int readBlock(unsigned long address, isisU32_t *data, long nitems, TransferProps props, DAEstatus &status)
int readU32noRetry(unsigned long address, isisU32_t *data32, TransferProps props, DAEstatus &dstatus)
int readBlockU32impl(unsigned long address, isisU32_t *data32, long nitems, TransferProps props, DAEstatus &dstatus)
int writeU32impl(unsigned long address, isisU32_t data32, TransferProps propsn, DAEstatus &dstatus)
int writeBlockU64(unsigned long address, uint64_t *data64, long nitems, TransferProps props, DAEstatus &dstatus)
void unlockInterface(DAEstatus &dstatus)
int open(const char *device, DAEstatus &dstatus)
uint32_t m_nwords_registers
int writeU16(unsigned long address, isisU16_t data16, TransferProps props, DAEstatus &dstatus)
int reinit(DAEstatus &dstatus)