QKnx8BitSignedValue Class

The QKnx8BitSignedValue class is a datapoint type with an 8-bit signed value. More...

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

Public Functions

QKnx8BitSignedValue(qint8 value)
QKnx8BitSignedValue()
void setValue(qint8 value)
qint8 value() const

Protected Functions

QKnx8BitSignedValue(int subType, qint8 value)

Detailed Description

This is a fixed size datapoint type with the length of 1 byte.

Integer values from -128 to 127 can be encoded in this datapoint type.

It is a base class for the following classes:

  • QKnxPercentV8 - Percentage.
  • QKnxValue1Count - Counter pulses.

See also QKnxDatapointType and Qt KNX Datapoint Type Classes.

Member Function Documentation

[protected] QKnx8BitSignedValue::QKnx8BitSignedValue(int subType, qint8 value)

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

QKnx8BitSignedValue::QKnx8BitSignedValue(qint8 value)

Creates a fixed size datapoint type with the value value.

QKnx8BitSignedValue::QKnx8BitSignedValue()

Creates a fixed size datapoint type with the value 0.

void QKnx8BitSignedValue::setValue(qint8 value)

Sets the value of the datapoint type to value.

See also value().

qint8 QKnx8BitSignedValue::value() const

Returns the value stored in the datapoint type.

See also setValue().

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