X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fi2s%2Fpd.py;h=989a5a5eaf9433ec653b60d3bf12c0d4f4e82468;hb=35e92b7bc6f40232144a7e6c9875ef02dbc6faa5;hp=73bfa6f634bec9547fb387233ec469df59e1054c;hpb=c515eed7ef7a04a42b5b34abd308e08d6942835e;p=libsigrokdecode.git diff --git a/decoders/i2s/pd.py b/decoders/i2s/pd.py index 73bfa6f..989a5a5 100644 --- a/decoders/i2s/pd.py +++ b/decoders/i2s/pd.py @@ -34,7 +34,7 @@ Packet: ''' class Decoder(srd.Decoder): - api_version = 1 + api_version = 2 id = 'i2s' name = 'I²S' longname = 'Integrated Interchip Sound' @@ -42,18 +42,16 @@ class Decoder(srd.Decoder): 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'}, - ] - optional_probes = [] - options = {} - annotations = [ - ['left', 'Left channel'], - ['right', 'Right channel'], - ['warnings', 'Warnings'], - ] + ) + annotations = ( + ('left', 'Left channel'), + ('right', 'Right channel'), + ('warnings', 'Warnings'), + ) binary = ( ('wav', 'WAV file'), )