39 std::vector<double>
buf;
double samplerate
Sampling frequency in Hz.
const DataTypeDescriptor dtype_descr
The type of data, in this case always double precision floats.
std::vector< double > buf
Storage capacity for the DAQ I/O.
us nchannels
The number of channels, number of frames per callback (block).
us totalFramesCount
Counter for the total number of frames acquired / sent since the start of the stream.
bool botenqueued
Whether the bottom part of the buffer is enqueued enqueued.
DT9837A & daq
Reference to underlying Daq.
bool topenqueued
Whether the top part of the buffer is enqueued.
BufHandler(DT9837A &daq, const us nchannels)
Initialize bufhandler.
Data translation DT9837A Daq device.
Descriptor for data types containing more detailed information.
Specific helper for the input buffer.
InBufHandler(DT9837A &daq, InDaqCallback cb)
bool operator()()
InBufHandler::operator()()
bool operator()()
OutBufHandler::operator()
OutBufHandler(DT9837A &daq, OutDaqCallback cb)
const DataTypeDescriptor dtype_desc_fl64
std::function< void(DaqData &)> OutDaqCallback
std::function< void(const DaqData &)> InDaqCallback
size_t us
We often use boolean values.