summaryrefslogtreecommitdiff
path: root/decoders/srd_usb.py
diff options
context:
space:
mode:
authorGareth McMullin <gareth@blacksphere.co.nz>2011-12-01 23:09:40 +1300
committerGareth McMullin <gareth@blacksphere.co.nz>2011-12-01 23:10:28 +1300
commit67e847fd2185aa5677954dceacf3c279d7a68af1 (patch)
tree81d6fc2e649e9414cc618ab615f88b8c6b4ef583 /decoders/srd_usb.py
parent400f9ae7ff16bb611d758d75ff4931b667561b11 (diff)
downloadlibsigrokdecode-67e847fd2185aa5677954dceacf3c279d7a68af1.tar.gz
libsigrokdecode-67e847fd2185aa5677954dceacf3c279d7a68af1.zip
srd: PDs now explicitly register with sigrok module.
Diffstat (limited to 'decoders/srd_usb.py')
-rw-r--r--decoders/srd_usb.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/srd_usb.py b/decoders/srd_usb.py
index 128b337..07fc732 100644
--- a/decoders/srd_usb.py
+++ b/decoders/srd_usb.py
@@ -111,6 +111,7 @@ def packet_decode(packet):
return pid + ' ' + data
class Decoder():
+ id = 'usb'
name = 'USB'
desc = 'Universal Serial Bus'
longname = '...longname...'
@@ -184,3 +185,5 @@ class Decoder():
self.scount = 0
self.sym = sym
+sigrok.register(Decoder)
+