The QKnx2BitSet class is a fixed size datapoint type with the length of 2 bits. 更多...
头: | #include <QKnx2BitSet> |
qmake: | QT += knx |
继承: | QKnxFixedSizeDatapointType |
继承者: |
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 .
Creates a fixed size datapoint type with the value value .
Creates a fixed size datapoint type with the 2-bit set to
0
.
[override virtual]
bool
QKnx2BitSet::
isValid
() const
重实现: QKnxDatapointType::isValid () const.
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 ().
Returns the value stored in the datapoint type.
另请参阅 setValue ().