1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//! File attribute names used in HDF5 files. This is a common file used for
//! defining attributes both at recording time (record.rs), as well as at
//! retrieval time (measurement.rs)
//!
//! These definitions are to avoid typos between attributes in storage and
//! retrieval.
/// Any reference measurements, that act as a reference for the current
/// measurement
pub const REF_UUIDS_ATTR: &str = "ref_UUIDS";
/// The sample rate of the measurement
pub const SAMPLERATE_ATTR: &str = "samplerate";
/// The number of channels in the measurement
pub const NCHANNELS_ATTR: &str = "nchannels";
/// Major version of the measurement file
pub const VERSION_MAJOR_ATTR: &str = "LASP_VERSION_MAJOR";
/// Minor version of the measurement file
pub const VERSION_MINOR_ATTR: &str = "LASP_VERSION_MINOR";
/// Channel sensitivity
pub const SENSITIVITY_ATTR: &str = "sensitivity";
/// When the measurement was taken, a timestamp since the Unix epoch.
pub const MEASUREMENT_TIME_ATTR: &str = "time";
/// Serialized information to restore the `MeasurementType` attribute
pub const MEASUREMENT_TYPE_ATTR: &str = "measurement_type_ser";
/// UUID of the measurement
pub const UUID_ATTR: &str = "UUID";
/// Names of the channels
pub const CHANNEL_NAMES_ATTR: &str = "channelNames";
/// Storage for the index of the quantity enum
pub const QTY_ENUM_IDX_ATTR: &str = "quantity_enum_idx";
/// Name of the dataset containing the measured input data
pub const MEASURED_INPUT_DATASET_NAME: &str = "audio";
/// Name of the dataset containing pre-capture audio data
pub const MEASURED_PRECAPTURE_DATASET_NAME: &str = "precapture_audio";
/// Measurement comment attribute
pub const COMMENT_ATTR: &str = "comment";
/// Signal generator source descriptor attribute
pub const SIGGEN_SOURCE_DESCRIPTION_ATTR: &str = "siggen_source_desc";
/// Input channel signal clipped: bool
pub const INPUT_SIGNAL_CLIPPED_ATTR: &str = "input_channel_signal_clipped";
/// Physical input quantity, so what the unit is of the data that is stored as
/// raw data in the dataset, i.e. before applying the sensitivity. For an audio
/// device, this is just a number, i.e. PCM data. For a DAQ device, this can for
/// example be volts.
pub const PHYSICAL_INPUT_QTY_ATTR: &str = "physical_input_qty";
/// The input datatype, i.e. the type of the data stored in the dataset. Stored
/// as an u32, that maps to a [DataType].
pub const INPUT_DATATYPE_ATTR: &str = "input_datatype";
/// Boolean attribute indicating whether the measurement is still running
pub const MEASUREMENT_STILL_RUNNING: &str = "measurement_still_running";