QKnx2ByteSignedValue Class

The QKnx2ByteSignedValue class is a datapoint type with a 2-byte signed value. More...

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

Public Functions

QKnx2ByteSignedValue()
QKnx2ByteSignedValue(double value)
bool setValue(double value)
double value() const

Reimplemented Public Functions

virtual bool isValid() const override

Protected Functions

QKnx2ByteSignedValue(int subType, double value)

Detailed Description

The QKnx2ByteSignedValue class is a datapoint type with a 2-byte signed value.

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

It is a base class for the following classes:

  • QKnxDeltaTime10Msec - Time lag in 10 milliseconds
  • QKnxDeltaTime100Msec - Time lag in 100 milliseconds
  • QKnxDeltaTimeHrs - Time lag in hours
  • QKnxDeltaTimeMin - Time lag in minutes
  • QKnxDeltaTimeMsec - Time lag in milliseconds
  • QKnxDeltaTimeSec - Time lag in seconds
  • QKnxPercentV16 - Percentage difference
  • QKnxRotationAngle - Rotation angle in degrees
  • QKnxValue2Count - Pulses difference

Integer values from -32 768 to 32 767 can be encoded in this datapoint type.

See also QKnxDatapointType.

Member Function Documentation

QKnx2ByteSignedValue::QKnx2ByteSignedValue()

Creates a fixed size datapoint type with the value 0.0.

QKnx2ByteSignedValue::QKnx2ByteSignedValue(double value)

Creates a fixed size datapoint type with the value value.

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

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

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

Reimplemented from QKnxDatapointType::isValid().

bool QKnx2ByteSignedValue::setValue(double value)

Sets the value of the datapoint type to value.

See also value().

double QKnx2ByteSignedValue::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.