QKnxExtendedControlField Class

The QKnxExtendedControlField class represents a 8 bit extended KNX control field. More...

Header: #include <QKnxExtendedControlField>
qmake: QT += knx

Public Types

enum ExtendedFrameFormat { Standard, Lte }

Public Functions

QKnxExtendedControlField() = default
QKnxExtendedControlField(quint8 data)
QKnxExtendedControlField(const QByteArray &data)
QKnxExtendedControlField(const QVector<quint8> &data)
quint8 bytes() const
QKnxAddress::Type destinationAddressType() const
QKnxExtendedControlField::ExtendedFrameFormat format() const
quint8 hopCount() const
void setDestinationAddressType(QKnxAddress::Type address)
void setFormat(QKnxExtendedControlField::ExtendedFrameFormat format)
void setHopCount(quint8 hopCount)
quint8 size() const
QDebug operator<<(QDebug debug, const QKnxExtendedControlField &field)
QDataStream &operator<<(QDataStream &stream, const QKnxExtendedControlField &field)
QDataStream &operator>>(QDataStream &stream, QKnxExtendedControlField &field)

Detailed Description

The QKnxExtendedControlField class represents a 8 bit extended KNX control field.

A KNX frame is made up out of several field, one might be the extended Control field. The extended Control field shall contain the Destination Address Type, Hop Count and Extended Frame Format parameter.

Member Type Documentation

enum QKnxExtendedControlField::ExtendedFrameFormat

Member Function Documentation

[default] QKnxExtendedControlField::QKnxExtendedControlField()

Default constructs an instance of QKnxExtendedControlField.

QKnxExtendedControlField::QKnxExtendedControlField(quint8 data)

Creates a new extended control field from a 8 Bit data value. Hexadecimal, octal and decimal notation are supported.

QKnxExtendedControlField::QKnxExtendedControlField(const QByteArray &data)

Creates a new extended control field from the first byte of the data byte array. Hexadecimal, octal and decimal notation are supported.

Note: The byte array must contain at least one elements.

QKnxExtendedControlField::QKnxExtendedControlField(const QVector<quint8> &data)

Creates a new extended control field from the first byte of the data vector. Hexadecimal, octal and decimal notation are supported.

Note: The vector must contain at least one elements.

quint8 QKnxExtendedControlField::bytes() const

Returns the extended control field as byte or range of bytes.

Note: quint8, QByteArray and QVector<quint8> as well as std::vector<quint8> and std::deque<quint8> are supported as return type.

QKnxExtendedControlField ectrl;

quint8 byte = ectrl.bytes();
auto byteArray = ectrl.bytes<QByteArray>();
auto vector = ectrl.bytes<QVector<quint8>>();

QKnxAddress::Type QKnxExtendedControlField::destinationAddressType() const

See also setDestinationAddressType().

QKnxExtendedControlField::ExtendedFrameFormat QKnxExtendedControlField::format() const

See also setFormat().

quint8 QKnxExtendedControlField::hopCount() const

See also setHopCount().

void QKnxExtendedControlField::setDestinationAddressType(QKnxAddress::Type address)

See also destinationAddressType().

void QKnxExtendedControlField::setFormat(QKnxExtendedControlField::ExtendedFrameFormat format)

See also format().

void QKnxExtendedControlField::setHopCount(quint8 hopCount)

See also hopCount().

quint8 QKnxExtendedControlField::size() const

Related Non-Members

QDebug operator<<(QDebug debug, const QKnxExtendedControlField &field)

Writes the extended control field to the debug stream.

QDataStream &operator<<(QDataStream &stream, const QKnxExtendedControlField &field)

Writes the extended control field to the stream and returns a reference to the stream.

QDataStream &operator>>(QDataStream &stream, QKnxExtendedControlField &field)

Reads the extended control field from the stream and returns a reference to the stream.

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