The QKnx8BitUnsignedValue class is a datapoint type with an 8-bit unsigned value. 更多...
头: | #include <QKnx8BitUnsignedValue> |
qmake: | QT += knx |
继承: | QKnxFixedSizeDatapointType |
QKnx8BitUnsignedValue (double value ) | |
QKnx8BitUnsignedValue () | |
bool | setValue (double value ) |
double | value () const |
QKnx8BitUnsignedValue (int subType , double value ) |
This is a fixed size datapoint type with the length of 1 byte.
Integer values from 0 to 255 can be encoded in this datapoint type.
It is a base class for the following classes:
QKnxScaling
- Percentage from 0 to 100.
QKnxAngle
- Angle in degrees from 0 to 360.
QKnxPercentU8
- Percentage
QKnxDecimalFactor
- Ratio from 0 to 255
QKnxValue1Ucount
- Counter pulses from 0 to 255.
QKnxTariff
- Tariff from 0 to 254.
另请参阅 QKnxDatapointType and Qt KNX Datapoint Type Classes .
[protected]
QKnx8BitUnsignedValue::
QKnx8BitUnsignedValue
(
int
subType
,
double
value
)
Creates a fixed size datapoint type with the subtype subType and value value .
Creates a fixed size datapoint type with the value value .
Creates a fixed size datapoint type with the value
0.0
.
Sets the value of the datapoint type to value .
If the value is outside the allowed range, returns
false
and does not set the value.
另请参阅 value ().
Returns the value stored in the datapoint type.
另请参阅 setValue ().