summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2017-05-12 00:24:41 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2017-05-12 00:24:41 +0200
commit888790e97cb51d65b64f3fbe43d91e40f4776b07 (patch)
tree60f745b740e611cb5be8a7ae6ab3b9a300ad7ef4 /decoders
parentabf9deff150e0d19989504e71ace952eae87c94e (diff)
downloadlibsigrokdecode-888790e97cb51d65b64f3fbe43d91e40f4776b07.tar.gz
libsigrokdecode-888790e97cb51d65b64f3fbe43d91e40f4776b07.zip
Rename ade7758 decoder to ade77xx.
There are multiple devices in the ADE77xx series that are similar enough to be supportable via this decoder in the future.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/ade77xx/__init__.py (renamed from decoders/ade7758/__init__.py)7
-rw-r--r--decoders/ade77xx/lists.py (renamed from decoders/ade7758/lists.py)0
-rw-r--r--decoders/ade77xx/pd.py (renamed from decoders/ade7758/pd.py)8
3 files changed, 9 insertions, 6 deletions
diff --git a/decoders/ade7758/__init__.py b/decoders/ade77xx/__init__.py
index 0911cc7..cbe8689 100644
--- a/decoders/ade7758/__init__.py
+++ b/decoders/ade77xx/__init__.py
@@ -20,10 +20,13 @@
'''
This decoder stacks on top of the 'spi' PD and decodes Analog Devices
-ADE7758 command/responses.
+ADE77xx command/responses.
-The ADE7758 is a "Poly Phase Multifunction Energy Metering IC with Per Phase
+The ADE77xx is a "Poly Phase Multifunction Energy Metering IC with Per Phase
Information".
+
+This PD has been tested with an ADE7758 so far, support for other devices
+from the ADE77xx series can be added in the future.
'''
from .pd import Decoder
diff --git a/decoders/ade7758/lists.py b/decoders/ade77xx/lists.py
index f556389..f556389 100644
--- a/decoders/ade7758/lists.py
+++ b/decoders/ade77xx/lists.py
diff --git a/decoders/ade7758/pd.py b/decoders/ade77xx/pd.py
index b56279d..053575e 100644
--- a/decoders/ade7758/pd.py
+++ b/decoders/ade77xx/pd.py
@@ -27,13 +27,13 @@ from .lists import *
class Decoder(srd.Decoder):
api_version = 2
- id = 'ade7758'
- name = 'ADE7758'
- longname = 'Analog Devices ADE7758'
+ id = 'ade77xx'
+ name = 'ADE77xx'
+ longname = 'Analog Devices ADE77xx'
desc = 'Poly phase multifunction energy metering IC protocol.'
license = 'mit'
inputs = ['spi']
- outputs = ['ade7758']
+ outputs = ['ade77xx']
annotations = (
('read', 'Register read commands'),
('write', 'Register write commands'),