summaryrefslogtreecommitdiff
path: root/decoders/rtc8564/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/rtc8564/pd.py')
-rw-r--r--decoders/rtc8564/pd.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/decoders/rtc8564/pd.py b/decoders/rtc8564/pd.py
index ce6ef75..8a2fbf9 100644
--- a/decoders/rtc8564/pd.py
+++ b/decoders/rtc8564/pd.py
@@ -40,16 +40,8 @@ class Decoder(srd.Decoder):
{'id': 'int', 'name': 'INT#', 'desc': 'Interrupt'},
]
options = {}
- annotations = [
- ['reg-0x00', 'Register 0x00'],
- ['reg-0x01', 'Register 0x01'],
- ['reg-0x02', 'Register 0x02'],
- ['reg-0x03', 'Register 0x03'],
- ['reg-0x04', 'Register 0x04'],
- ['reg-0x05', 'Register 0x05'],
- ['reg-0x06', 'Register 0x06'],
- ['reg-0x07', 'Register 0x07'],
- ['reg-0x08', 'Register 0x08'],
+ annotations = \
+ [['reg-0x%02x' % i, 'Register 0x%02x' % i] for i in range(8 + 1)] + [
['read', 'Read date/time'],
['write', 'Write date/time'],
['bit-reserved', 'Reserved bit'],