QKnx1Byte Class

The QKnx1Byte class is a fixed size datapoint type with the length of 1 byte. 更多...

頭: #include <QKnx1Byte>
qmake: QT += knx
繼承: QKnxFixedSizeDatapointType
繼承者:
15 types

QKnxActuatorConnectType , QKnxAlarmClassType , QKnxApplicationArea , QKnxBeaufortWindForceScale , QKnxBuildingMode , QKnxCloudCover , QKnxErrorClassHvac , QKnxErrorClassSystem , QKnxLightApplicationMode , QKnxOccupyMode , QKnxPriority , QKnxPsuMode , QKnxScloMode , QKnxSensorSelect ,和 QKnxTimeDelay

公共函數

QKnx1Byte (quint8 value )
QKnx1Byte ()
bool setValue (quint8 value )
quint8 value () const

重實現公共函數

virtual bool isValid () const override

保護函數

QKnx1Byte (int subType , quint8 value )

詳細描述

This datapoint type encodes an absolute value between 0 and 255 .

另請參閱 QKnxDatapointType and Qt KNX Datapoint Type Classes .

成員函數文檔編製

[protected] QKnx1Byte:: QKnx1Byte ( int subType , quint8 value )

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

QKnx1Byte:: QKnx1Byte ( quint8 value )

Creates a fixed size datapoint type with the value value .

QKnx1Byte:: QKnx1Byte ()

Creates a fixed size datapoint type with the value set to 0 .

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

重實現: QKnxDatapointType::isValid () const.

bool QKnx1Byte:: setValue ( quint8 value )

Sets the byte stored in the datapoint type to value .

返迴 true if the byte was set; otherwise returns false .

另請參閱 value ().

quint8 QKnx1Byte:: value () const

Returns the value stored in the datapoint type.

另請參閱 setValue ().