self.xx, self.yy, self.zz, self.mm = 0, 0, 0, 0
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'avr_isp')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'avr_isp')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.reset_variables()
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'can')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'can')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def metadata(self, key, value):
if key == srd.SRD_CONF_SAMPLERATE:
self.dcf77_bitnumber_is_known = 0
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'dcf77')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'dcf77')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def metadata(self, key, value):
if key == srd.SRD_CONF_SAMPLERATE:
self.years = -1
def start(self):
- self.out_ann = self.add(srd.OUTPUT_ANN, 'ds1307')
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.cache = []
def start(self):
- self.out_ann = self.add(srd.OUTPUT_ANN, 'edid')
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
def start(self, metadata):
self.samplerate = metadata['samplerate']
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'guess_bitrate')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'guess_bitrate')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
# We're never seen this slave, add a new stream.
self.slaves.append(databyte)
- self.out_proto.append(self.add(srd.OUTPUT_PYTHON,
- 'i2c-%s' % hex(databyte)))
+ self.out_proto.append(self.register(srd.OUTPUT_PYTHON,
+ proto_id='i2c-%s' % hex(databyte)))
self.stream = self.streamcount
self.streamcount += 1
elif cmd == 'STOP':
self.packets = [] # Local cache of I2C packets
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PYTHON, 'i2c')
+ self.out_proto = self.register(srd.OUTPUT_PYTHON, proto_id='i2c')
if self.options['address'] not in range(0, 127 + 1):
raise Exception('Invalid slave (must be 0..127).')
if self.options['direction'] not in ('both', 'read', 'write'):
self.wordlength = -1
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PYTHON, 'i2s')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'i2s')
+ self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def metadata(self, key, value):
if key == srd.SRD_CONF_SAMPLERATE:
self.bits_tdo = []
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PYTHON, 'jtag')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'jtag')
+ self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
# self.state = 'BYPASS'
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'jtag_stm32')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'jtag_stm32')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.avgvalues = []
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'lm75')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'lm75')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
# TODO: print() or self.put() or return xyz, or... ?
self.ss_block = self.es_block = None
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'lpc')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'lpc')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.rom = 0x0000000000000000
def start(self):
- self.out_ann = self.add(srd.OUTPUT_ANN, 'maxim_ds28ea00')
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.es_block = None
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'midi')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'midi')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.data = []
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'mlx90614')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'mlx90614')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.data = []
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'mx25lxx05d')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'mx25lxx05d')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.state = 'IDLE'
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'mxc6225xu')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'mxc6225xu')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.init_seq = []
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'nunchuk')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'nunchuk')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.rise = 0
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PYTHON, 'onewire_link')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'onewire_link')
+ self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def metadata(self, key, value):
if key != srd.SRD_CONF_SAMPLERATE:
self.rom = 0x0000000000000000
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PYTHON, 'onewire_network')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'onewire_network')
+ self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.ss_block = None
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'pan1321')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'pan1321')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.state = 'IDLE'
def start(self, metadata):
- self.out_proto = self.add(srd.OUTPUT_PYTHON, 'parallel')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'parallel')
+ self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.years = -1
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'rtc8564')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'rtc8564')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.read_buf = []
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'sdcard_spi')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'sdcard_spi')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.samplerate = value
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PYTHON, 'spi')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'spi')
+ self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
self.out_bitrate = self.register(srd.OUTPUT_META,
meta=(int, 'Bitrate', 'Bitrate during transfers'))
self.dac_select = self.gain = self.dac_value = None
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'tlc5620')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'tlc5620')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.lastsample = None
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'transitioncounter')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'transitioncounter')
+ # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.oldpins = [1, 1]
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PYTHON, 'uart')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'uart')
+ self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def metadata(self, key, value):
if key == srd.SRD_CONF_SAMPLERATE:
self.put(self.ss_packet, self.es_packet, self.out_ann, data)
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PYTHON, 'usb_packet')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'usb_packet')
+ self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def report(self):
pass
self.state = 'IDLE'
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PYTHON, 'usb_signalling')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'usb_signalling')
+ self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def metadata(self, key, value):
if key == srd.SRD_CONF_SAMPLERATE:
}
def start(self):
- self.out_ann = self.add(srd.OUTPUT_ANN, 'xfp')
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def decode(self, ss, es, data):
cmd, data = data