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().