- if self.cmd == 'SINGLE_READ':
- return 'Read'
- if self.cmd == 'BURST_READ':
- return 'Burst read'
- if self.cmd == 'SINGLE_WRITE':
- return 'Write'
- if self.cmd == 'BURST_WRITE':
- return 'Burst write'
- if self.cmd == 'STATUS_READ':
- return 'Status read'
- if self.cmd == 'STROBE_CMD':
+ if self.cmd in ('Read', 'Burst read', 'Write', 'Burst write', 'Status read'):
+ return self.cmd
+ if self.cmd == 'Strobe':