QKnx8BitUnsignedValue Class

The QKnx8BitUnsignedValue class is a datapoint type with an 8-bit unsigned value. 更多...

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

公共函数

QKnx8BitUnsignedValue (double value )
QKnx8BitUnsignedValue ()
bool setValue (double value )
double value () const

保护函数

QKnx8BitUnsignedValue (int subType , double value )

详细描述

This is a fixed size datapoint type with the length of 1 byte.

Integer values from 0 to 255 can be encoded in this datapoint type.

It is a base class for the following classes:

  • QKnxScaling - Percentage from 0 to 100.
  • QKnxAngle - Angle in degrees from 0 to 360.
  • QKnxPercentU8 - Percentage
  • QKnxDecimalFactor - Ratio from 0 to 255
  • QKnxValue1Ucount - Counter pulses from 0 to 255.
  • QKnxTariff - Tariff from 0 to 254.

另请参阅 QKnxDatapointType and Qt KNX Datapoint Type Classes .

成员函数文档编制

[protected] QKnx8BitUnsignedValue:: QKnx8BitUnsignedValue ( int subType , double value )

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

QKnx8BitUnsignedValue:: QKnx8BitUnsignedValue ( double value )

Creates a fixed size datapoint type with the value value .

QKnx8BitUnsignedValue:: QKnx8BitUnsignedValue ()

Creates a fixed size datapoint type with the value 0.0 .

bool QKnx8BitUnsignedValue:: setValue ( double value )

Sets the value of the datapoint type to value .

If the value is outside the allowed range, returns false and does not set the value.

另请参阅 value ().

double QKnx8BitUnsignedValue:: value () const

Returns the value stored in the datapoint type.

另请参阅 setValue ().