LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches
lasp_uldaq_common.h
Go to the documentation of this file.
1#pragma once
2#include <uldaq.h>
3#include <string>
4#include "lasp_deviceinfo.h"
5
19
27string getErrMsg(UlError err);
28
34void showErr(UlError err);
35
41void showErr(std::string errstr);
42
48
49public:
50 DaqDeviceDescriptor _uldaqDescriptor;
51 virtual std::unique_ptr<DeviceInfo> clone() const override {
52 DEBUGTRACE_ENTER;
53 return std::make_unique<UlDaqDeviceInfo>(*this);
54 }
55};
56
60const std::vector<d> ULDAQ_SAMPLERATES = {8000, 10000, 11025, 16000, 20000,
61 22050, 24000, 32000, 44056, 44100,
62 47250, 48000, 50000, 50400, 51000};
63
64
Structure containing device info parameters.
UlDaq-specific device information. Adds a copy of the underlying DaqDeDaqDeviceDescriptor.
virtual std::unique_ptr< DeviceInfo > clone() const override
Clone a device info.
DaqDeviceDescriptor _uldaqDescriptor
const std::vector< d > ULDAQ_SAMPLERATES
List of available sampling frequencies for DT9837A.
void throwOnPossibleUlException(UlError err)
Throws an appropriate stream exception based on the UlError number. The mapping is based on the error...
void showErr(UlError err)
Print error message to stderr.
string getErrMsg(UlError err)
Return a string corresponding to the UlDaq API error.