QKnxAlarmReaction Class

The QKnxAlarmReaction class is a fixed size datapoint type for storing the alarm reaction. 更多...

头: #include <QKnxAlarmReaction>
qmake: QT += knx
继承: QKnx2BitSet

公共类型

enum class 闹钟 { NoAlarm, AlarmUp, AlarmDown }

公共函数

QKnxAlarmReaction (QKnxAlarmReaction::Alarm alarm )
QKnxAlarmReaction ()
QKnxAlarmReaction::Alarm alarm () const
bool setAlarm (QKnxAlarmReaction::Alarm alarm )

详细描述

The range for the alarm value is from No alarm is used, 0 to Alarm position is down, 2 .

This is a fixed size datapoint type with the length of 2 bits.

另请参阅 QKnxDatapointType , QKnxOnOffAction , QKnxUpDownAction ,和 Qt KNX Datapoint Type Classes .

成员类型文档编制

enum class QKnxAlarmReaction:: 闹钟

This enum holds the alarm reaction stored in the datapoint type.

常量 描述
QKnxAlarmReaction::Alarm::NoAlarm 0x00 No alarm is used.
QKnxAlarmReaction::Alarm::AlarmUp 0x01 Alarm position is up.
QKnxAlarmReaction::Alarm::AlarmDown 0x02 Alarm position is down.

成员函数文档编制

QKnxAlarmReaction:: QKnxAlarmReaction ( QKnxAlarmReaction::Alarm alarm )

Creates a fixed size datapoint type with the alarm reaction set to alarm .

QKnxAlarmReaction:: QKnxAlarmReaction ()

Creates a fixed size datapoint type with the alarm reaction set to NoAlarm .

QKnxAlarmReaction::Alarm QKnxAlarmReaction:: alarm () const

Returns the alarm reaction stored in the datapoint type.

另请参阅 setAlarm ().

bool QKnxAlarmReaction:: setAlarm ( QKnxAlarmReaction::Alarm alarm )

Sets the alarm reaction stored in the datapoint type to alarm .

返回 true if the value was set; otherwise returns false .

另请参阅 alarm ().