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 areAcknowledge
andNo action (dummy)
.QKnxAlarm
- Possible values areAlarm
andNoAlarm
.QKnxBinaryValue
- Possible values areLow
andHigh
.QKnxBool
- Possible values areFalse
andTrue
.QKnxDimSendStyle
- Dim send style. Possible values areStart/Stop
orCyclically
.QKnxEnable
- Possible values areDisable
andEnable
.QKnxHeatCool
- Possible values areCooling
andHeating
.QKnxInputSource
- Possible values areFixed
andCalculated
.QKnxInvert
- Possible values areNot inverted
andInverted
.QKnxLogicalFunction
- Possible values arelogical function OR
andlogical function AND
.QKnxOccupancy
- Possible values areNot occupied
andOccupied
.QKnxOpenClose
- Possible values areOpen
andClose
.QKnxRamp
- Possible values areNoRamp
andRamp
.QKnxReset
- Possible values areNo action (dummy)
andReset command (trigger)
.QKnxSceneAB
- Possible values areScene A
andScene B
.QKnxShutterBlindsMode
- Shutter or blinds mode. Possible values areOnly move Up/Down mode (shutter)
andMove up down + StepStop mode (blind)
.QKnxStart
- Possible values areStop
andStart
.QKnxState
- Possible values areInactive
andActive
.QKnxStep
- Possible values areDecrease
andIncrease
.QKnxSwitch
- Possible values areOff
andOn
.QKnxTrigger
- Possible values areTrigger
andTrigger (also)
.QKnxUpDown
- Possible values areUp
andDown
.QKnxWindowDoor
- Window or door. Possible values areClosed
andOpen
.
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().