QKnxUpDownAction Class

The QKnxOnOffAction class is a fixed size datapoint type for storing the up/down action. 更多...

頭: #include <QKnxUpDownAction>
qmake: QT += knx
繼承: QKnx2BitSet

公共類型

枚舉類 動作 { Up, Down, UpDown, DownUp }

公共函數

QKnxUpDownAction (QKnxUpDownAction::Action action )
QKnxUpDownAction ()
QKnxUpDownAction::Action action () const
bool setAction (QKnxUpDownAction::Action action )

詳細描述

The range for the action value is from Minimum Up, 0 to Maximum Down/Up, 3 .

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

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

成員類型文檔編製

enum class QKnxUpDownAction:: 動作

This enum holds the action stored in the datapoint type.

常量
QKnxUpDownAction::Action::Up 0x00
QKnxUpDownAction::Action::Down 0x01
QKnxUpDownAction::Action::UpDown 0x02
QKnxUpDownAction::Action::DownUp 0x03

成員函數文檔編製

QKnxUpDownAction:: QKnxUpDownAction ( QKnxUpDownAction::Action action )

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

QKnxUpDownAction:: QKnxUpDownAction ()

Creates a fixed size datapoint type with the action set to Up .

QKnxUpDownAction::Action QKnxUpDownAction:: action () const

Returns the action stored in the datapoint type.

另請參閱 setAction ().

bool QKnxUpDownAction:: setAction ( QKnxUpDownAction::Action action )

Sets the action stored in the datapoint type to action .

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

另請參閱 action ().