Dokit
Internal development documentation
|
Encapsulates details specific to Pokit Meter devices. More...
Enumerations | |
enum class | CurrentRange : quint8 { _10mA = 0 , _30mA = 1 , _150mA = 2 , _300mA = 3 , _2A = 4 , AutoRange = 255 } |
Values supported by the Pokit Meter's Range attributes in *Current modes. More... | |
enum class | ResistanceRange : quint8 { _160 = 0 , _330 = 1 , _890 = 2 , _1K5 = 3 , _10K = 4 , _100K = 5 , _470K = 6 , _1M = 7 , AutoRange = 255 } |
Values supported by the Pokit Meter's Range attributes in Resistance mode. More... | |
enum class | VoltageRange : quint8 { _300mV = 0 , _2V = 1 , _6V = 2 , _12V = 3 , _30V = 4 , _60V = 5 , AutoRange = 255 } |
Values supported by the Pokit Meter's Range attributes in *Voltage modes. More... | |
Functions | |
QTPOKIT_EXPORT QString | toString (const CurrentRange &range) |
Returns range as a user-friendly string. | |
QTPOKIT_EXPORT QVariant | maxValue (const CurrentRange &range) |
Returns the maximum value for range in (integer) microamps, or the string "Auto". | |
QTPOKIT_EXPORT QString | toString (const ResistanceRange &range) |
Returns range as a user-friendly string. | |
QTPOKIT_EXPORT QVariant | maxValue (const ResistanceRange &range) |
Returns the maximum value for range in (integer) ohms, or the string "Auto". | |
QTPOKIT_EXPORT QString | toString (const VoltageRange &range) |
Returns range as a user-friendly string. | |
QTPOKIT_EXPORT QVariant | maxValue (const VoltageRange &range) |
Returns the maximum value for range in (integer) millivolts, or the string "Auto". | |
Encapsulates details specific to Pokit Meter devices.
|
strong |
Values supported by the Pokit Meter's Range
attributes in *Current
modes.
Enumerator | |
---|---|
_10mA | Up to 10mA. |
_30mA | Up to 30mA. |
_150mA | Up to 150mA. |
_300mA | Up to 300mA. |
_2A | Up to 2A. |
AutoRange | Auto-range. |
Definition at line 22 of file pokitmeter.h.
|
strong |
Values supported by the Pokit Meter's Range
attributes in Resistance
mode.
Enumerator | |
---|---|
_160 | Up to 160Ω. |
_330 | Up to 330Ω. |
_890 | Up to 890Ω. |
_1K5 | Up to 1.5KΩ. |
_10K | Up to 10KΩ. |
_100K | Up to 100KΩ. |
_470K | Up to 470KΩ. |
_1M | Up to 1MΩ. |
AutoRange | Auto-range. |
Definition at line 34 of file pokitmeter.h.
|
strong |
Values supported by the Pokit Meter's Range
attributes in *Voltage
modes.
Enumerator | |
---|---|
_300mV | Up to 300mV. |
_2V | Up to 2V. |
_6V | Up to 6V. |
_12V | Up to 12V. |
_30V | Up to 30V. |
_60V | Up to 60V DC (42V AC). |
AutoRange | Auto-range. |
Definition at line 49 of file pokitmeter.h.
QVariant PokitMeter::maxValue | ( | const CurrentRange & | range | ) |
Returns the maximum value for range in (integer) microamps, or the string "Auto".
If range is not a known valid value, then an null QVariant is returned.
Definition at line 33 of file pokitmeter.cpp.
References _10mA, _150mA, _2A, _300mA, _30mA, AutoRange, and QCoreApplication::translate().
Referenced by CurrentRange::maxValue(), ResistanceRange::maxValue(), and VoltageRange::maxValue().
QVariant PokitMeter::maxValue | ( | const ResistanceRange & | range | ) |
Returns the maximum value for range in (integer) ohms, or the string "Auto".
If range is not a known valid value, then an null QVariant is returned.
Definition at line 67 of file pokitmeter.cpp.
References _100K, _10K, _160, _1K5, _1M, _330, _470K, _890, AutoRange, and QCoreApplication::translate().
QVariant PokitMeter::maxValue | ( | const VoltageRange & | range | ) |
Returns the maximum value for range in (integer) millivolts, or the string "Auto".
If range is not a known valid value, then an null QVariant is returned.
Definition at line 102 of file pokitmeter.cpp.
References _12V, _2V, _300mV, _30V, _60V, _6V, AutoRange, and QCoreApplication::translate().
QString PokitMeter::toString | ( | const CurrentRange & | range | ) |
Returns range as a user-friendly string.
Definition at line 16 of file pokitmeter.cpp.
References _10mA, _150mA, _2A, _300mA, _30mA, AutoRange, and QCoreApplication::translate().
Referenced by CurrentRange::toString(), ResistanceRange::toString(), and VoltageRange::toString().
QString PokitMeter::toString | ( | const ResistanceRange & | range | ) |
Returns range as a user-friendly string.
Definition at line 47 of file pokitmeter.cpp.
References _100K, _10K, _160, _1K5, _1M, _330, _470K, _890, AutoRange, and QCoreApplication::translate().
QString PokitMeter::toString | ( | const VoltageRange & | range | ) |
Returns range as a user-friendly string.
Definition at line 84 of file pokitmeter.cpp.
References _12V, _2V, _300mV, _30V, _60V, _6V, AutoRange, and QCoreApplication::translate().