Dokit
dev
v0.6.0
v0.5.8
v0.5.7
v0.5.6
v0.5.5
v0.5.4
v0.5.3
v0.5.2
v0.5.1
v0.5.0
v0.4.0
v0.3.0
v0.2.0
v0.1.2
v0.1.1
v0.1.0
User docs
Internal
Coverage
Internal development documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
pokitpro.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2022-2026 Paul Colby <git@colby.id.au>
2
// SPDX-License-Identifier: LGPL-3.0-or-later
3
4
/*!
5
* \file
6
* Declares the PokitPro namespace.
7
*/
8
9
#ifndef QTPOKIT_POKITPRO_H
10
#define QTPOKIT_POKITPRO_H
11
12
#include "
qtpokit_global.h
"
13
14
QTPOKIT_BEGIN_NAMESPACE
15
16
/// Encapsulates details specific to Pokit Pro devices.
17
namespace
PokitPro
{
18
19
/// Values supported by the Pokit Pro's `Range` attributes in `Capacitance` mode.
20
enum class
CapacitanceRange
: quint8 {
21
_100nF
= 0,
///< Up 100nF.
22
_10uF
= 1,
///< Up 10μF.
23
_1mF
= 2,
///< Up 1mF.
24
AutoRange = 255
///< Auto-range.
25
};
26
QTPOKIT_EXPORT
QString
toString
(
const
CapacitanceRange
&range);
27
QTPOKIT_EXPORT
quint32
maxValue
(
const
CapacitanceRange
&range);
28
29
30
/// Values supported by the Pokit Pro's `Range` attributes in `*Current` modes.
31
enum class
CurrentRange
: quint8 {
32
_500uA
= 0,
///< Up to 5μA.
33
_2mA
= 1,
///< Up to 2mA.
34
_10mA = 2,
///< Up to 10mA.
35
_125mA
= 3,
///< Up to 125mA.
36
_300mA = 4,
///< Up to 300mA.
37
_3A
= 5,
///< Up to 3A.
38
_10A
= 6,
///< Up to 10A.
39
AutoRange = 255
///< Auto-range. Note, Pokit Pro does *not* allow AutoRange in DSO service.
40
};
41
QTPOKIT_EXPORT
QString
toString
(
const
CurrentRange
&range);
42
QTPOKIT_EXPORT
quint32
maxValue
(
const
CurrentRange
&range);
43
44
/// Values supported by the Pokit Pro's `Range` attributes in `Resistance` mode.
45
enum class
ResistanceRange
: quint8 {
46
_30
= 0,
///< Up to 30Ω.
47
_75
= 1,
///< Up to 75Ω.
48
_400
= 2,
///< Up to 400Ω.
49
_5K
= 3,
///< Up to 5KΩ.
50
_10K = 4,
///< Up to 10KΩ.
51
_15K
= 5,
///< Up to 15KΩ.
52
_40K
= 6,
///< Up to 40KΩ.
53
_500K
= 7,
///< Up to 500KΩ.
54
_700K
= 8,
///< Up to 700KΩ.
55
_1M = 9,
///< Up to 1MΩ.
56
_3M
= 10,
///< Up to 3MΩ.
57
AutoRange = 255
///< Auto-range.
58
};
59
QTPOKIT_EXPORT
QString
toString
(
const
ResistanceRange
&range);
60
QTPOKIT_EXPORT
quint32
maxValue
(
const
ResistanceRange
&range);
61
62
/// Values supported by the Pokit Pro's `Range` attributes in `*Voltage` modes.
63
enum class
VoltageRange
: quint8 {
64
_250mV
= 0,
///< Up to 250mV.
65
_2V = 1,
///< Up to 2V.
66
_10V
= 2,
///< Up to 10V.
67
_30V = 3,
///< Up to 30V.
68
_60V = 4,
///< Up to 60V.
69
_125V
= 5,
///< Up to 125V.
70
_400V
= 6,
///< Up to 400V.
71
_600V
= 7,
///< Up to 600V.
72
AutoRange = 255
///< Auto-range. Note, Pokit Pro does *not* allow AutoRange in DSO service.
73
};
74
QTPOKIT_EXPORT
QString
toString
(
const
VoltageRange
&range);
75
QTPOKIT_EXPORT
quint32
maxValue
(
const
VoltageRange
&range);
76
77
}
78
79
/// Returns \a range as a `quint8` as a convenience for assigning to services' `settings.range` members.
80
constexpr
quint8
operator+
(
PokitPro::CapacitanceRange
range)
noexcept
{
return
static_cast<
quint8
>
(range); }
81
82
/// Returns \a range as a `quint8` as a convenience for assigning to services' `settings.range` members.
83
constexpr
quint8
operator+
(
PokitPro::CurrentRange
range)
noexcept
{
return
static_cast<
quint8
>
(range); }
84
85
/// Returns \a range as a `quint8` as a convenience for assigning to services' `settings.range` members.
86
constexpr
quint8
operator+
(
PokitPro::ResistanceRange
range)
noexcept
{
return
static_cast<
quint8
>
(range); }
87
88
/// Returns \a range as a `quint8` as a convenience for assigning to services' `settings.range` members.
89
constexpr
quint8
operator+
(
PokitPro::VoltageRange
range)
noexcept
{
return
static_cast<
quint8
>
(range); }
90
91
QTPOKIT_END_NAMESPACE
92
93
#endif
// QTPOKIT_POKITPRO_H
CapacitanceRange
Encapsulates convenience functions for working with capacitance ranges.
Definition
pokitproducts.cpp:130
CurrentRange
Encapsulates convenience functions for working with current ranges.
Definition
pokitproducts.cpp:175
PokitPro
Encapsulates details specific to Pokit Pro devices.
Definition
pokitpro.h:17
PokitPro::VoltageRange
VoltageRange
Values supported by the Pokit Pro's Range attributes in *Voltage modes.
Definition
pokitpro.h:63
PokitPro::VoltageRange::_10V
@ _10V
Up to 10V.
Definition
pokitpro.h:66
PokitPro::VoltageRange::_250mV
@ _250mV
Up to 250mV.
Definition
pokitpro.h:64
PokitPro::VoltageRange::_400V
@ _400V
Up to 400V.
Definition
pokitpro.h:70
PokitPro::VoltageRange::_600V
@ _600V
Up to 600V.
Definition
pokitpro.h:71
PokitPro::VoltageRange::_125V
@ _125V
Up to 125V.
Definition
pokitpro.h:69
PokitPro::CurrentRange
CurrentRange
Values supported by the Pokit Pro's Range attributes in *Current modes.
Definition
pokitpro.h:31
PokitPro::CurrentRange::_10A
@ _10A
Up to 10A.
Definition
pokitpro.h:38
PokitPro::CurrentRange::_500uA
@ _500uA
Up to 5μA.
Definition
pokitpro.h:32
PokitPro::CurrentRange::_2mA
@ _2mA
Up to 2mA.
Definition
pokitpro.h:33
PokitPro::CurrentRange::_3A
@ _3A
Up to 3A.
Definition
pokitpro.h:37
PokitPro::CurrentRange::_125mA
@ _125mA
Up to 125mA.
Definition
pokitpro.h:35
PokitPro::ResistanceRange
ResistanceRange
Values supported by the Pokit Pro's Range attributes in Resistance mode.
Definition
pokitpro.h:45
PokitPro::ResistanceRange::_15K
@ _15K
Up to 15KΩ.
Definition
pokitpro.h:51
PokitPro::ResistanceRange::_400
@ _400
Up to 400Ω.
Definition
pokitpro.h:48
PokitPro::ResistanceRange::_40K
@ _40K
Up to 40KΩ.
Definition
pokitpro.h:52
PokitPro::ResistanceRange::_500K
@ _500K
Up to 500KΩ.
Definition
pokitpro.h:53
PokitPro::ResistanceRange::_3M
@ _3M
Up to 3MΩ.
Definition
pokitpro.h:56
PokitPro::ResistanceRange::_700K
@ _700K
Up to 700KΩ.
Definition
pokitpro.h:54
PokitPro::ResistanceRange::_5K
@ _5K
Up to 5KΩ.
Definition
pokitpro.h:49
PokitPro::ResistanceRange::_30
@ _30
Up to 30Ω.
Definition
pokitpro.h:46
PokitPro::ResistanceRange::_75
@ _75
Up to 75Ω.
Definition
pokitpro.h:47
PokitPro::CapacitanceRange
CapacitanceRange
Values supported by the Pokit Pro's Range attributes in Capacitance mode.
Definition
pokitpro.h:20
PokitPro::CapacitanceRange::_1mF
@ _1mF
Up 1mF.
Definition
pokitpro.h:23
PokitPro::CapacitanceRange::_10uF
@ _10uF
Up 10μF.
Definition
pokitpro.h:22
PokitPro::CapacitanceRange::_100nF
@ _100nF
Up 100nF.
Definition
pokitpro.h:21
PokitPro::maxValue
QTPOKIT_EXPORT quint32 maxValue(const CapacitanceRange &range)
Returns the maximum value for range in nanofarads, or 0 if range is not a known value for Pokit Pro d...
Definition
pokitpro.cpp:51
ResistanceRange
Encapsulates convenience functions for working with resistance ranges.
Definition
pokitproducts.cpp:216
VoltageRange
Encapsulates convenience functions for working with voltage ranges.
Definition
pokitproducts.cpp:257
operator+
constexpr quint8 operator+(PokitMeter::CurrentRange range) noexcept
Returns range as a quint8 as a convenience for assigning to services' settings.range members.
Definition
pokitmeter.h:62
toString
QTPOKIT_EXPORT QString toString(const PokitProduct product)
Returns product as user-friendly string.
Definition
pokitproducts.cpp:35
QString
qtpokit_global.h
Global QtPokit library macros.
QTPOKIT_BEGIN_NAMESPACE
#define QTPOKIT_BEGIN_NAMESPACE
Macro for starting the QtPokit library's top-most namespace (if one is defined).
Definition
qtpokit_global.h:81
QTPOKIT_EXPORT
#define QTPOKIT_EXPORT
QtPokit library export/import macro.
Definition
qtpokit_global.h:26
QTPOKIT_END_NAMESPACE
#define QTPOKIT_END_NAMESPACE
Macro for ending the QtPokit library's top-most namespace (if one is defined).
Definition
qtpokit_global.h:82
dokit
dokit
include
qtpokit
pokitpro.h
Generated by
1.18.0