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(quint8 value)
QKnx2BitSet()
bool setValue(quint8 value)
quint8 value() const

Reimplemented Public Functions

virtual bool isValid() const override

Protected Functions

QKnx2BitSet(int subType, quint8 value)

Detailed Description

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

[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

Reimplements: 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.

See also value().

quint8 QKnx2BitSet::value() const

Returns the value stored in the datapoint type.

See also setValue().

© 2024 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.