QKnx4ByteFloat Class

The QKnx4ByteFloat class is datapoint type for a 4-byte float value. More...

Header: #include <QKnx4ByteFloat>
qmake: QT += knx
Inherits: QKnxFixedSizeDatapointType

Public Functions

QKnx4ByteFloat(float value)
QKnx4ByteFloat()
void setValue(float value)
float value() const

Reimplemented Public Functions

virtual bool isValid() const override

Protected Functions

QKnx4ByteFloat(int subType, float value)

Detailed Description

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

The range for the value of this datapoint type is from -3.40282e+38 to 3.40282e+38.

This class is a base class for the following datapoint types:

  • QKnxValueAbsoluteTemperature - Absolute temperature in K.
  • QKnxValueAcceleration - Acceleration in m/s2.
  • QKnxValueAccelerationAngular - Angular Acceleration in rad/s2.
  • QKnxValueActivationEnergy - Activation Energy in J/mol.
  • QKnxValueActivity - Radioactive activity in 1/s.
  • QKnxValueAngleDeg - Angle in degrees.
  • QKnxValueAngleRad - Angle in radian.
  • QKnxValueAmplitude - Amplitude.
  • QKnxValueAngularFrequency - Angular frequency in rad/s.
  • QKnxValueAngularMomentum - Angular momentum in Js.
  • QKnxValueAngularVelocity - Angular velocity in rad/s.
  • QKnxValueArea - Area in m2.
  • QKnxValueCapacitance - Capacitance in F.
  • QKnxValueChargeDensitySurface - Flux density in C/m2.
  • QKnxValueChargeDensityVolume - Charge density in C/m3.
  • QKnxValueCompressibility - Compressibility in m2/N.
  • QKnxValueCommonTemperature - Temperature in degrees Celsius.
  • QKnxValueConductance - Conductance in S.
  • QKnxValueDensity - Density in kg/m3.
  • QKnxValueElectricalConductivity - Conductivity in S/m.
  • QKnxValueElectricCharge - Electric charge in C.
  • QKnxValueElectricCurrent - Electric current in A.
  • QKnxValueElectricCurrentDensity - Electric current density in A/m2.
  • QKnxValueElectricDipoleMoment - Electric dipole moment in Cm.
  • QKnxValueElectricDisplacement - Electric displacement in C/m2.
  • QKnxValueElectricFieldStrength - Electric field strength in V/m.
  • QKnxValueElectricFlux - Electric flux in C.
  • QKnxValueElectricFluxDensity - Electric flux density in C/m2.
  • QKnxValueElectricPolarization - Electric polarization in C/m2.
  • QKnxValueElectricPotential - Electric potential in V.
  • QKnxValueElectricPotentialDifference - Electric potential difference in V.
  • QKnxValueElectromagneticMoment - Electromagnetic moment in Am2.
  • QKnxValueElectromotiveForce - Electromotive force in V.
  • QKnxValueEnergy - Energy in J.
  • QKnxValueForce - Force in N.
  • QKnxValueFrequency - Frequency in Hz.
  • QKnxValueHeatCapacity - Heat capacity in J/K.
  • QKnxValueHeatFlowRate - Heat flow rate in W.
  • QKnxValueHeatQuantity - Heat quantity in J.
  • QKnxValueImpedance - Impedance in Ohm.
  • QKnxValueLength - Length in m.
  • QKnxValueLightQuantity - Light quantity in J.
  • QKnxValueLuminance - Luminance in cd/m2.
  • QKnxValueLuminousFlux - Luminous flux in lm.
  • QKnxValueLuminousIntensity - Luminous intensity in cd.
  • QKnxValueMagneticFieldStrength - Magnetic field strength in A/m.
  • QKnxValueMagneticFlux - Magnetic flux in Wb.
  • QKnxValueMagneticFluxDensity - Magnetic flux density in T.
  • QKnxValueMagneticMoment - Magnetic moment in Am2.
  • QKnxValueMagneticPolarization - Magnetic polarization in T.
  • QKnxValueMagnetization - Magnetization in A/m.
  • QKnxValueMagnetomotiveForce - Magnetomotive force in A.
  • QKnxValueMass - Mass in kg.
  • QKnxValueMassFlux - Mass flux in kg/s.
  • QKnxValueMol - Amount of substance in mol.
  • QKnxValueMomentum - Momentum in N/s.
  • QKnxValuePhaseAngleDeg - Phase angle in degrees.
  • QKnxValuePhaseAngleRad - Phase angle in radian.
  • QKnxValuePower - Power in W.
  • QKnxValuePowerFactor - Power factor in cos Phi.
  • QKnxValuePressure - Pressure in Pa.
  • QKnxValueReactance - Reactance in Ohm.
  • QKnxValueResistance - Resistance in Ohm.
  • QKnxValueResistivity - Resistivity in Ohm*m.
  • QKnxValueSelfInductance - Self inductance in H.
  • QKnxValueSolidAngle - Solid angle in sr.
  • QKnxValueSoundIntensity - Sound intensity in W/m2.
  • QKnxValueSpeed - Speed in m/s.
  • QKnxValueStress - Stress in Pa.
  • QKnxValueSurfaceTension - Surface tension in N/m.
  • QKnxValueTemperatureDifference - Temperature difference in K.
  • QKnxValueThermalCapacity - Thermal capacity in J/K.
  • QKnxValueThermalConductivity - Thermal conductivity in W/mk.
  • QKnxValueThermoelectricPower - Thermoelectric power in V/K.
  • QKnxValueTime - Time in seconds.
  • QKnxValueTorque - Torque in Nm.
  • QKnxValueVolume - Volume in m3.
  • QKnxValueVolumeFlux - Volume flux in m3/s.
  • QKnxValueWeight - Weight in N.
  • QKnxValueWork - Work in J.

See also QKnxDatapointType and Qt KNX Datapoint Type Classes.

Member Function Documentation

[protected] QKnx4ByteFloat::QKnx4ByteFloat(int subType, float value)

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

QKnx4ByteFloat::QKnx4ByteFloat(float value)

Creates a fixed size datapoint type with the float value.

QKnx4ByteFloat::QKnx4ByteFloat()

Creates a fixed size datapoint type with the value set to 0.0.

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

Reimplements: QKnxDatapointType::isValid() const.

void QKnx4ByteFloat::setValue(float value)

Sets the float of the datapoint type to value.

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

See also value().

float QKnx4ByteFloat::value() const

Returns the value stored in the datapoint type.

See also setValue().

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