PointToPoint Class

(QKnxNpduFactory::PointToPoint)

The QKnxNpduFactory::PointToPoint class is used to create a valid Network protocol data unit (QKnxNpdu) for application services requesting point to point connection. More...

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

Public Types

enum Mode { Connectionless, ConnectionOriented }

Public Functions

PointToPoint() = delete

Static Public Members

QKnxNpdu createDeviceDescriptorReadNpdu(Mode mode, quint8 descriptorType, quint8 seqNumber = 0)
QKnxNpdu createDeviceDescriptorResponseNpdu(Mode mode, quint8 descriptorType, const QByteArray &deviceDescriptor, quint8 seqNumber = 0)
QKnxNpdu createFileStreamInfoReportNpdu(Mode mode, quint8 fileHandle, quint8 fileBlockSeqNumber, const QByteArray &data, quint8 seqNumber = 0)
QKnxNpdu createFunctionPropertyCommandNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, const QByteArray &data, quint8 seqNumber = 0)
QKnxNpdu createFunctionPropertyStateReadNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, const QByteArray &data, quint8 seqNumber = 0)
QKnxNpdu createFunctionPropertyStateResponseNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, QKnxNpdu::ErrorCode code, const QByteArray &data, quint8 seqNumber = 0)
QKnxNpdu createLinkReadNpdu(Mode mode, quint8 groupObjectNumber, quint8 startIndex, quint8 seqNumber = 0)
QKnxNpdu createLinkResponseNpdu(Mode mode, quint8 groupObjectNumber, quint8 sendingAddress, quint8 startAddress, const QVector<QKnxAddress> &addresses, quint8 seqNumber = 0)
QKnxNpdu createLinkWriteNpdu(Mode mode, quint8 groupObjectNumber, QKnxNpdu::LinkWriteFlags flags, const QKnxAddress &groupAddress, quint8 seqNumber = 0)
QKnxNpdu createMemoryReadNpdu(Mode mode, quint8 number, quint16 address, quint8 seqNumber = 0)
QKnxNpdu createMemoryResponseNpdu(Mode mode, quint8 number, quint16 address, const QByteArray &data, quint8 seqNumber = 0)
QKnxNpdu createMemoryWriteNpdu(Mode mode, quint8 number, quint16 address, const QByteArray &data, quint8 seqNumber = 0)
QKnxNpdu createPropertyDescriptionReadNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, quint8 propertyIndex, quint8 seqNumber = 0)
QKnxNpdu createPropertyDescriptionResponseNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, quint8 propertyIndex, bool writeable, QKnxInterfaceObjectPropertyDataType::Id type, quint16 maxSize, quint8 readLevel, quint8 writeLevel, quint8 seqNumber = 0)
QKnxNpdu createPropertyValueReadNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, quint8 nbElement, quint16 startIndex, quint8 seqNumber = 0)
QKnxNpdu createPropertyValueResponseNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, quint8 nbElement, quint16 startIndex, const QByteArray &data, quint8 seqNumber = 0)
QKnxNpdu createPropertyValueWriteNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, quint8 nbElement, quint16 startIndex, const QByteArray &data, quint8 seqNumber = 0)
QKnxNpdu createRestartNpdu(Mode mode, QKnxNpdu::ResetType type, QKnxNpdu::EraseCode code = QKnxNpdu::EraseCode::Reserved, quint8 channelNumber = 0, quint8 seqNumber = 0)
QKnxNpdu createRestartResponseNpdu(Mode mode, QKnxNpdu::ResetType type, QKnxNpdu::ErrorCode code, quint16 processTime, quint8 seqNumber = 0)

Detailed Description

The QKnxNpduFactory::PointToPoint class is used to create a valid Network protocol data unit (QKnxNpdu) for application services requesting point to point connection.

Those services are accessed using the individual address of the device (QKnxAddress::Individual) in the source address part of the QKnxCemiFrame. They can be used in QKnxNpduFactory::PointToPoint::ConnectionOriented or QKnxNpduFactory::PointToPoint::Connectionless, that is with or without a transport layer connection, respectively.

Member Type Documentation

enum PointToPoint::Mode

ConstantValueDescription
QKnxNpduFactory::PointToPoint::Connectionless0,
QKnxNpduFactory::PointToPoint::ConnectionOriented1 

Member Function Documentation

[delete] PointToPoint::PointToPoint()

Default constructs an instance of PointToPoint.

[static] QKnxNpdu PointToPoint::createDeviceDescriptorReadNpdu(Mode mode, quint8 descriptorType, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createDeviceDescriptorResponseNpdu(Mode mode, quint8 descriptorType, const QByteArray &deviceDescriptor, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createFileStreamInfoReportNpdu(Mode mode, quint8 fileHandle, quint8 fileBlockSeqNumber, const QByteArray &data, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createFunctionPropertyCommandNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, const QByteArray &data, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createFunctionPropertyStateReadNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, const QByteArray &data, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createFunctionPropertyStateResponseNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, QKnxNpdu::ErrorCode code, const QByteArray &data, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createLinkReadNpdu(Mode mode, quint8 groupObjectNumber, quint8 startIndex, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createLinkResponseNpdu(Mode mode, quint8 groupObjectNumber, quint8 sendingAddress, quint8 startAddress, const QVector<QKnxAddress> &addresses, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createLinkWriteNpdu(Mode mode, quint8 groupObjectNumber, QKnxNpdu::LinkWriteFlags flags, const QKnxAddress &groupAddress, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createMemoryReadNpdu(Mode mode, quint8 number, quint16 address, quint8 seqNumber = 0)

Returns a NPDU for Memory Read Application Service with the given number, address and sequence number seqNumber set. Depending on the parameter mode the NPDU shall be used in a connection oriented or connectionless service.

[static] QKnxNpdu PointToPoint::createMemoryResponseNpdu(Mode mode, quint8 number, quint16 address, const QByteArray &data, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createMemoryWriteNpdu(Mode mode, quint8 number, quint16 address, const QByteArray &data, quint8 seqNumber = 0)

Returns a NPDU for Memory Write Application Service with the given number, address, data and sequence number seqNumber set. Depending on the parameter mode the NPDU shall be used in a connection oriented or connectionless service.

[static] QKnxNpdu PointToPoint::createPropertyDescriptionReadNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, quint8 propertyIndex, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createPropertyDescriptionResponseNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, quint8 propertyIndex, bool writeable, QKnxInterfaceObjectPropertyDataType::Id type, quint16 maxSize, quint8 readLevel, quint8 writeLevel, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createPropertyValueReadNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, quint8 nbElement, quint16 startIndex, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createPropertyValueResponseNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, quint8 nbElement, quint16 startIndex, const QByteArray &data, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createPropertyValueWriteNpdu(Mode mode, quint8 objectIndex, QKnxInterfaceObjectProperty property, quint8 nbElement, quint16 startIndex, const QByteArray &data, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createRestartNpdu(Mode mode, QKnxNpdu::ResetType type, QKnxNpdu::EraseCode code = QKnxNpdu::EraseCode::Reserved, quint8 channelNumber = 0, quint8 seqNumber = 0)

[static] QKnxNpdu PointToPoint::createRestartResponseNpdu(Mode mode, QKnxNpdu::ResetType type, QKnxNpdu::ErrorCode code, quint16 processTime, quint8 seqNumber = 0)

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