summaryrefslogtreecommitdiff
path: root/decoders/rc_encode
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-04-08 19:08:39 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-04-08 19:09:02 +0200
commitd46b71ed775eee65088d8f2283cd0db26b46881b (patch)
tree2ac11eab787a764641a281b2295aaea0e77e2415 /decoders/rc_encode
parent3f55b14c6681b58a58982c384d7a81cd5bb9727f (diff)
downloadlibsigrokdecode-d46b71ed775eee65088d8f2283cd0db26b46881b.tar.gz
libsigrokdecode-d46b71ed775eee65088d8f2283cd0db26b46881b.zip
rc_encode: Use different annotation classes for code word addr/data.
Diffstat (limited to 'decoders/rc_encode')
-rw-r--r--decoders/rc_encode/pd.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/decoders/rc_encode/pd.py b/decoders/rc_encode/pd.py
index 3184e72..56b60ca 100644
--- a/decoders/rc_encode/pd.py
+++ b/decoders/rc_encode/pd.py
@@ -90,12 +90,13 @@ class Decoder(srd.Decoder):
('bit-U', 'Bit U'),
('bit-sync', 'Bit sync'),
('pin', 'Pin'),
- ('remote', 'Remote'),
+ ('code-word-addr', 'Code word address'),
+ ('code-word-data', 'Code word data'),
)
annotation_rows = (
('bits', 'Bits', (0, 1, 2, 3, 4)),
('pins', 'Pins', (5,)),
- ('remote', 'Remote', (6,)),
+ ('code-words', 'Code words', (6, 7)),
)
options = (
{'id': 'remote', 'desc': 'Remote', 'default': 'none',
@@ -154,7 +155,7 @@ class Decoder(srd.Decoder):
self.put(self.labels[1], self.labels[2], self.out_ann,
[6, [self.labels[0]]]) # Write model decode.
self.put(self.labels[4], self.labels[5], self.out_ann,
- [6, [self.labels[3]]]) # Write model decode.
+ [7, [self.labels[3]]]) # Write model decode.
samples = self.samplenum - self.samplenumber_last
pin = self.wait({'skip': 8 * samples}) # Wait for end of sync bit.
self.es = self.samplenum