OpenHantek
dsosamples.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-2.0+
2 
3 #pragma once
4 
5 #include <QReadLocker>
6 #include <QReadWriteLock>
7 #include <QWriteLocker>
8 #include <vector>
9 
10 struct DSOsamples {
11  std::vector<std::vector<double>> data;
12  double samplerate = 0.0;
13  unsigned char clipped = 0;
14  bool liveTrigger = false;
15  unsigned triggerPosition = 0;
16  double pulseWidth1 = 0.0;
17  double pulseWidth2 = 0.0;
18  mutable QReadWriteLock lock;
19 };
bool liveTrigger
live samples are triggered
Definition: dsosamples.h:14
std::vector< std::vector< double > > data
Pointer to input data from device.
Definition: dsosamples.h:11
Definition: dsosamples.h:10
unsigned triggerPosition
position for a triggered trace, 0 = not triggered
Definition: dsosamples.h:15
double pulseWidth2
width from next opposite slope to third slope
Definition: dsosamples.h:17
double pulseWidth1
width from trigger point to next opposite slope
Definition: dsosamples.h:16
double samplerate
The samplerate of the input data.
Definition: dsosamples.h:12
unsigned char clipped
Bitmask of clipped channels.
Definition: dsosamples.h:13
QReadWriteLock lock
Definition: dsosamples.h:18