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