You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2018/03/09 14:00:13 UTC

[incubator-plc4x] branch master updated: added more groups and offsets

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git


The following commit(s) were added to refs/heads/master by this push:
     new 1cba146  added more groups and offsets
1cba146 is described below

commit 1cba14697e2a8d6b84abafd8a997567146bd90e7
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Mar 9 15:00:10 2018 +0100

    added more groups and offsets
---
 .../java/ads/api/commands/types/IndexGroup.java    | 28 +++++++++++++++++++++-
 .../java/ads/api/commands/types/IndexOffset.java   |  7 ++++++
 2 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/api/commands/types/IndexGroup.java b/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/api/commands/types/IndexGroup.java
index f77f137..473e344 100644
--- a/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/api/commands/types/IndexGroup.java
+++ b/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/api/commands/types/IndexGroup.java
@@ -57,7 +57,7 @@ public class IndexGroup extends UnsignedIntLEByteValue {
         return new IndexGroup(byteBuf);
     }
 
-    public static class ReservedGroups {
+    public static final class ReservedGroups {
         public static final IndexGroup ADSIGRP_SYMTAB = IndexGroup.of(0xF000);
         public static final IndexGroup ADSIGRP_SYMNAME = IndexGroup.of(0xF001);
         public static final IndexGroup ADSIGRP_SYMVAL = IndexGroup.of(0xF002);
@@ -85,4 +85,30 @@ public class IndexGroup extends UnsignedIntLEByteValue {
         public static final IndexGroup ADSIOFFS_DEVDATA_ADSSTATE = IndexGroup.of(0x0000);
         public static final IndexGroup ADSIOFFS_DEVDATA_DEVSTATE = IndexGroup.of(0x0002);
     }
+
+    public static final class SystemServiceGroups {
+        public static final IndexGroup SYSTEMSERVICE_OPENCREATE = IndexGroup.of(100);
+        public static final IndexGroup SYSTEMSERVICE_OPENREAD = IndexGroup.of(101);
+        public static final IndexGroup SYSTEMSERVICE_OPENWRITE = IndexGroup.of(102);
+        public static final IndexGroup SYSTEMSERVICE_CREATEFILE = IndexGroup.of(110);
+        public static final IndexGroup SYSTEMSERVICE_CLOSEHANDLE = IndexGroup.of(111);
+        public static final IndexGroup SYSTEMSERVICE_FOPEN = IndexGroup.of(120);
+        public static final IndexGroup SYSTEMSERVICE_FCLOSE = IndexGroup.of(121);
+        public static final IndexGroup SYSTEMSERVICE_FREAD = IndexGroup.of(122);
+        public static final IndexGroup SYSTEMSERVICE_FWRITE = IndexGroup.of(123);
+        public static final IndexGroup SYSTEMSERVICE_FSEEK = IndexGroup.of(124);
+        public static final IndexGroup SYSTEMSERVICE_FTELL = IndexGroup.of(125);
+        public static final IndexGroup SYSTEMSERVICE_FGETS = IndexGroup.of(126);
+        public static final IndexGroup SYSTEMSERVICE_FPUTS = IndexGroup.of(127);
+        public static final IndexGroup SYSTEMSERVICE_FSCANF = IndexGroup.of(128);
+        public static final IndexGroup SYSTEMSERVICE_FPRINTF = IndexGroup.of(129);
+        public static final IndexGroup SYSTEMSERVICE_FEOF = IndexGroup.of(130);
+        public static final IndexGroup SYSTEMSERVICE_FDELETE = IndexGroup.of(131);
+        public static final IndexGroup SYSTEMSERVICE_FRENAME = IndexGroup.of(132);
+        public static final IndexGroup SYSTEMSERVICE_REG_HKEYLOCALMACHINE = IndexGroup.of(200);
+        public static final IndexGroup SYSTEMSERVICE_SENDEMAIL = IndexGroup.of(300);
+        public static final IndexGroup SYSTEMSERVICE_TIMESERVICES = IndexGroup.of(400);
+        public static final IndexGroup SYSTEMSERVICE_STARTPROCESS = IndexGroup.of(500);
+        public static final IndexGroup SYSTEMSERVICE_CHANGENETID = IndexGroup.of(600);
+    }
 }
diff --git a/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/api/commands/types/IndexOffset.java b/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/api/commands/types/IndexOffset.java
index 8c9bb3f..ca71ae1 100644
--- a/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/api/commands/types/IndexOffset.java
+++ b/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/api/commands/types/IndexOffset.java
@@ -56,4 +56,11 @@ public class IndexOffset extends UnsignedIntLEByteValue {
     public static IndexOffset of(ByteBuf byteBuf) {
         return new IndexOffset(byteBuf);
     }
+
+    public static final class SystemServiceOffsets {
+        public static final IndexOffset TIMESERVICE_DATEANDTIME = IndexOffset.of(1);
+        public static final IndexOffset TIMESERVICE_SYSTEMTIMES = IndexOffset.of(2);
+        public static final IndexOffset TIMESERVICE_RTCTIMEDIFF = IndexOffset.of(3);
+        public static final IndexOffset TIMESERVICE_ADJUSTTIMETORTC = IndexOffset.of(4);
+    }
 }

-- 
To stop receiving notification emails like this one, please contact
sruehl@apache.org.