inputs = ['logic']
outputs = ['usb_pd']
channels = (
- {'id': 'cc1', 'name': 'CC1', 'desc': 'Control channel 1'},
+ {'id': 'cc1', 'name': 'CC1', 'desc': 'Configuration Channel 1'},
)
optional_channels = (
- {'id': 'cc2', 'name': 'CC2', 'desc': 'Control channel 2'},
+ {'id': 'cc2', 'name': 'CC2', 'desc': 'Configuration Channel 2'},
)
options = (
{'id': 'fulltext', 'desc': 'full text decoding of the packet',
if not self.samplerate:
raise SamplerateError('Cannot decode without samplerate.')
while True:
- pins = self.wait([{0: 'e'}, {1: 'e'}, {'skip': 100*1000}])
-
+ pins = self.wait([{0: 'e'}, {1: 'e'}, {'skip': int(self.samplerate/1e3)}])
# First sample of the packet, just record the start date
if not self.startsample: