'''
class Decoder(srd.Decoder):
- api_version = 1
+ api_version = 2
id = 'i2s'
name = 'I²S'
longname = 'Integrated Interchip Sound'
license = 'gplv2+'
inputs = ['logic']
outputs = ['i2s']
- probes = [
+ channels = (
{'id': 'sck', 'name': 'SCK', 'desc': 'Bit clock line'},
{'id': 'ws', 'name': 'WS', 'desc': 'Word select line'},
{'id': 'sd', 'name': 'SD', 'desc': 'Serial data line'},
- ]
- annotations = [
- ['left', 'Left channel'],
- ['right', 'Right channel'],
- ['warnings', 'Warnings'],
- ]
+ )
+ annotations = (
+ ('left', 'Left channel'),
+ ('right', 'Right channel'),
+ ('warnings', 'Warnings'),
+ )
binary = (
('wav', 'WAV file'),
)