return int(''.join(l), 2)
class Decoder(srd.Decoder):
- api_version = 1
+ api_version = 2
id = 'usb_packet'
name = 'USB packet'
longname = 'Universal Serial Bus (LS/FS) packet'
('packet-invalid', 'Packet: Invalid'),
)
annotation_rows = (
- ('fields', 'Packet fields', tuple(range(11 + 1))),
- ('packet', 'Packets', tuple(range(12, 28 + 1))),
+ ('fields', 'Packet fields', tuple(range(10 + 1))),
+ ('packet', 'Packets', tuple(range(11, 28 + 1))),
)
def __init__(self):