QKnxAdditionalInfo Class

The QKnxAdditionalInfo class represents the additional information that can be placed inside a KNX cEMI frame. More...

Header: #include <QKnxAdditionalInfo>
qmake: QT += knx
Inherits: QKnxByteStore (private)

Public Types

enum Type { PlMediumInformation, RfMediumInformation, BusmonitorStatusInfo, TimestampRelative, ..., ManufactorSpecificData }

Public Functions

QKnxAdditionalInfo() = default
QKnxAdditionalInfo(QKnxAdditionalInfo::Type type, const QByteArray &data)
QKnxAdditionalInfo(QKnxAdditionalInfo::Type type, const QVector<quint8> &data)
~QKnxAdditionalInfo() override = default
quint8 dataSize() const
bool isValid() const
QKnxAdditionalInfo::Type type() const

Reimplemented Public Functions

virtual QString toString() const override

Static Public Members

QKnxAdditionalInfo fromBytes(const T &bytes, quint16 index)
QDebug operator<<(QDebug debug, const QKnxAdditionalInfo &info)
QDataStream &operator<<(QDataStream &stream, const QKnxAdditionalInfo &info)
QDataStream &operator>>(QDataStream &stream, QKnxAdditionalInfo &info)

Additional Inherited Members

Detailed Description

The QKnxAdditionalInfo class represents the additional information that can be placed inside a KNX cEMI frame.

Member Type Documentation

enum QKnxAdditionalInfo::Type

ConstantValueDescription
QKnxAdditionalInfo::PlMediumInformation0x01Domain Address used by PL medium.
QKnxAdditionalInfo::RfMediumInformation0x02RF-Info byte (formerly named RF-Ctrl) and KNX Serial Number/DoA and Data Link Layer Frame Number (LFN).
QKnxAdditionalInfo::BusmonitorStatusInfo0x03Busmonitor Error Flags.
QKnxAdditionalInfo::TimestampRelative0x04Relative timestamp; e.g. for L_Raw.ind.
QKnxAdditionalInfo::TimeDelayUntilSending0x05Time delay; e.g. for L_Raw.req.
QKnxAdditionalInfo::ExtendedRelativeTimestamp0x06Device independent time stamp, e.g. for L_Raw.ind or L_Busmon.ind.
QKnxAdditionalInfo::BiBatInformation0x07Contains b7-b4 of the RF KNX-Ctrl field and BiBat Block-number.
QKnxAdditionalInfo::RfMultiInformation0x08RF Multi frequency, call channel and Fast Ack number.
QKnxAdditionalInfo::PreambleAndPostamble0x09Preamble and postamble length.
QKnxAdditionalInfo::RfFastAckInformation0x0aStatus and information about each expected number of Fast Ack (N)
QKnxAdditionalInfo::ManufactorSpecificData0xfeManufacturer specific data, including manufacturer ID (2 byte) and Subfunction ID (1 byte).

Member Function Documentation

[default] QKnxAdditionalInfo::QKnxAdditionalInfo()

Constructs an new, empty, invalid additional info object.

QKnxAdditionalInfo::QKnxAdditionalInfo(QKnxAdditionalInfo::Type type, const QByteArray &data)

Constructs an new additional info object and sets its Type to type and data to data.

QKnxAdditionalInfo::QKnxAdditionalInfo(QKnxAdditionalInfo::Type type, const QVector<quint8> &data)

Constructs an new additional info object and sets its Type to type and data to data.

[default] QKnxAdditionalInfo::~QKnxAdditionalInfo()

Destroys the instance of QKnxAdditionalInfo.

quint8 QKnxAdditionalInfo::dataSize() const

Returns the number of bytes representing the additional info, excluding the byte for Type id and the byte for length information.

[static] QKnxAdditionalInfo QKnxAdditionalInfo::fromBytes(const T &bytes, quint16 index)

bool QKnxAdditionalInfo::isValid() const

This is an overloaded function.

Returns true if this is a valid additional info object; false otherwise.

[override virtual] QString QKnxAdditionalInfo::toString() const

Reimplemented from QKnxByteStore::toString().

Returns the additional info's type, length and the data as string. Type, length and data are formatted in hexadecimal notation. If the additional info is invalid, an empty string is returned.

QKnxAdditionalInfo::Type QKnxAdditionalInfo::type() const

Returns the additional info Type.

Related Non-Members

QDebug operator<<(QDebug debug, const QKnxAdditionalInfo &info)

Writes the KNX cEMI frame's additional info to the debug stream.

QDataStream &operator<<(QDataStream &stream, const QKnxAdditionalInfo &info)

Writes the KNX cEMI frame's additional info to the stream and returns a reference to the stream.

QDataStream &operator>>(QDataStream &stream, QKnxAdditionalInfo &info)

Reads the KNX cEMI frame's additional info 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.