QKnx1BitControlled Class

The QKnx1BitControlled class is a boolean datapoint type with a control part. More...

Header: #include <QKnx1BitControlled>
qmake: QT += knx
Inherits: QKnxFixedSizeDatapointType

Public Functions

QKnx1BitControlled()
bool controlBit() const
void setControlBit(bool control)
void setValueBit(bool value)
bool valueBit() const

Reimplemented Public Functions

virtual bool isValid() const override

Protected Functions

QKnx1BitControlled(int subType, const QKnxDatapointType &dpt, bool state, bool control)
QKnx1BitControlled(int subType, bool state, bool control)

Detailed Description

This is a fixed size datapoint type with the length of 1 byte, though only two bits are used by the actual implementation.

The right side bit corresponds to the QKnx1Bit datapoint type value, whereas the left side bit represents the control part. For example, switch with priority control.

It is a base class for the following datapoint types:

  • QKnxAlarmControl
  • QKnxBinaryValueControl
  • QKnxBoolControl
  • QKnxDirection1Control - QKnxUpDown with a control part.
  • QKnxDirection2Control - QKnxOpenClose with a control part.
  • QKnxEnableControl
  • QKnxInvertControl
  • QKnxRampControl
  • QKnxStartControl
  • QKnxStateControl
  • QKnxStepControl
  • QKnxSwitchControl

See also QKnxDatapointType, QKnx1Bit, and Qt KNX Datapoint Type Classes.

Member Function Documentation

[protected] QKnx1BitControlled::QKnx1BitControlled(int subType, const QKnxDatapointType &dpt, bool state, bool control)

Creates a fixed size datapoint type with the subtype subType, datapoint type dpt, value state, and control control.

[protected] QKnx1BitControlled::QKnx1BitControlled(int subType, bool state, bool control)

Creates a fixed size datapoint type with the subtype subType, value state, and control control.

QKnx1BitControlled::QKnx1BitControlled()

Creates a fixed size datapoint type with the value and control part set to false.

bool QKnx1BitControlled::controlBit() const

Returns the control stored in the datapoint type.

See also setControlBit().

[override virtual] bool QKnx1BitControlled::isValid() const

Reimplements: QKnxDatapointType::isValid() const.

void QKnx1BitControlled::setControlBit(bool control)

Sets the control part of the datapoint type to control.

See also controlBit().

void QKnx1BitControlled::setValueBit(bool value)

Sets the value of the datapoint type to value.

See also valueBit().

bool QKnx1BitControlled::valueBit() const

Returns the value stored in the datapoint type.

See also setValueBit().

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.