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