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 .
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. |
Creates a fixed size datapoint type with the actuator connection type set to type .
Creates a fixed size datapoint type with the actuator connection type set to
SensorConnection
.
Sets the actuator connection type stored in the datapoint type to type .
返回
true
if the byte was set; otherwise returns
false
.
另请参阅 type ().
Returns the actuator connection type stored in the datapoint type.
另请参阅 setType ().