Dokit
Internal development documentation
Loading...
Searching...
No Matches
pokitproducts_p.h
1// SPDX-FileCopyrightText: 2022-2025 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 quint32 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 quint32 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 quint32 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 quint32 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.
quint32 maxValue(const PokitProduct product, const quint8 range)
Returns the maximum value for range in nanofarads, or 0 if range is not a known value for product.
Encapsulates convenience functions for working with current ranges.
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 microamps, or 0 if range is not a known value for product.
Encapsulates convenience functions for working with resistance ranges.
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.
Encapsulates convenience functions for working with voltage ranges.
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.
QString toString(const PokitProduct product, const quint8 range)
Returns product's current range as a human-friendly string.
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).