QKnx1Bit Class
The QKnx1Bit class is a boolean datapoint type, such as switch on or off. More...
| Header: | #include <QKnx1Bit> |
| qmake: | QT += knx |
| Inherits: | QKnxFixedSizeDatapointType |
Public Functions
Reimplemented Public Functions
| virtual bool | isValid() const override |
Protected Functions
| QKnx1Bit(int subType, bool bit) |
Detailed Description
This is a fixed size datapoint type with the length of 1 byte, though only one bit is used by the actual implementation.
It is a base class for the following datapoint types:
QKnxAck- Acknowledge command (trigger) for alarms, for example. Possible values areAcknowledgeandNo action (dummy).QKnxAlarm- Possible values areAlarmandNoAlarm.QKnxBinaryValue- Possible values areLowandHigh.QKnxBool- Possible values areFalseandTrue.QKnxDimSendStyle- Dim send style. Possible values areStart/StoporCyclically.QKnxEnable- Possible values areDisableandEnable.QKnxHeatCool- Possible values areCoolingandHeating.QKnxInputSource- Possible values areFixedandCalculated.QKnxInvert- Possible values areNot invertedandInverted.QKnxLogicalFunction- Possible values arelogical function ORandlogical function AND.QKnxOccupancy- Possible values areNot occupiedandOccupied.QKnxOpenClose- Possible values areOpenandClose.QKnxRamp- Possible values areNoRampandRamp.QKnxReset- Possible values areNo action (dummy)andReset command (trigger).QKnxSceneAB- Possible values areScene AandScene B.QKnxShutterBlindsMode- Shutter or blinds mode. Possible values areOnly move Up/Down mode (shutter)andMove up down + StepStop mode (blind).QKnxStart- Possible values areStopandStart.QKnxState- Possible values areInactiveandActive.QKnxStep- Possible values areDecreaseandIncrease.QKnxSwitch- Possible values areOffandOn.QKnxTrigger- Possible values areTriggerandTrigger (also).QKnxUpDown- Possible values areUpandDown.QKnxWindowDoor- Window or door. Possible values areClosedandOpen.
The possible values for this datapoint type are true and false.
See also QKnxDatapointType and Qt KNX Datapoint Type Classes.
Member Function Documentation
[protected] QKnx1Bit::QKnx1Bit(int subType, bool bit)
Creates a fixed size datapoint with the subtype subType and the value bit.
QKnx1Bit::QKnx1Bit(bool bit)
Creates a fixed size datapoint type with the value bit.
QKnx1Bit::QKnx1Bit()
Creates a fixed size datapoint type with the value set to false.
bool QKnx1Bit::bit() const
Returns the value stored in the datapoint type.
See also setBit().
[override virtual] bool QKnx1Bit::isValid() const
Reimplements: QKnxDatapointType::isValid() const.
bool QKnx1Bit::setBit(bool value)
Sets the bit stored in the datapoint type to value.
Returns true if the bit was set; otherwise returns false.
See also bit().
© 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.