diff options
author | Stefan Brüns <stefan.bruens@rwth-aachen.de> | 2019-06-17 19:51:29 +0200 |
---|---|---|
committer | Stefan Brüns <stefan.bruens@rwth-aachen.de> | 2019-06-17 19:51:29 +0200 |
commit | 7c4029417cbdd12fdbfbd2a94107e215c1eaa605 (patch) | |
tree | c127f00bce1ce593ec731b6b36472d835cbff687 /instance.c | |
parent | ff73d589b60677cf405d8e6af8810c849595fd7a (diff) | |
download | libsigrokdecode-7c4029417cbdd12fdbfbd2a94107e215c1eaa605.tar.gz libsigrokdecode-7c4029417cbdd12fdbfbd2a94107e215c1eaa605.zip |
usb_request: Fix some decoding errors
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).
Diffstat (limited to 'instance.c')
0 files changed, 0 insertions, 0 deletions