QKnx8BitSet Class
The QKnx8BitSet class is a datapoint type with binary-coded values in all fields. More...
Header: | #include <QKnx8BitSet> |
qmake: | QT += knx |
Inherits: | QKnxFixedSizeDatapointType |
Inherited By: |
Public Functions
QKnx8BitSet(quint8 value) | |
QKnx8BitSet() | |
bool | bit(int index) const |
quint8 | byte() const |
void | setBit(bool value, int index) |
bool | setByte(quint8 value) |
Reimplemented Public Functions
virtual bool | isValid() const override |
Protected Functions
QKnx8BitSet(int subType, quint8 value) |
Detailed Description
This is a fixed size datapoint type with the length of 1 byte and the 8-bit set.
The possible values are: No bits set
(0x00
) and All bits set
(0xff
).
See also QKnxDatapointType and Qt KNX Datapoint Type Classes.
Member Function Documentation
[protected]
QKnx8BitSet::QKnx8BitSet(int subType, quint8 value)
Creates a fixed size datapoint with the subtype subType and the value value.
QKnx8BitSet::QKnx8BitSet(quint8 value)
Creates a fixed size datapoint type with the value value.
QKnx8BitSet::QKnx8BitSet()
Creates a fixed size datapoint type with the 8-bit set to 0
.
bool QKnx8BitSet::bit(int index) const
Returns true
if the bit at index is set, false
otherwise.
See also setBit().
quint8 QKnx8BitSet::byte() const
Creates a fixed size datapoint type with the value set to 0
.
See also setByte().
[override virtual]
bool QKnx8BitSet::isValid() const
Reimplements: QKnxDatapointType::isValid() const.
void QKnx8BitSet::setBit(bool value, int index)
Sets the bit at index to value.
See also bit().
bool QKnx8BitSet::setByte(quint8 value)
Sets the value of the datapoint type to value.
Returns true
if the value was set; otherwise returns false
.
See also byte().
© 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.