}
class Decoder(srd.Decoder):
- api_version = 1
+ api_version = 2
id = 'maxim_ds28ea00'
name = 'DS28EA00'
longname = 'Maxim DS28EA00 1-Wire digital thermometer'
license = 'gplv2+'
inputs = ['onewire_network']
outputs = ['maxim_ds28ea00']
- probes = []
- optional_probes = [
- {'id': 'pioa', 'name': 'PIOA/DONE#',
- 'desc': 'PIOA channel and chain output'},
- {'id': 'piob', 'name': 'PIOB/EN#',
- 'desc': 'PIOB channel and chain output'},
- ]
- options = {}
- annotations = [
- ['Text', 'Human-readable text'],
- ]
+ annotations = (
+ ('text', 'Human-readable text'),
+ )
def __init__(self, **kwargs):
self.trn_beg = 0
self.putx([0, ['Temperature conversion status: 0x%02x' % val]])
elif self.state in [s.upper() for s in command.values()]:
self.putx([0, ['TODO \'%s\': 0x%02x' % (self.state, val)]])
- else:
- raise Exception('Invalid state: %s' % self.state)
-