summaryrefslogtreecommitdiff
path: root/decoders/onewire_link
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-03-12 00:51:06 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2014-03-12 01:11:07 +0100
commitb0918d40e285e7782f4e86356c41648dc748e477 (patch)
treee865ff66623b9a0a621d3776e8d8b2b47f8e95d8 /decoders/onewire_link
parent4e4f8527de0927f2eb1d98e90b58e018ba28d341 (diff)
downloadlibsigrokdecode-b0918d40e285e7782f4e86356c41648dc748e477.tar.gz
libsigrokdecode-b0918d40e285e7782f4e86356c41648dc748e477.zip
Various PDs: Minor option related fixes.
Diffstat (limited to 'decoders/onewire_link')
-rw-r--r--decoders/onewire_link/pd.py27
1 files changed, 9 insertions, 18 deletions
diff --git a/decoders/onewire_link/pd.py b/decoders/onewire_link/pd.py
index d603dba..ceb5da2 100644
--- a/decoders/onewire_link/pd.py
+++ b/decoders/onewire_link/pd.py
@@ -37,33 +37,24 @@ class Decoder(srd.Decoder):
)
options = (
{'id': 'overdrive',
- 'desc': 'Overdrive mode',
- 'default': 'no'},
+ 'desc': 'Overdrive mode', 'default': 'no', 'values': ('yes', 'no')},
# Time options (specified in microseconds):
{'id': 'cnt_normal_bit',
- 'desc': 'Normal mode sample bit time (μs)',
- 'default': 15},
+ 'desc': 'Normal mode sample bit time (μs)', 'default': 15},
{'id': 'cnt_normal_slot',
- 'desc': 'Normal mode data slot time (μs)',
- 'default': 60},
+ 'desc': 'Normal mode data slot time (μs)', 'default': 60},
{'id': 'cnt_normal_presence',
- 'desc': 'Normal mode sample presence time (μs)',
- 'default': 75},
+ 'desc': 'Normal mode sample presence time (μs)', 'default': 75},
{'id': 'cnt_normal_reset',
- 'desc': 'Normal mode reset time (μs)',
- 'default': 480},
+ 'desc': 'Normal mode reset time (μs)', 'default': 480},
{'id': 'cnt_overdrive_bit',
- 'desc': 'Overdrive mode sample bit time (μs)',
- 'default': 2},
+ 'desc': 'Overdrive mode sample bit time (μs)', 'default': 2},
{'id': 'cnt_overdrive_slot',
- 'desc': 'Overdrive mode data slot time (μs)',
- 'default': 7.3},
+ 'desc': 'Overdrive mode data slot time (μs)', 'default': 7.3},
{'id': 'cnt_overdrive_presence',
- 'desc': 'Overdrive mode sample presence time (μs)',
- 'default': 10},
+ 'desc': 'Overdrive mode sample presence time (μs)', 'default': 10},
{'id': 'cnt_overdrive_reset',
- 'desc': 'Overdrive mode reset time (μs)',
- 'default': 48},
+ 'desc': 'Overdrive mode reset time (μs)', 'default': 48},
)
annotations = (
('bit', 'Bit'),