Dokit
Internal development documentation
Loading...
Searching...
No Matches
pokitpro.h File Reference

Declares the PokitPro namespace. More...

#include "qtpokit_global.h"
#include <QVariant>
Include dependency graph for pokitpro.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  PokitPro
 Encapsulates details specific to Pokit Pro devices.
 

Enumerations

enum class  PokitPro::CapacitanceRange : quint8 { PokitPro::_100nF = 0 , PokitPro::_10uF = 1 , PokitPro::_1mF = 2 , PokitPro::AutoRange = 255 }
 Values supported by the Pokit Pro's Range attributes in Capacitance mode. More...
 
enum class  PokitPro::CurrentRange : quint8 {
  PokitPro::_500uA = 0 , PokitPro::_2mA = 1 , PokitPro::_10mA = 2 , PokitPro::_125mA = 3 ,
  PokitPro::_300mA = 4 , PokitPro::_3A = 5 , PokitPro::_10A = 6 , PokitPro::AutoRange = 255
}
 Values supported by the Pokit Pro's Range attributes in *Current modes. More...
 
enum class  PokitPro::ResistanceRange : quint8 {
  PokitPro::_30 = 0 , PokitPro::_75 = 1 , PokitPro::_400 = 2 , PokitPro::_5K = 3 ,
  PokitPro::_10K = 4 , PokitPro::_15K = 5 , PokitPro::_40K = 6 , PokitPro::_500K = 7 ,
  PokitPro::_700K = 8 , PokitPro::_1M = 9 , PokitPro::_3M = 10 , PokitPro::AutoRange = 255
}
 Values supported by the Pokit Pro's Range attributes in Resistance mode. More...
 
enum class  PokitPro::VoltageRange : quint8 {
  PokitPro::_250mV = 0 , PokitPro::_2V = 1 , PokitPro::_10V = 2 , PokitPro::_30V = 3 ,
  PokitPro::_60V = 4 , PokitPro::_125V = 5 , PokitPro::_400V = 6 , PokitPro::_600V = 7 ,
  PokitPro::AutoRange = 255
}
 Values supported by the Pokit Pro's Range attributes in *Voltage modes. More...
 

Functions

QTPOKIT_EXPORT QString PokitPro::toString (const CapacitanceRange &range)
 Returns range as a user-friendly string.
 
QTPOKIT_EXPORT QVariant PokitPro::maxValue (const CapacitanceRange &range)
 Returns the maximum value for range in (integer) nanofarads, or the string "Auto".
 
QTPOKIT_EXPORT QString PokitPro::toString (const CurrentRange &range)
 Returns range as a user-friendly string.
 
QTPOKIT_EXPORT QVariant PokitPro::maxValue (const CurrentRange &range)
 Returns the maximum value for range in (integer) microamps, or the string "Auto".
 
QTPOKIT_EXPORT QString PokitPro::toString (const ResistanceRange &range)
 Returns range as a user-friendly string.
 
QTPOKIT_EXPORT QVariant PokitPro::maxValue (const ResistanceRange &range)
 Returns the maximum value for range in (integer) ohms, or the string "Auto".
 
QTPOKIT_EXPORT QString PokitPro::toString (const VoltageRange &range)
 Returns range as a user-friendly string.
 
QTPOKIT_EXPORT QVariant PokitPro::maxValue (const VoltageRange &range)
 Returns the maximum value for range in (integer) millivolts, or the string "Auto".
 
constexpr quint8 operator+ (PokitPro::CapacitanceRange range) noexcept
 Returns range as a quint8 as a convenience for assigning to services' settings.range members.
 
constexpr quint8 operator+ (PokitPro::CurrentRange range) noexcept
 Returns range as a quint8 as a convenience for assigning to services' settings.range members.
 
constexpr quint8 operator+ (PokitPro::ResistanceRange range) noexcept
 Returns range as a quint8 as a convenience for assigning to services' settings.range members.
 
constexpr quint8 operator+ (PokitPro::VoltageRange range) noexcept
 Returns range as a quint8 as a convenience for assigning to services' settings.range members.
 

Detailed Description

Declares the PokitPro namespace.

Definition in file pokitpro.h.

Function Documentation

◆ operator+() [1/4]

constexpr quint8 operator+ ( PokitPro::CapacitanceRange range)
constexprnoexcept

Returns range as a quint8 as a convenience for assigning to services' settings.range members.

Definition at line 82 of file pokitpro.h.

82{ return static_cast<quint8>(range); }

◆ operator+() [2/4]

constexpr quint8 operator+ ( PokitPro::CurrentRange range)
constexprnoexcept

Returns range as a quint8 as a convenience for assigning to services' settings.range members.

Definition at line 85 of file pokitpro.h.

85{ return static_cast<quint8>(range); }

◆ operator+() [3/4]

constexpr quint8 operator+ ( PokitPro::ResistanceRange range)
constexprnoexcept

Returns range as a quint8 as a convenience for assigning to services' settings.range members.

Definition at line 88 of file pokitpro.h.

88{ return static_cast<quint8>(range); }

◆ operator+() [4/4]

constexpr quint8 operator+ ( PokitPro::VoltageRange range)
constexprnoexcept

Returns range as a quint8 as a convenience for assigning to services' settings.range members.

Definition at line 91 of file pokitpro.h.

91{ return static_cast<quint8>(range); }