id = 'mx25lxx05d'
name = 'MX25Lxx05D'
longname = 'Macronix MX25Lxx05D'
- desc = 'Macronix MX25Lxx05D SPI flash chip decoder'
- longdesc = 'TODO'
+ desc = 'SPI (NOR) flash chip protocol.'
license = 'gplv2+'
inputs = ['spi', 'logic']
outputs = ['mx25lxx05d']
]
options = {} # TODO
annotations = [
- ['TODO', 'TODO'],
+ ['Text', 'Human-readable text'],
]
def __init__(self, **kwargs):
pass
def putx(self, data):
- # Simplification, most annotations span extactly one SPI byte/packet.
+ # Simplification, most annotations span exactly one SPI byte/packet.
self.put(self.ss, self.es, self.out_ann, data)
def handle_wren(self, mosi, miso):
self.putx([0, ['%s ID' % d]])
elif self.cmdstate == 6:
# Byte 6: Slave sends device ID (or manufacturer ID).
- self.ids += [miso]
+ self.ids.append(miso)
d = 'Manufacturer' if self.manufacturer_id_first else 'Device'
self.putx([0, ['%s ID' % d]])
else:
ptype, mosi, miso = data
- if ptype != 'data':
+ if ptype != 'DATA':
return
cmd = mosi