]> sigrok.org Git - libsigrokdecode.git/commit
pwm: Rephrase edge and period detection, eliminate internal state
authorGerhard Sittig <redacted>
Sun, 18 Jun 2017 10:59:31 +0000 (12:59 +0200)
committerGerhard Sittig <redacted>
Tue, 20 Jun 2017 21:09:51 +0000 (23:09 +0200)
commit0172a1661a3addc958269d4251246d2d03cf6368
treeb2f625757684f794d1e1505af6bbf541a7bb9c51
parenteb88372396c2264948bc05586fb54dc318266973
pwm: Rephrase edge and period detection, eliminate internal state

With the simplicity of PWM waveforms and the convenience of the v3 API,
there is no need to maintain internal state. After the start of the
first period was determined based on the input signal's polarity, any
period is defined by just the next two edges, and the next period is
immediately to follow.
decoders/pwm/pd.py