summaryrefslogtreecommitdiff
path: root/decoders/onewire_link
diff options
context:
space:
mode:
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'),