##
import sigrokdecode as srd
+from common.srdhelper import SrdIntEnum
+
+Pin = SrdIntEnum.from_str('Pin', 'CLK DATA LOAD LDAC')
dacs = {
0: 'DACA',
# a) Falling edge on CLK, and/or
# b) Falling edge on LOAD, and/or
# b) Falling edge on LDAC
- pins = self.wait([{0: 'f'}, {2: 'f'}, {3: 'f'}])
+ pins = self.wait([{Pin.CLK: 'f'}, {Pin.LOAD: 'f'}, {Pin.LDAC: 'f'}])
self.ldac = pins[3]
# Handle those conditions (one or more) that matched this time.