diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-15 20:41:46 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-15 20:48:11 +0100 |
commit | a2c2afd9357fab233a4f09531618faa81d54d4d9 (patch) | |
tree | 83adc417308ca8afd4181bd2262af89bf360bd53 | |
parent | 64c29e28e0efa184319f7831b3eca18c7f73f7d0 (diff) | |
download | libsigrokdecode-a2c2afd9357fab233a4f09531618faa81d54d4d9.tar.gz libsigrokdecode-a2c2afd9357fab233a4f09531618faa81d54d4d9.zip |
srd: Add 'api_version = 1' to all PDs.
-rw-r--r-- | decoders/dcf77/dcf77.py | 1 | ||||
-rw-r--r-- | decoders/ddc/ddc.py | 1 | ||||
-rw-r--r-- | decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py | 1 | ||||
-rw-r--r-- | decoders/i2c/i2c.py | 1 | ||||
-rw-r--r-- | decoders/mx25lxx05d/mx25lxx05d.py | 1 | ||||
-rw-r--r-- | decoders/nunchuk/nunchuk.py | 1 | ||||
-rw-r--r-- | decoders/pan1321/pan1321.py | 1 | ||||
-rw-r--r-- | decoders/spi/spi.py | 1 | ||||
-rw-r--r-- | decoders/transitioncounter/transitioncounter.py | 1 | ||||
-rw-r--r-- | decoders/uart/uart.py | 1 | ||||
-rw-r--r-- | decoders/usb/usb.py | 1 |
11 files changed, 11 insertions, 0 deletions
diff --git a/decoders/dcf77/dcf77.py b/decoders/dcf77/dcf77.py index 48b3bba..b7e029d 100644 --- a/decoders/dcf77/dcf77.py +++ b/decoders/dcf77/dcf77.py @@ -45,6 +45,7 @@ def bcd2int(b): return (b & 0x0f) + ((b >> 4) * 10) class Decoder(srd.Decoder): + api_version = 1 id = 'dcf77' name = 'DCF77' longname = 'DCF77 time protocol' diff --git a/decoders/ddc/ddc.py b/decoders/ddc/ddc.py index f839093..349b2ec 100644 --- a/decoders/ddc/ddc.py +++ b/decoders/ddc/ddc.py @@ -28,6 +28,7 @@ https://en.wikipedia.org/wiki/Display_Data_Channel import sigrokdecode as srd class Decoder(srd.Decoder): + api_version = 1 id = 'ddc' name = 'DDC' longname = 'Display Data Channel' diff --git a/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py b/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py index 353fea8..1c704e3 100644 --- a/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py +++ b/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py @@ -40,6 +40,7 @@ H8563S = 1 ACCEL = 2 class Decoder(srd.Decoder): + api_version = 1 id = 'ebr30a_i2c_demux' name = 'EBR30-a I2C demux' longname = 'TrekStor EBR30-a I2C demux' diff --git a/decoders/i2c/i2c.py b/decoders/i2c/i2c.py index f0a95b7..16bd6c3 100644 --- a/decoders/i2c/i2c.py +++ b/decoders/i2c/i2c.py @@ -116,6 +116,7 @@ FIND_ADDRESS = 1 FIND_DATA = 2 class Decoder(srd.Decoder): + api_version = 1 id = 'i2c' name = 'I2C' longname = 'Inter-Integrated Circuit' diff --git a/decoders/mx25lxx05d/mx25lxx05d.py b/decoders/mx25lxx05d/mx25lxx05d.py index cd97dee..787ea26 100644 --- a/decoders/mx25lxx05d/mx25lxx05d.py +++ b/decoders/mx25lxx05d/mx25lxx05d.py @@ -102,6 +102,7 @@ device_name = { } class Decoder(srd.Decoder): + api_version = 1 id = 'mx25lxx05d' name = 'MX25Lxx05D' longname = 'Macronix MX25Lxx05D' diff --git a/decoders/nunchuk/nunchuk.py b/decoders/nunchuk/nunchuk.py index 46bf53c..3308bef 100644 --- a/decoders/nunchuk/nunchuk.py +++ b/decoders/nunchuk/nunchuk.py @@ -40,6 +40,7 @@ INIT = 3 INITIALIZED = 4 class Decoder(srd.Decoder): + api_version = 1 id = 'nunchuk' name = 'Nunchuk' longname = 'Nintendo Wii Nunchuk' diff --git a/decoders/pan1321/pan1321.py b/decoders/pan1321/pan1321.py index 55676ce..2c86449 100644 --- a/decoders/pan1321/pan1321.py +++ b/decoders/pan1321/pan1321.py @@ -37,6 +37,7 @@ RX = 0 TX = 1 class Decoder(srd.Decoder): + api_version = 1 id = 'pan1321' name = 'PAN1321' longname = 'Panasonic PAN1321' diff --git a/decoders/spi/spi.py b/decoders/spi/spi.py index 07b8da2..25cfcfa 100644 --- a/decoders/spi/spi.py +++ b/decoders/spi/spi.py @@ -48,6 +48,7 @@ spi_mode = { ANN_HEX = 0 class Decoder(srd.Decoder): + api_version = 1 id = 'spi' name = 'SPI' longname = 'Serial Peripheral Interface' diff --git a/decoders/transitioncounter/transitioncounter.py b/decoders/transitioncounter/transitioncounter.py index 4c832b0..9cf1918 100644 --- a/decoders/transitioncounter/transitioncounter.py +++ b/decoders/transitioncounter/transitioncounter.py @@ -21,6 +21,7 @@ import sigrokdecode as srd class Decoder(srd.Decoder): + api_version = 1 id = 'transitioncounter' name = 'Transition counter' longname = 'Pin transition counter' diff --git a/decoders/uart/uart.py b/decoders/uart/uart.py index 4752c7d..56bfcfb 100644 --- a/decoders/uart/uart.py +++ b/decoders/uart/uart.py @@ -184,6 +184,7 @@ def parity_ok(parity_type, parity_bit, data, num_data_bits): raise Exception('Invalid parity type: %d' % parity_type) class Decoder(srd.Decoder): + api_version = 1 id = 'uart' name = 'UART' longname = 'Universal Asynchronous Receiver/Transmitter' diff --git a/decoders/usb/usb.py b/decoders/usb/usb.py index 073fe01..2df03c0 100644 --- a/decoders/usb/usb.py +++ b/decoders/usb/usb.py @@ -105,6 +105,7 @@ def packet_decode(packet): return pid + ' ' + data class Decoder(srd.Decoder): + api_version = 1 id = 'usb' name = 'USB' longname = 'Universal Serial Bus' |