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 ().