LASP 1.0
Library for Acoustic Signal Processing
|
Structure containing device info parameters. More...
#include <lasp_deviceinfo.h>
Public Member Functions | |
virtual | ~DeviceInfo () |
Virtual desctructor. Can be derived class. | |
DeviceInfo & | operator= (const DeviceInfo &)=delete |
virtual std::unique_ptr< DeviceInfo > | clone () const |
Clone a device info. | |
double | prefSampleRate () const |
operator string () const | |
String representation of DeviceInfo. | |
Static Public Member Functions | |
static DeviceInfoList | getDeviceInfo () |
Create a list of DeviceInfo's that are at call time avalable. | |
Public Attributes | |
DaqApi | api |
Backend API corresponding to device. | |
string | device_name = "" |
The name of the device. | |
std::vector< DataTypeDescriptor::DataType > | availableDataTypes |
The available data types the device can output. | |
int | prefDataTypeIndex = 0 |
The device's prefferd data type. | |
dvec | availableSampleRates |
Available sample rates the device can run on. | |
int | prefSampleRateIndex = -1 |
Preferred setting for the sample rate. | |
usvec | availableFramesPerBlock |
Available latency-setting (number of frames passed in each callback). | |
us | prefFramesPerBlockIndex = 0 |
Preffered number of frames per callback. | |
dvec | availableInputRanges |
Available ranges for the input, i.e. +/- 1V and/or +/- 10 V etc. | |
int | prefInputRangeIndex = 0 |
Its preffered range. | |
unsigned | ninchannels = 0 |
The number of input channels available for the device. | |
unsigned | noutchannels = 0 |
The number of output channels available for the device. | |
bool | hasInputIEPE = false |
Whether the device is capable to provide IEPE constant current power supply. | |
bool | hasInputACCouplingSwitch = false |
Whether the device is capable of enabling a hardware AC-coupling. | |
bool | hasInputTrigger = false |
Whether the device is able to trigger on input. | |
bool | hasInternalOutputMonitor = false |
Whether the device has an internal monitor of the output signal. If true, the device is able to monitor output signals internally and able to present output signals as virtual input signals. This only works together Daq's that are able to run in full duplex mode. | |
bool | duplexModeForced = false |
This flag is used to be able to indicate that the device cannot run input and output streams independently, without opening the device in duplex mode. This is for example true for the UlDaq: only one handle to the device can be given at the same time. | |
DaqChannel::Qty | physicalOutputQty = DaqChannel::Qty::Number |
The physical quantity of the output signal. For 'normal' audio devices, this is typically a 'number' between +/- full scale. For some devices however, the output quantity corresponds to a physical signal, such a Volts. | |
Structure containing device info parameters.
Definition at line 16 of file lasp_deviceinfo.h.
|
inlinevirtual |
Virtual desctructor. Can be derived class.
Definition at line 21 of file lasp_deviceinfo.h.
|
inlinevirtual |
Clone a device info.
Reimplemented in UlDaqDeviceInfo.
Definition at line 29 of file lasp_deviceinfo.h.
|
static |
Create a list of DeviceInfo's that are at call time avalable.
Definition at line 18 of file lasp_deviceinfo.cpp.
|
inline |
String representation of DeviceInfo.
Definition at line 140 of file lasp_deviceinfo.h.
|
delete |
|
inline |
Definition at line 102 of file lasp_deviceinfo.h.
DaqApi DeviceInfo::api |
Backend API corresponding to device.
Definition at line 36 of file lasp_deviceinfo.h.
std::vector<DataTypeDescriptor::DataType> DeviceInfo::availableDataTypes |
The available data types the device can output.
Definition at line 45 of file lasp_deviceinfo.h.
usvec DeviceInfo::availableFramesPerBlock |
Available latency-setting (number of frames passed in each callback).
Definition at line 64 of file lasp_deviceinfo.h.
dvec DeviceInfo::availableInputRanges |
Available ranges for the input, i.e. +/- 1V and/or +/- 10 V etc.
Definition at line 73 of file lasp_deviceinfo.h.
dvec DeviceInfo::availableSampleRates |
Available sample rates the device can run on.
Definition at line 54 of file lasp_deviceinfo.h.
string DeviceInfo::device_name = "" |
The name of the device.
Definition at line 40 of file lasp_deviceinfo.h.
bool DeviceInfo::duplexModeForced = false |
This flag is used to be able to indicate that the device cannot run input and output streams independently, without opening the device in duplex mode. This is for example true for the UlDaq: only one handle to the device can be given at the same time.
Definition at line 125 of file lasp_deviceinfo.h.
bool DeviceInfo::hasInputACCouplingSwitch = false |
Whether the device is capable of enabling a hardware AC-coupling.
Definition at line 96 of file lasp_deviceinfo.h.
bool DeviceInfo::hasInputIEPE = false |
Whether the device is capable to provide IEPE constant current power supply.
Definition at line 92 of file lasp_deviceinfo.h.
bool DeviceInfo::hasInputTrigger = false |
Whether the device is able to trigger on input.
Definition at line 100 of file lasp_deviceinfo.h.
bool DeviceInfo::hasInternalOutputMonitor = false |
Whether the device has an internal monitor of the output signal. If true, the device is able to monitor output signals internally and able to present output signals as virtual input signals. This only works together Daq's that are able to run in full duplex mode.
Definition at line 117 of file lasp_deviceinfo.h.
unsigned DeviceInfo::ninchannels = 0 |
The number of input channels available for the device.
Definition at line 82 of file lasp_deviceinfo.h.
unsigned DeviceInfo::noutchannels = 0 |
The number of output channels available for the device.
Definition at line 86 of file lasp_deviceinfo.h.
DaqChannel::Qty DeviceInfo::physicalOutputQty = DaqChannel::Qty::Number |
The physical quantity of the output signal. For 'normal' audio devices, this is typically a 'number' between +/- full scale. For some devices however, the output quantity corresponds to a physical signal, such a Volts.
Definition at line 133 of file lasp_deviceinfo.h.
int DeviceInfo::prefDataTypeIndex = 0 |
The device's prefferd data type.
Definition at line 49 of file lasp_deviceinfo.h.
us DeviceInfo::prefFramesPerBlockIndex = 0 |
Preffered number of frames per callback.
Definition at line 68 of file lasp_deviceinfo.h.
int DeviceInfo::prefInputRangeIndex = 0 |
Its preffered range.
Definition at line 77 of file lasp_deviceinfo.h.
int DeviceInfo::prefSampleRateIndex = -1 |
Preferred setting for the sample rate.
Definition at line 58 of file lasp_deviceinfo.h.