##
'''
-This decoder stacks on top of the 'uart' or 'arm_tpiu' PD and decodes the
+This decoder stacks on top of the 'uart' or 'arm_tpiu' PD and decodes the
ARM Cortex-M processor trace data from Instrumentation Trace Macroblock.
'''
## This file is part of the libsigrokdecode project.
##
## Copyright (C) 2013-2016 Uwe Hermann <uwe@hermann-uwe.de>
-## Copyright (C) 2016 Chris Dreher <chrisdreher@hotmail.com>
+## Copyright (C) 2016 Chris Dreher <chrisdreher@hotmail.com>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
'C: PC = %d MP = %d P = %d C = %d WS = %d WO = %d' %
(powerclass, maxpower, prop, count, winsize, winoff),
'Configuration', 'C'])
- elif self.packet[0] == 0x71: # Identification
+ elif self.packet[0] == 0x71: # Identification
version = '%d.%d' % ((self.packet[1] & 0xf0) >> 4, self.packet[1] & 0x0f)
mancode = '%02x%02x' % (self.packet[2], self.packet[3])
devid = '%02x%02x%02x%02x' % (self.packet[4] & ~0x80,
return
self.state = 'GET SLAVE ADDR'
elif self.state == 'GET SLAVE ADDR':
- self.chip = databyte
+ self.chip = databyte
self.state = 'GET REG ADDR'
elif self.state == 'GET REG ADDR':
# Wait for a data write (master selects the slave register).