Dokit
Native Qt library for Pokit devices
Loading...
Searching...
No Matches
pokitmeter.h File Reference

Declares the PokitMeter namespace. More...

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

Go to the source code of this file.

Namespaces

namespace  PokitMeter
 Encapsulates details specific to Pokit Meter devices.
 

Enumerations

enum class  PokitMeter::CurrentRange : quint8 {
  PokitMeter::_10mA = 0 , PokitMeter::_30mA = 1 , PokitMeter::_150mA = 2 , PokitMeter::_300mA = 3 ,
  PokitMeter::_2A = 4 , PokitMeter::AutoRange = 255
}
 Values supported by the Pokit Meter's Range attributes in *Current modes. More...
 
enum class  PokitMeter::ResistanceRange : quint8 {
  PokitMeter::_160 = 0 , PokitMeter::_330 = 1 , PokitMeter::_890 = 2 , PokitMeter::_1K5 = 3 ,
  PokitMeter::_10K = 4 , PokitMeter::_100K = 5 , PokitMeter::_470K = 6 , PokitMeter::_1M = 7 ,
  PokitMeter::AutoRange = 255
}
 Values supported by the Pokit Meter's Range attributes in Resistance mode. More...
 
enum class  PokitMeter::VoltageRange : quint8 {
  PokitMeter::_300mV = 0 , PokitMeter::_2V = 1 , PokitMeter::_6V = 2 , PokitMeter::_12V = 3 ,
  PokitMeter::_30V = 4 , PokitMeter::_60V = 5 , PokitMeter::AutoRange = 255
}
 Values supported by the Pokit Meter's Range attributes in *Voltage modes. More...
 

Functions

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

Detailed Description

Declares the PokitMeter namespace.