OpenHantek
Loading...
Searching...
No Matches
mathmodes.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 "utils/printutils.h"
7
8#include <QMetaType>
9
10namespace Dso {
11
49// this "extern" declaration must match the Enum definition in "mathchannel.cpp"
51
54
56
57QString mathModeString( MathMode mode );
58
59unsigned mathChannelsUsed( MathMode mode );
60
61template < class T > inline MathMode getMathMode( T &t ) { return MathMode( t.couplingOrMathIndex ); }
62
63
64} // namespace Dso
65
66Q_DECLARE_METATYPE( Dso::MathMode )
Definition enumclass.h:5
Definition TriggerDock.h:15
const auto LastBinaryMathMode
Definition mathmodes.h:52
MathMode getMathMode(T &t)
Definition mathmodes.h:61
QString mathModeString(MathMode mode)
Return string representation of the given math mode.
Definition mathmodes.cpp:32
Enum< Dso::MathMode, Dso::MathMode::ADD_CH1_CH2, Dso::MathMode::TRIG_CH2 > MathModeEnum
Definition mathmodes.cpp:7
unsigned mathChannelsUsed(MathMode mode)
Definition mathmodes.cpp:22
MathMode
The different math modes for the math-channel.
Definition mathmodes.h:14
@ AND_CH1_NOT_CH2
Definition mathmodes.h:24
@ GREAT_CH2_CH1
Definition mathmodes.h:27
@ ABS_CH2
Definition mathmodes.h:40
@ AND_NOT_CH1_NOT_CH2
Definition mathmodes.h:22
@ SQ_CH2
Definition mathmodes.h:34
@ GREAT_CH1_CH2
Definition mathmodes.h:26
@ DC_CH1
Definition mathmodes.h:37
@ ABS_CH1
Definition mathmodes.h:39
@ AND_NOT_CH1_CH2
Definition mathmodes.h:23
@ DC_CH2
Definition mathmodes.h:38
@ LP10_CH2
Definition mathmodes.h:30
@ TRIG_CH2
Definition mathmodes.h:47
@ MUL_CH1_CH2
Definition mathmodes.h:19
@ LP100_CH2
Definition mathmodes.h:32
@ LP10_CH1
Definition mathmodes.h:29
@ AND_CH1_CH2
Definition mathmodes.h:21
@ SIGN_CH1
Definition mathmodes.h:41
@ AC_CH1
Definition mathmodes.h:35
@ SQ_CH1
Definition mathmodes.h:33
@ ADD_CH1_CH2
Definition mathmodes.h:16
@ SIGN_CH2
Definition mathmodes.h:42
@ EQU_CH1_CH2
Definition mathmodes.h:25
@ TRIG_CH1
Definition mathmodes.h:46
@ SUB_CH1_FROM_CH2
Definition mathmodes.h:18
@ SIGN_AC_CH1
Definition mathmodes.h:43
@ LP100_CH1
Definition mathmodes.h:31
@ SUB_CH2_FROM_CH1
Definition mathmodes.h:17
@ AC_CH2
Definition mathmodes.h:36
@ SIGN_AC_CH2
Definition mathmodes.h:44
Unit mathModeUnit(MathMode mode)
Definition mathmodes.cpp:9
const auto LastMathMode
Definition mathmodes.h:53
Unit
The various units supported by valueToString.
Definition printutils.h:12