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 2022/03/01 09:45:06 UTC

[plc4x] branch develop updated: feat(protocols/cbus): added initial SALData

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

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


The following commit(s) were added to refs/heads/develop by this push:
     new 5232441  feat(protocols/cbus): added initial SALData
5232441 is described below

commit 5232441cd6ab6b5c1c0c53ed2ccfc55147217d65
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Mar 1 10:44:51 2022 +0100

    feat(protocols/cbus): added initial SALData
---
 .../src/main/resources/protocols/cbus/c-bus.mspec    | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/protocols/c-bus/src/main/resources/protocols/cbus/c-bus.mspec b/protocols/c-bus/src/main/resources/protocols/cbus/c-bus.mspec
index 22e43b2..6815c7b 100644
--- a/protocols/c-bus/src/main/resources/protocols/cbus/c-bus.mspec
+++ b/protocols/c-bus/src/main/resources/protocols/cbus/c-bus.mspec
@@ -195,7 +195,25 @@
 ]
 
 [type SALData
-    // TODO: implement me
+    [simple CommandHeader commandHeader]
+    [typeSwitch commandHeader.value
+        ['0x01' SALDataOff
+            [simple byte group]
+        ]
+        ['0x79' SALDataOn
+            [simple byte group]
+        ]
+        ['0x0' SALDataRampToLevel
+            [simple byte groupLevel]
+        ]
+        ['0x09' SALDataTerminateRamp
+            [simple byte group]
+        ]
+    ]
+]
+
+[type CommandHeader
+    [simple byte value]
 ]
 
 [type Reply