]> sigrok.org Git - libsigrokdecode.git/commitdiff
usb_request: Fix some decoding errors
authorStefan Brüns <redacted>
Mon, 17 Jun 2019 17:51:29 +0000 (19:51 +0200)
committerStefan Brüns <redacted>
Mon, 17 Jun 2019 17:51:29 +0000 (19:51 +0200)
Append OUT data only if it has been ACKed. OUT transfers (BULK OUT or
CONTROL transfer DATA stage) are typically NACKed to create backpressure.

Always keep IN and OUT transfers separate. On the physical layer, the
endpoint number only uses 4 bits, and IN and OUT use separate tokens.
In case the transfer is an IN transfer, set the high bit as used in the
endpoint descriptors (i.e. 0x81 is IN enpoint 1, 0x01 is OUT endpoint 1).


No differences found