QKnxActuatorConnectType Class

The QKnxActuatorConnectType class is a datapoint type for storing the actuator connection type. 更多...

头: #include <QKnxActuatorConnectType>
qmake: QT += knx
继承: QKnx1Byte

公共类型

enum class Type { SensorConnection, ControllerConnection, Invalid }

公共函数

QKnxActuatorConnectType (QKnxActuatorConnectType::Type type )
QKnxActuatorConnectType ()
bool setType (QKnxActuatorConnectType::Type type )
QKnxActuatorConnectType::Type type () const

详细描述

An actuator can be connected to a sensor or a controller.

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

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

成员类型文档编制

enum class QKnxActuatorConnectType:: Type

This enum holds the actuator connection type stored in the datapoint type.

常量 描述
QKnxActuatorConnectType::Type::SensorConnection 0x01 The actuator is connected to a sensor.
QKnxActuatorConnectType::Type::ControllerConnection 0x02 The actuator is connected to a controller.
QKnxActuatorConnectType::Type::Invalid 0xff The value is invalid.

成员函数文档编制

QKnxActuatorConnectType:: QKnxActuatorConnectType ( QKnxActuatorConnectType::Type type )

Creates a fixed size datapoint type with the actuator connection type set to type .

QKnxActuatorConnectType:: QKnxActuatorConnectType ()

Creates a fixed size datapoint type with the actuator connection type set to SensorConnection .

bool QKnxActuatorConnectType:: setType ( QKnxActuatorConnectType::Type type )

Sets the actuator connection type stored in the datapoint type to type .

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

另请参阅 type ().

QKnxActuatorConnectType::Type QKnxActuatorConnectType:: type () const

Returns the actuator connection type stored in the datapoint type.

另请参阅 setType ().