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()
QKnx2ByteUnsignedValue(quint32 value)
bool setValue(quint32 value)
quint32 value() const

Reimplemented Public Functions

virtual bool isValid() const override

Protected Functions

QKnx2ByteUnsignedValue(int subType, quint32 value)

Detailed Description

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

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 - Property data type
  • QKnxTimePeriod10Msec - Time in 10 milliseconds
  • QKnxTimePeriod100Msec - Time in 100 milliseconds
  • QKnxTimePeriodHrs - Time in hours
  • QKnxTimePeriodMin - Time in minutes
  • QKnxTimePeriodMsec - Time in milliseconds
  • QKnxTimePeriodSec - Time in seconds
  • QKnxUEICurrentMilliA - Current in milliampers (no bus poser supply functionality available)
  • QKnxValue2Ucount - Pulses

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

See also QKnxDatapointType.

Member Function Documentation

QKnx2ByteUnsignedValue::QKnx2ByteUnsignedValue()

Creates a fixed size datapoint type with the value 0.

QKnx2ByteUnsignedValue::QKnx2ByteUnsignedValue(quint32 value)

Creates a fixed size datapoint type with the value value.

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

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

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

Reimplemented from QKnxDatapointType::isValid().

bool QKnx2ByteUnsignedValue::setValue(quint32 value)

Sets the value of the datapoint type to value.

See also value().

quint32 QKnx2ByteUnsignedValue::value() const

Returns the value stored in the datapoint type.

See also setValue().

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