QKnx2BitSet Class

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

Header: #include <QKnx2BitSet>
qmake: QT += knx
Inherits: QKnxFixedSizeDatapointType
Inherited By:

QKnxAlarmReaction, QKnxOnOffAction, and QKnxUpDownAction

Public Functions

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

Reimplemented Public Functions

virtual bool isValid() const override

Protected Functions

QKnx2BitSet(int subType, quint8 value)

Additional Inherited Members

Detailed Description

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

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

See also QKnxDatapointType, QKnxAlarmReaction, QKnxOnOffAction, QKnxUpDownAction, and Qt KNX Datapoint Type Classes.

Member Function Documentation

QKnx2BitSet::QKnx2BitSet()

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

QKnx2BitSet::QKnx2BitSet(quint8 value)

Creates a fixed size datapoint type with the value value.

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

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

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

Reimplemented from QKnxDatapointType::isValid().

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.

See also value().

quint8 QKnx2BitSet::value() const

Returns the value stored in the datapoint type.

See also setValue().

© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.