diff --git a/src/org/hwo/io/servicelink/ServiceLink.java b/src/org/hwo/io/servicelink/ServiceLink.java index 80d93e0..d84a639 100644 --- a/src/org/hwo/io/servicelink/ServiceLink.java +++ b/src/org/hwo/io/servicelink/ServiceLink.java @@ -13,8 +13,6 @@ import org.hwo.Smoother; import org.hwo.bitfields.BitField; import org.hwo.interactiveobjects.InteractiveObject; import org.hwo.io.SerialPort; -import org.hwo.io.servicelink.register.ServiceRegister; -import org.hwo.models.TableMapper.TableColumn; /* ServiceLink * @@ -222,7 +220,12 @@ public class ServiceLink { if (serialPort.isOpen()) serialPort.close(); } - + + public Integer readInt(int achse,int knoten,int register) throws IOException, ServiceLinkException, ServiceLinkRequestFailedException + { + return readInt((byte)achse, (byte)knoten, register); + } + public Integer readInt(byte achse,byte knoten,int register) throws IOException, ServiceLinkException, ServiceLinkRequestFailedException { throwNotOpen(); @@ -234,7 +237,12 @@ public class ServiceLink { throwNotOpen(); return ByteBuffer.wrap( request((byte)(REQ_READ | REQ_FLOAT), achse, knoten, register).value ).order(ByteOrder.LITTLE_ENDIAN).asFloatBuffer().get(); } - + + public void writeInt(int achse,int knoten,int register,int value) throws IOException, ServiceLinkException, ServiceLinkRequestFailedException + { + writeInt((byte)achse, (byte)knoten, register, value); + } + public void writeInt(byte achse,byte knoten,int register,int value) throws IOException, ServiceLinkException, ServiceLinkRequestFailedException { throwNotOpen();