QKnxDatapointType Class

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

Header: #include <QKnxDatapointType>
qmake: QT += knx
Inherited By:

QKnxFixedSizeDatapointType and QKnxVariableSizeDatapointType

Public Types

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

Public Functions

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

Static Public Members

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)

Detailed Description

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);

See also Qt KNX Datapoint Type Classes.

Member Type Documentation

enum class QKnxDatapointType::Type

This enum type holds the type of the datapoint type.

QKnxDatapointType::Type::Unknown0An unknown datapoint type.
QKnxDatapointType::Type::Dpt1_1Bit100000A 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::DptSwitch100001Stores the switch state: Off or On.
QKnxDatapointType::Type::DptBool100002Stores a boolean value: False or True.
QKnxDatapointType::Type::DptEnable100003Stores an action: Disable or Enable.
QKnxDatapointType::Type::DptRamp100004Stores ramp information: NoRamp or Ramp.
QKnxDatapointType::Type::DptAlarm100005Stores alarm information: Alarm or NoAlarm.
QKnxDatapointType::Type::DptBinaryValue100006Stores a binary value: Low or High.
QKnxDatapointType::Type::DptStep100007Stores stepping information: Decrease or Increase.
QKnxDatapointType::Type::DptUpDown100008Stores direction: Up or Down.
QKnxDatapointType::Type::DptOpenClose100009Stores action: Open or Close.
QKnxDatapointType::Type::DptStart100010Stores action: Stop or Start.
QKnxDatapointType::Type::DptState100011Stores state: Inactive or Active.
QKnxDatapointType::Type::DptInvert100012Stores state: Not inverted or Inverted.
QKnxDatapointType::Type::DptDimSendStyle100013Stores dimming send style. Possible values are Start/Stop or Cyclically.
QKnxDatapointType::Type::DptInputSource100014Stores input source: Fixed or Calculated.
QKnxDatapointType::Type::DptReset100015Stores reset action: No action (dummy) or Reset command (trigger).
QKnxDatapointType::Type::DptAck100016Stores the acknowledge command (trigger) for alarms, for example. Possible values are Acknowledge or No action (dummy)
QKnxDatapointType::Type::DptTrigger100017Stores trigger action: Trigger or Trigger (also).
QKnxDatapointType::Type::DptOccupancy100018Stores occupancy state: Not occupied or Occupied.
QKnxDatapointType::Type::DptWindowDoor100019Stores window or door state: Closed or Open.
QKnxDatapointType::Type::DptLogicalFunction100021Stores the logical function OR or AND.
QKnxDatapointType::Type::DptSceneAB100022Stores the scene: Scene A or Scene B.
QKnxDatapointType::Type::DptShutterBlindsMode100023Stores the shutter or blinds mode: Only move Up/Down mode (shutter) or Move up down + StepStop mode (blind).
QKnxDatapointType::Type::DptHeatCool100100Stores the heating mode: Cooling or Heating.
QKnxDatapointType::Type::Dpt2_1BitControlled200000A fixed size datapoint type with the length of 2 bits. This is a a boolean datapoint type with a control part.
QKnxDatapointType::Type::DptSwitchControl200001Stores a switch with a control part.
QKnxDatapointType::Type::DptBoolControl200002Stores a boolean value with a control part.
QKnxDatapointType::Type::DptEnableControl200003Stores the enabled state with a control part.
QKnxDatapointType::Type::DptRampControl200004Stores the ramp state with a control part.
QKnxDatapointType::Type::DptAlarmControl200005Stores alarm information with a control part.
QKnxDatapointType::Type::DptBinaryValueControl200006Stores a binary value with a control part.
QKnxDatapointType::Type::DptStepControl200007Stores stepping information with a control part.
QKnxDatapointType::Type::DptDirection1Control200008Stores DptUpDown with a control part.
QKnxDatapointType::Type::DptDirection2Control200009Stores DptOpenClose with a control part.
QKnxDatapointType::Type::DptStartControl200010Stores a start action with a control part.
QKnxDatapointType::Type::DptStateControl200011Stores state with a control part.
QKnxDatapointType::Type::DptInvertControl200012Stores inverted state with a control part.
QKnxDatapointType::Type::Dpt3_3BitControlled300000A fixed size datapoint type with the length of 3 bits.
QKnxDatapointType::Type::DptControlDimming300007Increases or decreases the brightness of lights.
QKnxDatapointType::Type::DptControlBlinds300008Moves blinds up or down.
QKnxDatapointType::Type::Dpt4_Character400000A fixed size datapoint type with the length of 1 byte that encodes a character.
QKnxDatapointType::Type::DptCharAscii400001Encodes an ASCII character.
QKnxDatapointType::Type::DptChar88591400002Encodes an ISO 8859-1 character.
QKnxDatapointType::Type::Dpt5_8bitUnsigned500000A fixed size datapoint type with an 8-bit unsigned value.
QKnxDatapointType::Type::DptScaling500001Stores percentage from 0 to 100.
QKnxDatapointType::Type::DptAngle500003Stores the angle in degrees from 0 to 360.
QKnxDatapointType::Type::DptPercentU8500004Stores percentage from 0 to 255.
QKnxDatapointType::Type::DptDecimalFactor500005Stores the ratio from 0 to 255.
QKnxDatapointType::Type::DptTariff500006Stores the tariff from 0 to 254.
QKnxDatapointType::Type::DptValue1Ucount500010Stores counter pulses from 0 to 255.
QKnxDatapointType::Type::Dpt6_8bitSigned600000A fixed size datapoint type with an 8-bit signed value.
QKnxDatapointType::Type::DptPercentV8600001Stores percentage from -128% to 127%.
QKnxDatapointType::Type::DptValue1Count600010Stores counter pulses from -128 to 127.
QKnxDatapointType::Type::DptStatusMode3600020Stores status mode 3.
QKnxDatapointType::Type::Dpt7_2ByteUnsigned700000A fixed size datapoint type with a 2-byte unsigned value.
QKnxDatapointType::Type::DptValue2UCount700001Stores pulses.
QKnxDatapointType::Type::DptTimePeriodMsec700002Stores the time in milliseconds.
QKnxDatapointType::Type::DptTimePeriod10Msec700003Stores the time in multiples of 10 milliseconds.
QKnxDatapointType::Type::DptTimePeriod100Msec700004Stores the time in multiples of 100 milliseconds.
QKnxDatapointType::Type::DptTimePeriodSec700005Stores the time in seconds.
QKnxDatapointType::Type::DptTimePeriodMin700006Stores the time in minutes.
QKnxDatapointType::Type::DptTimePeriodHrs700007Stores the time in hours.
QKnxDatapointType::Type::DptPropertyDataType700010Stores the Identifier Interface Object Property data type (no unit).
QKnxDatapointType::Type::DptLengthMilliMeter700011Stores the length in millimeters.
QKnxDatapointType::Type::DptUEICurrentMilliA700012Stores the current in milliampere.
QKnxDatapointType::Type::DptBrightness700013Stores the brightness in LUX.
QKnxDatapointType::Type::Dpt8_2ByteSigned800000A fixed size datapoint type with a 2-byte signed value.
QKnxDatapointType::Type::DptValue2Count800001Stores pulse difference.
QKnxDatapointType::Type::DptDeltaTimeMsec800002Stores time lag in milliseconds.
QKnxDatapointType::Type::DptDeltaTime10Msec800003Stores time lag in multiples of 10 milliseconds.
QKnxDatapointType::Type::DptDeltaTime100Msec800004Stores time lag in multiples of 100 milliseconds.
QKnxDatapointType::Type::DptDeltaTimeSec800005Stores time lag in seconds.
QKnxDatapointType::Type::DptDeltaTimeMin800006Stores time lag in minutes.
QKnxDatapointType::Type::DptDeltaTimeHrs800007Stores time lag in hours.
QKnxDatapointType::Type::DptPercentV16800010Stores percentage difference.
QKnxDatapointType::Type::DptRotationAngle800011Stores rotation angle in degrees.
QKnxDatapointType::Type::Dpt9_2ByteFloat900000A fixed size datapoint type with a 2-byte float value.
QKnxDatapointType::Type::DptTemperatureCelsius900001Stores the temperature in degrees Celsius.
QKnxDatapointType::Type::DptTemperatureKelvin900002Stores the temperature in degrees Kelvin.
QKnxDatapointType::Type::DptTemperatureChange900003Stores the change in temperature in (K) per hour.
QKnxDatapointType::Type::DptValueLux900004Stores brightness in LUX.
QKnxDatapointType::Type::DptWindSpeed900005Stores the wind speed in meters per second (m/s).
QKnxDatapointType::Type::DptPressure900006Stores the pressure in Pascal (Pa).
QKnxDatapointType::Type::DptHumidity900007Stores the humidity as a percentage.
QKnxDatapointType::Type::DptAirQuality900008Stores the air quality in ppm.
QKnxDatapointType::Type::DptAirFlow900009Stores the air flow in m3/h.
QKnxDatapointType::Type::DptTimeSecond900010Stores the time in seconds (s).
QKnxDatapointType::Type::DptTimeMilliSecond900011Stores the time in milliseconds (ms).
QKnxDatapointType::Type::DptVoltage900020Stores the voltage in milli-volts (mV).
QKnxDatapointType::Type::DptCurrent900021Stores the current in milliampere (mA).
QKnxDatapointType::Type::DptPowerDensity900022Stores the power density in watts per square meter (W/m2).
QKnxDatapointType::Type::DptKelvinPerPercent900023Stores the Kelvin per percent (K/Percent).
QKnxDatapointType::Type::DptPower900024Stores the power in kilowatts (kW).
QKnxDatapointType::Type::DptVolumeFlow900025Stores the volume flow in liters per hour (l/h).
QKnxDatapointType::Type::DptAmountRain900026Stores the amount of rain in liters per square meter (l/m2).
QKnxDatapointType::Type::DptTemperatureFahrenheit900027Stores the temperature in degrees Fahrenheit.
QKnxDatapointType::Type::DptWindSpeedKmPerHour900028Stores the wind speed in kilometers per hour (km/h).
QKnxDatapointType::Type::DptValueAbsoluteHumidity900029Absolute air humidity in grams per cubic meter (g/m3).
QKnxDatapointType::Type::DptConcentration900030Air pollution in micrograms per cubic meter (micro-g/m3).
QKnxDatapointType::Type::Dpt10_TimeOfDay1000000A fixed size datapoint type with the length of 3 bytes.
QKnxDatapointType::Type::DptTimeOfDay1000001Stores the time of day.
QKnxDatapointType::Type::Dpt11_Date1100000A fixed size datapoint type with the length of 3 bytes.
QKnxDatapointType::Type::DptDate1100001Stores a date.
QKnxDatapointType::Type::Dpt12_4ByteUnsigned1200000A fixed size datapoint type with a 4-byte unsigned value.
QKnxDatapointType::Type::DptValue4Ucount1200001Stores a a 4-byte unsigned value.
QKnxDatapointType::Type::Dpt13_4ByteSigned1300000A fixed size datapoint type with a 4-byte signed value.
QKnxDatapointType::Type::DptValue4Count1300001Stores a a 4-byte signed value.
QKnxDatapointType::Type::DptFlowRateCubicMeterPerHour1300002Stores the flow rate in cubic meters per hour (m3/h).
QKnxDatapointType::Type::DptApparentEnergy1300011Stores the active energy in VAh.
QKnxDatapointType::Type::DptReactiveEnergy1300012Stores the active energy in VARh.
QKnxDatapointType::Type::DptActiveEnergykWh1300013Stores the active energy in kWh.
QKnxDatapointType::Type::Dpt_ApparentEnergykVAh1300014Stores the active energy in kVAh.
QKnxDatapointType::Type::DptReactiveEnergykVARh1300015Stores the active energy in KVARh.
QKnxDatapointType::Type::DptActiveEnergy1300010Stores the active energy in Wh.
QKnxDatapointType::Type::DptLongDeltaTimeSec1300100Stores the active energy in seconds.
QKnxDatapointType::Type::Dpt14_4ByteFloat1400000A fixed size datapoint type with a 4-byte float value.
QKnxDatapointType::Type::DptValueAccelerationAngular1400001Stores angular acceleration in rad/s2.
QKnxDatapointType::Type::DptValueActivationEnergy1400002Stores activation energy in J/mol.
QKnxDatapointType::Type::DptValueActivity1400003Stores radioactive activity in 1/s.
QKnxDatapointType::Type::DptValueMol1400004Stores the amount of substance in mol.
QKnxDatapointType::Type::DptValueAmplitude1400005Stores the amplitude.
QKnxDatapointType::Type::DptValueAngleRad1400006Stores the angle in radian.
QKnxDatapointType::Type::DptValueAngleDeg1400007Stores the angle in degrees.
QKnxDatapointType::Type::DptValueAngularMomentum1400008Stores the angular momentum in Js.
QKnxDatapointType::Type::DptValueAngularVelocity1400009Stores the angular velocity in rad/s.
QKnxDatapointType::Type::DptValueArea1400010Stores the area in m2.
QKnxDatapointType::Type::DptValueCapacitance1400011Stores the capacitance in F.
QKnxDatapointType::Type::DptValueChargeDensitySurface1400012Stores the flux density in C/m2.
QKnxDatapointType::Type::DptValueChargeDensityVolume1400013Stores the charge density in C/m3.
QKnxDatapointType::Type::DptValueCompressibility1400014Stores the compressibility in m2/N.
QKnxDatapointType::Type::DptValueConductance1400015Stores the conductance in S.
QKnxDatapointType::Type::DptValueElectricalConductivity1400016Stores the conductivity in S/m.
QKnxDatapointType::Type::DptValueDensity1400017Stores the density in kg/m3.
QKnxDatapointType::Type::DptValueElectricCharge1400018Stores the electric charge in C.
QKnxDatapointType::Type::DptValueElectricCurrent1400019Stores the electric charge in A.
QKnxDatapointType::Type::DptValueElectricCurrentDensity1400020Stores the electric current density in A/m2.
QKnxDatapointType::Type::DptValueElectricDipoleMoment1400021Stores the electric dipole moment in Cm.
QKnxDatapointType::Type::DptValueElectricDisplacement1400022Stores the electric displacement in C/m2.
QKnxDatapointType::Type::DptValueElectricFieldStrength1400023Stores the electric field strength in V/m.
QKnxDatapointType::Type::DptValueElectricFlux1400024Stores the electric flux in C.
QKnxDatapointType::Type::DptValueElectricFluxDensity1400025Stores the electric flux density in C/m2.
QKnxDatapointType::Type::DptValueElectricPolarization1400026Stores the electric polarization in C/m2.
QKnxDatapointType::Type::DptValueElectricPotential1400027Stores the electric potential in V.
QKnxDatapointType::Type::DptValueElectricPotentialDifference1400028Stores the electric potential difference in V.
QKnxDatapointType::Type::DptValueElectromagneticMoment1400029Stores the electromagnetic moment in Am2.
QKnxDatapointType::Type::DptValueElectromotiveForce1400030Stores the electromotive force in V.
QKnxDatapointType::Type::DptValueEnergy1400031Stores energy in J.
QKnxDatapointType::Type::DptValueForce1400032Stores force in N.
QKnxDatapointType::Type::DptValueFrequency1400033Stores frequency in Hz.
QKnxDatapointType::Type::DptValueAngularFrequency1400034Stores angular frequency in rad/s.
QKnxDatapointType::Type::DptValueHeatCapacity1400035Stores heat capacity in J/K.
QKnxDatapointType::Type::DptValueHeatFlowRate1400036Stores heat flow rate in W.
QKnxDatapointType::Type::DptValueHeatQuantity1400037Stores heat quantity in J.
QKnxDatapointType::Type::DptValueImpedance1400038Stores impedance in Ohm.
QKnxDatapointType::Type::DptValueLength1400039Stores length in m.
QKnxDatapointType::Type::DptValueLightQuantity1400040Stores light quantity in J.
QKnxDatapointType::Type::DptValueLuminance1400041Stores luminance in cd/m2.
QKnxDatapointType::Type::DptValueLuminousFlux1400042Stores luminous flux in lm.
QKnxDatapointType::Type::DptValueLuminousIntensity1400043Stores luminous intensity in cd.
QKnxDatapointType::Type::DptValueMagneticFieldStrength1400044Stores magnetic field strength in A/m.
QKnxDatapointType::Type::DptValueMagneticFlux1400045Stores magnetic flux in Wb.
QKnxDatapointType::Type::DptValueMagneticFluxDensity1400046Stores magnetic flux density in T.
QKnxDatapointType::Type::DptValueMagneticMoment1400047Stores magnetic moment in Am2.
QKnxDatapointType::Type::DptValueMagneticPolarization1400048Stores magnetic polarization in T.
QKnxDatapointType::Type::DptValueMagnetization1400049Stores magnetization in A/m.
QKnxDatapointType::Type::DptValueMagnetomotiveForce1400050Stores the magnetomotive force in A.
QKnxDatapointType::Type::DptValueMass1400051Stores the mass in kg.
QKnxDatapointType::Type::DptValueMassFlux1400052Stores the mass flux in kg.
QKnxDatapointType::Type::DptValueMomentum1400053Stores the momentum in N/s.
QKnxDatapointType::Type::DptValuePhaseAngleRad1400054Stores the phase angle in radian.
QKnxDatapointType::Type::DptValuePhaseAngleDeg1400055Stores the phase angle in degrees.
QKnxDatapointType::Type::DptValuePower1400056Stores the power in W.
QKnxDatapointType::Type::DptValuePowerFactor1400057Stores the power factor in cos Phi.
QKnxDatapointType::Type::DptValuePressure1400058Stores the pressure in Pa.
QKnxDatapointType::Type::DptValueReactance1400059Stores the reactance in Ohm.
QKnxDatapointType::Type::DptValueResistance1400060Stores the resistance in Ohm.
QKnxDatapointType::Type::DptValueResistivity1400061Stores the resistivity in Ohm*m.
QKnxDatapointType::Type::DptValueSelfInductance1400062Stores the self inductance in H.
QKnxDatapointType::Type::DptValueSolidAngle1400063Stores the solid angle in sr.
QKnxDatapointType::Type::DptValueSoundIntensity1400064Stores the sound intensity in W/m2.
QKnxDatapointType::Type::DptValueSpeed1400065Stores the speed in m/s.
QKnxDatapointType::Type::DptValueStress1400066Stores the stress in Pa.
QKnxDatapointType::Type::DptValueSurfaceTension1400067Stores the surface tension in N/m.
QKnxDatapointType::Type::DptValueCommonTemperature1400068Stores the temperature in degrees Celsius.
QKnxDatapointType::Type::DptValueAbsoluteTemperature1400069Stores the absolute temperature in K.
QKnxDatapointType::Type::DptValueTemperatureDifference1400070Stores the temperature difference in K.
QKnxDatapointType::Type::DptValueThermalCapacity1400071Stores the thermal capacity in J/K.
QKnxDatapointType::Type::DptValueThermalConductivity1400072Stores the thermal conductivity in W/mk.
QKnxDatapointType::Type::DptValueThermoelectricPower1400073Stores the thermoelectric power in V/K.
QKnxDatapointType::Type::DptValueTime1400074Stores the time in seconds.
QKnxDatapointType::Type::DptValueTorque1400075Stores the torque in Nm.
QKnxDatapointType::Type::DptValueVolume1400076Stores the volume in m3.
QKnxDatapointType::Type::DptValueVolumeFlux1400077Stores the volume flux in m3/s.
QKnxDatapointType::Type::DptValueWeight1400078Stores the weight in N.
QKnxDatapointType::Type::DptValueWork1400079Stores the work in J.
QKnxDatapointType::Type::DptValueAcceleration1400000Stores the acceleration in m/s2.
QKnxDatapointType::Type::Dpt15_EntranceAccess1500000A fixed size datapoint type for controlling entrance access.
QKnxDatapointType::Type::Dpt16_CharacterString1600000A fixed size datapoint type that encodes a string.
QKnxDatapointType::Type::DptStringASCII1600000Encodes a string of ASCII characters.
QKnxDatapointType::Type::DptString885911600001Encodes a string of ISO 8859-1 characters.
QKnxDatapointType::Type::Dpt17_SceneNumber1700000A fixed size datapoint type with the length of 1 byte.
QKnxDatapointType::Type::DptSceneNumber1700001Stores a scene number.
QKnxDatapointType::Type::Dpt18_SceneControl1800000A fixed size datapoint type with the length of 1 byte.
QKnxDatapointType::Type::DptSceneControl1800001Stores a scene control.
QKnxDatapointType::Type::Dpt19_DataTime1900000A fixed size datapoint type with the length of 8 bytes.
QKnxDatapointType::Type::DptDateTime1900001Stores the date and time.
QKnxDatapointType::Type::Dpt20_1Byte2000000A fixed size datapoint type with the length of 1 byte.
QKnxDatapointType::Type::DptScloMode2000001Stores the main functionality of the system clock (SCLO).
QKnxDatapointType::Type::DptBuildingMode2000002Stores whether the building is in use and whether it is protected.
QKnxDatapointType::Type::DptOccMode2000003Stores the occupy mode.
QKnxDatapointType::Type::DptPriority2000004Stores the priority.
QKnxDatapointType::Type::DptLightApplicationMode2000005Stores the light application mode.
QKnxDatapointType::Type::DptApplicationArea2000006Stores the application area.
QKnxDatapointType::Type::DptAlarmClassType2000007Stores the alarm class type.
QKnxDatapointType::Type::DptPsuMode2000008Stores the bus power supply unit mode: decentral (distributed) bus power supply unit (DPSU) or central bus power supply unit (PSU).
QKnxDatapointType::Type::DptErrorClassSystem2000011Stores fault signals transmitted in the application area QKnxApplicationArea::SystemFunctionCommonInterest.
QKnxDatapointType::Type::DptErrorClassHvac2000012Stores fault signals transmitted in the heating, ventilation, and air conditioning (HVAC) application area.
QKnxDatapointType::Type::DptTimeDelay2000013Stores a time delay.
QKnxDatapointType::Type::DptBeaufortWindForceScale2000014Stores the wind force using the Beaufort wind force scale.
QKnxDatapointType::Type::DptSensorSelect2000017Stores the sensor mode.
QKnxDatapointType::Type::DptActuatorConnectType2000020Stores the actuator connection type. An actuator can be connected to a sensor or a controller.
QKnxDatapointType::Type::DptCloudCover2000021Stores the scale of the sky obscured by clouds when observed from a particular location.
QKnxDatapointType::Type::Dpt21_8BitSet2100000A fixed size datapoint type with binary-coded values in all fields.
QKnxDatapointType::Type::DptGeneralStatus2100001Stores general status: out of service, fault, overridden, or in alarm.
QKnxDatapointType::Type::DptDeviceControl2100002Stores device control state.
QKnxDatapointType::Type::Dpt22_16BitSet2200000A fixed size datapoint type with the length of 16 bits.
QKnxDatapointType::Type::DptMedia2201000Stores the supported media: TP1, PL110, RF, or KNX IP.
QKnxDatapointType::Type::Dpt23_2BitSet2300000A fixed size datapoint type with the length of 2 bits.
QKnxDatapointType::Type::DptOnOffAction2300001Stores the on/off action.
QKnxDatapointType::Type::DptAlarmReaction2300002Stores the alarm reaction.
QKnxDatapointType::Type::DptUpDownAction2300003Stores the up/down action.
QKnxDatapointType::Type::Dpt24_VariableString2400000A datapoint type that encodes a variable length string.
QKnxDatapointType::Type::DptVariableString885912400001Encodes a variable length string of ISO 8859-1 characters.
QKnxDatapointType::Type::Dpt25_2NibbleSet2500000A fixed size datapoint type for storing the number of busy and inack repetitions.
QKnxDatapointType::Type::Dpt26_8BitSet2600000A fixed size datapoint type with the length of 1 byte and the 8-bit set.
QKnxDatapointType::Type::DptSceneInfo2600001Stores scene information.
QKnxDatapointType::Type::Dpt27_32BitSet2700000A fixed size datapoint type with the 32-bit set.
QKnxDatapointType::Type::DptCombinedInfoOnOff2700001Stores combined information about the on and off states of a multiple-channel binary actuator.
QKnxDatapointType::Type::Dpt28_StringUtf82800000A variable size datapoint type datapoint type for storing a UTF-8 string.
QKnxDatapointType::Type::DptUtf82800001Stores a UTF-8 (Unicode Transformation Format-8) string.
QKnxDatapointType::Type::Dpt29_ElectricalEnergy2900000A fixed size datapoint type with the length of 8 bytes for storing electrical energy.
QKnxDatapointType::Type::DptActiveEnergyV642900010Stores active energy in Wh.
QKnxDatapointType::Type::DptApparentEnergyV642900011Stores active energy in VAh.
QKnxDatapointType::Type::DptReactiveEnergyV642900012Stores active energy in VARh.
QKnxDatapointType::Type::Dpt30_24TimesChannelActivation3000000A fixed size datapoint type for storing the activation state of a channel.
QKnxDatapointType::Type::DPT217_DatapointTypeVersion21700000A fixed size datapoint type for storing version information.
QKnxDatapointType::Type::DptVersion21700001Stores version information, such as software version, hardware version, or data-interface version.
QKnxDatapointType::Type::Dpt22122100000A fixed size datapoint type for storing the serial number of a device.
QKnxDatapointType::Type::DptSerialNumber22100001Stores a manufacturer code and an incremented number. The leading 4 octets within a manufacturer’s code space must be globally unique.
QKnxDatapointType::Type::Dpt225_ScalingSpeed22500000A fixed size datapoint type for storing scaling speed. Used in the lighting application area, only.
QKnxDatapointType::Type::Dpt232_3ByteColourRGB23200000A fixed size datapoint type for storing an RGB color value.
QKnxDatapointType::Type::DptColourRGB23200600Stores 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.

Member Function Documentation

QKnxDatapointType::QKnxDatapointType(QKnxDatapointType &&other)

Move-constructs an object instance, making it point to the same object that other was pointing to.

QKnxDatapointType::QKnxDatapointType(const QKnxDatapointType &other)

Constructs a copy of 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)

Assigns other to this datapoint type and returns a reference to this datapoint type.

[virtual] QKnxDatapointType::~QKnxDatapointType()

Deletes the datapoint type.

quint8 QKnxDatapointType::byte(quint16 index) const

Returns the content of the byte at the index index.

See also setByte().

QKnxByteArray QKnxDatapointType::bytes() const

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

See also setBytes().

double QKnxDatapointType::coefficient() const

Returns the coefficient of the datapoint type.

See also 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.

See also setDescription().

[virtual] bool QKnxDatapointType::isValid() const

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

See also setMaximum().

QString QKnxDatapointType::maximumText() const

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

See also setMaximumText().

QVariant QKnxDatapointType::minimum() const

Returns the minimum value of the datapoint type.

See also setMinimum().

QString QKnxDatapointType::minimumText() const

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

See also setMinimumText().

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

Sets the value of the bit in byteToSet to value.

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

See also byte().

[virtual] 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().

See also bytes().

void QKnxDatapointType::setCoefficient(double coef)

Sets the coefficient of the datapoint type to coef.

See also coefficient().

void QKnxDatapointType::setDescription(const QString &description)

Sets the description of the datapoint type to description.

See also description().

void QKnxDatapointType::setMaximum(const QVariant &maximum)

Sets the maximum value of the datapoint type to maximum.

See also maximum().

void QKnxDatapointType::setMaximumText(const QString &maximumText)

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

See also maximumText().

void QKnxDatapointType::setMinimum(const QVariant &minimum)

Sets the minimum value of the datapoint type to minimum.

See also minimum().

void QKnxDatapointType::setMinimumText(const QString &minimumText)

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

See also 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.

See also 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)

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

Returns 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-*-* into a 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.

See also setUnit().

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

Returns true if this datapoint and the given other are not equal; otherwise returns false.

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

Returns true if this datapoint and the given other are equal; otherwise returns false.

Related Non-Members

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

Writes the datapoint type dpt to the debug stream.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.