OpenHantek
Loading...
Searching...
No Matches
enums.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2
3#pragma once
4
5#include "utils/enumclass.h"
6#include <QMetaType>
7#include <QString>
8namespace Dso {
15
21};
22
24
27enum class Coupling {
31};
32
35enum class TriggerMode {
40}; // <class T, T first, T last>
42
45enum class Slope : uint8_t {
48 Both = 2
49};
51
61
69
70// QString channelModeString(ChannelMode mode);
71QString graphFormatString( GraphFormat format );
72QString couplingString( Coupling coupling );
73QString triggerModeString( TriggerMode mode );
74QString slopeString( Slope slope );
75// QString interpolationModeString(InterpolationMode interpolation);
76} // namespace Dso
77
78Q_DECLARE_METATYPE( Dso::TriggerMode )
79Q_DECLARE_METATYPE( Dso::Slope )
80Q_DECLARE_METATYPE( Dso::Coupling )
81Q_DECLARE_METATYPE( Dso::GraphFormat )
82Q_DECLARE_METATYPE( Dso::ChannelMode )
83Q_DECLARE_METATYPE( Dso::InterpolationMode )
Definition enumclass.h:5
Definition TriggerDock.h:15
Coupling
The coupling modes for the channels.
Definition enums.h:27
@ AC
Offset filtered out by capacitor.
Definition enums.h:29
@ DC
No filtering.
Definition enums.h:28
@ GND
Channel is grounded.
Definition enums.h:30
Themes
The different themes for display.
Definition enums.h:64
@ THEME_DARK
Force a dark theme.
Definition enums.h:67
@ THEME_LIGHT
Force a light theme.
Definition enums.h:66
@ THEME_AUTO
Use the system theme.
Definition enums.h:65
Enum< Dso::TriggerMode, Dso::TriggerMode::AUTO, Dso::TriggerMode::ROLL > TriggerModeEnum
Definition enums.cpp:7
ChannelMode
The channel display modes.
Definition enums.h:11
@ Voltage
Standard voltage view.
Definition enums.h:12
@ Spectrum
Spectrum view.
Definition enums.h:13
TriggerMode
The different triggering modes.
Definition enums.h:35
@ SINGLE
Stop after the first trigger event.
Definition enums.h:38
@ ROLL
Free running without any trigger.
Definition enums.h:39
@ NORMAL
Normal hardware trigger (or software trigger) mode.
Definition enums.h:37
@ AUTO
Automatic without trigger event.
Definition enums.h:36
Enum< Dso::Slope, Dso::Slope::Positive, Dso::Slope::Both > SlopeEnum
Definition enums.cpp:8
Slope
The slope that causes a trigger.
Definition enums.h:45
@ Both
At 1st level crossing up or down.
Definition enums.h:48
@ Positive
From lower to higher voltage.
Definition enums.h:46
@ Negative
From higher to lower voltage.
Definition enums.h:47
InterpolationMode
The different interpolation modes for the graphs.
Definition enums.h:54
@ INTERPOLATION_STEP
Sample dots connected by one step.
Definition enums.h:57
@ INTERPOLATION_SINC
Sample dots upsampled by bandlimited sinc.
Definition enums.h:58
@ INTERPOLATION_COUNT
Total number of interpolation modes.
Definition enums.h:59
@ INTERPOLATION_LINEAR
Sample dots connected by straight lines.
Definition enums.h:56
@ INTERPOLATION_OFF
Just dots for each sample.
Definition enums.h:55
QString triggerModeString(TriggerMode mode)
Return string representation of the given trigger mode.
Definition enums.cpp:43
GraphFormat
The possible viewing formats for the graphs on the scope.
Definition enums.h:18
@ XY
CH1 on X-axis, CH2 on Y-axis.
Definition enums.h:20
@ TY
The standard mode.
Definition enums.h:19
QString couplingString(Coupling coupling)
Return string representation of the given channel coupling.
Definition enums.cpp:27
Enum< Dso::GraphFormat, Dso::GraphFormat::TY, Dso::GraphFormat::XY > GraphFormatEnum
Definition enums.cpp:9
QString slopeString(Slope slope)
Return string representation of the given trigger slope.
Definition enums.cpp:60
QString graphFormatString(GraphFormat format)
Return string representation of the given graph format.
Definition enums.cpp:14