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:54:20 UTC
[plc4x] branch develop updated: feat(protocols/cbus): added initial CALData
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 7623887 feat(protocols/cbus): added initial CALData
7623887 is described below
commit 76238878429e2672e35ee19f7ad0b10d86dae547
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Mar 1 10:54:07 2022 +0100
feat(protocols/cbus): added initial CALData
---
.../src/main/resources/protocols/cbus/c-bus.mspec | 30 +++++++++++++++++++++-
1 file changed, 29 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 6815c7b..2a5f3b8 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
@@ -166,7 +166,35 @@
]
[type CALData
- // TODO: implement me
+ [simple CommandHeader commandHeader]
+ [typeSwitch commandHeader.value
+ ['0x08' CALDataRequestReset
+ ]
+ ['0x1A' CALDataRequestRecall
+ [simple uint 8 paramNo]
+ [simple uint 8 count]
+ ]
+ ['0x21' CALDataRequestIdentify
+ [simple byte attribute]
+ ]
+ ['0x09' CALDataRequestGetStatus
+ [simple uint 8 paramNo]
+ [simple uint 8 count]
+ ]
+ ['0x80' CALDataReplyReply
+ // TODO: how to parse this?
+ ]
+ ['0x32' CALDataReplyAcknowledge
+ [simple uint 8 paramNo]
+ [simple uint 8 code]
+ ]
+ ['0xC0' CALDataReplyStatus
+ // TODO: how to parse this?
+ ]
+ ['0xE0' CALDataReplyStatusExtended
+ // TODO: how to parse this?
+ ]
+ ]
]
[type StatusRequest