QKnx8BitUnsignedValue Class

The QKnx8BitUnsignedValue class is a datapoint type with an 8-bit unsigned value. More...

Header: #include <QKnx8BitUnsignedValue>
qmake: QT += knx
Inherits: QKnxFixedSizeDatapointType

Public Functions

QKnx8BitUnsignedValue()
QKnx8BitUnsignedValue(double value)
bool setValue(double value)
double value() const

Protected Functions

QKnx8BitUnsignedValue(int subType, double value)

Additional Inherited Members

Detailed Description

The QKnx8BitUnsignedValue class is a datapoint type with an 8-bit unsigned 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.

See also QKnxDatapointType and Qt KNX Datapoint Type Classes.

Member Function Documentation

QKnx8BitUnsignedValue::QKnx8BitUnsignedValue()

Creates a fixed size datapoint type with the value 0.0.

QKnx8BitUnsignedValue::QKnx8BitUnsignedValue(double value)

Creates a fixed size datapoint type with the value value.

[protected] QKnx8BitUnsignedValue::QKnx8BitUnsignedValue(int subType, double value)

Creates a fixed size datapoint type with the subtype subType and value value.

bool QKnx8BitUnsignedValue::setValue(double value)

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.

See also value().

double QKnx8BitUnsignedValue::value() const

Returns the value stored in the datapoint type.

See also setValue().

© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.