QKnx8BitSignedValue Class

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

头: #include <QKnx8BitSignedValue>
qmake: QT += knx
继承: QKnxFixedSizeDatapointType

公共函数

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

保护函数

QKnx8BitSignedValue (int subType , qint8 value )

详细描述

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.

另请参阅 QKnxDatapointType and Qt KNX Datapoint Type Classes .

成员函数文档编制

[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 .

另请参阅 value ().

qint8 QKnx8BitSignedValue:: value () const

Returns the value stored in the datapoint type.

另请参阅 setValue ().