return tuple(l)
class Decoder(srd.Decoder):
- api_version = 2
+ api_version = 3
id = 'rtc8564'
name = 'RTC-8564'
longname = 'Epson RTC-8564 JE/NB'
desc = 'Realtime clock module protocol.'
license = 'gplv2+'
inputs = ['i2c']
- outputs = ['rtc8564']
+ outputs = []
+ tags = ['Clock/timing']
annotations = reg_list() + (
('read', 'Read date/time'),
('write', 'Write date/time'),
)
annotation_rows = (
('bits', 'Bits', tuple(range(0, 8 + 1)) + (11, 12, 13)),
- ('regs', 'Register access', (14, 15)),
+ ('regs', 'Register accesses', (14, 15)),
('date-time', 'Date/time', (9, 10)),
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.state = 'IDLE'
self.hours = -1
self.minutes = -1