self.cmd_ss, self.cmd_es = 0, 0
self.xx, self.yy, self.zz, self.mm = 0, 0, 0, 0
- def start(self, metadata):
+ def start(self):
# self.out_proto = self.add(srd.OUTPUT_PROTO, 'avr_isp')
self.out_ann = self.add(srd.OUTPUT_ANN, 'avr_isp')
self.months = -1
self.years = -1
- def start(self, metadata):
+ def start(self):
self.out_ann = self.add(srd.OUTPUT_ANN, 'ds1307')
def report(self):
# Received data
self.cache = []
- def start(self, metadata):
+ def start(self):
self.out_ann = self.add(srd.OUTPUT_ANN, 'edid')
def report(self):
self.oldsda = 1
self.oldpins = [1, 1]
- def start(self, metadata):
+ def start(self):
self.out_proto = self.add(srd.OUTPUT_PROTO, 'i2c')
self.out_ann = self.add(srd.OUTPUT_ANN, 'i2c')
self.stream = -1 # Current output stream
self.streamcount = 0 # Number of created output streams
- def start(self, metadata):
+ def start(self):
self.out_proto = []
def report(self):
self.curdirection = None
self.packets = [] # Local cache of I2C packets
- def start(self, metadata):
+ def start(self):
self.out_proto = self.add(srd.OUTPUT_PROTO, 'i2c')
if self.options['address'] not in range(0, 127 + 1):
raise Exception('Invalid slave (must be 0..127).')
else:
return open(filename, 'wb')
- def start(self, metadata):
+ def start(self):
# A filename of 'none' is not allowed (has special meaning). A filename
# of '-' means 'stdout'.
self.f = self.file_open(self.options['filename'])
self.bits_tdi = []
self.bits_tdo = []
- def start(self, metadata):
+ def start(self):
self.out_proto = self.add(srd.OUTPUT_PROTO, 'jtag')
self.out_ann = self.add(srd.OUTPUT_ANN, 'jtag')
self.state = 'IDLE'
# self.state = 'BYPASS'
- def start(self, metadata):
+ def start(self):
# self.out_proto = self.add(srd.OUTPUT_PROTO, 'jtag_stm32')
self.out_ann = self.add(srd.OUTPUT_ANN, 'jtag_stm32')
self.maxtemp = 0
self.avgvalues = []
- def start(self, metadata):
+ def start(self):
# self.out_proto = self.add(srd.OUTPUT_PROTO, 'lm75')
self.out_ann = self.add(srd.OUTPUT_ANN, 'lm75')
self.oldpins = None
self.ss_block = self.es_block = None
- def start(self, metadata):
+ def start(self):
# self.out_proto = self.add(srd.OUTPUT_PROTO, 'lpc')
self.out_ann = self.add(srd.OUTPUT_ANN, 'lpc')
self.state = 'ROM'
self.rom = 0x0000000000000000
- def start(self, metadata):
+ def start(self):
self.out_ann = self.add(srd.OUTPUT_ANN, 'maxim_ds28ea00')
def report(self):
self.ss_block = None
self.es_block = None
- def start(self, metadata):
+ def start(self):
# self.out_proto = self.add(srd.OUTPUT_PROTO, 'midi')
self.out_ann = self.add(srd.OUTPUT_ANN, 'midi')
self.state = 'IGNORE START REPEAT'
self.data = []
- def start(self, metadata):
+ def start(self):
# self.out_proto = self.add(srd.OUTPUT_PROTO, 'mlx90614')
self.out_ann = self.add(srd.OUTPUT_ANN, 'mlx90614')
self.addr = 0
self.data = []
- def start(self, metadata):
+ def start(self):
# self.out_proto = self.add(srd.OUTPUT_PROTO, 'mx25lxx05d')
self.out_ann = self.add(srd.OUTPUT_ANN, 'mx25lxx05d')
def __init__(self, **kwargs):
self.state = 'IDLE'
- def start(self, metadata):
+ def start(self):
# self.out_proto = self.add(srd.OUTPUT_PROTO, 'mxc6225xu')
self.out_ann = self.add(srd.OUTPUT_ANN, 'mxc6225xu')
self.reg = 0x00
self.init_seq = []
- def start(self, metadata):
+ def start(self):
# self.out_proto = self.add(srd.OUTPUT_PROTO, 'nunchuk')
self.out_ann = self.add(srd.OUTPUT_ANN, 'nunchuk')
self.data = 0x0
self.rom = 0x0000000000000000
- def start(self, metadata):
+ def start(self):
self.out_proto = self.add(srd.OUTPUT_PROTO, 'onewire_network')
self.out_ann = self.add(srd.OUTPUT_ANN, 'onewire_network')
self.cmd = ['', '']
self.ss_block = None
- def start(self, metadata):
+ def start(self):
# self.out_proto = self.add(srd.OUTPUT_PROTO, 'pan1321')
self.out_ann = self.add(srd.OUTPUT_ANN, 'pan1321')
self.months = -1
self.years = -1
- def start(self, metadata):
+ def start(self):
# self.out_proto = self.add(srd.OUTPUT_PROTO, 'rtc8564')
self.out_ann = self.add(srd.OUTPUT_ANN, 'rtc8564')
self.blocklen = 0
self.read_buf = []
- def start(self, metadata):
+ def start(self):
# self.out_proto = self.add(srd.OUTPUT_PROTO, 'sdcard_spi')
self.out_ann = self.add(srd.OUTPUT_ANN, 'sdcard_spi')
self.oldpins = None
self.state = 'IDLE'
- def start(self, metadata):
+ def start(self):
self.out_proto = self.add(srd.OUTPUT_PROTO, 'spi')
self.out_ann = self.add(srd.OUTPUT_ANN, 'spi')
self.ss_value = self.es_value = 0
self.dac_select = self.gain = self.dac_value = None
- def start(self, metadata):
+ def start(self):
# self.out_proto = self.add(srd.OUTPUT_PROTO, 'tlc5620')
self.out_ann = self.add(srd.OUTPUT_ANN, 'tlc5620')
self.channels = -1
self.lastsample = None
- def start(self, metadata):
+ def start(self):
# self.out_proto = self.add(srd.OUTPUT_PROTO, 'transitioncounter')
self.out_ann = self.add(srd.OUTPUT_ANN, 'transitioncounter')
else:
return open(filename, 'w')
- def start(self, metadata):
+ def start(self):
# The user can specify 'filename' (gets both RX and TX data), and/or
# 'filename_rx' (for RX data only), and/or 'filename_tx', respectively.
def putp(self, data):
self.put(self.ss_packet, self.es_packet, self.out_ann, data)
- def start(self, metadata):
+ def start(self):
self.out_proto = self.add(srd.OUTPUT_PROTO, 'usb_packet')
self.out_ann = self.add(srd.OUTPUT_ANN, 'usb_packet')
255: self.maybe_ascii,
}
- def start(self, metadata):
+ def start(self):
self.out_ann = self.add(srd.OUTPUT_ANN, 'xfp')
def decode(self, ss, es, data):