return (b & 0x0f) + ((b >> 4) * 10)
class Decoder(srd.Decoder):
+ api_version = 1
id = 'dcf77'
name = 'DCF77'
longname = 'DCF77 time protocol'
import sigrokdecode as srd
class Decoder(srd.Decoder):
+ api_version = 1
id = 'ddc'
name = 'DDC'
longname = 'Display Data Channel'
ACCEL = 2
class Decoder(srd.Decoder):
+ api_version = 1
id = 'ebr30a_i2c_demux'
name = 'EBR30-a I2C demux'
longname = 'TrekStor EBR30-a I2C demux'
FIND_DATA = 2
class Decoder(srd.Decoder):
+ api_version = 1
id = 'i2c'
name = 'I2C'
longname = 'Inter-Integrated Circuit'
}
class Decoder(srd.Decoder):
+ api_version = 1
id = 'mx25lxx05d'
name = 'MX25Lxx05D'
longname = 'Macronix MX25Lxx05D'
INITIALIZED = 4
class Decoder(srd.Decoder):
+ api_version = 1
id = 'nunchuk'
name = 'Nunchuk'
longname = 'Nintendo Wii Nunchuk'
TX = 1
class Decoder(srd.Decoder):
+ api_version = 1
id = 'pan1321'
name = 'PAN1321'
longname = 'Panasonic PAN1321'
ANN_HEX = 0
class Decoder(srd.Decoder):
+ api_version = 1
id = 'spi'
name = 'SPI'
longname = 'Serial Peripheral Interface'
import sigrokdecode as srd
class Decoder(srd.Decoder):
+ api_version = 1
id = 'transitioncounter'
name = 'Transition counter'
longname = 'Pin transition counter'
raise Exception('Invalid parity type: %d' % parity_type)
class Decoder(srd.Decoder):
+ api_version = 1
id = 'uart'
name = 'UART'
longname = 'Universal Asynchronous Receiver/Transmitter'
return pid + ' ' + data
class Decoder(srd.Decoder):
+ api_version = 1
id = 'usb'
name = 'USB'
longname = 'Universal Serial Bus'