diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2017-05-11 23:20:58 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2017-06-05 19:09:48 +0200 |
commit | 97b874bd0b6913ed52df1b8aac5e7491479fac9a (patch) | |
tree | 005b4d75bab6e7ca2b462e25425cf6e11f100244 /decoders/parallel | |
parent | 0c931451554443463309e5e08b2e098bc195d06f (diff) | |
download | libsigrokdecode-97b874bd0b6913ed52df1b8aac5e7491479fac9a.tar.gz libsigrokdecode-97b874bd0b6913ed52df1b8aac5e7491479fac9a.zip |
Add srd_inst_initial_pins_set_all() and support code.
This allows frontends to set the assumed initial pins (i.e., the assumed
state of the pins before the first sample of a capture) to user-specified
values.
The assumed initial pins can be either low, or high, or "use same value
as the first sample of the capture".
The special self.initial_pins decoder attribute is now removed.
Diffstat (limited to 'decoders/parallel')
-rw-r--r-- | decoders/parallel/pd.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/decoders/parallel/pd.py b/decoders/parallel/pd.py index db9b371..c8ac2b0 100644 --- a/decoders/parallel/pd.py +++ b/decoders/parallel/pd.py @@ -99,9 +99,6 @@ class Decoder(srd.Decoder): self.out_python = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - # Assume that the initial pin state of all pins is logic 1. - self.initial_pins = [1] * (NUM_CHANNELS + 1) - def putpb(self, data): self.put(self.ss_item, self.es_item, self.out_python, data) |