QKnx2BitSet Class

The QKnx2BitSet class is a fixed size datapoint type with the length of 2 bits. 更多...

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

QKnxAlarmReaction , QKnxOnOffAction ,和 QKnxUpDownAction

公共函数

QKnx2BitSet (quint8 value )
QKnx2BitSet ()
bool setValue (quint8 value )
quint8 value () const

重实现公共函数

virtual bool isValid () const override

保护函数

QKnx2BitSet (int subType , quint8 value )

详细描述

The range for the value is from 0x00 to 0x03 .

另请参阅 QKnxDatapointType , QKnxAlarmReaction , QKnxOnOffAction , QKnxUpDownAction ,和 Qt KNX Datapoint Type Classes .

成员函数文档编制

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

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

QKnx2BitSet:: QKnx2BitSet ( quint8 value )

Creates a fixed size datapoint type with the value value .

QKnx2BitSet:: QKnx2BitSet ()

Creates a fixed size datapoint type with the 2-bit set to 0 .

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

重实现: QKnxDatapointType::isValid () const.

bool QKnx2BitSet:: setValue ( quint8 value )

Sets the value stored in the datapoint type to value .

If the value is outside the allowed range, returns false and does not set the value.

另请参阅 value ().

quint8 QKnx2BitSet:: value () const

Returns the value stored in the datapoint type.

另请参阅 setValue ().