Dokit
Internal development documentation
Loading...
Searching...
No Matches
VoltageRange Namespace Reference

Encapsulates convenience functions for working with voltage ranges. More...

Functions

QString toString (const PokitProduct product, const quint8 range)
 Returns product's current range as a human-friendly string.
 
quint32 maxValue (const PokitProduct product, const quint8 range)
 Returns the maximum value for range in millivolts, or 0 if range is not a known value for product.
 

Detailed Description

Encapsulates convenience functions for working with voltage ranges.

Function Documentation

◆ maxValue()

QTPOKIT_EXPORT quint32 VoltageRange::maxValue ( const PokitProduct product,
const quint8 range )

Returns the maximum value for range in millivolts, or 0 if range is not a known value for product.

See also
PokitMeter::maxValue(const PokitMeter::VoltageRange &range)
PokitPro::maxValue(const PokitPro::VoltageRange &range)

Definition at line 283 of file pokitproducts.cpp.

284{
285 switch (product) {
287 return PokitMeter::maxValue(static_cast<PokitMeter::VoltageRange>(range));
289 return PokitPro::maxValue(static_cast<PokitPro::VoltageRange>(range));
290 }
291 qCWarning(lc).noquote() << Private::tr("Unknown PokitProduct value: %1").arg((int)product);
292 return 0;
293}
VoltageRange
Values supported by the Pokit Meter's Range attributes in *Voltage modes.
Definition pokitmeter.h:47
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 ...
VoltageRange
Values supported by the Pokit Pro's Range attributes in *Voltage modes.
Definition pokitpro.h:63
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:49
@ PokitPro
Pokit Pro.
@ PokitMeter
Pokit Meter.

References PokitMeter::maxValue(), PokitPro::maxValue(), PokitMeter, and PokitPro.

Referenced by DataLoggerService::maxValue(), DsoService::maxValue(), and MultimeterService::maxValue().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

QTPOKIT_EXPORT QString VoltageRange::toString ( const PokitProduct product,
const quint8 range )

Returns product's current range as a human-friendly string.

See also
PokitMeter::toString(const PokitMeter::VoltageRange &range)
PokitPro::toString(const PokitPro::VoltageRange &range)

Definition at line 265 of file pokitproducts.cpp.

266{
267 switch (product) {
269 return PokitMeter::toString(static_cast<PokitMeter::VoltageRange>(range));
271 return PokitPro::toString(static_cast<PokitPro::VoltageRange>(range));
272 }
273 qCWarning(lc).noquote() << Private::tr("Unknown PokitProduct value: %1").arg((int)product);
274 return QString();
275}
QTPOKIT_EXPORT QString toString(const CurrentRange &range)
Returns range as a user-friendly string.
QTPOKIT_EXPORT QString toString(const CapacitanceRange &range)
Returns range as a user-friendly string.
Definition pokitpro.cpp:35

References QString::arg(), PokitMeter, PokitPro, PokitMeter::toString(), and PokitPro::toString().

Referenced by DataLoggerService::toString(), DsoService::toString(), and MultimeterService::toString().

Here is the call graph for this function:
Here is the caller graph for this function: