The previous **kwargs some PDs had is not actually ever used, so drop it.
('warnings', 'Warnings', (2,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.ss_cmd, self.es_cmd = 0, 0
self.mosi_bytes = []
checksum += self.bits2num(bitlist[i-8:i])
return checksum % 256
- def __init__(self, **kwargs):
+ def __init__(self):
self.samplerate = None
self.reset()
'default': 'alternative', 'values': ('alternative', 'original')},
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.buf = []
self.syncbuf = []
self.prevsample = 0
('function', 'Current function', (11,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.buf = []
self.syncbuf = []
self.swpackets = {}
('data', 'Stream data', (1,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.buf = []
self.syncbuf = []
self.prevsample = 0
('dest', 'Destination address'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.ncnt = 0
self.nmax = 0
self.addr = 0
('dev', 'Device', (9,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = 'IDLE'
self.mosi_bytes, self.miso_bytes = [], []
self.ss_cmd, self.es_cmd = 0, 0
('fields', 'Fields', tuple(range(15)) + (16,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.samplerate = None
self.reset_variables()
('warnings', 'Warnings', (19,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.samplerate = None
self.state = 'WAIT FOR RISING EDGE'
self.oldpins = None
('warnings', 'Warnings', (28,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = 'IDLE'
self.hours = -1
self.minutes = -1
('fields', 'Fields', (0,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = None
# Received data items, used as an index into samplenum/data
self.cnt = 0
('binary', 'Binary'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.reset()
def start(self):
('tags', 'Tags', (9,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.samplerate = None
self.oldpin = None
self.last_samplenum = None
def putx(self, data):
self.put(self.ss_edge, self.samplenum, self.out_ann, data)
- def __init__(self, **kwargs):
+ def __init__(self):
self.olddata = None
self.ss_edge = None
self.first_transition = True
('data-write', 'Data write'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.samplerate = None
self.ss = self.es = self.ss_byte = -1
self.samplenum = None
inputs = ['i2c']
outputs = [] # TODO: Only known at run-time.
- def __init__(self, **kwargs):
+ def __init__(self):
self.packets = [] # Local cache of I²C packets
self.slaves = [] # List of known slave addresses
self.stream = -1 # Current output stream
'values': ('read', 'write', 'both')}
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.curslave = -1
self.curdirection = None
self.packets = [] # Local cache of I²C packets
('wav', 'WAV file'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.samplerate = None
self.oldsck = 1
self.oldws = 1
[11, ['%s: %s' % (dev, btn[0]), '%s: %s' % (dev, btn[1]),
'%s' % btn[1]]])
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = 'IDLE'
self.ss_bit = self.ss_start = self.ss_other_edge = self.ss_remote = 0
self.data = self.count = self.active = self.old_ir = None
('fields', 'Fields', (1, 2, 3, 4, 5, 6)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.samplerate = None
self.samplenum = None
self.edges, self.bits, self.ss_es_bits = [], [], []
('ascii-float', 'Jitter values as newline-separated ASCII floats'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = 'CLK'
self.samplerate = None
self.oldpin = None
('states', 'States', tuple(range(15 + 1))),
)
- def __init__(self, **kwargs):
+ def __init__(self):
# self.state = 'TEST-LOGIC-RESET'
self.state = 'RUN-TEST/IDLE'
self.oldstate = None
('warnings', 'Warnings', (3,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = 'IDLE'
self.samplenums = None
('warnings', 'Human-readable warnings'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = 'IDLE'
self.reg = 0x00 # Currently selected register
self.databytes = []
('warnings', 'Warnings', (0,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = 'IDLE'
self.oldlclk = -1
self.samplenum = 0
('text', 'Human-readable text'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.trn_beg = 0
self.trn_end = 0
self.state = 'ROM'
('text-verbose', 'Human-readable text (verbose)'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.cmd = []
self.state = 'IDLE'
self.ss = None
('kelvin', 'Temperature in Kelvin'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = 'IGNORE START REPEAT'
self.data = []
'values': ('RX', 'TX')},
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.ADUSc = None # Start off with empty slave -> client ADU.
self.ADUCs = None # Start off with empty client -> slave ADU.
('warnings', 'Warnings', (4,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.ss_cmd, self.es_cmd = 0, 0
self.mosi_bytes = []
self.miso_bytes = []
('text', 'Human-readable text'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = 'IDLE'
def start(self):
('warnings', 'Warnings', (ann_warn,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.next()
self.requirements_met = True
self.cs_was_released = False
('warnings', 'Warnings', (14,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = 'IDLE'
self.sx = self.sy = self.ax = self.ay = self.az = self.bz = self.bc = -1
self.databytecount = 0
def putrs(self, data):
self.put(self.rise, self.samplenum, self.out_ann, data)
- def __init__(self, **kwargs):
+ def __init__(self):
self.samplerate = None
self.samplenum = 0
self.state = 'WAIT FOR FALLING EDGE'
('text', 'Human-readable text'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.ss_block = 0
self.es_block = 0
self.state = 'COMMAND'
('warnings', 'Human-readable warnings'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.cmd = ['', '']
self.ss_block = None
('raw', 'RAW file'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.ss_block = self.es_block = None
self.first_transition = True
self.first_samplenum = None
('packets', 'Packets', (5, 6, 7)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.samplerate = None
self.reset_variables()
('interpretation', 'Interpretation', (5,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.mosi_bytes, self.miso_bytes = [], []
self.mosi_bits, self.miso_bits = [], []
self.row_pos = [0, 0, 0]
('rgb', 'RGB values'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.ss_cmd, self.es_cmd = 0, 0
self.mosi_bytes = []
('rgb', 'RGB', (2,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.samplerate = None
self.oldpin = None
self.packet_ss = None
('date-time', 'Date/time', (9, 10)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = 'IDLE'
self.hours = -1
self.minutes = -1
('cmd', 'Commands', tuple(range(128))),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = 'GET COMMAND TOKEN'
self.token = []
self.oldpins = None
('cmd-reply', 'Commands/replies', tuple(range(134))),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = 'IDLE'
self.ss, self.es = 0, 0
self.ss_bit, self.es_bit = 0, 0
def puty(self, data):
self.put(self.ss_edge, self.samplenum, self.out_ann, data)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = 'GET FIRST PULSE WIDTH'
self.olddata = None
self.ss_edge = None
'values': tuple(chips.keys())},
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = None
self.cmdstate = 1
self.addr = 0
('position', 'Position', (1,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.oldstep = None
self.prev_step_ss = None
self.pos = 0
('parity', 'PARITY'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
# SWD data/clock state
self.state = 'UNKNOWN'
self.oldclk = -1
('decode', 'Decode', (10,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.samplerate = None
self.oldpin = None
self.last_samplenum = None
('warnings', 'Warnings', (2,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.state = 'IDLE'
self.chip = -1
('time', 'Time', (0,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.samplerate = None
self.oldpin = None
self.last_samplenum = None
('errors', 'Errors', (9,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.oldpins = self.oldclk = self.oldload = self.oldldac = None
self.bits = []
self.ss_dac_first = None
s, halfbit = self.startsample[rxtx], self.bit_width / 2.0
self.put(s - floor(halfbit), self.samplenum + ceil(halfbit), self.out_binary, data)
- def __init__(self, **kwargs):
+ def __init__(self):
self.samplerate = None
self.samplenum = 0
self.frame_start = [-1, -1]
self.putwarn('No start of packet found', 'XXX')
return -1 # No Start Of Packet
- def __init__(self, **kwargs):
+ def __init__(self):
self.samplerate = None
self.idx = 0
self.packet_seq = 0
('state', 'Stream state', (1,)),
)
- def __init__(self, **kwargs):
+ def __init__(self):
self._samples_per_bit = 10
self._d0_prev = None
('fields', 'XFP structure fields'),
)
- def __init__(self, **kwargs):
+ def __init__(self):
# Received data items, used as an index into samplenum/data
self.cnt = -1
# Start/end sample numbers per data item
('warnings', 'Warnings', (Ann.WARN,))
)
- def __init__(self, **kwargs):
+ def __init__(self):
self.prev_cycle = Cycle.NONE
self.op_state = self.state_IDLE