)
annotation_rows = (
('bits', 'Bits', (0,)),
- ('raw', 'Raw data', (3,)),
+ ('raw-vals', 'Raw data', (3,)),
('fields', 'Fields', (1, 2)),
)
def reset(self):
self.samplerate = None
- self.samplenum = None
self.edges, self.bits, self.ss_es_bits = [], [], []
self.state = 'IDLE'
raise SamplerateError('Cannot decode without samplerate.')
bit = 0
while True:
+ # TODO: Come up with more appropriate self.wait() conditions.
(self.dsi,) = self.wait()
if self.options['polarity'] == 'active-high':
self.dsi ^= 1 # Invert.