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