summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan BrĂ¼ns <stefan.bruens@rwth-aachen.de>2019-06-17 19:56:51 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2019-06-20 20:06:03 +0200
commit37c120b9629d6671273703166cce94a8200d9476 (patch)
tree504e239eeb954814ded6a1367834d07f5aa601cc
parent7c4029417cbdd12fdbfbd2a94107e215c1eaa605 (diff)
downloadlibsigrokdecode-37c120b9629d6671273703166cce94a8200d9476.tar.gz
libsigrokdecode-37c120b9629d6671273703166cce94a8200d9476.zip
usb_request: Use separate annotation rows for IN, OUT and CONTROL
E.g. CONTROL and BULK IN transfers may overlap each other, and as a result only one of the two can be seen in pulseview. Partly solves bug #1046. In case a device has multiple IN/OUT endpoints, transfers would still overlap, but many simple devices have just one each.
-rw-r--r--decoders/usb_request/pd.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/decoders/usb_request/pd.py b/decoders/usb_request/pd.py
index 25ee4c5..71097a1 100644
--- a/decoders/usb_request/pd.py
+++ b/decoders/usb_request/pd.py
@@ -129,7 +129,9 @@ class Decoder(srd.Decoder):
('errors', 'Unexpected packets'),
)
annotation_rows = (
- ('request', 'USB requests', tuple(range(4))),
+ ('request-setup', 'USB SETUP', (0, 1)),
+ ('request-in', 'USB BULK IN', (2,)),
+ ('request-out', 'USB BULK OUT', (3,)),
('errors', 'Errors', (4,)),
)
binary = (