summaryrefslogtreecommitdiff
path: root/decoders/mdio
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2017-05-11 23:20:58 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2017-06-05 19:09:48 +0200
commit97b874bd0b6913ed52df1b8aac5e7491479fac9a (patch)
tree005b4d75bab6e7ca2b462e25425cf6e11f100244 /decoders/mdio
parent0c931451554443463309e5e08b2e098bc195d06f (diff)
downloadlibsigrokdecode-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/mdio')
-rw-r--r--decoders/mdio/pd.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/decoders/mdio/pd.py b/decoders/mdio/pd.py
index ed6cfef..7c2fc5f 100644
--- a/decoders/mdio/pd.py
+++ b/decoders/mdio/pd.py
@@ -62,7 +62,6 @@ class Decoder(srd.Decoder):
)
def __init__(self):
- self.initial_pins = [1, 1]
self.illegal_bus = 0
self.samplenum = -1
self.clause45_addr = -1 # Clause 45 is context sensitive.