QKnxActuatorConnectType Class
The QKnxActuatorConnectType class is a datapoint type for storing the actuator connection type. More...
Header: | #include <QKnxActuatorConnectType> |
qmake: | QT += knx |
Inherits: | QKnx1Byte |
Public Types
enum class | Type { SensorConnection, ControllerConnection, Invalid } |
Public Functions
QKnxActuatorConnectType(Type type) | |
QKnxActuatorConnectType() | |
bool | setType(Type type) |
Type | type() const |
Detailed Description
An actuator can be connected to a sensor or a controller.
This is a fixed size datapoint type with the length of 1 byte.
See also QKnxDatapointType, QKnx1Byte, and Qt KNX Datapoint Type Classes.
Member Type Documentation
enum class QKnxActuatorConnectType::Type
This enum holds the actuator connection type stored in the datapoint type.
Constant | Value | Description |
---|---|---|
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. |
Member Function Documentation
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(Type type)
Sets the actuator connection type stored in the datapoint type to type.
Returns true
if the byte was set; otherwise returns false
.
See also type().
Type QKnxActuatorConnectType::type() const
Returns the actuator connection type stored in the datapoint type.
See also setType().