QKnx Namespace

Contains miscellaneous identifiers used throughout the QtKnx 库。 更多...

头: #include <QKnx>
qmake: QT += knx

    名称空间

    namespace Ets
    namespace NetIp

    类型

    enum class EmiType { Unknown, EMI1, EMI2, cEMI }
    flags EmiTypes
    enum class InterfaceFeature { Unknown, SupportedEmiType, HostDeviceDescriptorType0, BusConnectionStatus, KnxManufacturerCode, …, InterfaceFeatureInfoServiceEnable }
    enum class MediumStatus { Unknown, CommunicationPossible, CommunicationImpossible }
    enum class MediumType { Unknown, TP, PL, RF, NetIP }
    enum class ReturnCode { Success, SuccessWithCrc, MemoryError, CommandInvalid, CommandImpossible, …, Error }

    函数

    bool isInterfaceFeature (QKnx::InterfaceFeature feature )

    详细描述

    名称空间

    namespace QKnx:: Ets

    This namespace was introduced in Qt 5.13.

    namespace QKnx:: NetIp

    类型文档编制

    enum class QKnx:: EmiType
    flags QKnx:: EmiTypes

    This enum describes the various external message interface (EMI) types supported by KNX bus.

    常量 描述
    QKnx::EmiType::Unknown 0x00 The supported EMI type is unknown.
    QKnx::EmiType::EMI1 0x01 The supported EMI is type 1 used by bus coupler units (BCU) model type 1.
    QKnx::EmiType::EMI2 0x02 The supported EMI is type 2 used by bus coupler units (BCU) model type 2.
    QKnx::EmiType::cEMI 0x04 The supported EMI type is known as common EMI and a generic structure for medium independent KNX messages.

    该枚举在 Qt 5.12 引入或被修改。

    The EmiTypes type is a typedef for QFlags <EmiType>. It stores an OR combination of EmiType values.

    enum class QKnx:: InterfaceFeature

    This enumeration contains the values to identify an interface feature service (also known as device feature).

    常量 描述
    QKnx::InterfaceFeature::Unknown 0x00 The used feature service is unknown.
    QKnx::InterfaceFeature::SupportedEmiType 0x01 Getting the supported EMI type(s).
    QKnx::InterfaceFeature::HostDeviceDescriptorType0 0x02 Getting the local device descriptor type 0 for possible local device management.
    QKnx::InterfaceFeature::BusConnectionStatus 0x03 Getting and informing on the bus connection status.
    QKnx::InterfaceFeature::KnxManufacturerCode 0x04 Getting the manufacturer code of the bus access server.
    QKnx::InterfaceFeature::ActiveEmiType 0x05 Getting and setting the EMI type to use.
    QKnx::InterfaceFeature::IndividualAddress 0x06 Getting the individual address used by the bus interface.
    QKnx::InterfaceFeature::MaximumApduLength 0x07 Getting the maximal APDU-length that can be transported over a KNXnet/IP tunneling connection.
    QKnx::InterfaceFeature::InterfaceFeatureInfoServiceEnable 0x08 Controlling the use of the info feature service by the interface.

    该枚举在 Qt 5.12 引入或被修改。

    enum class QKnx:: MediumStatus

    This enum type holds the medium status if the KNXnet/IP router or server supports extended device information.

    常量 描述
    QKnx::MediumStatus::Unknown 0xff The medium status is unknown. Most likely the discovered KNXnet/IP router or server does not support extended device information.
    QKnx::MediumStatus::CommunicationPossible 0x00 Communication to a KNX twisted pair 1 (TP1) network via the discovered KNXnet/IP router or server is possible.
    QKnx::MediumStatus::CommunicationImpossible 0x01 Communication to a KNX TP1 network via the discovered KNXnet/IP router or server is not possible.

    该枚举在 Qt 5.12 引入或被修改。

    enum class QKnx:: MediumType

    This enum describes the various medium types supported by KNX bus.

    常量 描述
    QKnx::MediumType::Unknown 0x00 The supported medium type is unknown.
    QKnx::MediumType::TP 0x01 The supported medium type is twisted pair 1.
    QKnx::MediumType::PL 0x04 The supported medium type is power-line 110.
    QKnx::MediumType::RF 0x10 The supported medium type is radio frequency.
    QKnx::MediumType::NetIP 0x20 The supported medium type is KNXnet/IP.

    enum class QKnx:: ReturnCode

    This enumeration contains the generic return codes used in the KNX specification.

    常量 描述
    QKnx::ReturnCode::Success 0x00 The service, function, or command was executed successfully, without additional information.
    QKnx::ReturnCode::SuccessWithCrc 0x01 Positive confirmation of a message with CRC16-CCITT (beginning after the APCI octet, over received data including address and number of data octets).
    QKnx::ReturnCode::MemoryError 0xf1 Memory cannot be accessed at all or only with faults.
    QKnx::ReturnCode::CommandInvalid 0xf2 The command is not supported by this server.
    QKnx::ReturnCode::CommandImpossible 0xf3 The command is supported and well formatted, but it cannot be executed, because a dependency is not fulfilled.
    QKnx::ReturnCode::LengthExceedsMaxApduLength 0xf4 The requested data will not fit into a frame supported by this server. This return code indicates device limitations of the maximum supported frame length while accessing the resources of the device, such as properties, function properties, and memory.
    QKnx::ReturnCode::DataOverflow 0xf5 An attempt was made to write data beyond what is reserved for the addressed resource.
    QKnx::ReturnCode::DataMin 0xf6 The write value was too low. If the value is lower than the lowest supported value, then preferably this value shall be given instead of Value not supported .
    QKnx::ReturnCode::DataMax 0xf7 The write value was too high. If the value is higher than the highest supported value, then preferably this value shall be given instead of Value not supported .
    QKnx::ReturnCode::DataVoid 0xf8 The service or the function (property) is supported, but the requested data is not valid for this receiver. This value shall also be given if the requested data contains an enumeration value that is not supported, within the supported ranges.
    QKnx::ReturnCode::TemporarilyNotAvailable 0xf9 The data could be written, but it is not possible at the time, because another management client (MaC) is accessing the data or the data is currently processed by a management server (MaS) (for example, being flashed or being renewed).
    QKnx::ReturnCode::AccessWriteOnly 0xfa Read access was attempted to a write only service or resource. This means resources such as properties, function properties, or memory that can be written, but that cannot be read.
    QKnx::ReturnCode::AccessReadOnly 0xfb Write access was attempted to a read only service or resource. This means resources such as properties, function properties, or memory that can be read, but that cannot be written.
    QKnx::ReturnCode::AccessDenied 0xfc The access to the data or function was denied because of authorization reasons, authorize request, or KNX security.
    QKnx::ReturnCode::AddressVoid 0xfd The interface object or the property is not present, or the index is out of range.
    QKnx::ReturnCode::DataTypeConflict 0xfe Write access with a wrong data type (datapoint length).
    QKnx::ReturnCode::Error 0xff The service, function, or command has failed without additional information about the problem.

    该枚举在 Qt 5.12 引入或被修改。

    函数文档编制

    bool QKnx:: isInterfaceFeature ( QKnx::InterfaceFeature feature )

    返回 true if the specified feature is a part of the InterfaceFeature enumeration; otherwise returns false .

    该函数在 Qt 5.12 引入。