Dokit
Internal development documentation
Loading...
Searching...
No Matches
pokitproducts_p.h
1// SPDX-FileCopyrightText: 2022-2023 Paul Colby <git@colby.id.au>
2// SPDX-License-Identifier: LGPL-3.0-or-later
3
4#ifndef QTPOKIT_POKITPRODUCTS_P_H
5#define QTPOKIT_POKITPRODUCTS_P_H
6
8
9#include <QLowEnergyController>
10
12
15
18
19namespace CapacitanceRange {
20 QTPOKIT_EXPORT QString toString(const PokitProduct product, const quint8 range);
21 QTPOKIT_EXPORT QVariant maxValue(const PokitProduct product, const quint8 range);
22}
23
24namespace CurrentRange {
25 QTPOKIT_EXPORT QString toString(const PokitProduct product, const quint8 range);
26 QTPOKIT_EXPORT QVariant maxValue(const PokitProduct product, const quint8 range);
27}
28
29namespace ResistanceRange {
30 QTPOKIT_EXPORT QString toString(const PokitProduct product, const quint8 range);
31 QTPOKIT_EXPORT QVariant maxValue(const PokitProduct product, const quint8 range);
32}
33
34namespace VoltageRange {
35 QTPOKIT_EXPORT QString toString(const PokitProduct product, const quint8 range);
36 QTPOKIT_EXPORT QVariant maxValue(const PokitProduct product, const quint8 range);
37}
38
40
41#endif // QTPOKIT_POKITPRODUCTS_P_H
Encapsulates convenience functions for working with capacitance ranges.
QString toString(const PokitProduct product, const quint8 range)
Returns product's capacitance range as a human-friendly string.
QVariant maxValue(const PokitProduct product, const quint8 range)
Returns the maximum value for product's range in (integer) nanofarads, or the string "Auto".
Encapsulates convenience functions for working with current ranges.
QVariant maxValue(const PokitProduct product, const quint8 range)
Returns the maximum value for product's range in (integer) microamps, or the string "Auto".
QString toString(const PokitProduct product, const quint8 range)
Returns product's current range as a human-friendly string.
Encapsulates convenience functions for working with resistance ranges.
QVariant maxValue(const PokitProduct product, const quint8 range)
Returns the maximum value for product's range in (integer) ohms, or the string "Auto".
QString toString(const PokitProduct product, const quint8 range)
Returns product's current range as a human-friendly string.
Encapsulates convenience functions for working with voltage ranges.
QString toString(const PokitProduct product, const quint8 range)
Returns product's current range as a human-friendly string.
QVariant maxValue(const PokitProduct product, const quint8 range)
Returns the maximum value for product's range in (integer) millivolts, or the string "Auto".
Declares the PokitProduct enumeration, and related helper functions.
QTPOKIT_EXPORT PokitProduct pokitProduct(const QBluetoothDeviceInfo &info)
Returns the PokitProduct corresponding the Bluetotoh device info.
PokitProduct
Pokit products known to, and supported by, the QtPokit library.
QTPOKIT_EXPORT bool isPokitProduct(const QBluetoothDeviceInfo &info)
Returns true if info describes a Pokit device.
#define QTPOKIT_BEGIN_NAMESPACE
Macro for starting the QtPokit library's top-most namespace (if one is defined).
#define QTPOKIT_EXPORT
QtPokit library export/import macro.
#define QTPOKIT_END_NAMESPACE
Macro for ending the QtPokit library's top-most namespace (if one is defined).