QKnx2ByteSignedValue Class

The QKnx2ByteSignedValue class is a datapoint type with a 2-byte signed value. 更多...

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

公共函数

QKnx2ByteSignedValue (double value )
QKnx2ByteSignedValue ()
bool setValue (double value )
double value () const

重实现公共函数

virtual bool isValid () const override

保护函数

QKnx2ByteSignedValue (int subType , double value )

详细描述

This is a fixed size datapoint type with the length of 2 bytes.

It is a base class for the following classes:

  • QKnxDeltaTime10Msec - Time lag in multiples of 10 milliseconds. Not allowed for runtime communication. This datapoint type shall only be used for parameters and diagnostic data or if specified as such in a functional block specification.
  • QKnxDeltaTime100Msec - Time lag in multiples of 100 milliseconds. Not allowed for runtime communication.
  • QKnxDeltaTimeHrs - Time lag in hours
  • QKnxDeltaTimeMin - Time lag in minutes. Not allowed for runtime communication.
  • QKnxDeltaTimeMsec - Time lag in milliseconds
  • QKnxDeltaTimeSec - Time lag in seconds
  • QKnxPercentV16 - Percentage difference
  • QKnxRotationAngle - Rotation angle in degrees
  • QKnxValue2Count - Pulse difference

Integer values from -32 768 to 32 767 can be encoded in this datapoint type.

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

成员函数文档编制

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

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

QKnx2ByteSignedValue:: QKnx2ByteSignedValue ( double value )

Creates a fixed size datapoint type with the value value .

QKnx2ByteSignedValue:: QKnx2ByteSignedValue ()

Creates a fixed size datapoint type with the value 0.0 .

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

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

bool QKnx2ByteSignedValue:: setValue ( double value )

Sets the value of the datapoint type to value .

返回 true if the value was set; otherwise returns false .

另请参阅 value ().

double QKnx2ByteSignedValue:: value () const

Returns the value stored in the datapoint type.

另请参阅 setValue ().