OpenHantek
Loading...
Searching...
No Matches
enums.h
1#pragma once
2
3#include "utils/enumclass.h"
4#include <QMetaType>
5#include <QString>
6namespace Dso {
9enum class ChannelMode {
10 Voltage,
11 Spectrum
12};
13
16enum GraphFormat {
17 TY,
18 XY
19};
20
22
25enum class Coupling {
26 AC,
27 DC,
28 GND
29};
30
33enum class TriggerMode {
34 HARDWARE_SOFTWARE,
35 WAIT_FORCE,
36 SINGLE
37};
39
42enum class Slope : uint8_t {
43 Positive = 0,
44 Negative = 1
45};
47
50enum InterpolationMode {
51 INTERPOLATION_OFF = 0,
52 INTERPOLATION_LINEAR,
53 INTERPOLATION_SINC,
54 INTERPOLATION_COUNT
55};
56
57QString channelModeString(ChannelMode mode);
58QString graphFormatString(GraphFormat format);
59QString couplingString(Coupling coupling);
60QString triggerModeString(TriggerMode mode);
61QString slopeString(Slope slope);
62QString interpolationModeString(InterpolationMode interpolation);
63}
64
65Q_DECLARE_METATYPE(Dso::TriggerMode)
66Q_DECLARE_METATYPE(Dso::Slope)
67Q_DECLARE_METATYPE(Dso::Coupling)
68Q_DECLARE_METATYPE(Dso::GraphFormat)
69Q_DECLARE_METATYPE(Dso::ChannelMode)
70Q_DECLARE_METATYPE(Dso::InterpolationMode)
Definition enumclass.h:7