- ]
- options = {}
- annotations = [
- ['dac_select', 'DAC select'],
- ['gain', 'Gain'],
- ['value', 'DAC value'],
- ['data_latch', 'Data latch point'],
- ['ldac_fall', 'LDAC falling edge'],
- ]
-
- def __init__(self, **kwargs):
- self.oldpins = self.oldclk = self.oldload = self.oldldac = None
- self.datapin = None
+ )
+ options = (
+ {'id': 'vref_a', 'desc': 'Reference voltage DACA (V)', 'default': 3.3},
+ {'id': 'vref_b', 'desc': 'Reference voltage DACB (V)', 'default': 3.3},
+ {'id': 'vref_c', 'desc': 'Reference voltage DACC (V)', 'default': 3.3},
+ {'id': 'vref_d', 'desc': 'Reference voltage DACD (V)', 'default': 3.3},
+ )
+ annotations = (
+ ('dac-select', 'DAC select'),
+ ('gain', 'Gain'),
+ ('value', 'DAC value'),
+ ('data-latch', 'Data latch point'),
+ ('ldac-fall', 'LDAC falling edge'),
+ ('bit', 'Bit'),
+ ('reg-write', 'Register write'),
+ ('voltage-update', 'Voltage update'),
+ ('voltage-update-all', 'Voltage update (all DACs)'),
+ ('invalid-cmd', 'Invalid command'),
+ )
+ annotation_rows = (
+ ('bits', 'Bits', (5,)),
+ ('fields', 'Fields', (0, 1, 2)),
+ ('registers', 'Registers', (6, 7)),
+ ('voltage-updates', 'Voltage updates', (8,)),
+ ('events', 'Events', (3, 4)),
+ ('errors', 'Errors', (9,)),
+ )
+
+ def __init__(self):