super(Decoder, self).put(timeoffset, duration, output_id, data)
def decode(self, timeoffset, duration, data):
- """I2C protocol decoder"""
-
self.timeoffset = timeoffset
self.duration = duration
print("++", timeoffset, duration, len(data))
pass
def decode(self, timeoffset, duration, data):
- """Nintendo Wii Nunchuk decoder"""
-
out = []
o = {}
pass
def decode(self, timeoffset, duration, data):
- """Counts the low->high and high->low transitions in the specified
- channel(s) of the signal."""
-
# We should accept a list of samples and iterate...
for sample in sampleiter(data, self.unitsize):
return o
def decode(self, timeoffset, duration, data):
- """UART protocol decoder"""
-
out = []
for sample in sampleiter(data, self.unitsize):