self.xx, self.yy, self.zz, self.mm = 0, 0, 0, 0
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'avr_isp')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'avr_isp')
self.out_ann = self.add(srd.OUTPUT_ANN, 'avr_isp')
def report(self):
self.reset_variables()
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'can')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'can')
self.out_ann = self.add(srd.OUTPUT_ANN, 'can')
def metadata(self, key, value):
self.dcf77_bitnumber_is_known = 0
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'dcf77')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'dcf77')
self.out_ann = self.add(srd.OUTPUT_ANN, 'dcf77')
def metadata(self, key, value):
def start(self, metadata):
self.samplerate = metadata['samplerate']
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'guess_bitrate')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'guess_bitrate')
self.out_ann = self.add(srd.OUTPUT_ANN, 'guess_bitrate')
def report(self):
self.oldpins = [1, 1]
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PROTO, 'i2c')
+ self.out_proto = self.add(srd.OUTPUT_PYTHON, 'i2c')
self.out_ann = self.add(srd.OUTPUT_ANN, 'i2c')
def report(self):
# We're never seen this slave, add a new stream.
self.slaves.append(databyte)
- self.out_proto.append(self.add(srd.OUTPUT_PROTO,
+ self.out_proto.append(self.add(srd.OUTPUT_PYTHON,
'i2c-%s' % hex(databyte)))
self.stream = self.streamcount
self.streamcount += 1
self.packets = [] # Local cache of I2C packets
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PROTO, 'i2c')
+ self.out_proto = self.add(srd.OUTPUT_PYTHON, '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_PROTO, 'i2s')
+ self.out_proto = self.add(srd.OUTPUT_PYTHON, 'i2s')
self.out_ann = self.add(srd.OUTPUT_ANN, 'i2s')
def metadata(self, key, value):
self.bits_tdo = []
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PROTO, 'jtag')
+ self.out_proto = self.add(srd.OUTPUT_PYTHON, 'jtag')
self.out_ann = self.add(srd.OUTPUT_ANN, 'jtag')
def report(self):
# self.state = 'BYPASS'
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'jtag_stm32')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'jtag_stm32')
self.out_ann = self.add(srd.OUTPUT_ANN, 'jtag_stm32')
def report(self):
self.avgvalues = []
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'lm75')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'lm75')
self.out_ann = self.add(srd.OUTPUT_ANN, 'lm75')
def report(self):
self.ss_block = self.es_block = None
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'lpc')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'lpc')
self.out_ann = self.add(srd.OUTPUT_ANN, 'lpc')
def report(self):
self.es_block = None
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'midi')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'midi')
self.out_ann = self.add(srd.OUTPUT_ANN, 'midi')
def report(self):
self.data = []
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'mlx90614')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'mlx90614')
self.out_ann = self.add(srd.OUTPUT_ANN, 'mlx90614')
def report(self):
self.data = []
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'mx25lxx05d')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'mx25lxx05d')
self.out_ann = self.add(srd.OUTPUT_ANN, 'mx25lxx05d')
def report(self):
self.state = 'IDLE'
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'mxc6225xu')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'mxc6225xu')
self.out_ann = self.add(srd.OUTPUT_ANN, 'mxc6225xu')
def report(self):
self.init_seq = []
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'nunchuk')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'nunchuk')
self.out_ann = self.add(srd.OUTPUT_ANN, 'nunchuk')
def report(self):
self.rise = 0
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PROTO, 'onewire_link')
+ self.out_proto = self.add(srd.OUTPUT_PYTHON, 'onewire_link')
self.out_ann = self.add(srd.OUTPUT_ANN, 'onewire_link')
def metadata(self, key, value):
self.rom = 0x0000000000000000
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PROTO, 'onewire_network')
+ self.out_proto = self.add(srd.OUTPUT_PYTHON, 'onewire_network')
self.out_ann = self.add(srd.OUTPUT_ANN, 'onewire_network')
def report(self):
self.ss_block = None
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'pan1321')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'pan1321')
self.out_ann = self.add(srd.OUTPUT_ANN, 'pan1321')
def report(self):
self.state = 'IDLE'
def start(self, metadata):
- self.out_proto = self.add(srd.OUTPUT_PROTO, 'parallel')
+ self.out_proto = self.add(srd.OUTPUT_PYTHON, 'parallel')
self.out_ann = self.add(srd.OUTPUT_ANN, 'parallel')
def report(self):
self.years = -1
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'rtc8564')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'rtc8564')
self.out_ann = self.add(srd.OUTPUT_ANN, 'rtc8564')
def report(self):
self.read_buf = []
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'sdcard_spi')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'sdcard_spi')
self.out_ann = self.add(srd.OUTPUT_ANN, 'sdcard_spi')
def report(self):
self.state = 'IDLE'
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PROTO, 'spi')
+ self.out_proto = self.add(srd.OUTPUT_PYTHON, 'spi')
self.out_ann = self.add(srd.OUTPUT_ANN, 'spi')
def report(self):
self.dac_select = self.gain = self.dac_value = None
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'tlc5620')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'tlc5620')
self.out_ann = self.add(srd.OUTPUT_ANN, 'tlc5620')
def report(self):
self.lastsample = None
def start(self):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'transitioncounter')
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'transitioncounter')
self.out_ann = self.add(srd.OUTPUT_ANN, 'transitioncounter')
def report(self):
self.oldpins = [1, 1]
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PROTO, 'uart')
+ self.out_proto = self.add(srd.OUTPUT_PYTHON, 'uart')
self.out_ann = self.add(srd.OUTPUT_ANN, 'uart')
def metadata(self, key, value):
self.put(self.ss_packet, self.es_packet, self.out_ann, data)
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PROTO, 'usb_packet')
+ self.out_proto = self.add(srd.OUTPUT_PYTHON, 'usb_packet')
self.out_ann = self.add(srd.OUTPUT_ANN, 'usb_packet')
def report(self):
self.state = 'IDLE'
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PROTO, 'usb_signalling')
+ self.out_proto = self.add(srd.OUTPUT_PYTHON, 'usb_signalling')
self.out_ann = self.add(srd.OUTPUT_ANN, 'usb_signalling')
def metadata(self, key, value):
*/
enum {
SRD_OUTPUT_ANN,
- SRD_OUTPUT_PROTO,
+ SRD_OUTPUT_PYTHON,
SRD_OUTPUT_BINARY,
};
/* expose output types as symbols in the sigrokdecode module */
if (PyModule_AddIntConstant(mod, "OUTPUT_ANN", SRD_OUTPUT_ANN) == -1)
return NULL;
- if (PyModule_AddIntConstant(mod, "OUTPUT_PROTO",
- SRD_OUTPUT_PROTO) == -1)
+ if (PyModule_AddIntConstant(mod, "OUTPUT_PYTHON",
+ SRD_OUTPUT_PYTHON) == -1)
return NULL;
if (PyModule_AddIntConstant(mod, "OUTPUT_BINARY",
SRD_OUTPUT_BINARY) == -1)
/* This is only used for nicer srd_dbg() output. */
static const char *OUTPUT_TYPES[] = {
"OUTPUT_ANN",
- "OUTPUT_PROTO",
+ "OUTPUT_PYTHON",
"OUTPUT_BINARY",
};
cb->cb(pdata, cb->cb_data);
}
break;
- case SRD_OUTPUT_PROTO:
+ case SRD_OUTPUT_PYTHON:
for (l = di->next_di; l; l = l->next) {
next_di = l->data;
/* TODO: Is this needed? */