summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
ec0afe2)
For now SPI gets the following annotation types:
- MISO/MOSI SPI data
- MISO SPI data
- MOSI SPI data
(i.e. you can see either MISO, or MOSI, or both; the latter is most
useful for CLI usage)
Also, show the hex values as e.g. F5 (upper-case letters, no "0x" prefix).
'format': ['Data format', 'hex'],
}
annotations = [
'format': ['Data format', 'hex'],
}
annotations = [
+ ['MISO/MOSI data', 'MISO/MOSI SPI data'],
+ ['MISO data', 'MISO SPI data'],
+ ['MOSI data', 'MOSI SPI data'],
['Warnings', 'Human-readable warnings'],
]
['Warnings', 'Human-readable warnings'],
]
continue
self.putpw(['DATA', self.mosidata, self.misodata])
continue
self.putpw(['DATA', self.mosidata, self.misodata])
- self.putw([0, ['MOSI: 0x%02x, MISO: 0x%02x' % (self.mosidata,
- self.misodata)]])
+ self.putw([0, ['%02X/%02X' % (self.mosidata, self.misodata)]])
+ self.putw([1, ['%02X' % self.misodata]])
+ self.putw([2, ['%02X' % self.mosidata]])
if self.cs_was_deasserted_during_data_word:
if self.cs_was_deasserted_during_data_word:
- self.putw([1, ['CS# was deasserted during this data word!']])
+ self.putw([3, ['CS# was deasserted during this data word!']])
# Reset decoder state.
self.mosidata = 0
# Reset decoder state.
self.mosidata = 0