-
Notifications
You must be signed in to change notification settings - Fork 0
/
scopeNamespace.h
69 lines (58 loc) · 921 Bytes
/
scopeNamespace.h
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
69
#pragma once
#include <QString>
#include <QVector>
#include <QPointF>
typedef unsigned char byte;
typedef QVector<QPointF> WaveformPointsVector;
typedef QVector<WaveformPointsVector> MultiChannelWaveformData;
enum POINTS {
POINTS_512 = 512,
POINTS_1024 = 1024,
POINTS_2048 = 2048,
POINTS_4096 = 4096,
POINTS_8192 = 8192,
POINTS_16384 = 16384,
POINTS_32768 = 32768
};
enum WAVEFORM_FORMAT {
WAVEFORM_FORMAT_WORD,
WAVEFORM_FORMAT_BYTE
};
enum ACQUIRE_TYPE {
ACQUIRE_TYPE_NORMAL,
ACQUIRE_TYPE_RAW
};
enum TIMEBASE_REFERENCE {
LEFT,
CENTER,
RIGHT
};
enum COUPLING
{
DC,
AC
};
enum FUNCTION_OPERATOR
{
MINUS,
PLUS
};
struct ScopeSettings
{
int sampleRate;
};
struct XYSettings
{
double channelRange;
double channelOffset;
double timebaseRange;
double timebaseDelay;
};
struct Channel
{
int index = 0;
bool enabled = false;
COUPLING coupling = DC;
double offset = 0;
double range = 0;
};