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