diff options
author | Stefan BrĂ¼ns <stefan.bruens@rwth-aachen.de> | 2019-06-17 19:56:51 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2019-06-20 20:06:03 +0200 |
commit | 37c120b9629d6671273703166cce94a8200d9476 (patch) | |
tree | 504e239eeb954814ded6a1367834d07f5aa601cc /decoders/usb_request/pd.py | |
parent | 7c4029417cbdd12fdbfbd2a94107e215c1eaa605 (diff) | |
download | libsigrokdecode-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.
Diffstat (limited to 'decoders/usb_request/pd.py')
-rw-r--r-- | decoders/usb_request/pd.py | 4 |
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 = ( |