From 2dc6d41c64a8235308e61b4f9b509c7fecb2b502 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 19 Jun 2012 17:29:18 +0200 Subject: srd: Split USB decoder in two PDs (which stack). The 'usb_signalling' decoder just decodes symbols from D+/D- levels, handles bit stuffing and outputs the symbols and (potential) packets. The 'usb_protocol' decoder takes that output and tried to parse USB packets from it (SOF, SETUP, IN, OUT, DATA0, and so on). This is the base decoder on top of which various others will stack later on. The two new PDs are work in progress, so we still keep the old 'usb' PD around for a little while, until the two new ones are fully working and well-tested. --- decoders/usb/usb.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'decoders/usb') diff --git a/decoders/usb/usb.py b/decoders/usb/usb.py index 529868e..c5b6a2e 100644 --- a/decoders/usb/usb.py +++ b/decoders/usb/usb.py @@ -166,12 +166,12 @@ class Decoder(srd.Decoder): if sym == self.sym: continue - if self.scount == 1: - # We ignore single sample width "pulses", i.e., symbol changes - # (D+/D- line changes). I sometimes get these with the OLS. - self.sym = sym - self.scount = 0 - continue + # if self.scount == 1: + # # We ignore single sample width "pulses", i.e., symbol changes + # # (D+/D- line changes). I sometimes get these with the OLS. + # self.sym = sym + # self.scount = 0 + # continue # How many bits since the last transition? if self.packet != '' or self.sym != 'J': -- cgit v1.2.3-70-g09d2