QKnx1BitControlled Class

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

头: #include <QKnx1BitControlled>
qmake: QT += knx
继承: QKnxFixedSizeDatapointType

公共函数

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

重实现公共函数

virtual bool isValid () const override

保护函数

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

详细描述

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

另请参阅 QKnxDatapointType , QKnx1Bit ,和 Qt KNX Datapoint Type Classes .

成员函数文档编制

[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.

另请参阅 setControlBit ().

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

重实现: QKnxDatapointType::isValid () const.

void QKnx1BitControlled:: setControlBit ( bool control )

Sets the control part of the datapoint type to control .

另请参阅 controlBit ().

void QKnx1BitControlled:: setValueBit ( bool value )

Sets the value of the datapoint type to value .

另请参阅 valueBit ().

bool QKnx1BitControlled:: valueBit () const

Returns the value stored in the datapoint type.

另请参阅 setValueBit ().