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