org.universAAL.lddi.knx.groupdevicemodel
Class KnxDpt9GroupDevice
java.lang.Object
org.universAAL.lddi.knx.groupdevicemodel.KnxGroupDevice
org.universAAL.lddi.knx.groupdevicemodel.KnxDpt9GroupDevice
- All Implemented Interfaces:
- org.osgi.service.device.Device, IKnxDpt9, IKnxReceiveMessage, IKnxSendMessage
public class KnxDpt9GroupDevice
- extends KnxGroupDevice
- implements IKnxDpt9
Concrete implementation of KNX group devices for KNX data type 9.***.
- Author:
- Thomas Fuxreiter (foex@gmx.at)
Fields inherited from interface org.universAAL.lddi.knx.groupdevicecategory.IKnxDpt9 |
CLASS, DEFAULT_INVALID_VALUE, DEFAULT_MAX_VALUE, DEFAULT_MIN_VALUE, MANUFACTURER, MATCH_CLASS, MATCH_MAKE, MATCH_MODEL, MATCH_SERIAL, MATCH_VERSION, MODEL, MY_DEVICE_CATEGORY, RESOLUTION_9_001, REVISION, SERIAL |
Fields inherited from interface org.osgi.service.device.Device |
MATCH_NONE |
Methods inherited from class org.universAAL.lddi.knx.groupdevicemodel.KnxGroupDevice |
addDriver, getDatapointType, getDatapointTypeMainNumber, getDatapointTypeSubNumber, getGroupAddress, getGroupDeviceCategory, getGroupDeviceId, newMessageFromKnxBus, noDriverFound, removeDriver, sendMessageToKnxBus, setParams |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KnxDpt9GroupDevice
public KnxDpt9GroupDevice()
- empty constructor for factory
calculateFloatValue
public static float calculateFloatValue(byte[] payload)
- Calculate float value from knx message payload.
MSB LSB
float value |-------- --------|
encoding MEEEEMMM MMMMMMMM
FloatValue = (0,01*M)*2(E)
E = [0 : 15]
M = [-2 048 : 2 047], two's complement notation
createPayloadFromFloatValue
public static byte[] createPayloadFromFloatValue(float value)
Copyright © 2014 universAAL Consortium. All Rights Reserved.