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 quint32 | maxValue (const CurrentRange &range) |
Returns the maximum value for range in microamps, or 0 if range is not a known value for Pokit Meter devices. | |
QTPOKIT_EXPORT QString | toString (const ResistanceRange &range) |
Returns range as a user-friendly string. | |
QTPOKIT_EXPORT quint32 | maxValue (const ResistanceRange &range) |
Returns the maximum value for range in ohms, or 0 if range is not a known value for Pokit Meter devices. | |
QTPOKIT_EXPORT QString | toString (const VoltageRange &range) |
Returns range as a user-friendly string. | |
QTPOKIT_EXPORT quint32 | maxValue (const VoltageRange &range) |
Returns the maximum value for range in millivolts, or 0 if range is not a known value for Pokit Meter devices. | |
static | Q_LOGGING_CATEGORY (lc, "dokit.pokit.products.meter", QtInfoMsg) |
Logging category for this file. | |
Encapsulates details specific to Pokit Meter devices.
|
strong |
Values supported by the Pokit Meter's Range
attributes in *Current
modes.
Enumerator | ||
---|---|---|
_10mA | 0 | Up to 10mA. |
_30mA | 1 | Up to 30mA. |
_150mA | 2 | Up to 150mA. |
_300mA | 3 | Up to 300mA. |
_2A | 4 | Up to 2A. |
AutoRange | 255 | Auto-range. |
Definition at line 20 of file pokitmeter.h.
|
strong |
Values supported by the Pokit Meter's Range
attributes in Resistance
mode.
Enumerator | ||
---|---|---|
_160 | 0 | Up to 160Ω. |
_330 | 1 | Up to 330Ω. |
_890 | 2 | Up to 890Ω. |
_1K5 | 3 | Up to 1.5KΩ. |
_10K | 4 | Up to 10KΩ. |
_100K | 5 | Up to 100KΩ. |
_470K | 6 | Up to 470KΩ. |
_1M | 7 | Up to 1MΩ. |
AutoRange | 255 | Auto-range. |
Definition at line 32 of file pokitmeter.h.
|
strong |
Values supported by the Pokit Meter's Range
attributes in *Voltage
modes.
Enumerator | ||
---|---|---|
_300mV | 0 | Up to 300mV. |
_2V | 1 | Up to 2V. |
_6V | 2 | Up to 6V. |
_12V | 3 | Up to 12V. |
_30V | 4 | Up to 30V. |
_60V | 5 | Up to 60V DC (42V AC). |
AutoRange | 255 | Auto-range. |
Definition at line 47 of file pokitmeter.h.
quint32 PokitMeter::maxValue | ( | const CurrentRange & | range | ) |
Returns the maximum value for range in microamps, or 0 if range is not a known value for Pokit Meter devices.
Definition at line 42 of file pokitmeter.cpp.
References _10mA, _150mA, _2A, _300mA, _30mA, and AutoRange.
Referenced by CurrentRange::maxValue(), ResistanceRange::maxValue(), and VoltageRange::maxValue().
quint32 PokitMeter::maxValue | ( | const ResistanceRange & | range | ) |
Returns the maximum value for range in ohms, or 0 if range is not a known value for Pokit Meter devices.
Definition at line 77 of file pokitmeter.cpp.
References _100K, _10K, _160, _1K5, _1M, _330, _470K, _890, and AutoRange.
quint32 PokitMeter::maxValue | ( | const VoltageRange & | range | ) |
Returns the maximum value for range in millivolts, or 0 if range is not a known value for Pokit Meter devices.
Definition at line 113 of file pokitmeter.cpp.
References _12V, _2V, _300mV, _30V, _60V, _6V, and AutoRange.
QString PokitMeter::toString | ( | const CurrentRange & | range | ) |
Returns range as a user-friendly string.
Definition at line 26 of file pokitmeter.cpp.
References _10mA, _150mA, _2A, _300mA, _30mA, and AutoRange.
Referenced by CurrentRange::toString(), ResistanceRange::toString(), and VoltageRange::toString().
QString PokitMeter::toString | ( | const ResistanceRange & | range | ) |