QKnxDatapointType Class

The QKnxDatapointType class is a base class for datapoint types with specific properties. 更多...

头: #include <QKnxDatapointType>
qmake: QT += knx
继承者:

QKnxFixedSizeDatapointType and QKnxVariableSizeDatapointType

公共类型

enum class Type { Unknown, Dpt1_1Bit, DptSwitch, DptBool, DptEnable, …, DptColourRGB }

公共函数

QKnxDatapointType (QKnxDatapointType && other )
QKnxDatapointType (const QKnxDatapointType & other )
QKnxDatapointType (quint16 mainType , quint16 subType , int size )
QKnxDatapointType (const QString & dptId , int size )
QKnxDatapointType (QKnxDatapointType::Type type , int size )
QKnxDatapointType & operator= (QKnxDatapointType && other )
QKnxDatapointType & operator= (const QKnxDatapointType & other )
virtual ~QKnxDatapointType ()
quint8 byte (quint16 index ) const
QKnxByteArray bytes () const
double coefficient () const
const quint8 * constData () const
QString description () const
virtual bool isValid () const
int mainType () const
QVariant maximum () const
QString maximumText () const
QVariant minimum () const
QString minimumText () const
bool setByte (quint16 index , quint8 bytes )
virtual bool setBytes (const QKnxByteArray & bytesToSet , quint16 index , quint16 count )
void setCoefficient (double coef )
void setDescription (const QString & description )
void setMaximum (const QVariant & maximum )
void setMaximumText (const QString & maximumText )
void setMinimum (const QVariant & minimum )
void setMinimumText (const QString & minimumText )
void setRange (const QVariant & minimum , const QVariant & maximum )
void setRangeText (const QString & minimumText , const QString & maximumText )
void setUnit (const QString & unit )
int size () const
int subType () const
void swap (QKnxDatapointType & other )
QKnxDatapointType::Type type () const
QString unit () const
bool operator!= (const QKnxDatapointType & other ) const
bool operator== (const QKnxDatapointType & other ) const

静态公共成员

T setBit (T byteToSet , bool value , quint8 bit )
bool testBit (T byteToTest , quint8 bit )
QKnxDatapointType::Type toType (const QString & dpt )
QDebug operator<< (QDebug debug , const QKnxDatapointType & dpt )

详细描述

A datapoint type represents the data corresponding to a KNX device functionality. It describes the data, setting the rules about the format and values to be allowed, and it holds the bytes containing the data.

This data is used in the data part of the QKnxTpdu class. To retrieve the data of a datapoint type, call bytes ().

There are two types of a QKnxDatapointType: QKnxFixedSizeDatapointType for fixed length datapoint types and QKnxVariableSizeDatapointType for variable length datapoint types.

A datapoint type is identified by its main number and a sub number. Each main number corresponds to a datapoint type with a particular structure. The sub numbers correspond to different interpretations or naming of this structure.

The Qt KNX module provides a class for each datapoint type with the main number less than 30 and sub number less than 100. All datapoint types with the same main number inherit from a datapoint type class representing the main number datapoint type characteristics.

Adding Datapoint Types

To implement a datapoint type described in the KNX documentation but not implemented in the Qt KNX module, one can create a class inheriting from QKnxFixedSizeDatapointType or QKnxVariableSizeDatapointType and register this new class using an instance of QKnxDatapointTypeFactory :

#include mynewdatapointtype.h
int main()
{
    int mainType = 65535;
    int subType = 100;
    int typeSize = 1; // size in bytes
    auto &factory = QKnxDatapointTypeFactory::instance() ;
    factory.registerType<MyNewDataPointType>(mainType, subType, typeSize);
}
					

另请参阅 Qt KNX Datapoint Type Classes .

成员类型文档编制

enum class QKnxDatapointType:: Type

This enum type holds the type of the datapoint type.

常量 描述
QKnxDatapointType::Type::Unknown 0 An unknown datapoint type.
QKnxDatapointType::Type::Dpt1_1Bit 100000 A fixed size datapoint type with the length of 1 bit. This is a boolean datapoint type, such as: switch on or off, move up or down, open and close, stop and start.
QKnxDatapointType::Type::DptSwitch 100001 Stores the switch state: Off or On .
QKnxDatapointType::Type::DptBool 100002 Stores a boolean value: False or True .
QKnxDatapointType::Type::DptEnable 100003 Stores an action: Disable or Enable .
QKnxDatapointType::Type::DptRamp 100004 Stores ramp information: NoRamp or Ramp .
QKnxDatapointType::Type::DptAlarm 100005 Stores alarm information: 闹钟 or NoAlarm .
QKnxDatapointType::Type::DptBinaryValue 100006 Stores a binary value: Low or High .
QKnxDatapointType::Type::DptStep 100007 Stores stepping information: Decrease or Increase .
QKnxDatapointType::Type::DptUpDown 100008 Stores direction: Up or Down .
QKnxDatapointType::Type::DptOpenClose 100009 Stores action: 打开 or Close .
QKnxDatapointType::Type::DptStart 100010 Stores action: Stop or Start .
QKnxDatapointType::Type::DptState 100011 Stores state: Inactive or Active .
QKnxDatapointType::Type::DptInvert 100012 Stores state: Not inverted or Inverted .
QKnxDatapointType::Type::DptDimSendStyle 100013 Stores dimming send style. Possible values are Start/Stop or Cyclically .
QKnxDatapointType::Type::DptInputSource 100014 Stores input source: Fixed or Calculated .
QKnxDatapointType::Type::DptReset 100015 Stores reset action: No action (dummy) or Reset command (trigger) .
QKnxDatapointType::Type::DptAck 100016 Stores the acknowledge command (trigger) for alarms, for example. Possible values are Acknowledge or No action (dummy)
QKnxDatapointType::Type::DptTrigger 100017 Stores trigger action: Trigger or Trigger (also) .
QKnxDatapointType::Type::DptOccupancy 100018 Stores occupancy state: Not occupied or Occupied .
QKnxDatapointType::Type::DptWindowDoor 100019 Stores window or door state: Closed or 打开 .
QKnxDatapointType::Type::DptLogicalFunction 100021 Stores the logical function OR or AND .
QKnxDatapointType::Type::DptSceneAB 100022 Stores the scene: Scene A or Scene B .
QKnxDatapointType::Type::DptShutterBlindsMode 100023 Stores the shutter or blinds mode: Only move Up/Down mode (shutter) or Move up down + StepStop mode (blind) .
QKnxDatapointType::Type::DptHeatCool 100100 Stores the heating mode: Cooling or Heating .
QKnxDatapointType::Type::Dpt2_1BitControlled 200000 A fixed size datapoint type with the length of 2 bits. This is a a boolean datapoint type with a control part.
QKnxDatapointType::Type::DptSwitchControl 200001 Stores a switch with a control part.
QKnxDatapointType::Type::DptBoolControl 200002 Stores a boolean value with a control part.
QKnxDatapointType::Type::DptEnableControl 200003 Stores the enabled state with a control part.
QKnxDatapointType::Type::DptRampControl 200004 Stores the ramp state with a control part.
QKnxDatapointType::Type::DptAlarmControl 200005 Stores alarm information with a control part.
QKnxDatapointType::Type::DptBinaryValueControl 200006 Stores a binary value with a control part.
QKnxDatapointType::Type::DptStepControl 200007 Stores stepping information with a control part.
QKnxDatapointType::Type::DptDirection1Control 200008 Stores DptUpDown with a control part.
QKnxDatapointType::Type::DptDirection2Control 200009 Stores DptOpenClose with a control part.
QKnxDatapointType::Type::DptStartControl 200010 Stores a start action with a control part.
QKnxDatapointType::Type::DptStateControl 200011 Stores state with a control part.
QKnxDatapointType::Type::DptInvertControl 200012 Stores inverted state with a control part.
QKnxDatapointType::Type::Dpt3_3BitControlled 300000 A fixed size datapoint type with the length of 3 bits.
QKnxDatapointType::Type::DptControlDimming 300007 Increases or decreases the brightness of lights.
QKnxDatapointType::Type::DptControlBlinds 300008 Moves blinds up or down.
QKnxDatapointType::Type::Dpt4_Character 400000 A fixed size datapoint type with the length of 1 byte that encodes a character.
QKnxDatapointType::Type::DptCharAscii 400001 Encodes an ASCII character.
QKnxDatapointType::Type::DptChar88591 400002 Encodes an ISO 8859-1 character.
QKnxDatapointType::Type::Dpt5_8bitUnsigned 500000 A fixed size datapoint type with an 8-bit unsigned value.
QKnxDatapointType::Type::DptScaling 500001 Stores percentage from 0 to 100 .
QKnxDatapointType::Type::DptAngle 500003 Stores the angle in degrees from 0 to 360 .
QKnxDatapointType::Type::DptPercentU8 500004 Stores percentage from 0 to 255 .
QKnxDatapointType::Type::DptDecimalFactor 500005 Stores the ratio from 0 to 255 .
QKnxDatapointType::Type::DptTariff 500006 Stores the tariff from 0 to 254 .
QKnxDatapointType::Type::DptValue1Ucount 500010 Stores counter pulses from 0 to 255 .
QKnxDatapointType::Type::Dpt6_8bitSigned 600000 A fixed size datapoint type with an 8-bit signed value.
QKnxDatapointType::Type::DptPercentV8 600001 Stores percentage from -128% to 127% .
QKnxDatapointType::Type::DptValue1Count 600010 Stores counter pulses from -128 to 127 .
QKnxDatapointType::Type::DptStatusMode3 600020 Stores status mode 3.
QKnxDatapointType::Type::Dpt7_2ByteUnsigned 700000 A fixed size datapoint type with a 2-byte unsigned value.
QKnxDatapointType::Type::DptValue2UCount 700001 Stores pulses.
QKnxDatapointType::Type::DptTimePeriodMsec 700002 Stores the time in milliseconds.
QKnxDatapointType::Type::DptTimePeriod10Msec 700003 Stores the time in multiples of 10 milliseconds.
QKnxDatapointType::Type::DptTimePeriod100Msec 700004 Stores the time in multiples of 100 milliseconds.
QKnxDatapointType::Type::DptTimePeriodSec 700005 Stores the time in seconds.
QKnxDatapointType::Type::DptTimePeriodMin 700006 Stores the time in minutes.
QKnxDatapointType::Type::DptTimePeriodHrs 700007 Stores the time in hours.
QKnxDatapointType::Type::DptPropertyDataType 700010 Stores the Identifier Interface Object Property data type (no unit).
QKnxDatapointType::Type::DptLengthMilliMeter 700011 Stores the length in millimeters.
QKnxDatapointType::Type::DptUEICurrentMilliA 700012 Stores the current in milliampere.
QKnxDatapointType::Type::DptBrightness 700013 Stores the brightness in LUX.
QKnxDatapointType::Type::Dpt8_2ByteSigned 800000 A fixed size datapoint type with a 2-byte signed value.
QKnxDatapointType::Type::DptValue2Count 800001 Stores pulse difference.
QKnxDatapointType::Type::DptDeltaTimeMsec 800002 Stores time lag in milliseconds.
QKnxDatapointType::Type::DptDeltaTime10Msec 800003 Stores time lag in multiples of 10 milliseconds.
QKnxDatapointType::Type::DptDeltaTime100Msec 800004 Stores time lag in multiples of 100 milliseconds.
QKnxDatapointType::Type::DptDeltaTimeSec 800005 Stores time lag in seconds.
QKnxDatapointType::Type::DptDeltaTimeMin 800006 Stores time lag in minutes.
QKnxDatapointType::Type::DptDeltaTimeHrs 800007 Stores time lag in hours.
QKnxDatapointType::Type::DptPercentV16 800010 Stores percentage difference.
QKnxDatapointType::Type::DptRotationAngle 800011 Stores rotation angle in degrees.
QKnxDatapointType::Type::Dpt9_2ByteFloat 900000 A fixed size datapoint type with a 2-byte float value.
QKnxDatapointType::Type::DptTemperatureCelsius 900001 Stores the temperature in degrees Celsius.
QKnxDatapointType::Type::DptTemperatureKelvin 900002 Stores the temperature in degrees Kelvin.
QKnxDatapointType::Type::DptTemperatureChange 900003 Stores the change in temperature in (K) per hour.
QKnxDatapointType::Type::DptValueLux 900004 Stores brightness in LUX.
QKnxDatapointType::Type::DptWindSpeed 900005 Stores the wind speed in meters per second (m/s).
QKnxDatapointType::Type::DptPressure 900006 Stores the pressure in Pascal (Pa).
QKnxDatapointType::Type::DptHumidity 900007 Stores the humidity as a percentage.
QKnxDatapointType::Type::DptAirQuality 900008 Stores the air quality in ppm.
QKnxDatapointType::Type::DptAirFlow 900009 Stores the air flow in m3/h.
QKnxDatapointType::Type::DptTimeSecond 900010 Stores the time in seconds (s).
QKnxDatapointType::Type::DptTimeMilliSecond 900011 Stores the time in milliseconds (ms).
QKnxDatapointType::Type::DptVoltage 900020 Stores the voltage in milli-volts (mV).
QKnxDatapointType::Type::DptCurrent 900021 Stores the current in milliampere (mA).
QKnxDatapointType::Type::DptPowerDensity 900022 Stores the power density in watts per square meter (W/m2).
QKnxDatapointType::Type::DptKelvinPerPercent 900023 Stores the Kelvin per percent (K/Percent).
QKnxDatapointType::Type::DptPower 900024 Stores the power in kilowatts (kW).
QKnxDatapointType::Type::DptVolumeFlow 900025 Stores the volume flow in liters per hour (l/h).
QKnxDatapointType::Type::DptAmountRain 900026 Stores the amount of rain in liters per square meter (l/m2).
QKnxDatapointType::Type::DptTemperatureFahrenheit 900027 Stores the temperature in degrees Fahrenheit.
QKnxDatapointType::Type::DptWindSpeedKmPerHour 900028 Stores the wind speed in kilometers per hour (km/h).
QKnxDatapointType::Type::DptValueAbsoluteHumidity 900029 Absolute air humidity in grams per cubic meter (g/m3).
QKnxDatapointType::Type::DptConcentration 900030 Air pollution in micrograms per cubic meter (micro-g/m3).
QKnxDatapointType::Type::Dpt10_TimeOfDay 1000000 A fixed size datapoint type with the length of 3 bytes.
QKnxDatapointType::Type::DptTimeOfDay 1000001 Stores the time of day.
QKnxDatapointType::Type::Dpt11_Date 1100000 A fixed size datapoint type with the length of 3 bytes.
QKnxDatapointType::Type::DptDate 1100001 Stores a date.
QKnxDatapointType::Type::Dpt12_4ByteUnsigned 1200000 A fixed size datapoint type with a 4-byte unsigned value.
QKnxDatapointType::Type::DptValue4Ucount 1200001 Stores a a 4-byte unsigned value.
QKnxDatapointType::Type::Dpt13_4ByteSigned 1300000 A fixed size datapoint type with a 4-byte signed value.
QKnxDatapointType::Type::DptValue4Count 1300001 Stores a a 4-byte signed value.
QKnxDatapointType::Type::DptFlowRateCubicMeterPerHour 1300002 Stores the flow rate in cubic meters per hour (m3/h).
QKnxDatapointType::Type::DptApparentEnergy 1300011 Stores the active energy in VAh.
QKnxDatapointType::Type::DptReactiveEnergy 1300012 Stores the active energy in VARh.
QKnxDatapointType::Type::DptActiveEnergykWh 1300013 Stores the active energy in kWh.
QKnxDatapointType::Type::Dpt_ApparentEnergykVAh 1300014 Stores the active energy in kVAh.
QKnxDatapointType::Type::DptReactiveEnergykVARh 1300015 Stores the active energy in KVARh.
QKnxDatapointType::Type::DptActiveEnergy 1300010 Stores the active energy in Wh.
QKnxDatapointType::Type::DptLongDeltaTimeSec 1300100 Stores the active energy in seconds.
QKnxDatapointType::Type::Dpt14_4ByteFloat 1400000 A fixed size datapoint type with a 4-byte float value.
QKnxDatapointType::Type::DptValueAccelerationAngular 1400001 Stores angular acceleration in rad/s2.
QKnxDatapointType::Type::DptValueActivationEnergy 1400002 Stores activation energy in J/mol.
QKnxDatapointType::Type::DptValueActivity 1400003 Stores radioactive activity in 1/s.
QKnxDatapointType::Type::DptValueMol 1400004 Stores the amount of substance in mol.
QKnxDatapointType::Type::DptValueAmplitude 1400005 Stores the amplitude.
QKnxDatapointType::Type::DptValueAngleRad 1400006 Stores the angle in radian.
QKnxDatapointType::Type::DptValueAngleDeg 1400007 Stores the angle in degrees.
QKnxDatapointType::Type::DptValueAngularMomentum 1400008 Stores the angular momentum in Js.
QKnxDatapointType::Type::DptValueAngularVelocity 1400009 Stores the angular velocity in rad/s.
QKnxDatapointType::Type::DptValueArea 1400010 Stores the area in m2.
QKnxDatapointType::Type::DptValueCapacitance 1400011 Stores the capacitance in F.
QKnxDatapointType::Type::DptValueChargeDensitySurface 1400012 Stores the flux density in C/m2.
QKnxDatapointType::Type::DptValueChargeDensityVolume 1400013 Stores the charge density in C/m3.
QKnxDatapointType::Type::DptValueCompressibility 1400014 Stores the compressibility in m2/N.
QKnxDatapointType::Type::DptValueConductance 1400015 Stores the conductance in S.
QKnxDatapointType::Type::DptValueElectricalConductivity 1400016 Stores the conductivity in S/m.
QKnxDatapointType::Type::DptValueDensity 1400017 Stores the density in kg/m3.
QKnxDatapointType::Type::DptValueElectricCharge 1400018 Stores the electric charge in C.
QKnxDatapointType::Type::DptValueElectricCurrent 1400019 Stores the electric charge in A.
QKnxDatapointType::Type::DptValueElectricCurrentDensity 1400020 Stores the electric current density in A/m2.
QKnxDatapointType::Type::DptValueElectricDipoleMoment 1400021 Stores the electric dipole moment in Cm.
QKnxDatapointType::Type::DptValueElectricDisplacement 1400022 Stores the electric displacement in C/m2.
QKnxDatapointType::Type::DptValueElectricFieldStrength 1400023 Stores the electric field strength in V/m.
QKnxDatapointType::Type::DptValueElectricFlux 1400024 Stores the electric flux in C.
QKnxDatapointType::Type::DptValueElectricFluxDensity 1400025 Stores the electric flux density in C/m2.
QKnxDatapointType::Type::DptValueElectricPolarization 1400026 Stores the electric polarization in C/m2.
QKnxDatapointType::Type::DptValueElectricPotential 1400027 Stores the electric potential in V.
QKnxDatapointType::Type::DptValueElectricPotentialDifference 1400028 Stores the electric potential difference in V.
QKnxDatapointType::Type::DptValueElectromagneticMoment 1400029 Stores the electromagnetic moment in Am2.
QKnxDatapointType::Type::DptValueElectromotiveForce 1400030 Stores the electromotive force in V.
QKnxDatapointType::Type::DptValueEnergy 1400031 Stores energy in J.
QKnxDatapointType::Type::DptValueForce 1400032 Stores force in N.
QKnxDatapointType::Type::DptValueFrequency 1400033 Stores frequency in Hz.
QKnxDatapointType::Type::DptValueAngularFrequency 1400034 Stores angular frequency in rad/s.
QKnxDatapointType::Type::DptValueHeatCapacity 1400035 Stores heat capacity in J/K.
QKnxDatapointType::Type::DptValueHeatFlowRate 1400036 Stores heat flow rate in W.
QKnxDatapointType::Type::DptValueHeatQuantity 1400037 Stores heat quantity in J.
QKnxDatapointType::Type::DptValueImpedance 1400038 Stores impedance in Ohm.
QKnxDatapointType::Type::DptValueLength 1400039 Stores length in m.
QKnxDatapointType::Type::DptValueLightQuantity 1400040 Stores light quantity in J.
QKnxDatapointType::Type::DptValueLuminance 1400041 Stores luminance in cd/m2.
QKnxDatapointType::Type::DptValueLuminousFlux 1400042 Stores luminous flux in lm.
QKnxDatapointType::Type::DptValueLuminousIntensity 1400043 Stores luminous intensity in cd.
QKnxDatapointType::Type::DptValueMagneticFieldStrength 1400044 Stores magnetic field strength in A/m.
QKnxDatapointType::Type::DptValueMagneticFlux 1400045 Stores magnetic flux in Wb.
QKnxDatapointType::Type::DptValueMagneticFluxDensity 1400046 Stores magnetic flux density in T.
QKnxDatapointType::Type::DptValueMagneticMoment 1400047 Stores magnetic moment in Am2.
QKnxDatapointType::Type::DptValueMagneticPolarization 1400048 Stores magnetic polarization in T.
QKnxDatapointType::Type::DptValueMagnetization 1400049 Stores magnetization in A/m.
QKnxDatapointType::Type::DptValueMagnetomotiveForce 1400050 Stores the magnetomotive force in A.
QKnxDatapointType::Type::DptValueMass 1400051 Stores the mass in kg.
QKnxDatapointType::Type::DptValueMassFlux 1400052 Stores the mass flux in kg.
QKnxDatapointType::Type::DptValueMomentum 1400053 Stores the momentum in N/s.
QKnxDatapointType::Type::DptValuePhaseAngleRad 1400054 Stores the phase angle in radian.
QKnxDatapointType::Type::DptValuePhaseAngleDeg 1400055 Stores the phase angle in degrees.
QKnxDatapointType::Type::DptValuePower 1400056 Stores the power in W.
QKnxDatapointType::Type::DptValuePowerFactor 1400057 Stores the power factor in cos Phi.
QKnxDatapointType::Type::DptValuePressure 1400058 Stores the pressure in Pa.
QKnxDatapointType::Type::DptValueReactance 1400059 Stores the reactance in Ohm.
QKnxDatapointType::Type::DptValueResistance 1400060 Stores the resistance in Ohm.
QKnxDatapointType::Type::DptValueResistivity 1400061 Stores the resistivity in Ohm*m.
QKnxDatapointType::Type::DptValueSelfInductance 1400062 Stores the self inductance in H.
QKnxDatapointType::Type::DptValueSolidAngle 1400063 Stores the solid angle in sr.
QKnxDatapointType::Type::DptValueSoundIntensity 1400064 Stores the sound intensity in W/m2.
QKnxDatapointType::Type::DptValueSpeed 1400065 Stores the speed in m/s.
QKnxDatapointType::Type::DptValueStress 1400066 Stores the stress in Pa.
QKnxDatapointType::Type::DptValueSurfaceTension 1400067 Stores the surface tension in N/m.
QKnxDatapointType::Type::DptValueCommonTemperature 1400068 Stores the temperature in degrees Celsius.
QKnxDatapointType::Type::DptValueAbsoluteTemperature 1400069 Stores the absolute temperature in K.
QKnxDatapointType::Type::DptValueTemperatureDifference 1400070 Stores the temperature difference in K.
QKnxDatapointType::Type::DptValueThermalCapacity 1400071 Stores the thermal capacity in J/K.
QKnxDatapointType::Type::DptValueThermalConductivity 1400072 Stores the thermal conductivity in W/mk.
QKnxDatapointType::Type::DptValueThermoelectricPower 1400073 Stores the thermoelectric power in V/K.
QKnxDatapointType::Type::DptValueTime 1400074 Stores the time in seconds.
QKnxDatapointType::Type::DptValueTorque 1400075 Stores the torque in Nm.
QKnxDatapointType::Type::DptValueVolume 1400076 Stores the volume in m3.
QKnxDatapointType::Type::DptValueVolumeFlux 1400077 Stores the volume flux in m3/s.
QKnxDatapointType::Type::DptValueWeight 1400078 Stores the weight in N.
QKnxDatapointType::Type::DptValueWork 1400079 Stores the work in J.
QKnxDatapointType::Type::DptValueAcceleration 1400000 Stores the acceleration in m/s2.
QKnxDatapointType::Type::Dpt15_EntranceAccess 1500000 A fixed size datapoint type for controlling entrance access.
QKnxDatapointType::Type::Dpt16_CharacterString 1600000 A fixed size datapoint type that encodes a string.
QKnxDatapointType::Type::DptStringASCII 1600000 Encodes a string of ASCII characters.
QKnxDatapointType::Type::DptString88591 1600001 Encodes a string of ISO 8859-1 characters.
QKnxDatapointType::Type::Dpt17_SceneNumber 1700000 A fixed size datapoint type with the length of 1 byte.
QKnxDatapointType::Type::DptSceneNumber 1700001 Stores a scene number.
QKnxDatapointType::Type::Dpt18_SceneControl 1800000 A fixed size datapoint type with the length of 1 byte.
QKnxDatapointType::Type::DptSceneControl 1800001 Stores a scene control.
QKnxDatapointType::Type::Dpt19_DataTime 1900000 A fixed size datapoint type with the length of 8 bytes.
QKnxDatapointType::Type::DptDateTime 1900001 Stores the date and time.
QKnxDatapointType::Type::Dpt20_1Byte 2000000 A fixed size datapoint type with the length of 1 byte.
QKnxDatapointType::Type::DptScloMode 2000001 Stores the main functionality of the system clock (SCLO).
QKnxDatapointType::Type::DptBuildingMode 2000002 Stores whether the building is in use and whether it is protected.
QKnxDatapointType::Type::DptOccMode 2000003 Stores the occupy mode.
QKnxDatapointType::Type::DptPriority 2000004 Stores the priority.
QKnxDatapointType::Type::DptLightApplicationMode 2000005 Stores the light application mode.
QKnxDatapointType::Type::DptApplicationArea 2000006 Stores the application area.
QKnxDatapointType::Type::DptAlarmClassType 2000007 Stores the alarm class type.
QKnxDatapointType::Type::DptPsuMode 2000008 Stores the bus power supply unit mode: decentral (distributed) bus power supply unit (DPSU) or central bus power supply unit (PSU).
QKnxDatapointType::Type::DptErrorClassSystem 2000011 Stores fault signals transmitted in the application area QKnxApplicationArea::SystemFunctionCommonInterest .
QKnxDatapointType::Type::DptErrorClassHvac 2000012 Stores fault signals transmitted in the heating, ventilation, and air conditioning (HVAC) application area.
QKnxDatapointType::Type::DptTimeDelay 2000013 Stores a time delay.
QKnxDatapointType::Type::DptBeaufortWindForceScale 2000014 Stores the wind force using the Beaufort wind force scale.
QKnxDatapointType::Type::DptSensorSelect 2000017 Stores the sensor mode.
QKnxDatapointType::Type::DptActuatorConnectType 2000020 Stores the actuator connection type. An actuator can be connected to a sensor or a controller.
QKnxDatapointType::Type::DptCloudCover 2000021 Stores the scale of the sky obscured by clouds when observed from a particular location.
QKnxDatapointType::Type::DptCommandMode 2001000
QKnxDatapointType::Type::DptAdditionalInfoTypes 2001001
QKnxDatapointType::Type::Dpt21_8BitSet 2100000 A fixed size datapoint type with binary-coded values in all fields.
QKnxDatapointType::Type::DptGeneralStatus 2100001 Stores general status: out of service, fault, overridden, or in alarm.
QKnxDatapointType::Type::DptDeviceControl 2100002 Stores device control state.
QKnxDatapointType::Type::Dpt22_16BitSet 2200000 A fixed size datapoint type with the length of 16 bits.
QKnxDatapointType::Type::DptMedia 2201000 Stores the supported media: TP1, PL110, RF, or KNX IP.
QKnxDatapointType::Type::Dpt23_2BitSet 2300000 A fixed size datapoint type with the length of 2 bits.
QKnxDatapointType::Type::DptOnOffAction 2300001 Stores the on/off action.
QKnxDatapointType::Type::DptAlarmReaction 2300002 Stores the alarm reaction.
QKnxDatapointType::Type::DptUpDownAction 2300003 Stores the up/down action.
QKnxDatapointType::Type::Dpt24_VariableString 2400000 A datapoint type that encodes a variable length string.
QKnxDatapointType::Type::DptVariableString88591 2400001 Encodes a variable length string of ISO 8859-1 characters.
QKnxDatapointType::Type::Dpt25_2NibbleSet 2500000 A fixed size datapoint type for storing the number of busy and inack repetitions.
QKnxDatapointType::Type::Dpt26_8BitSet 2600000 A fixed size datapoint type with the length of 1 byte and the 8-bit set.
QKnxDatapointType::Type::DptSceneInfo 2600001 Stores scene information.
QKnxDatapointType::Type::Dpt27_32BitSet 2700000 A fixed size datapoint type with the 32-bit set.
QKnxDatapointType::Type::DptCombinedInfoOnOff 2700001 Stores combined information about the on and off states of a multiple-channel binary actuator.
QKnxDatapointType::Type::Dpt28_StringUtf8 2800000 A variable size datapoint type datapoint type for storing a UTF-8 string.
QKnxDatapointType::Type::DptUtf8 2800001 Stores a UTF-8 (Unicode Transformation Format-8) string.
QKnxDatapointType::Type::Dpt29_ElectricalEnergy 2900000 A fixed size datapoint type with the length of 8 bytes for storing electrical energy.
QKnxDatapointType::Type::DptActiveEnergyV64 2900010 Stores active energy in Wh.
QKnxDatapointType::Type::DptApparentEnergyV64 2900011 Stores active energy in VAh.
QKnxDatapointType::Type::DptReactiveEnergyV64 2900012 Stores active energy in VARh.
QKnxDatapointType::Type::Dpt30_24TimesChannelActivation 3000000 A fixed size datapoint type for storing the activation state of a channel.
QKnxDatapointType::Type::DPT217_DatapointTypeVersion 21700000 A fixed size datapoint type for storing version information.
QKnxDatapointType::Type::DptVersion 21700001 Stores version information, such as software version, hardware version, or data-interface version.
QKnxDatapointType::Type::Dpt221 22100000 A fixed size datapoint type for storing the serial number of a device.
QKnxDatapointType::Type::DptSerialNumber 22100001 Stores a manufacturer code and an incremented number. The leading 4 octets within a manufacturer’s code space must be globally unique.
QKnxDatapointType::Type::Dpt225_ScalingSpeed 22500000 A fixed size datapoint type for storing scaling speed. Used in the lighting application area, only.
QKnxDatapointType::Type::Dpt232_3ByteColourRGB 23200000 A fixed size datapoint type for storing an RGB color value.
QKnxDatapointType::Type::DptColourRGB 23200600 Stores an RGB color value. Can be used for simple color control. How RGB is interpreted depends on the device, and therefore this coding is only suitable for point-to-point communication, where there is only a single receiver.

成员函数文档编制

QKnxDatapointType:: QKnxDatapointType ( QKnxDatapointType && other )

Move-constructs an object instance, making it point to the same object that other 所指向的。

QKnxDatapointType:: QKnxDatapointType (const QKnxDatapointType & other )

构造副本为 other .

QKnxDatapointType:: QKnxDatapointType ( quint16 mainType , quint16 subType , int size )

Creates a datapoint type with the main type mainType , subtype subType , and size size .

QKnxDatapointType:: QKnxDatapointType (const QString & dptId , int size )

Creates a datapoint type with the identifier dptId and size size .

QKnxDatapointType:: QKnxDatapointType ( QKnxDatapointType::Type type , int size )

Creates a datapoint type with the type type and size size .

QKnxDatapointType &QKnxDatapointType:: operator= ( QKnxDatapointType && other )

Move assigns other to this datapoint type and returns a reference to this datapoint type.

QKnxDatapointType &QKnxDatapointType:: operator= (const QKnxDatapointType & other )

赋值 other to this datapoint type and returns a reference to this datapoint type.

[虚拟] QKnxDatapointType:: ~QKnxDatapointType ()

Deletes the datapoint type.

quint8 QKnxDatapointType:: byte ( quint16 index ) const

Returns the content of the byte at the index index .

另请参阅 setByte ().

QKnxByteArray QKnxDatapointType:: bytes () const

Returns the content of the bytes stored in the datapoint type.

另请参阅 setBytes ().

double QKnxDatapointType:: coefficient () const

Returns the coefficient of the datapoint type.

另请参阅 setCoefficient ().

const quint8 *QKnxDatapointType:: constData () const

Returns the data stored in the datapoint type.

QString QKnxDatapointType:: description () const

Returns a description of the datapoint type.

另请参阅 setDescription ().

[虚拟] bool QKnxDatapointType:: isValid () const

返回 true if this is a valid datapoint type; otherwise returns false .

int QKnxDatapointType:: mainType () const

Returns the main type of the datapoint type.

QVariant QKnxDatapointType:: maximum () const

Returns the maximum value of the datapoint type.

另请参阅 setMaximum ().

QString QKnxDatapointType:: maximumText () const

Returns a description of the maximum value of the datapoint type.

另请参阅 setMaximumText ().

QVariant QKnxDatapointType:: minimum () const

Returns the minimum value of the datapoint type.

另请参阅 setMinimum ().

QString QKnxDatapointType:: minimumText () const

Returns a description of the minimum value of the datapoint type.

另请参阅 setMinimumText ().

[static] template <typename T> T QKnxDatapointType:: setBit ( T byteToSet , bool value , quint8 bit )

Sets the value of the bit in byteToSet to value .

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

bool QKnxDatapointType:: setByte ( quint16 index , quint8 bytes )

Sets the content of the byte at the index index to bytes .

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

另请参阅 byte ().

[虚拟] bool QKnxDatapointType:: setBytes (const QKnxByteArray & bytesToSet , quint16 index , quint16 count )

Sets the content of the bytes stored in the datapoint type to bytesToSet , from the position index in bytesToSet to the position calculated by adding count to index .

For a fixed size datapoint, returns false if count does not correspond to the size of the datapoint type returned by size ().

另请参阅 bytes ().

void QKnxDatapointType:: setCoefficient ( double coef )

Sets the coefficient of the datapoint type to coef .

另请参阅 coefficient ().

void QKnxDatapointType:: setDescription (const QString & description )

Sets the description of the datapoint type to description .

另请参阅 description ().

void QKnxDatapointType:: setMaximum (const QVariant & maximum )

Sets the maximum value of the datapoint type to maximum .

另请参阅 maximum ().

void QKnxDatapointType:: setMaximumText (const QString & maximumText )

Sets the description of the maximum value of the datapoint type to maximumText .

另请参阅 maximumText ().

void QKnxDatapointType:: setMinimum (const QVariant & minimum )

Sets the minimum value of the datapoint type to minimum .

另请参阅 minimum ().

void QKnxDatapointType:: setMinimumText (const QString & minimumText )

Sets the description of the minimum value of the datapoint type to minimumText .

另请参阅 minimumText ().

void QKnxDatapointType:: setRange (const QVariant & minimum , const QVariant & maximum )

Sets the minimum value of the datapoint type to minimum and the maximum value to maximum .

void QKnxDatapointType:: setRangeText (const QString & minimumText , const QString & maximumText )

Sets the description of the minimum value of the datapoint type to minimumText and the description of the maximum value to maximumText .

void QKnxDatapointType:: setUnit (const QString & unit )

Sets the unit of the datapoint type to unit .

另请参阅 unit ().

int QKnxDatapointType:: size () const

Returns the size of the datapoint type.

int QKnxDatapointType:: subType () const

Returns the subtype of the datapoint type.

void QKnxDatapointType:: swap ( QKnxDatapointType & other )

交换 other with this datapoint. This operation never fails.

[static] template <typename T> bool QKnxDatapointType:: testBit ( T byteToTest , quint8 bit )

Tests the value of the bit in byteToTest .

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

[static] QKnxDatapointType::Type QKnxDatapointType:: toType (const QString & dpt )

Converts a KNX datapoint type dpt of the format DPT-* or DPST-*-* QKnxDatapointType::Type enumeration used throughout the QtKnx API.

QKnxDatapointType::Type QKnxDatapointType:: type () const

Returns the type of the datapoint type.

QString QKnxDatapointType:: unit () const

Returns the unit of the datapoint type.

另请参阅 setUnit ().

bool QKnxDatapointType:: operator!= (const QKnxDatapointType & other ) const

返回 true if this datapoint and the given other 不相等;则返回 false .

bool QKnxDatapointType:: operator== (const QKnxDatapointType & other ) const

返回 true if this datapoint and the given other 相等;否则返回 false .

相关非成员

QDebug operator<< ( QDebug debug , const QKnxDatapointType & dpt )

Writes the datapoint type dpt debug stream.