QKnx2ByteUnsignedValue Class

The QKnx2ByteUnsignedValue class is a datapoint type with a 2-byte unsigned value. More...

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

Public Functions

QKnx2ByteUnsignedValue(quint32 value)
QKnx2ByteUnsignedValue()
bool setValue(quint32 value)
quint32 value() const

Reimplemented Public Functions

virtual bool isValid() const override

Protected Functions

QKnx2ByteUnsignedValue(int subType, quint32 value)

Detailed Description

This is a fixed size datapoint type with the length of 2 bytes.

It is a base class for the following datapoint types:

  • QKnxBrightness - Brightness in LUX
  • QKnxLengthMilliMeter - Length in millimeters
  • QKnxPropDataType - Identifier Interface Object Property data type (no unit)
  • QKnxTimePeriod10Msec - Time in multiples of 10 milliseconds. Not allowed for runtime communication. This datapoint type shall only be used for parameters and diagnostic data or if specified as such in a functional block specification.
  • QKnxTimePeriod100Msec - Time in multiples of 100 milliseconds. Not allowed for runtime communication.
  • QKnxTimePeriodHrs - Time in hours
  • QKnxTimePeriodMin - Time in minutes. Not allowed for runtime communication.
  • QKnxTimePeriodMsec - Time in milliseconds
  • QKnxTimePeriodSec - Time in seconds
  • QKnxUEICurrentMilliA - Current in milliampere. The minimum value is 0, which means that no bus poser supply functionality is available.
  • QKnxValue2Ucount - Pulses

Integer values from 0 to 65 535 can be encoded in this datapoint type.

See also QKnxDatapointType and Qt KNX Datapoint Type Classes.

Member Function Documentation

[protected] QKnx2ByteUnsignedValue::QKnx2ByteUnsignedValue(int subType, quint32 value)

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

QKnx2ByteUnsignedValue::QKnx2ByteUnsignedValue(quint32 value)

Creates a fixed size datapoint type with the value value.

QKnx2ByteUnsignedValue::QKnx2ByteUnsignedValue()

Creates a fixed size datapoint type with the value 0.

[override virtual] bool QKnx2ByteUnsignedValue::isValid() const

Reimplements: QKnxDatapointType::isValid() const.

bool QKnx2ByteUnsignedValue::setValue(quint32 value)

Sets the value of the datapoint type to value.

Returns true if the value was set; otherwise returns false.

See also value().

quint32 QKnx2ByteUnsignedValue::value() const

Returns the value stored in the datapoint type.

See also setValue().

© 2019 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.