31 int printError(ViSession session,
const char * func, ViStatus status, std::ostream& os);
32 int printError(ViSession session,
const char * func, ViStatus status,
33 unsigned long address,
long nitems, std::ostream& os);
34 int addError(ViSession session,
const char * func, ViStatus status,
const std::string& message,
DAEstatus& dstatus);
35 int addError(ViSession session,
const char * func, ViStatus status,
36 unsigned long address,
long nitems,
const std::string& message,
DAEstatus& dstatus);
44 template <
typename F,
typename T>
46 template <
typename F,
typename T>
60 static ViStatus _VI_FUNCH
IOEventHandler(ViSession vi, ViEventType eventType, ViEvent context, ViAddr userHandle);
61 static ViStatus _VI_FUNCH
TriggerHandler(ViSession vi, ViEventType eventType, ViEvent context, ViAddr userHandle);
64 int onTrigger(time_t the_secs,
unsigned short the_ms, ViInt16 trig_id);
97 int addJobid(ViJobId jobId, ViStatus vi_status);
NIVisa(DAEstatus &dstatus)
int readU32(unsigned long address, isisU32_t *data32, TransferProps props, DAEstatus &dstatus)
uint32_t TransferProps
combination of TransferProp values
int printError(ViSession session, const char *func, ViStatus status, std::ostream &os)
int readBlock(unsigned long address, isisU32_t *data, long nitems, TransferProps props, DAEstatus &status)
int writeBlockU64impl(unsigned long address, uint64_t *data64, long nitems, TransferProps props, DAEstatus &dstatus)
int readU16impl(unsigned long address, isisU16_t *data16, TransferProps props, DAEstatus &dstatus)
static ViStatus _VI_FUNCH TriggerHandler(ViSession vi, ViEventType eventType, ViEvent context, ViAddr userHandle)
void lockInterface(int timeout, DAEstatus &dstatus)
int addError(ViSession session, const char *func, ViStatus status, const std::string &message, DAEstatus &dstatus)
void * m_trigger_func_arg
std::map< ViJobId, ViStatus > jobid_map_t
ViSession getSession(TransferProps props)
trigger_func_t * m_trigger_func
int addJobid(ViJobId jobId, ViStatus vi_status)
bool resetBusDevice(const char *name, DAEstatus &dstatus)
int restoreTransferMode(ViSession session, int mode, DAEstatus &dstatus)
CRITICAL_SECTION m_job_critical
int readBlockU16impl(unsigned long address, isisU16_t *data16, long nitems, TransferProps props, DAEstatus &dstatus)
int reinit(DAEstatus &dstatus)
int scanBus(DAEstatus &status)
static void setEndianWorkaround(bool endian_workaround)
int openBackplane(const char *device_bp, DAEstatus &dstatus)
void unlockInterface(DAEstatus &dstatus)
const char * deviceBackplane()
static const int m_retry_time
milliseconds between retries
int writeBlock(unsigned long address, isisU32_t *data, long nitems, TransferProps props, DAEstatus &status)
int writeU32impl(unsigned long address, isisU32_t data32, TransferProps props, DAEstatus &dstatus)
int open(const char *device, DAEstatus &dstatus)
int readBlockU64impl(unsigned long address, uint64_t *data64, long nitems, TransferProps props, DAEstatus &dstatus)
static bool m_endian_workaround
int disableBlockTransfers(ViSession session, DAEstatus &dstatus)
int unlockDevice(DAEstatus &dstatus)
CRITICAL_SECTION m_visa_critical
int writeBlockU16(unsigned long address, isisU16_t *data16, long nitems, TransferProps props, DAEstatus &dstatus)
int writeBlockU64(unsigned long address, uint64_t *data64, long nitems, TransferProps props, DAEstatus &dstatus)
int writeU16impl(unsigned long address, isisU16_t data16, TransferProps props, DAEstatus &dstatus)
int readU16noRetry(unsigned long address, isisU16_t *data16, TransferProps props, DAEstatus &dstatus)
int retrySingle(F pFunc, unsigned long address, T data, TransferProps props, DAEstatus &dstatus)
int retryBlock(F pFunc, unsigned long address, T data, long nitems, TransferProps props, DAEstatus &dstatus)
static char * m_visa_lock_name
int close(DAEstatus &status)
static const int m_tries
number of times to try a read/write
ViSession m_instr_backplane
int writeU32(unsigned long address, isisU32_t data32, TransferProps props, DAEstatus &dstatus)
int readBlockU16(unsigned long address, isisU16_t *data16, long nitems, TransferProps props, DAEstatus &dstatus)
int enableBlockTransfers(ViSession session, DAEstatus &dstatus)
int trigger_func_t(void *arg, time_t the_secs, unsigned short the_ms, int trig_id)
int lockDevice(int timeout, DAEstatus &dstatus)
void setTriggerFunc(trigger_func_t *func, void *arg)
int readU16(unsigned long address, isisU16_t *data16, TransferProps props, DAEstatus &dstatus)
int readBlockU32impl(unsigned long address, isisU32_t *data32, long nitems, TransferProps props, DAEstatus &dstatus)
int writeBlockU32(unsigned long address, isisU32_t *data32, long nitems, TransferProps props, DAEstatus &dstatus)
int writeBlockU32impl(unsigned long address, isisU32_t *data32, long nitems, TransferProps props, DAEstatus &dstatus)
int writeBlockU16impl(unsigned long address, isisU16_t *data16, long nitems, TransferProps props, DAEstatus &dstatus)
int setEndian(ViSession session, bool little_endian, DAEstatus &dstatus)
int readBlockU32(unsigned long address, isisU32_t *data32, long nitems, TransferProps props, DAEstatus &dstatus)
int writeU16(unsigned long address, isisU16_t data16, TransferProps props, DAEstatus &dstatus)
static ViStatus _VI_FUNCH IOEventHandler(ViSession vi, ViEventType eventType, ViEvent context, ViAddr userHandle)
int onTrigger(time_t the_secs, unsigned short the_ms, ViInt16 trig_id)
bool resetBus(DAEstatus &status)
int readU32noRetry(unsigned long address, isisU32_t *data32, TransferProps props, DAEstatus &dstatus)
int readU32impl(unsigned long address, isisU32_t *data32, TransferProps props, DAEstatus &dstatus)
int readBlockU64(unsigned long address, uint64_t *data64, long nitems, TransferProps props, DAEstatus &dstatus)