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 triggeredPosition = 0;
16  double pulseWidth1 = 0.0;
17  double pulseWidth2 = 0.0;
18  bool freeRunning = false;
19  unsigned tag = 0;
20  mutable QReadWriteLock lock;
21 };
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
bool freeRunning
trigger: NONE, half sample count
Definition: dsosamples.h:18
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
unsigned tag
track individual sample blocks (debug support)
Definition: dsosamples.h:19
QReadWriteLock lock
Definition: dsosamples.h:20
unsigned triggeredPosition
position for a triggered trace, 0 = not triggered
Definition: dsosamples.h:15