summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2015-12-01 06:48:02 +0100
committerStefan Brüns <stefan.bruens@rwth-aachen.de>2015-12-01 06:48:02 +0100
commit9821622af021360a92334d1a6b465c8e3aab90b6 (patch)
tree190493dbecb74c02e985f9f5433b63573f6e5d18 /decoders
parentbe0f8fee99fe939c50ed5d2483a924754788c0b3 (diff)
downloadlibsigrokdecode-9821622af021360a92334d1a6b465c8e3aab90b6.tar.gz
libsigrokdecode-9821622af021360a92334d1a6b465c8e3aab90b6.zip
usb_signalling: add signaling states needed after LS PREamble PID
Diffstat (limited to 'decoders')
-rw-r--r--decoders/usb_signalling/pd.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/decoders/usb_signalling/pd.py b/decoders/usb_signalling/pd.py
index 4dfde83..8225ae7 100644
--- a/decoders/usb_signalling/pd.py
+++ b/decoders/usb_signalling/pd.py
@@ -69,10 +69,22 @@ symbols = {
(0, 1): 'LS_J',
(1, 1): 'SE1',
},
+# After a PREamble PID, the bus segment between Host and Hub uses LS signalling
+# rate and FS signalling polarity (USB 2.0 spec, 11.8.4: "For both upstream and
+# downstream low-speed data, the hub is responsible for inverting the polarity of
+# the data before transmitting to/from a low-speed port."
+ 'low-speed-rp': {
+ # (<dp>, <dm>): <symbol/state>
+ (0, 0): 'SE0',
+ (1, 0): 'J',
+ (0, 1): 'K',
+ (1, 1): 'SE1',
+ },
}
bitrates = {
'low-speed': 1500000, # 1.5Mb/s (+/- 1.5%)
+ 'low-speed-rp': 1500000, # 1.5Mb/s (+/- 1.5%)
'full-speed': 12000000, # 12Mb/s (+/- 0.25%)
'automatic': None
}
@@ -227,7 +239,7 @@ class Decoder(srd.Decoder):
# Got an EOP.
self.putpm(['EOP', None])
self.putm([5, ['EOP', 'E']])
- self.state = 'IDLE'
+ self.state = 'WAIT IDLE'
else:
self.putpm(['ERR', None])
self.putm([8, ['EOP Error', 'EErr', 'E']])