2#include "debugtrace.hpp"
16using rte = std::runtime_error;
31 DaqDeviceHandle _handle = 0;
43 atomic<bool> _stopThread{
false};
47 atomic<StreamStatus> _streamStatus;
49 const us _nFramesPerBlock;
64 DaqDeviceHandle getHandle()
const {
return _handle; }
68 void sanityChecks()
const;
91 void stop() override final;
105 return _streamStatus;
Data translation DT9837A Daq device.
virtual void start(InDaqCallback inCallback, OutDaqCallback outCallback) override final
Start the Daq.
virtual StreamStatus getStreamStatus() const override
Obtain copy of stream status (thread-safe function)
void stop() override final
Stop the data-acquisition.
DT9837A(const UlDaqDeviceInfo &devinfo, const DaqConfiguration &config)
Create a DT9837A instance.
bool isRunning() const
Returns true when the stream is running.
Information regarding a stream.
Configuration of a DAQ device.
Base cass for all DAQ (Data Acquisition) interfaces. A DAQ can be a custom device,...
Specific helper for the input buffer.
UlDaq-specific device information. Adds a copy of the underlying DaqDeDaqDeviceDescriptor.
std::function< void(DaqData &)> OutDaqCallback
std::function< void(const DaqData &)> InDaqCallback
size_t us
We often use boolean values.