summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-02-09 19:26:59 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2014-02-09 19:38:21 +0100
commiteafe8f08a1cb46e411dcd358f0d748f7d1aa47aa (patch)
tree6d3be0e3d1fc5e235ba9040129355f944463685d
parenta87d7847818a2b6389d9a8cbc9ba690ed8b49317 (diff)
downloadlibsigrokdecode-eafe8f08a1cb46e411dcd358f0d748f7d1aa47aa.tar.gz
libsigrokdecode-eafe8f08a1cb46e411dcd358f0d748f7d1aa47aa.zip
usb_packet: s/NACK/NAK/.
The USB spec spells this as "NAK".
-rw-r--r--decoders/usb_packet/pd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/usb_packet/pd.py b/decoders/usb_packet/pd.py
index 0a323a2..7524194 100644
--- a/decoders/usb_packet/pd.py
+++ b/decoders/usb_packet/pd.py
@@ -55,7 +55,7 @@ Packet:
- 'DATA', 'DATA2', [<sync>, <pid>, <databytes>, <crc16>, <eop>]
- 'DATA', 'MDATA', [<sync>, <pid>, <databytes>, <crc16>, <eop>]
- 'HANDSHAKE', 'ACK', [<sync>, <pid>, <eop>]
- - 'HANDSHAKE', 'NACK', [<sync>, <pid>, <eop>]
+ - 'HANDSHAKE', 'NAK', [<sync>, <pid>, <eop>]
- 'HANDSHAKE', 'STALL', [<sync>, <pid>, <eop>]
- 'HANDSHAKE', 'NYET', [<sync>, <pid>, <eop>]
- 'SPECIAL', 'PRE', [<sync>, <pid>, <addr>, <ep>, <crc5>, <eop>]
@@ -122,7 +122,7 @@ def get_category(pidname):
return 'TOKEN'
elif pidname in ('DATA0', 'DATA1', 'DATA2', 'MDATA'):
return 'DATA'
- elif pidname in ('ACK', 'NACK', 'STALL', 'NYET'):
+ elif pidname in ('ACK', 'NAK', 'STALL', 'NYET'):
return 'HANDSHAKE'
else:
return 'SPECIAL'
@@ -177,7 +177,7 @@ class Decoder(srd.Decoder):
['packet-data2', 'Packet: DATA2'],
['packet-mdata', 'Packet: MDATA'],
['packet-ack', 'Packet: ACK'],
- ['packet-nack', 'Packet: NACK'],
+ ['packet-nak', 'Packet: NAK'],
['packet-stall', 'Packet: STALL'],
['packet-nyet', 'Packet: NYET'],
['packet-pre', 'Packet: PRE'],