QKnxPriority Class

The QKnxPriority class is a datapoint type for storing priority. 更多...

頭: #include <QKnxPriority>
qmake: QT += knx
繼承: QKnx1Byte

公共類型

枚舉類 Priority { High, Medium, Low, Void, Invalid }

公共函數

QKnxPriority (QKnxPriority::Priority priority )
QKnxPriority ()
QKnxPriority::Priority priority () const
bool setPriority (QKnxPriority::Priority priority )

詳細描述

This datapoint type is used for parameters, not for runtime interworking. For example, it can be used to store the alarm priority of a configurable digital alarm input in a device.

The range for the value is from High, 0 to Void, 3 .

This is a fixed size datapoint type with the length of 1 byte.

另請參閱 QKnxDatapointType , QKnx1Byte ,和 Qt KNX Datapoint Type Classes .

成員類型文檔編製

enum class QKnxPriority:: Priority

This enum holds the priority stored in the datapoint type.

常量 描述
QKnxPriority::Priority::High 0x00 High
QKnxPriority::Priority::Medium 0x01 Medium
QKnxPriority::Priority::Low 0x02 Low
QKnxPriority::Priority::Void 0x03 Void
QKnxPriority::Priority::Invalid 0xff The value is invalid.

成員函數文檔編製

QKnxPriority:: QKnxPriority ( QKnxPriority::Priority priority )

Creates a fixed size datapoint type with the priority set to priority .

QKnxPriority:: QKnxPriority ()

Creates a fixed size datapoint type with the priority set to High .

QKnxPriority::Priority QKnxPriority:: priority () const

Returns the priority stored in the datapoint type.

另請參閱 setPriority ().

bool QKnxPriority:: setPriority ( QKnxPriority::Priority priority )

Sets the priority stored in the datapoint type to priority .

返迴 true if the byte was set; otherwise returns false .

另請參閱 priority ().