The QKnx2ByteUnsignedValue class is a datapoint type with a 2-byte unsigned value. 更多...
| 头: | #include <QKnx2ByteUnsignedValue> | 
| qmake: | QT += knx | 
| 继承: | QKnxFixedSizeDatapointType | 
| QKnx2ByteUnsignedValue (quint32 value ) | |
| QKnx2ByteUnsignedValue () | |
| bool | setValue (quint32 value ) | 
| quint32 | value () const | 
| virtual bool | isValid () const override | 
| QKnx2ByteUnsignedValue (int subType , quint32 value ) | 
This is a fixed size datapoint type with the length of 2 bytes.
It is a base class for the following datapoint types:
QKnxBrightness
							
							- Brightness in LUX
						
QKnxLengthMilliMeter
							
							- Length in millimeters
						
QKnxPropDataType
							
							- Identifier Interface Object Property data type (no unit)
						
QKnxTimePeriod10Msec
							
							- Time 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.
						
QKnxTimePeriod100Msec
							
							- Time in multiples of 100 milliseconds. Not allowed for runtime communication.
						
QKnxTimePeriodHrs
							
							- Time in hours
						
QKnxTimePeriodMin
							
							- Time in minutes. Not allowed for runtime communication.
						
QKnxTimePeriodMsec
							
							- Time in milliseconds
						
QKnxTimePeriodSec
							
							- Time in seconds
						
QKnxUEICurrentMilliA
							
							- Current in milliampere. The minimum value is
							
0
							
							, which means that no bus poser supply functionality is available.
						
QKnxValue2Ucount
							
							- Pulses
						Integer values from 0 to 65 535 can be encoded in this datapoint type.
另请参阅 QKnxDatapointType and Qt KNX Datapoint Type Classes .
[protected]
						
						QKnx2ByteUnsignedValue::
						
							QKnx2ByteUnsignedValue
						
						(
						
							int
						
						
							subType
						
						,
						
							
								quint32
							
						
						value
						)
						
					Creates a fixed size datapoint type with the subtype subType and value value .
Creates a fixed size datapoint type with the value value .
						Creates a fixed size datapoint type with the value
						
0
						
						.
					
[override virtual]
						
						
							bool
						
						QKnx2ByteUnsignedValue::
						
							isValid
						
						() const
						
					重实现: QKnxDatapointType::isValid () const.
Sets the value of the datapoint type to value .
						返回
						
true
						
						if the value was set; otherwise returns
						
false
						
						.
					
另请参阅 value ().
Returns the value stored in the datapoint type.
另请参阅 setValue ().