2
0
forked from Ivasoft/DSView

Add more decoders

This commit is contained in:
DreamSourceLab
2018-05-27 17:10:57 +08:00
parent 95e17968d1
commit 5a806e496f
62 changed files with 3020 additions and 1077 deletions

View File

@@ -19,10 +19,7 @@
##
import sigrokdecode as srd
# Return the specified BCD number (max. 8 bits) as integer.
def bcd2int(b):
return (b & 0x0f) + ((b >> 4) * 10)
from common.srdhelper import bcd2int
def reg_list():
l = []
@@ -55,7 +52,7 @@ class Decoder(srd.Decoder):
('date-time', 'Date/time', (9, 10)),
)
def __init__(self, **kwargs):
def __init__(self):
self.state = 'IDLE'
self.hours = -1
self.minutes = -1