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

Encapsulates convenience functions for working with resistance 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 ohms, or 0 if range is not a known value for product.
 

Detailed Description

Encapsulates convenience functions for working with resistance ranges.

Function Documentation

◆ maxValue()

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

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

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

Definition at line 242 of file pokitproducts.cpp.

243{
244 switch (product) {
246 return PokitMeter::maxValue(static_cast<PokitMeter::ResistanceRange>(range));
248 return PokitPro::maxValue(static_cast<PokitPro::ResistanceRange>(range));
249 }
250 qCWarning(lc).noquote() << Private::tr("Unknown PokitProduct value: %1").arg((int)product);
251 return 0;
252}
ResistanceRange
Values supported by the Pokit Meter's Range attributes in Resistance mode.
Definition pokitmeter.h:32
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 ...
ResistanceRange
Values supported by the Pokit Pro's Range attributes in Resistance mode.
Definition pokitpro.h:45
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 MultimeterService::maxValue().

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

◆ toString()

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

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

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

Definition at line 224 of file pokitproducts.cpp.

225{
226 switch (product) {
228 return PokitMeter::toString(static_cast<PokitMeter::ResistanceRange>(range));
230 return PokitPro::toString(static_cast<PokitPro::ResistanceRange>(range));
231 }
232 qCWarning(lc).noquote() << Private::tr("Unknown PokitProduct value: %1").arg((int)product);
233 return QString();
234}
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 MultimeterService::toString().

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